/* ==========================================================================
   MOLVIZADAH SONS — THANK YOU PAGE (ms-ty- prefix)
   Design Reference: gold serif "THANK YOU", gold divider, outline home button
   ========================================================================== */

.ms-ty-section {
    --ty-gold:      #5F5F5F;
    --ty-gold-dark: #111111;
    --ty-bg:        #CE9847;
    --ty-text:      #F8F5EF;
    --ty-sub:       #CE9847;
    --ty-secondary: #5F5F5F;
    

    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background-color: var(--ty-bg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ms-ty-section * { box-sizing: border-box; }

/* ---------------------------------------------------------------------
   DARK OVERLAY — only when background image is set
--------------------------------------------------------------------- */
.ms-ty-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
    z-index: 1;
}

/* ---------------------------------------------------------------------
   DECORATIVE BACKGROUND SVGs
--------------------------------------------------------------------- */
.ms-ty-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

/* World map dots — bottom left */
.ms-ty-worldmap {
    position: absolute;
    left: -4%;
    top: 15%;
    width: 40vw;
    min-width: 320px;
    max-width: 620px;
    height: auto;
    opacity: 0.07;
}

/* Globe lines — right side, partially cropped */
.ms-ty-globe {
    position: absolute;
    top: -15%;
    right: -18%;
    width: 58vw;
    height: 58vw;
    min-width: 420px;
    min-height: 420px;
    max-width: 880px;
    max-height: 880px;
    opacity: 0.12;
    animation: ms-ty-float 22s ease-in-out infinite;
}

.ms-ty-node {
    animation: ms-ty-pulse 3.8s ease-in-out infinite;
}

@keyframes ms-ty-float {
    0%, 100% { transform: translate(0, 0); }
    50%       { transform: translate(-3px, 4px); }
}

@keyframes ms-ty-pulse {
    0%, 100% { opacity: 0.3; }
    50%       { opacity: 0.9; }
}

/* Hide decorative bg when there's a custom bg image (overlay handles it) */
.ms-ty-section[style*="background-image"] .ms-ty-bg {
    display: none;
}

/* ---------------------------------------------------------------------
   MAIN CONTENT — stacked centered panel
--------------------------------------------------------------------- */
.ms-ty-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    width: calc(100% - 60px);
    margin: 0 auto;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: translateY(16px) scale(0.98);
    animation: ms-ty-fade-up 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

@keyframes ms-ty-fade-up {
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------------------------------------------------------------------
   CHECK ICON — thin gold circle + checkmark, draw-on animation
--------------------------------------------------------------------- */
.ms-ty-icon-wrap {
    margin-bottom: 28px;
}

.ms-ty-icon {
    width: 76px;
    height: 76px;
    color: var(--ty-gold);
    display: block;
    filter: drop-shadow(0 2px 10px rgba(185, 138, 54, 0.22));
}

.ms-ty-icon-circle {
    stroke-dasharray: 240;
    stroke-dashoffset: 240;
    animation: ms-ty-draw 0.75s ease 0.5s forwards;
}

.ms-ty-icon-check {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: ms-ty-draw 0.5s ease 1.15s forwards;
}

@keyframes ms-ty-draw {
    to { stroke-dashoffset: 0; }
}

/* White icon over bg image */
.ms-ty-section[style*="background-image"] .ms-ty-icon {
    color: #FFFFFF;
}

/* THANK YOU — Large black serif heading (Cormorant Garamond)
   High specificity to beat Elementor's inline generated CSS */
.ms-ty-section .ms-ty-content .ms-ty-heading,
.ms-ty-heading {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(60px, 8vw, 96px);
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1C1C1C !important;
    margin: 0 0 20px 0;
}

/* White heading over bg image */
.ms-ty-section[style*="background-image"] .ms-ty-content .ms-ty-heading,
.ms-ty-section[style*="background-image"] .ms-ty-heading {
    color: #FFFFFF !important;
}

/* ---------------------------------------------------------------------
   GREY DIVIDER LINE — thin, centered, immediately after heading
--------------------------------------------------------------------- */
.ms-ty-divider {
    width: 80px;
    height: 1px;
    background-color: #D1D5DB;
    margin: 0 auto 22px auto;
    opacity: 0;
    animation: ms-ty-fade-in 0.8s ease 0.6s forwards;
}

.ms-ty-section[style*="background-image"] .ms-ty-divider {
    background-color: rgba(255, 255, 255, 0.55);
}

@keyframes ms-ty-fade-in {
    to { opacity: 1; }
}

/* ---------------------------------------------------------------------
   SUBHEADING — small spaced uppercase caps
--------------------------------------------------------------------- */
.ms-ty-subheading {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ty-sub);
    margin: 0 0 24px 0;
}

.ms-ty-section[style*="background-image"] .ms-ty-subheading {
    color: rgba(255, 255, 255, 0.8);
}

/* ---------------------------------------------------------------------
   DESCRIPTION BODY TEXT
--------------------------------------------------------------------- */
.ms-ty-desc {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: var(--ty-secondary);
    margin: 0 0 36px 0;
}

.ms-ty-section[style*="background-image"] .ms-ty-desc {
    color: rgba(255, 255, 255, 0.8);
}

/* FILLED GOLD PILL BUTTON — matches 404 page exactly */
.ms-ty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    padding: 0 32px;
    background: #c39c4a  !important;
    border: 1px solid #c39c4a !important;
    border-radius: 9999px;
    color: #FFFFFF !important;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(206, 152, 71, 0.25);
    transition: all 0.3s ease;
}

.ms-ty-btn-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.ms-ty-btn:hover {
    background: #B5853E;
    border-color: #B5853E;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(206, 152, 71, 0.35);
}

.ms-ty-btn:hover .ms-ty-btn-icon {
    transform: translateY(-1px);
}

.ms-ty-btn:focus-visible {
    outline: 2px solid #CE9847;
    outline-offset: 3px;
}




/* ---------------------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .ms-ty-content  { padding: 48px 32px; }
    .ms-ty-heading  { font-size: clamp(52px, 7vw, 80px); }
    .ms-ty-icon     { width: 64px; height: 64px; }
}

@media (max-width: 640px) {
    .ms-ty-content   { padding: 40px 20px; width: calc(100% - 40px); }
    .ms-ty-heading   { font-size: 54px; margin-bottom: 16px; }
    .ms-ty-icon      { width: 54px; height: 54px; }
    .ms-ty-icon-wrap { margin-bottom: 20px; }
    .ms-ty-divider   { width: 56px; margin-bottom: 18px; }
    .ms-ty-desc      { font-size: 15px; margin-bottom: 28px; }
    .ms-ty-btn       { width: 100%; height: 52px; }
    .ms-ty-globe     { opacity: 0.08; }
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .ms-ty-content,
    .ms-ty-divider,
    .ms-ty-icon-circle,
    .ms-ty-icon-check,
    .ms-ty-globe,
    .ms-ty-node {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        stroke-dashoffset: 0 !important;
    }
}
