/* =====================================================
   PREMIUM CONTACT PAGE CSS
   Path: static/css/contact.css
   Scope: templates/website/contact.html only
   Design: elegant, professional, polished glass-card UI
===================================================== */

:root {
    --contact-primary: #0f766e;
    --contact-primary-dark: #115e59;
    --contact-secondary: #14b8a6;
    --contact-accent: #22c55e;
    --contact-navy: #0f172a;
    --contact-muted: #64748b;
    --contact-soft: #ecfdf5;
    --contact-soft-2: #f0fdfa;
    --contact-white: #ffffff;
    --contact-border: rgba(15, 118, 110, 0.14);
    --contact-shadow: rgba(15, 23, 42, 0.10);
    --contact-glow: rgba(20, 184, 166, 0.22);
}

/* =====================================================
   CONTACT HERO
===================================================== */

.page-hero {
    position: relative;
    padding: 118px 0 106px !important;
    color: #ffffff !important;
    overflow: hidden !important;
    background:
        radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.20), transparent 24%),
        radial-gradient(circle at 88% 18%, rgba(34, 197, 94, 0.24), transparent 28%),
        linear-gradient(135deg, #042f2e 0%, #0f766e 48%, #14b8a6 100%) !important;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 42px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background:
        linear-gradient(135deg, rgba(255,255,255,0.08), transparent 36%),
        radial-gradient(circle at bottom right, rgba(255,255,255,0.12), transparent 34%);
    pointer-events: none;
}

.page-hero::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -190px;
    top: -180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.10);
    filter: blur(2px);
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero-content {
    max-width: 850px !important;
}

.page-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 18px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    backdrop-filter: blur(12px) !important;
    margin-bottom: 24px !important;
}

.page-badge::before {
    content: "\f2bb";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #ccfbf1;
}

.page-hero h1 {
    max-width: 820px !important;
    font-size: clamp(40px, 5vw, 66px) !important;
    line-height: 1.04 !important;
    font-weight: 950 !important;
    letter-spacing: -0.045em !important;
    margin-bottom: 22px !important;
    color: #ffffff !important;
    text-shadow: 0 14px 38px rgba(0, 0, 0, 0.18) !important;
}

.page-hero p {
    max-width: 720px !important;
    font-size: 19px !important;
    line-height: 1.8 !important;
    color: rgba(255, 255, 255, 0.88) !important;
    margin-bottom: 0 !important;
}

/* =====================================================
   MAIN BACKGROUND LAYERS
===================================================== */

.contact-directory-section,
.contact-office-section {
    position: relative;
    background:
        radial-gradient(circle at top left, rgba(20, 184, 166, 0.11), transparent 31%),
        radial-gradient(circle at 90% 25%, rgba(34, 197, 94, 0.08), transparent 30%),
        linear-gradient(180deg, #f8fafc 0%, #ffffff 48%, #ecfdf5 100%) !important;
    overflow: hidden !important;
}

.contact-directory-section::before,
.contact-office-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15, 118, 110, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 118, 110, 0.045) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent 78%);
    pointer-events: none;
}

.contact-directory-section .container,
.contact-office-section .container {
    position: relative;
    z-index: 2;
    max-width: 1200px !important;
}

/* =====================================================
   SECTION HEADING
===================================================== */

.contact-directory-section .section-heading {
    max-width: 780px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.contact-directory-section .section-heading h2 {
    font-size: clamp(34px, 4vw, 48px) !important;
    line-height: 1.08 !important;
    font-weight: 950 !important;
    letter-spacing: -0.035em !important;
    color: var(--contact-navy) !important;
    margin-bottom: 14px !important;
}

.contact-directory-section .section-heading p {
    font-size: 18px !important;
    line-height: 1.7 !important;
    color: var(--contact-muted) !important;
    margin: 0 !important;
}

/* =====================================================
   SHARED BADGES
===================================================== */

.contact-main-info span,
.member-role,
.section-mini-title {
    display: inline-flex !important;
    align-items: center !important;
    width: fit-content !important;
    padding: 8px 15px !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #ccfbf1, #ecfdf5) !important;
    color: var(--contact-primary-dark) !important;
    border: 1px solid rgba(15, 118, 110, 0.12) !important;
    font-size: 12px !important;
    font-weight: 950 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.09em !important;
    margin-bottom: 15px !important;
    box-shadow: 0 8px 18px rgba(15, 118, 110, 0.08) !important;
}

/* =====================================================
   PRESIDENT CARD
===================================================== */

.president-contact-card {
    position: relative !important;
    width: 100% !important;
    min-height: 230px !important;
    padding: 38px 42px !important;
    border-radius: 36px !important;
    display: grid !important;
    grid-template-columns: 86px minmax(0, 1fr) minmax(260px, auto) !important;
    gap: 28px !important;
    align-items: center !important;
    overflow: hidden !important;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.94), rgba(240,253,250,0.94)),
        radial-gradient(circle at top right, rgba(20, 184, 166, 0.24), transparent 34%) !important;
    border: 1px solid rgba(15, 118, 110, 0.16) !important;
    box-shadow:
        0 28px 70px rgba(15, 23, 42, 0.11),
        inset 0 1px 0 rgba(255, 255, 255, 0.75) !important;
}

