/* =========================================================
   CONTACT PAGE — AJKS FOUNDATION
========================================================= */

.contact-section {
    max-width: 1300px;
    margin: 40px auto;
    padding: 0 30px 80px;
    animation: contactFadeIn .8s ease;
}

@keyframes contactFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ---------- Heading ---------- */

.contact-heading {
    text-align: center;
    margin-bottom: 55px;
}

.contact-heading h1 {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 800;
    color: #111;
    margin-bottom: 14px;
    letter-spacing: -.5px;
}

.contact-heading p {
    color: #6b7772;
    font-size: 16px;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.7;
}


/* ---------- Grid ---------- */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 30px;
    align-items: start;
}


/* ---------- Shared card ---------- */

.contact-info-card,
.contact-form-card {
    background: #fff;
    border-radius: 18px;
    padding: 40px 36px;
    box-shadow:
        0 4px 20px rgba(0,0,0,.05),
        0 1px 3px rgba(0,0,0,.03);
    border: 1px solid #eef2f0;
    transition: box-shadow .3s ease, transform .3s ease;
}

.contact-info-card:hover,
.contact-form-card:hover {
    box-shadow:
        0 12px 40px rgba(7,84,71,.08),
        0 2px 6px rgba(0,0,0,.04);
}

.contact-info-title {
    font-size: 17px;
    font-weight: 700;
    color: #075447;
    margin-bottom: 30px;
    letter-spacing: .3px;
}


/* ---------- Info Items ---------- */

.contact-info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 26px;
    align-items: flex-start;
}

.contact-info-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #f4f7f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #075447;
}

.contact-info-icon svg {
    width: 20px;
    height: 20px;
}

.contact-info-text {
    flex: 1;
}

.contact-info-text > span {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #7a8580;
    margin-bottom: 4px;
    letter-spacing: .2px;
}

.contact-info-text a,
.contact-info-text p {
    display: block;
    color: #1a2421;
    font-size: 15px;
    text-decoration: none;
    line-height: 1.6;
    font-weight: 500;
    transition: color .2s ease;
    margin: 0;
}

.contact-info-text a:hover {
    color: #075447;
}


/* ---------- Divider ---------- */

.contact-info-divider {
    height: 1px;
    background: #eef2f0;
    margin: 10px 0 26px;
}


/* ---------- Social buttons ---------- */

.contact-social-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    background: #f4f7f6;
    color: #333;
    border: 1px solid #e8eeec;
    transition: all .25s ease;
}

.social-btn svg {
    width: 16px;
    height: 16px;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.social-btn.facebook:hover  { background:#1877f2; color:#fff; border-color:#1877f2; }
.social-btn.instagram:hover { background:#e1306c; color:#fff; border-color:#e1306c; }
.social-btn.whatsapp:hover  { background:#25d366; color:#fff; border-color:#25d366; }


/* =========================================================
   FORM
========================================================= */

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #4a5652;
    margin-bottom: 8px;
}

.contact-form .form-input,
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #e4eae7;
    border-radius: 10px;
    font-size: 14.5px;
    font-family: inherit;
    color: #1a2421;
    background: #fbfcfb;
    outline: none;
    transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
    appearance: none;
    -webkit-appearance: none;
}

.contact-form select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234a5652' stroke-width='2.5'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 42px;
    cursor: pointer;
}

.contact-form textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.6;
}

.contact-form .form-input:focus,
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: #075447;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(7,84,71,.08);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #a8b3ae;
}

.contact-form .errorlist {
    list-style: none;
    padding: 0;
    margin: 6px 0 0;
    color: #d63333;
    font-size: 12.5px;
}


/* ---------- Submit Button ---------- */

.contact-submit-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: #0d1b2a;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15.5px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    margin-top: 12px;
    transition: background .3s ease, transform .2s ease, box-shadow .3s ease;
}

.contact-submit-btn:hover {
    background: #075447;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(7,84,71,.25);
}

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

.contact-submit-btn svg {
    transition: transform .25s ease;
}

.contact-submit-btn:hover svg {
    transform: translateX(4px);
}


/* ---------- Alert ---------- */

.contact-alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 22px;
    font-size: 14px;
    font-weight: 500;
}

.contact-alert.success {
    background: #e6f6ef;
    color: #075447;
    border: 1px solid #b6e2cf;
}


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

@media (max-width: 991px) {

    .contact-section {
        padding: 0 20px 60px;
        margin-top: 30px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 32px 26px;
        border-radius: 16px;
    }

    .contact-heading {
        margin-bottom: 40px;
    }
}


@media (max-width: 576px) {

    .contact-section {
        padding: 0 16px 50px;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 26px 20px;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-info-icon {
        width: 38px;
        height: 38px;
    }

    .contact-info-icon svg {
        width: 18px;
        height: 18px;
    }

    .social-btn {
        padding: 9px 14px;
        font-size: 12.5px;
    }

    .contact-submit-btn {
        padding: 14px;
        font-size: 14.5px;
    }
}