/* ================= GLOBAL ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", system-ui, sans-serif;
}

body {
    background: #f1f5f9;
    color: #0f172a;
    overflow-x: hidden;
}

/* ================= HERO ================= */

.contact-hero-section {
    min-height: 260px;
    background: linear-gradient(135deg, #e0f2fe, #eef2ff, #ecfeff);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px 140px;
}

.contact-hero-text h1 {
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(135deg, #1d4ed8, #0ea5a4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-hero-text p {
    margin-top: 12px;
    font-size: 17px;
    color: #1e293b;
    max-width: 680px;
    line-height: 1.6;
}

/* ================= CONTACT CARD ================= */

.contact-wrapper {
    max-width: 1200px;
    margin: -90px auto 90px;
    background: #ffffff;
    border-radius: 28px;
    padding: 56px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 56px;
    box-shadow: 0 40px 90px rgba(15, 23, 42, 0.15);
}

/* ================= LEFT INFO ================= */

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #f8fafc;
    padding: 19px 6px;
    border-radius: 18px;
    border: 1.5px solid #cbd5e1;
    transition: 0.3s ease;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}

.info-card i {
    font-size: 24px;
    color: #1d4ed8;
}

.info-card h4 {
    font-size: 16px;
    font-weight: 800;
}

.info-card p {
    font-size: 14.5px;
    color: #334155;
}

/* Image */

.side-image {
    margin-top: 14px;
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 20px;
    border: 1.5px solid #cbd5e1;
}

/* ================= FORM ================= */

.contact-form h2 {
    margin-bottom: 26px;
    font-size: 30px;
    font-weight: 900;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.input-row {
    display: flex;
    gap: 18px;
}

/* Inputs */

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 16px;
    border-radius: 14px;
    border: 2px solid #94a3b8;   /* DARKER BORDER */
    outline: none;
    font-size: 15px;
    background: #f8fafc;
    transition: 0.25s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #475569;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #1d4ed8;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.2);
}

.contact-form textarea {
    resize: none;
    min-height: 140px;
}

/* Button */

.contact-form button {
    margin-top: 22px;
    padding: 16px;
    border-radius: 48px;
    border: none;
    cursor: pointer;
    font-weight: 800;
    font-size: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #1d4ed8, #0ea5a4);
    transition: 0.35s ease;
    width: 100%;
}

.contact-form button:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 18px 40px rgba(29, 78, 216, 0.45);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1024px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 42px;
        gap: 40px;
    }

    .side-image {
        height: 220px;
    }
}

@media (max-width: 600px) {

    .contact-hero-section {
        padding: 70px 16px 120px;
    }

    .contact-hero-text h1 {
        font-size: 34px;
    }

    .contact-hero-text p {
        font-size: 15px;
    }

    .contact-wrapper {
        margin: -60px 14px 70px;
        padding: 26px 22px;
    }

    .input-row {
        flex-direction: column;
    }

    .contact-form h2 {
        font-size: 24px;
        text-align: center;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 15px;
        padding: 16px;
    }

    .side-image {
        height: 200px;
    }
}
/* ===== Validation Styles ===== */
.field {
    position: relative;
    width: 100%;
}

.field small {
    color: #dc2626;
    font-size: 12px;
    display: block;
    margin-top: 4px;
    min-height: 14px;
}

.field input.error,
.field textarea.error {
    border: 2px solid #dc2626;
}

.field input.success,
.field textarea.success {
    border: 2px solid #16a34a;
}
/* ================= POPUP MODAL ================= */

.contact-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.popup-box {
    background: #ffffff;
    padding: 32px 40px;
    border-radius: 18px;
    text-align: center;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.35);
    animation: popupScale 0.35s ease;
}

.popup-box p {
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 22px;
    color: #0f172a;
}

.popup-box button {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: none;
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s ease;
}

.popup-box button:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

/* Animation */
@keyframes popupScale {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