.president-contact-card::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -78px;
    top: -80px;
    border-radius: 50%;
    background: rgba(20, 184, 166, 0.16);
}

.president-contact-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.65), transparent);
    transform: translateX(-120%);
    transition: transform 0.85s ease;
    pointer-events: none;
}

.president-contact-card:hover::after {
    transform: translateX(120%);
}

.contact-role-icon {
    position: relative !important;
    z-index: 1 !important;
    width: 86px !important;
    height: 86px !important;
    border-radius: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, var(--contact-primary-dark), var(--contact-secondary)) !important;
    color: #ffffff !important;
    font-size: 33px !important;
    box-shadow:
        0 18px 34px rgba(15, 118, 110, 0.28),
        inset 0 1px 0 rgba(255,255,255,0.24) !important;
}

.contact-main-info,
.contact-details {
    position: relative !important;
    z-index: 1 !important;
}

.contact-main-info h3 {
    font-size: 33px !important;
    line-height: 1.12 !important;
    font-weight: 950 !important;
    letter-spacing: -0.025em !important;
    color: var(--contact-navy) !important;
    margin: 0 0 12px !important;
}

.contact-main-info p {
    max-width: 640px !important;
    font-size: 16.5px !important;
    line-height: 1.75 !important;
    color: #475569 !important;
    margin: 0 !important;
}

.contact-details,
.member-links {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.contact-details a,
.member-links a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: fit-content !important;
    max-width: 100% !important;
    padding: 9px 12px !important;
    border-radius: 999px !important;
    background: rgba(240, 253, 250, 0.92) !important;
    color: var(--contact-primary-dark) !important;
    border: 1px solid rgba(15, 118, 110, 0.12) !important;
    font-size: 14.5px !important;
    font-weight: 850 !important;
    text-decoration: none !important;
    line-height: 1.25 !important;
    word-break: break-word !important;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease !important;
}

.contact-details a i,
.member-links a i {
    color: var(--contact-secondary) !important;
}

.contact-details a:hover,
.member-links a:hover {
    transform: translateX(5px) !important;
    background: #ffffff !important;
    box-shadow: 0 12px 24px rgba(15, 118, 110, 0.13) !important;
}

/* =====================================================
   MEMBER CONTACT CARDS
===================================================== */

.contact-member-card {
    position: relative !important;
    width: 100% !important;
    min-height: 310px !important;
    padding: 32px 30px !important;
    border-radius: 32px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.86)),
        radial-gradient(circle at top right, rgba(20, 184, 166, 0.13), transparent 34%) !important;
    border: 1px solid rgba(15, 118, 110, 0.13) !important;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.085) !important;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease !important;
}

.contact-member-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--contact-primary), var(--contact-secondary), var(--contact-accent));
}

.contact-member-card::after {
    content: "";
    position: absolute;
    width: 126px;
    height: 126px;
    right: -58px;
    bottom: -62px;
    border-radius: 50%;
    background: rgba(20, 184, 166, 0.10);
    transition: transform 0.3s ease;
}

.contact-member-card:hover {
    transform: translateY(-10px) !important;
    border-color: rgba(15, 118, 110, 0.28) !important;
    box-shadow: 0 30px 68px rgba(15, 23, 42, 0.13) !important;
}

.contact-member-card:hover::after {
    transform: scale(1.22);
}

