/* ================================================================
   CONTACT PAGE — V3 REDESIGN
   Matches the Escape Game Finder V3 design system
================================================================ */

/* ── HERO ── */
.contact-hero {
    position: relative;
    overflow: hidden;
    padding: 90px 40px 100px;
    text-align: center;
    background:
        radial-gradient(ellipse 90% 55% at 50% -5%, rgba(245,184,0,0.18) 0%, transparent 58%),
        radial-gradient(ellipse 60% 40% at 85% 70%, rgba(139,92,246,0.07) 0%, transparent 55%),
        linear-gradient(170deg, #080810 0%, #0e0e18 45%, #0a0a12 100%);
}

/* Dot-grid texture */
.contact-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
    z-index: 0;
}

/* Bottom shimmer line */
.contact-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(245,184,0,0.35) 50%, transparent 100%);
    z-index: 0;
}

/* Ambient orbs */
.contact-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(70px);
}
.contact-orb-1 {
    width: 380px; height: 380px;
    background: #f5b800;
    top: -120px; right: 6%;
    opacity: 0.1;
    animation: float 9s ease-in-out infinite, glow 6s ease-in-out infinite;
}
.contact-orb-2 {
    width: 300px; height: 300px;
    background: #8b5cf6;
    bottom: -80px; left: 3%;
    opacity: 0.07;
    animation: float 11s ease-in-out infinite reverse;
}

.contact-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
}

.contact-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(245,184,0,0.1);
    border: 1px solid rgba(245,184,0,0.22);
    color: #f5b800;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 28px;
    animation: fadeInUp 0.6s 0.05s cubic-bezier(0.16,1,0.3,1) both;
}

.contact-hero h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 16px;
    animation: fadeInUp 0.6s 0.15s cubic-bezier(0.16,1,0.3,1) both;
}

.ch {
    color: #f5b800;
}

.contact-hero p {
    font-size: 17px;
    color: rgba(255,255,255,0.6);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.65;
    animation: fadeInUp 0.6s 0.25s cubic-bezier(0.16,1,0.3,1) both;
}

/* ── ACTION CARDS ── */
.contact-options {
    max-width: 1200px;
    margin: 56px auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0 24px;
}

.contact-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 20px;
    padding: 36px 28px;
    text-align: center;
    transition:
        transform 0.25s cubic-bezier(0.16,1,0.3,1),
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: #f5b800;
    box-shadow:
        0 0 0 2px rgba(245,184,0,0.12),
        0 20px 48px rgba(0,0,0,0.1);
}

.card-icon {
    width: 64px;
    height: 64px;
    background: rgba(245,184,0,0.1);
    border: 1.5px solid rgba(245,184,0,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 22px;
    transition: background 0.2s ease, transform 0.25s ease;
}

.contact-card:hover .card-icon {
    background: rgba(245,184,0,0.18);
    transform: scale(1.08);
}

.contact-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin-bottom: 12px;
}

.contact-card p {
    font-size: 14px;
    color: #717171;
    line-height: 1.6;
    margin-bottom: 24px;
}

.btn-contact {
    display: inline-block;
    background: linear-gradient(135deg, #f5b800 0%, #facc15 100%);
    border: none;
    padding: 11px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(245,184,0,0.35);
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245,184,0,0.45);
}

/* ── BOOST + COORDS SECTION ── */
.contact-boost {
    max-width: 1200px;
    margin: 0 auto 64px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Dark promo card */
.boost-promo {
    background:
        radial-gradient(ellipse 80% 50% at 10% 20%, rgba(245,184,0,0.14) 0%, transparent 60%),
        linear-gradient(135deg, #0e0e18 0%, #1a1a2e 100%);
    border: 1px solid rgba(245,184,0,0.15);
    border-radius: 20px;
    padding: 44px 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.boost-promo::after {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 260px; height: 260px;
    background: rgba(245,184,0,0.05);
    border-radius: 50%;
    pointer-events: none;
}

.boost-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245,184,0,0.12);
    border: 1px solid rgba(245,184,0,0.2);
    color: #f5b800;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 13px;
    border-radius: 999px;
    margin-bottom: 22px;
}

.boost-stat {
    font-size: 72px;
    font-weight: 800;
    color: #f5b800;
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -2px;
}

.boost-stat span {
    font-size: 44px;
}

.boost-promo h2 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.boost-promo p {
    font-size: 15px;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
    margin-bottom: 28px;
}

.btn-boost {
    display: inline-block;
    background: linear-gradient(135deg, #f5b800 0%, #facc15 100%);
    border: none;
    padding: 13px 26px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    color: #333;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 20px rgba(245,184,0,0.4);
}

.btn-boost:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(245,184,0,0.5);
}

/* Light coords card */
.boost-coords {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 20px;
    padding: 40px;
}

.boost-coords h3 {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin-bottom: 28px;
}

.coord-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.coord-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.coord-icon {
    width: 44px;
    height: 44px;
    background: rgba(245,184,0,0.1);
    border: 1.5px solid rgba(245,184,0,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.coord-item > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    justify-content: center;
}

.coord-label {
    font-size: 11px;
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.coord-value {
    font-size: 15px;
    color: #222;
    font-weight: 500;
}

/* ── POPUP ── */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.popup-overlay.show {
    display: flex;
}

.popup-box {
    background: #fff;
    border-radius: 22px;
    padding: 48px 44px;
    width: min(460px, 92%);
    text-align: center;
    box-shadow: 0 30px 80px rgba(0,0,0,0.28);
    animation: popIn 0.28s cubic-bezier(0.16,1,0.3,1) both;
    position: relative;
}

@keyframes popIn {
    from { transform: scale(0.88) translateY(14px); opacity: 0; }
    to   { transform: scale(1)    translateY(0);    opacity: 1; }
}

.popup-close-x {
    position: absolute;
    top: 14px; right: 14px;
    background: #f3f3f3;
    border: none;
    width: 32px; height: 32px;
    border-radius: 50%;
    font-size: 13px;
    cursor: pointer;
    color: #666;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close-x:hover {
    background: #e0e0e0;
    color: #222;
}

.popup-icon {
    font-size: 46px;
    margin-bottom: 16px;
}

.popup-box h3 {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
}

.popup-box > p {
    font-size: 15px;
    color: #717171;
    margin-bottom: 24px;
    line-height: 1.5;
}

.popup-email-btn {
    display: block;
    padding: 14px 20px;
    background: rgba(245,184,0,0.08);
    border: 1.5px solid rgba(245,184,0,0.3);
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    margin-bottom: 20px;
    transition: background 0.2s ease, border-color 0.2s ease;
    word-break: break-all;
}

.popup-email-btn:hover {
    background: rgba(245,184,0,0.14);
    border-color: #f5b800;
}

.popup-close {
    border: 1.5px solid #e0e0e0;
    background: transparent;
    padding: 10px 26px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.popup-close:hover {
    border-color: #aaa;
    color: #222;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .contact-options {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

    .contact-boost {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .contact-hero {
        padding: 60px 20px 70px;
    }

    .contact-options,
    .contact-boost {
        padding: 0 16px;
    }

    .boost-promo,
    .boost-coords {
        padding: 30px 24px;
    }

    .boost-stat {
        font-size: 56px;
    }

    .boost-stat span {
        font-size: 36px;
    }
}
