@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* ══════════════════════════════════════════
   CONTACT PAGE — scoped to .contact-page
   ══════════════════════════════════════════ */

.contact-page {
    font-family: 'Roboto', sans-serif;
    background: var(--bg, #f5f5f5);
    color: #1f1f2e;
    padding-bottom: 3rem;
}

/* ── Section wrapper ── */
.contact-page .contact-form {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    padding: 2.5rem 0;
    text-align: center;
}

.contact-page .heading {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.contact-page .para {
    color: #a1a1aa;
    font-size: 1rem;
    margin-bottom: 2.5rem;
}

/* ── Two-column grid ── */
.contact-page .contactForm {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .contact-page .contactForm {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

/* ── Form card ── */
.contact-page form {
    background: #2a2438;
    padding: 2rem;
    border-radius: 16px;
    text-align: left;
}

.contact-page form h2 {
    margin: 0 0 1.25rem;
    color: #e5e1ee;
    font-size: 1.3rem;
    font-weight: 600;
}

/* ── Inputs & textarea ── */
.contact-page .input {
    display: block;
    width: 100%;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    border: 1px solid #3d3553;
    background: rgba(255, 255, 255, 0.05);
    color: #e5e1ee;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.contact-page .input::placeholder {
    color: #7a7090;
}

.contact-page .input:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
    outline: none;
    background: rgba(255, 255, 255, 0.07);
}

.contact-page textarea.input {
    resize: vertical;
    min-height: 130px;
}

/* ── Submit button ── */
.contact-page .submit {
    width: 100%;
    background: #7c3aed;
    color: #fff;
    padding: 0.85rem 1.5rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    font-family: inherit;
    letter-spacing: 0.3px;
    transition: background 0.25s, opacity 0.2s, transform 0.15s;
}

.contact-page .submit:hover:not(.is-loading) {
    background: #6d28d9;
    transform: translateY(-1px);
}

.contact-page .submit:active {
    transform: translateY(0);
}

/* Loading state */
.contact-page .submit.is-loading {
    opacity: 0.75;
    cursor: not-allowed;
    pointer-events: none;
}

.contact-page .submit.is-loading::after {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.6);
    border-top-color: #fff;
    border-radius: 50%;
    animation: contact-spin 0.65s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

@keyframes contact-spin {
    to { transform: rotate(360deg); }
}

/* ── Map container ── */
.contact-page .map-container {
    position: relative;
    height: 420px;
    border-radius: 16px;
    overflow: hidden;
}

.contact-page .mapBg {
    position: absolute;
    right: 0;
    top: 0;
    width: 140px;
    height: 100%;
    background: #7c3aed;
    border-radius: 16px;
    z-index: 0;
}

.contact-page .map {
    position: absolute;
    left: 0;
    top: 0;
    width: calc(100% - 20px);
    height: 100%;
    z-index: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
}

.contact-page .map iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ── Mobile tweaks ── */
@media (max-width: 767px) {
    .contact-page .heading {
        font-size: 1.8rem;
    }

    .contact-page .map-container {
        height: 280px;
    }

    .contact-page .mapBg {
        width: 80px;
    }
}