/* Thank You Page - Exact Figma Specifications
 * Size: 1392x812px on desktop
 */

/* Reset body for thank you page */
body {
    margin: 0;
    padding: 0;
    background: var(--Background-primary);
    min-height: 100vh;
    /* At least viewport height */
    overflow-y: auto;
    /* Allow vertical scrolling if needed */
}

/* Main wrapper */
.thank-you-wrapper {
    display: flex;
    flex-direction: column;
    min-height: max(100vh, 720px);
    /* At least viewport height or 720px, whichever is larger */
    padding: 24px;
    /* Desktop padding as requested */
    box-sizing: border-box;
    /* Include padding in height calculation */
}

/* Thank you hero section - matching index.php hero width */
.thank-you-hero {
    width: 1392px;
    max-width: calc(100% - 32px);
    margin: 0 auto;
    /* Remove top margin to eliminate gap */
    background: #5762d5;
    /* Background/violetPrimary */
    border-radius: 32px;
    flex: 1 1 auto;
    /* Grow to fill available space */

    /* Flexbox for centered content */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Center content vertically */

    /* Padding */
    padding: 60px 40px;

    /* Gap between logo and body: gap-10 = 40px */
    gap: 40px;

    box-sizing: border-box;
    position: relative;
}

/* Logo link wrapper */
.thank-you-logo-link {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.thank-you-logo-link:hover {
    transform: scale(1.1);
}

/* Logo - centered, 64x64px */
.thank-you-logo {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    display: block;
}

/* Body content container */
.thank-you-body {
    width: 720px;
    max-width: calc(100% - 48px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Gap between title and subtitle: gap-6 = 24px */
    gap: 24px;
}

/* Title text - H2 specs from Figma */
.thank-you-title {
    font-family: 'GeneralSans-Medium', sans-serif;
    font-weight: 500;
    font-size: 48px;
    line-height: 56px;
    color: #ffffff;
    margin: 0;
    padding: 0;
}

/* Subtitle text - Body Regular specs from Figma */
.thank-you-subtitle {
    font-family: 'GeneralSans-Medium', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 28px;
    color: #ffffff;
    margin: 0;
    padding: 0;
}

/* Link styling - Text/link light from Figma */
.thank-you-link {
    color: #c4c9ff;
    text-decoration: none;
    cursor: pointer;
}

.thank-you-link:hover {
    text-decoration: underline;
}

/* Footer with proper spacing */
.main-footer {
    margin-top: 8px;
    /* Small gap between hero and footer */
    padding-top: 0;
    /* Remove padding-top for thank you page */
    flex-shrink: 0;
    /* Don't shrink footer */
}

/* Desktop (1281px - 1600px) */
@media (min-width: 1281px) and (max-width: 1600px) {

    /* Inherits default 24px padding from base styles */
    .thank-you-hero {
        width: 1392px;
        max-width: calc(100% - 32px);
        margin: 0 auto;
        /* Remove top margin to eliminate gap */
    }
}

/* Large screens (1601px+) - wider like index.php */
@media (min-width: 1601px) {
    .thank-you-wrapper {
        padding: 24px;
        /* Match index.php landing-container padding on large screens */
    }

    .thank-you-hero {
        width: 1600px;
        max-width: calc(100% - 48px);
        /* 24px margins on each side */
        margin: 0 auto;
        /* Remove top margin to eliminate gap */
    }
}

/* Tablet (768px - 1280px) */
@media (min-width: 768px) and (max-width: 1280px) {
    .thank-you-wrapper {
        padding: 16px;
        /* Match index.php landing-container padding on tablet */
    }

    .thank-you-hero {
        width: 736px;
        max-width: calc(100% - 32px);
        /* Match index.php margins */
        margin: 4px auto;
        /* Match index.php exact tablet margins */
        padding: 60px 40px;
        /* Consistent padding */
        gap: 40px;
        /* Gap between logo and body */
        border-radius: 24px;
        /* Match index.php tablet border-radius */
        flex: 1 1 auto;
        /* Grow to fill available space */
    }

    .thank-you-body {
        width: 100%;
        /* Full width within padding */
        max-width: none;
        gap: 24px;
        /* Gap between title and subtitle */
    }

    .thank-you-title {
        font-size: 48px;
        /* Keep same as desktop */
        line-height: 56px;
    }

    .thank-you-subtitle {
        font-size: 18px;
        /* Keep same as desktop */
        line-height: 28px;
    }

    .thank-you-logo {
        width: 64px;
        /* Same as desktop */
        height: 64px;
    }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
    .thank-you-wrapper {
        padding: 0;
        /* No padding on mobile, like index.php */
        min-height: max(100vh, 500px);
        /* Smaller min-height for mobile */
    }

    .thank-you-hero {
        max-width: calc(100% - 8px);
        /* Smaller margins like index.php (4px each side) */
        width: 100%;
        margin: 4px auto 0 auto;
        /* Match index.php exact mobile margins */
        padding: 48px 24px;
        /* Revert to original mobile padding */
        gap: 40px;
        /* Gap between logo and body */
        border-radius: 24px;
        /* rounded-3xl */
        flex: 1 1 auto;
        /* Grow to fill available space */
        min-height: 350px;
        /* Reduced min-height for mobile */
    }

    .thank-you-logo {
        width: 64px;
        /* size-16 */
        height: 64px;
        flex-shrink: 0;
    }

    .thank-you-body {
        width: 100%;
        /* Full width within padding */
        max-width: none;
        gap: 16px;
        /* Gap between title and subtitle (gap-4) */
    }

    .thank-you-title {
        font-size: 32px;
        /* Smaller for mobile */
        line-height: 40px;
    }

    .thank-you-subtitle {
        font-size: 16px;
        /* Smaller for mobile */
        line-height: 24px;
    }
}