.contact-member-card h4 {
    position: relative !important;
    z-index: 1 !important;
    font-size: 25px !important;
    line-height: 1.2 !important;
    font-weight: 950 !important;
    letter-spacing: -0.02em !important;
    color: var(--contact-navy) !important;
    margin: 0 0 15px !important;
}

.contact-member-card p {
    position: relative !important;
    z-index: 1 !important;
    color: #475569 !important;
    line-height: 1.72 !important;
    font-size: 15.7px !important;
    font-weight: 550 !important;
    margin: 0 0 24px !important;
}

.contact-member-card .member-links {
    position: relative !important;
    z-index: 1 !important;
    margin-top: auto !important;
}

/* =====================================================
   OFFICE + FORM SECTION
===================================================== */

.contact-office-section {
    padding-top: 78px !important;
    padding-bottom: 86px !important;
}

.office-card,
.contact-form-card {
    position: relative !important;
    width: 100% !important;
    min-height: 100% !important;
    border-radius: 34px !important;
    overflow: hidden !important;
    border: 1px solid rgba(15, 118, 110, 0.14) !important;
    box-shadow:
        0 22px 58px rgba(15, 23, 42, 0.095),
        inset 0 1px 0 rgba(255,255,255,0.8) !important;
}

.office-card {
    padding: 42px 36px !important;
    color: #ffffff !important;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.20), transparent 34%),
        radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.26), transparent 36%),
        linear-gradient(145deg, #063b38 0%, #0f766e 56%, #14b8a6 100%) !important;
}

.office-card::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -100px;
    bottom: -100px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
}

.office-card .section-mini-title {
    background: rgba(255,255,255,0.16) !important;
    border-color: rgba(255,255,255,0.24) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.office-card h3,
.contact-form-card h3 {
    position: relative !important;
    z-index: 1 !important;
    font-size: 33px !important;
    font-weight: 950 !important;
    letter-spacing: -0.03em !important;
    margin: 0 0 26px !important;
}

.office-card h3 {
    color: #ffffff !important;
}

.office-info {
    position: relative !important;
    z-index: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
}

.office-info p {
    margin: 0 !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 13px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1.6 !important;
    color: rgba(255,255,255,0.91) !important;
}

.office-info i {
    width: 40px !important;
    height: 40px !important;
    flex: 0 0 40px !important;
    border-radius: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255,255,255,0.15) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.18) !important;
    margin-top: -5px !important;
}

.contact-form-card {
    padding: 42px 38px !important;
    background:
        radial-gradient(circle at top right, rgba(20, 184, 166, 0.10), transparent 34%),
        #ffffff !important;
}

.contact-form-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 7px;
    background: linear-gradient(180deg, var(--contact-primary), var(--contact-secondary), var(--contact-accent));
}

.contact-form-card h3 {
    color: var(--contact-navy) !important;
}

.contact-form-card form input,
.contact-form-card form select,
.contact-form-card form textarea {
    width: 100% !important;
    min-height: 56px !important;
    border: 1px solid rgba(15, 23, 42, 0.11) !important;
    border-radius: 18px !important;
    background: #f8fafc !important;
    color: var(--contact-navy) !important;
    padding: 15px 17px !important;
    font-size: 15px !important;
    font-weight: 750 !important;
    outline: none !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.85) !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, transform 0.25s ease !important;
}

.contact-form-card form textarea {
    min-height: 160px !important;
    resize: vertical !important;
}

.contact-form-card form input::placeholder,
.contact-form-card form textarea::placeholder {
    color: #94a3b8 !important;
}

.contact-form-card form input:focus,
.contact-form-card form select:focus,
.contact-form-card form textarea:focus {
    background: #ffffff !important;
    border-color: var(--contact-secondary) !important;
    box-shadow:
        0 0 0 5px rgba(20, 184, 166, 0.14),
        0 14px 26px rgba(15, 23, 42, 0.06) !important;
    transform: translateY(-1px) !important;
}

.contact-form-card .btn,
.contact-form-card button[type="submit"] {
    min-height: 56px !important;
    border-radius: 999px !important;
    padding: 0 34px !important;
    font-size: 15px !important;
    font-weight: 950 !important;
    letter-spacing: 0.01em !important;
    background: linear-gradient(135deg, var(--contact-primary-dark), var(--contact-secondary)) !important;
    border: 0 !important;
    color: #ffffff !important;
    box-shadow: 0 18px 36px rgba(15, 118, 110, 0.26) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.contact-form-card .btn:hover,
.contact-form-card button[type="submit"]:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 24px 48px rgba(15, 118, 110, 0.34) !important;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1199.98px) {
    .president-contact-card {
        grid-template-columns: 82px 1fr !important;
    }

    .contact-details {
        grid-column: 2 / 3 !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }
}

