/* =========================================
   THANK YOU MODAL (post-submission)
========================================= */

.thankyou-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 20, 25, 0);
    transition: background 0.35s ease;
}

.thankyou-modal-backdrop.is-open {
    background: rgba(0, 20, 25, 0.55);
}

.thankyou-modal-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 40px 32px 34px;
    text-align: center;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 20, 25, 0.25);
    transform: scale(0.85) translateY(12px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.thankyou-modal-backdrop.is-open .thankyou-modal-card {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.thankyou-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: #8a9fa3;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.thankyou-modal-close:hover {
    color: #003e50;
}

.thankyou-check {
    width: 84px;
    height: 84px;
    margin: 0 auto 20px;
}

.thankyou-check-circle {
    stroke: #0a99a5;
    stroke-width: 2.5;
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
    transition: stroke-dashoffset 0.6s ease-out 0.15s;
}

.thankyou-check-mark {
    stroke: #0a99a5;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    transition: stroke-dashoffset 0.4s ease-out 0.7s;
}

.thankyou-modal-backdrop.is-open .thankyou-check-circle {
    stroke-dashoffset: 0;
}

.thankyou-modal-backdrop.is-open .thankyou-check-mark {
    stroke-dashoffset: 0;
}

.thankyou-modal-card h3 {
    margin: 0 0 10px;
    color: #003e50;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 28px;
    font-weight: 700;
}

.thankyou-modal-card p {
    margin: 0 0 24px;
    color: #486c71;
    font-family: "DM Sans", sans-serif;
    font-size: 14.5px;
    line-height: 1.65;
}

.thankyou-modal-btn {
    padding: 11px 30px;
    border: none;
    border-radius: 8px;
    background: #0a99a5;
    color: #ffffff;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.thankyou-modal-btn:hover {
    background: #08808a;
}
