/**
 * Thank You Popup Modal
 * Figma: 1039:12155 — Thank you Form (625×462)
 * Shared by contact form + newsletter subscribe
 */

/* Overlay — full screen, dark bg */
.thankyou-popup {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.thankyou-popup.is-open {
    opacity: 1;
    visibility: visible;
}

.thankyou-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

/* Card — Figma: 625×462, pad 60/40, radius 16, border #AAA5BA, gap 32 */
.thankyou-popup__card {
    position: relative;
    width: 625px;
    max-width: calc(100vw - 40px);
    padding: 60px 40px;
    border-radius: 16px;
    background: #FFFFFF;
    background-image: linear-gradient(to bottom, #E4E1F2 0%, rgba(228, 225, 242, 0) 23%);
    border: 1px solid #AAA5BA;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    transform: translateY(20px);
    transition: transform 0.25s ease;
}

.thankyou-popup.is-open .thankyou-popup__card {
    transform: translateY(0);
}

/* Close button — top-right */
.thankyou-popup__close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    padding: 0;
    transition: background 0.15s ease;
}

.thankyou-popup__close:hover {
    background: rgba(0, 0, 0, 0.05);
}

.thankyou-popup__close svg {
    display: block;
}

/* Checkmark icon */
.thankyou-popup__icon {
    display: flex;
    justify-content: center;
}

.thankyou-popup__icon svg {
    width: 240px;
    height: auto;
}

/* Text container */
.thankyou-popup__text {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
    max-width: 465px;
}

/* Title — Figma: 28/600/120%, #1D004B */
.thankyou-popup__title {
    font-family: "Funnel Sans", sans-serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 120%;
    color: #1D004B;
    margin: 0;
}

/* Body — Figma: 18/300/140%, #502044 */
.thankyou-popup__body {
    font-family: "Funnel Sans", sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 140%;
    color: #502044;
    margin: 0;
}

/* Body scroll lock */
body.thankyou-popup-open {
    overflow: hidden;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .thankyou-popup__card {
        padding: 48px 24px;
        border-radius: 12px;
    }

    .thankyou-popup__title {
        font-size: 22px;
    }

    .thankyou-popup__body {
        font-size: 16px;
    }

    .thankyou-popup__close {
        top: 16px;
        right: 16px;
    }
}