@media (max-width: 991.98px) {
    .page-hero {
        padding: 88px 0 82px !important;
    }

    .president-contact-card {
        grid-template-columns: 1fr !important;
        padding: 34px 30px !important;
    }

    .contact-details {
        grid-column: auto !important;
        flex-direction: column !important;
    }

    .contact-directory-section .section-heading h2 {
        font-size: 36px !important;
    }

    .contact-member-card {
        min-height: 280px !important;
    }
}

@media (max-width: 575.98px) {
    .page-hero {
        padding: 74px 0 68px !important;
    }

    .page-hero::before {
        inset: 10px !important;
        border-radius: 28px !important;
    }

    .contact-directory-section,
    .contact-office-section {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .president-contact-card,
    .contact-member-card,
    .office-card,
    .contact-form-card {
        border-radius: 26px !important;
    }

    .president-contact-card,
    .office-card,
    .contact-form-card {
        padding: 30px 24px !important;
    }

    .contact-member-card {
        min-height: auto !important;
        padding: 28px 24px !important;
    }

    .contact-main-info h3,
    .office-card h3,
    .contact-form-card h3 {
        font-size: 27px !important;
    }

    .contact-form-card .btn,
    .contact-form-card button[type="submit"] {
        width: 100% !important;
    }

    .contact-details a,
    .member-links a {
        width: 100% !important;
        justify-content: flex-start !important;
    }
}

/* =====================================================
   FINAL CONTACT HERO CLEAN FIX
   Removes the glass box, keeps premium green hero
===================================================== */

/* Since this file loads only on the Contact page, remove the
   rectangle/glass overlay created by .page-hero::before. */
.page-hero::before,
.contact-hero::before,
.contact-hero.page-hero::before,
.page-hero.contact-hero::before {
    display: none !important;
    content: none !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Keep only a soft premium glow, not a box. */
.page-hero::after,
.contact-hero::after,
.contact-hero.page-hero::after,
.page-hero.contact-hero::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    width: 560px !important;
    height: 560px !important;
    right: -190px !important;
    top: -180px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.10) !important;
    filter: blur(1px) !important;
    pointer-events: none !important;
}

.page-hero,
.contact-hero,
.contact-hero.page-hero,
.page-hero.contact-hero {
    position: relative !important;
    padding: 112px 0 116px !important;
    color: #ffffff !important;
    overflow: hidden !important;
    background:
        radial-gradient(circle at 82% 18%, rgba(20, 184, 166, 0.42), transparent 34%),
        radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.16), transparent 25%),
        linear-gradient(135deg, #064e49 0%, #0f766e 52%, #14b8a6 100%) !important;
}

.page-hero .container,
.contact-hero .container {
    position: relative !important;
    z-index: 2 !important;
}

.page-hero-content,
.contact-hero .page-hero-content,
.contact-hero-content,
.contact-hero-card,
.contact-hero-glass,
.contact-hero-box {
    max-width: 800px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.page-hero-content::before,
.page-hero-content::after,
.contact-hero-content::before,
.contact-hero-content::after,
.contact-hero-card::before,
.contact-hero-card::after,
.contact-hero-glass::before,
.contact-hero-glass::after,
.contact-hero-box::before,
.contact-hero-box::after {
    display: none !important;
    content: none !important;
}

.page-badge,
.contact-hero .page-badge,
.contact-hero-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: fit-content !important;
    padding: 10px 18px !important;
    margin-bottom: 24px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.16) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

.page-badge::before,
.contact-hero .page-badge::before,
.contact-hero-badge::before {
    content: "\f2bb" !important;
    color: #ccfbf1 !important;
    font-weight: 900 !important;
}

.page-hero h1,
.contact-hero h1,
.contact-hero .page-hero-content h1,
.contact-hero-content h1 {
    max-width: 820px !important;
    font-size: clamp(42px, 5vw, 72px) !important;
    line-height: 1.05 !important;
    font-weight: 950 !important;
    letter-spacing: -0.045em !important;
    color: #ffffff !important;
    margin-bottom: 22px !important;
    text-shadow: 0 16px 34px rgba(0, 0, 0, 0.18) !important;
}

