/* =========================
   Contact Page Hero / Banner
========================= */
.page-hero {
    position: relative;
    overflow: hidden;
    padding: 90px 0 70px;
    color: #fff;
    background:
        linear-gradient(90deg,
            rgba(6, 12, 24, 0.82) 0%,
            rgba(6, 12, 24, 0.72) 28%,
            rgba(6, 12, 24, 0.48) 48%,
            rgba(6, 12, 24, 0.22) 68%,
            rgba(6, 12, 24, 0.08) 85%,
            rgba(6, 12, 24, 0.03) 100%
        ),
        linear-gradient(180deg,
            rgba(6,12,24,0.35) 0%,
            rgba(6,12,24,0.10) 45%,
            rgba(6,12,24,0.25) 100%
        ),
        url("../../images/contact-banner.jpg") center center / cover no-repeat;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 24%, rgba(37, 99, 235, 0.12), transparent 18%),
        radial-gradient(circle at 82% 18%, rgba(6, 182, 212, 0.05), transparent 16%);
    pointer-events: none;
}

.page-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.page-hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.page-hero h1 {
    font-size: 46px;
    line-height: 1.08;
    letter-spacing: -0.8px;
    margin-bottom: 16px;
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.page-desc {
    font-size: 17px;
    line-height: 1.8;
    color: #dbe7f6;
    max-width: 700px;
}

/* =========================
   Contact Overview
========================= */
.contact-overview {
    background: linear-gradient(180deg, #edf2f8 0%, #e6ecf4 100%);
    border-top: 1px solid #dde5ef;
    border-bottom: 1px solid #dfe7f0;
}

.contact-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.overview-card {
    position: relative;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    border: 1px solid #e4edf7;
    border-radius: 24px;
    padding: 28px 24px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    transition: all 0.28s ease;
}

.overview-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--cyan));
}

.overview-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
    border-color: #c7dafb;
}

.overview-card h3 {
    font-size: 20px;
    color: var(--dark);
    margin-bottom: 10px;
}

.overview-card p,
.overview-card a {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.75;
}

.overview-card a:hover {
    color: var(--primary);
}

/* =========================
   Contact Details + Map
========================= */
.contact-details-section {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.contact-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
}

.contact-info-card,
.map-card {
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    border: 1px solid #e8eef6;
    border-radius: 28px;
    padding: 32px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.info-list {
    display: grid;
    gap: 22px;
}

.info-item h3 {
    font-size: 20px;
    color: var(--dark);
    margin-bottom: 8px;
}

.info-item p {
    color: #475569;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 4px;
}

.info-item a {
    color: var(--primary);
}

.info-item a:hover {
    color: var(--primary-2);
}

.map-frame {
    width: 100%;
    min-height: 420px;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid #e6edf6;
    background: #f8fafc;
}

.map-frame iframe {
    width: 100%;
    height: 420px;
    display: block;
}

/* =========================
   Contact Form
========================= */
.contact-form-section {
    background: linear-gradient(180deg, #eef3f8 0%, #e7edf4 100%);
    border-top: 1px solid #dde5ef;
}

.form-section-wrap {
    position: relative;
}

.form-card {
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    border: 1px solid #e7edf5;
    border-radius: 28px;
    padding: 34px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.contact-form {
    width: 100%;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: 1px solid #d8e2ee;
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 15px;
    color: var(--text);
    background: #ffffff;
    outline: none;
    transition: all 0.22s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 4px rgba(147, 197, 253, 0.18);
}

.form-group textarea {
    resize: vertical;
    min-height: 180px;
    line-height: 1.7;
}

.form-group-code {
    justify-content: flex-end;
}

.auth-code-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #bfdbfe;
    color: var(--primary-2);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 2px;
}

.form-actions {
    margin-top: 28px;
    display: flex;
    justify-content: flex-start;
}

/* =========================
   CTA
========================= */
.cta-section {
    background: transparent;
}

.cta-box {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    padding: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(6,182,212,0.22), transparent 20%),
        linear-gradient(135deg, #1d4ed8, #0f172a 72%);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(255,255,255,0.08);
}

.cta-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.08) 45%, transparent 100%);
    pointer-events: none;
}

.cta-box .section-label {
    color: #cbe1ff;
}

.cta-box .section-label::before {
    background: #93c5fd;
}

.cta-box h2 {
    font-size: 36px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.cta-box p {
    color: #dbeafe;
    max-width: 680px;
    position: relative;
    z-index: 1;
}

.cta-text,
.cta-actions {
    position: relative;
    z-index: 1;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: flex-end;
}

.cta-box .btn-secondary {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-color: rgba(255,255,255,0.26);
    box-shadow: none;
}

.cta-box .btn-secondary:hover {
    background: rgba(255,255,255,0.18);
    color: #fff;
    border-color: rgba(255,255,255,0.45);
}

/* =========================
   Contact Responsive
========================= */
@media (max-width: 1100px) {
    .contact-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-details-grid {
        grid-template-columns: 1fr;
    }

    .cta-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 860px) {
    .page-hero {
        padding: 86px 0 70px;
    }

    .page-hero h1 {
        font-size: 42px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .cta-box h2 {
        font-size: 30px;
    }
}

@media (max-width: 640px) {
    .page-hero h1 {
        font-size: 34px;
        line-height: 1.12;
    }

    .page-desc {
        font-size: 16px;
    }

    .contact-overview-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-card,
    .map-card,
    .form-card {
        padding: 22px 20px;
    }

    .map-frame {
        min-height: 320px;
    }

    .map-frame iframe {
        height: 320px;
    }

    .cta-box {
        padding: 30px 22px;
        border-radius: 24px;
    }

    .cta-actions {
        width: 100%;
        flex-direction: column;
    }
}