.page-hero p,
.contact-hero p,
.contact-hero .page-hero-content p,
.contact-hero-content p {
    max-width: 760px !important;
    font-size: 20px !important;
    line-height: 1.8 !important;
    color: rgba(255, 255, 255, 0.88) !important;
    margin-bottom: 0 !important;
}

@media (max-width: 991.98px) {
    .page-hero,
    .contact-hero,
    .contact-hero.page-hero,
    .page-hero.contact-hero {
        padding: 88px 0 86px !important;
    }
}

@media (max-width: 575.98px) {
    .page-hero,
    .contact-hero,
    .contact-hero.page-hero,
    .page-hero.contact-hero {
        padding: 74px 0 70px !important;
    }

    .page-hero h1,
    .contact-hero h1,
    .contact-hero .page-hero-content h1,
    .contact-hero-content h1 {
        font-size: 38px !important;
    }

    .page-hero p,
    .contact-hero p,
    .contact-hero .page-hero-content p,
    .contact-hero-content p {
        font-size: 17px !important;
    }
}
/* =====================================================
   CONTACT FORM MESSAGES
===================================================== */

.contact-form-messages {
    display: grid;

    gap: 10px;

    margin-bottom: 18px;
}

.contact-inline-message {
    display: flex;
    align-items: flex-start;

    gap: 11px;

    padding:
        14px
        16px;

    border:
        1px solid
        rgba(59, 130, 246, 0.16);

    border-radius: 15px;

    color: #1e3a8a;

    background:
        rgba(239, 246, 255, 0.96);

    font-size: 13px;
    font-weight: 750;
    line-height: 1.55;
}

.contact-inline-message > i {
    margin-top: 3px;

    flex:
        0
        0
        auto;
}

.contact-inline-message.error {
    color: #9f1239;

    border-color:
        rgba(244, 63, 94, 0.18);

    background:
        rgba(255, 241, 242, 0.98);
}


/* =====================================================
   CONTACT SUCCESS OVERLAY
===================================================== */

.contact-success-overlay {
    position: fixed;

    inset: 0;

    z-index: 99999;

    display: grid;
    place-items: center;

    padding: 20px;

    visibility: hidden;
    opacity: 0;

    background:
        rgba(2, 44, 43, 0.52);

    backdrop-filter:
        blur(9px);

    -webkit-backdrop-filter:
        blur(9px);

    transition:
        opacity 280ms ease,
        visibility 280ms ease;
}

.contact-success-overlay.is-visible {
    visibility: visible;
    opacity: 1;
}


/* =====================================================
   SUCCESS DIALOG
===================================================== */

.contact-success-dialog {
    position: relative;

    width:
        min(
            100%,
            470px
        );

    overflow: hidden;

    padding:
        42px
        38px
        31px;

    border:
        1px solid
        rgba(255, 255, 255, 0.70);

    border-radius: 30px;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(45, 212, 191, 0.15),
            transparent 36%
        ),
        #ffffff;

    box-shadow:
        0 36px 90px
        rgba(2, 44, 43, 0.34);

    text-align: center;

    opacity: 0;

    transform:
        translateY(20px)
        scale(0.96);

    transition:
        opacity 320ms ease,
        transform 320ms
        cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );
}

.contact-success-overlay.is-visible
.contact-success-dialog {
    opacity: 1;

    transform:
        translateY(0)
        scale(1);
}


/* =====================================================
   CLOSE BUTTON
===================================================== */

.contact-success-close {
    position: absolute;

    top: 16px;
    right: 16px;

    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border:
        1px solid
        rgba(15, 23, 42, 0.08);

    border-radius: 50%;

    color: #64748b;

    background:
        rgba(248, 250, 252, 0.95);

    cursor: pointer;

    transition:
        color 180ms ease,
        background-color 180ms ease,
        transform 180ms ease;
}

.contact-success-close:hover {
    color: #0f766e;

    background: #ecfdf5;

    transform:
        rotate(8deg);
}


/* =====================================================
   SUCCESS CHECK ICON
===================================================== */

.contact-success-icon {
    position: relative;

    width: 86px;
    height: 86px;

    display: grid;
    place-items: center;

    margin:
        0
        auto
        20px;

    border-radius: 50%;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #0f766e,
            #14b8a6
        );

    font-size: 32px;

    box-shadow:
        0 18px 38px
        rgba(15, 118, 110, 0.28);

    animation:
        contactSuccessIconIn
        650ms
        cubic-bezier(
            0.22,
            1,
            0.36,
            1
        )
        both;
}

.contact-success-icon::before,
.contact-success-icon::after {
    content: "";

    position: absolute;

    inset: -9px;

    border:
        1px solid
        rgba(20, 184, 166, 0.22);

    border-radius: 50%;

    animation:
        contactSuccessRing
        1700ms
        ease-out
        infinite;
}

.contact-success-icon::after {
    animation-delay:
        750ms;
}


/* =====================================================
   SUCCESS TEXT
===================================================== */

.contact-success-label {
    display: inline-flex;

    margin-bottom: 10px;

    padding:
        7px
        12px;

    border:
        1px solid
        rgba(15, 118, 110, 0.12);

    border-radius: 999px;

    color: #0f766e;

    background: #ecfdf5;

    font-size: 10px;
    font-weight: 950;

    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.contact-success-dialog h2 {
    margin:
        0
        0
        12px;

    color: #0f172a;

    font-size:
        clamp(
            25px,
            4vw,
            31px
        );

    font-weight: 950;
    line-height: 1.17;

    letter-spacing: -0.035em;
}

.contact-success-dialog > p {
    max-width: 380px;

    margin:
        0
        auto;

    color: #64748b;

    font-size: 14px;
    font-weight: 650;
    line-height: 1.7;
}

.contact-success-reference {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    margin-top: 21px;

    color: #0f766e;

    font-size: 11px;
    font-weight: 850;
}

.contact-success-reference i {
    color: #14b8a6;
}


/* =====================================================
   AUTOMATIC-CLOSE PROGRESS
===================================================== */

.contact-success-progress {
    position: absolute;

    right: 0;
    bottom: 0;
    left: 0;

    height: 5px;

    overflow: hidden;

    background:
        rgba(15, 118, 110, 0.08);
}

.contact-success-progress span {
    width: 100%;
    height: 100%;

    display: block;

    background:
        linear-gradient(
            90deg,
            #0f766e,
            #14b8a6,
            #22c55e
        );

    transform-origin: left center;

    animation:
        contactSuccessProgress
        3800ms
        linear
        forwards;
}


/* =====================================================
   SENDING BUTTON
===================================================== */

#contactSubmitButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;
}

#contactSubmitButton.is-sending,
#contactSubmitButton:disabled {
    cursor: wait;

    opacity: 0.82;

    transform: none !important;
}


/* =====================================================
   ANIMATIONS
===================================================== */

@keyframes contactSuccessIconIn {

    0% {
        opacity: 0;

        transform:
            scale(0.55)
            rotate(-12deg);
    }

    70% {
        opacity: 1;

        transform:
            scale(1.08)
            rotate(2deg);
    }

    100% {
        opacity: 1;

        transform:
            scale(1)
            rotate(0);
    }
}

@keyframes contactSuccessRing {

    0% {
        opacity: 0.48;

        transform:
            scale(0.82);
    }

    100% {
        opacity: 0;

        transform:
            scale(1.34);
    }
}

@keyframes contactSuccessProgress {

    from {
        transform:
            scaleX(1);
    }

    to {
        transform:
            scaleX(0);
    }
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 575.98px) {

    .contact-success-overlay {
        padding: 14px;
    }

    .contact-success-dialog {
        padding:
            39px
            23px
            28px;

        border-radius: 25px;
    }

    .contact-success-icon {
        width: 76px;
        height: 76px;

        font-size: 28px;
    }

    .contact-success-dialog h2 {
        font-size: 25px;
    }

    .contact-success-dialog > p {
        font-size: 13px;
    }
}


/* =====================================================
   ACCESSIBILITY
===================================================== */

@media (prefers-reduced-motion: reduce) {

    .contact-success-overlay,
    .contact-success-dialog,
    .contact-success-icon,
    .contact-success-icon::before,
    .contact-success-icon::after,
    .contact-success-progress span {
        animation: none !important;

        transition: none !important;
    }
}