/* =========================================================
   CONTACT PAGE
   LAMiC - Legacy Africa Micro-Credit Ltd
========================================================= */


/* =========================================================
   CONTACT HERO
========================================================= */

.contact-hero {

    position: relative;

    min-height: 570px;

    display: flex;

    align-items: center;

    background:
        linear-gradient(
            90deg,
            rgba(18, 39, 71, .97),
            rgba(18, 39, 71, .82),
            rgba(18, 39, 71, .55)
        ),
        url("../images/contact-hero.jpg");

    background-size: cover;

    background-position: center;

    overflow: hidden;

}


.contact-hero::after {

    content: "";

    position: absolute;

    width: 430px;

    height: 430px;

    right: -180px;

    bottom: -220px;

    border: 1px solid rgba(255,255,255,.12);

    border-radius: 50%;

}


.contact-hero-content {

    position: relative;

    z-index: 2;

    max-width: 820px;

    padding: 90px 0;

}


.contact-breadcrumb {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 28px;

    font-size: 14px;

}


.contact-breadcrumb a {

    color: rgba(255,255,255,.75);

    text-decoration: none;

    transition: .3s ease;

}


.contact-breadcrumb a:hover {

    color: #fff;

}


.contact-breadcrumb i {

    color: #D9842F;

    font-size: 10px;

}


.contact-breadcrumb span {

    color: #fff;

}


.contact-hero-label {

    display: inline-block;

    margin-bottom: 20px;

    color: #00A651;

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 2px;

}


.contact-hero h1 {

    max-width: 850px;

    margin: 0 0 24px;

    color: #fff;

    font-size: clamp(42px, 5vw, 68px);

    line-height: 1.08;

    font-weight: 700;

    letter-spacing: -1.5px;

}


.contact-hero h1 strong {

    display: block;

    color: #D9842F;

    font-weight: 700;

}


.contact-hero p {

    max-width: 700px;

    margin-bottom: 32px;

    color: rgba(255,255,255,.82);

    font-size: 18px;

    line-height: 1.8;

}


.contact-hero-buttons {

    display: flex;

    align-items: center;

    gap: 15px;

    flex-wrap: wrap;

}


.contact-hero-buttons .btn {

    display: inline-flex;

    align-items: center;

    gap: 10px;

}



/* =========================================================
   CONTACT INFORMATION
========================================================= */

.contact-info-section {

    background: #fff;

}


.contact-info-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 22px;

    margin-top: 55px;

}


.contact-info-card {

    position: relative;

    padding: 35px 28px;

    background: #fff;

    border: 1px solid #e7ebf0;

    border-radius: 8px;

    box-shadow:
        0 12px 35px rgba(18,39,71,.06);

    transition:
        transform .3s ease,
        box-shadow .3s ease;

}


.contact-info-card:hover {

    transform: translateY(-7px);

    box-shadow:
        0 20px 45px rgba(18,39,71,.11);

}


.contact-info-icon {

    width: 58px;

    height: 58px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 25px;

    border-radius: 50%;

    background: rgba(24,50,91,.08);

    color: #18325B;

    font-size: 21px;

}


.contact-info-card > span {

    display: block;

    margin-bottom: 8px;

    color: #00A651;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.5px;

}


.contact-info-card h3 {

    margin: 0 0 13px;

    color: #18325B;

    font-size: 20px;

}


.contact-info-card p {

    min-height: 72px;

    margin-bottom: 22px;

    color: #6c7682;

    font-size: 14px;

    line-height: 1.7;

}


.contact-info-card a {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    color: #18325B;

    font-size: 14px;

    font-weight: 700;

    text-decoration: none;

}


.contact-info-card a i {

    color: #D9842F;

    transition: .3s ease;

}


.contact-info-card a:hover i {

    transform: translateX(5px);

}


.whatsapp-icon {

    color: #00A651;

    background: rgba(0,166,81,.09);

}



/* =========================================================
   CONTACT FORM SECTION
========================================================= */

.contact-form-section {

    background: #f5f7fa;

}


.contact-form-grid {

    display: grid;

    grid-template-columns:
        .85fr 1.15fr;

    gap: 75px;

    align-items: start;

}


.contact-form-intro {

    padding-top: 15px;

}


.contact-form-intro h2 {

    max-width: 480px;

    margin: 15px 0 20px;

    color: #18325B;

    font-size: clamp(34px,4vw,48px);

    line-height: 1.15;

}


.contact-form-intro > p {

    max-width: 530px;

    margin-bottom: 38px;

    color: #6c7682;

    line-height: 1.8;

}


.quick-contact-list {

    display: flex;

    flex-direction: column;

    gap: 20px;

}


.quick-contact-item {

    display: flex;

    align-items: center;

    gap: 16px;

}


.quick-contact-icon {

    width: 48px;

    height: 48px;

    flex: 0 0 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #fff;

    color: #18325B;

    box-shadow:
        0 7px 20px rgba(18,39,71,.07);

}


.quick-contact-item div:last-child {

    display: flex;

    flex-direction: column;

    gap: 4px;

}


.quick-contact-item span {

    color: #87909b;

    font-size: 12px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .8px;

}


.quick-contact-item a,
.quick-contact-item strong {

    color: #18325B;

    font-size: 15px;

    font-weight: 700;

    text-decoration: none;

}



/* =========================================================
   FORM CARD
========================================================= */

.contact-form-card {

    padding: 42px;

    background: #fff;

    border-radius: 8px;

    border: 1px solid #e6eaf0;

    box-shadow:
        0 20px 55px rgba(18,39,71,.08);

}


.form-row {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 20px;

}


.form-group {

    margin-bottom: 22px;

}


.form-group label {

    display: block;

    margin-bottom: 9px;

    color: #18325B;

    font-size: 13px;

    font-weight: 700;

}


.input-wrapper {

    position: relative;

}


.input-wrapper > i {

    position: absolute;

    left: 17px;

    top: 50%;

    transform: translateY(-50%);

    color: #8b95a1;

    font-size: 14px;

    pointer-events: none;

}


.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {

    width: 100%;

    border: 1px solid #dfe4ea;

    border-radius: 5px;

    background: #fafbfc;

    color: #18325B;

    font-family: inherit;

    font-size: 14px;

    outline: none;

    transition:
        border-color .25s ease,
        box-shadow .25s ease,
        background .25s ease;

}


.input-wrapper input,
.input-wrapper select {

    height: 52px;

    padding:
        0 16px 0 45px;

}


.input-wrapper textarea {

    min-height: 145px;

    padding:
        16px 16px 16px 45px;

    resize: vertical;

    line-height: 1.6;

}


.input-wrapper select {

    appearance: none;

    cursor: pointer;

}


.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {

    border-color: #18325B;

    background: #fff;

    box-shadow:
        0 0 0 3px rgba(24,50,91,.07);

}


.textarea-wrapper > i {

    top: 22px;

    transform: none;

}


.select-wrapper::after {

    content: "\f078";

    position: absolute;

    right: 17px;

    top: 50%;

    transform: translateY(-50%);

    font-family:
        "Font Awesome 6 Free";

    font-weight: 900;

    color: #8b95a1;

    pointer-events: none;

}


.form-consent {

    margin: 4px 0 22px;

}


.form-consent label {

    display: flex;

    align-items: flex-start;

    gap: 10px;

    cursor: pointer;

}


.form-consent input {

    margin-top: 3px;

    accent-color: #18325B;

}


.form-consent span {

    color: #737e8a;

    font-size: 12px;

    line-height: 1.6;

}


.contact-submit {

    width: 100%;

    min-height: 54px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    border: none;

    border-radius: 5px;

    background: #18325B;

    color: #fff;

    font-family: inherit;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition:
        background .3s ease,
        transform .3s ease;

}


.contact-submit:hover {

    background: #122747;

    transform: translateY(-2px);

}



/* =========================================================
   OFFICE SECTION
========================================================= */

.office-section {

    background: #fff;

}


.office-grid {

    display: grid;

    grid-template-columns:
        .9fr 1.1fr;

    gap: 65px;

    align-items: stretch;

}


.office-content {

    padding: 15px 0;

}


.office-content h2 {

    max-width: 450px;

    margin: 15px 0 18px;

    color: #18325B;

    font-size: clamp(34px,4vw,48px);

    line-height: 1.15;

}


.office-content > p {

    max-width: 540px;

    margin-bottom: 35px;

    color: #6c7682;

    line-height: 1.8;

}


.office-details {

    display: grid;

    grid-template-columns:
        repeat(2,1fr);

    gap: 24px;

}


.office-detail {

    display: flex;

    align-items: flex-start;

    gap: 14px;

}


.office-detail-icon {

    width: 44px;

    height: 44px;

    flex: 0 0 44px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 5px;

    background: #f1f4f8;

    color: #18325B;

}


.office-detail div:last-child {

    display: flex;

    flex-direction: column;

    gap: 5px;

}


.office-detail strong {

    color: #18325B;

    font-size: 13px;

}


.office-detail span,
.office-detail a {

    color: #6c7682;

    font-size: 13px;

    line-height: 1.6;

    text-decoration: none;

}


.office-detail a:hover {

    color: #18325B;

}



/* =========================================================
   MAP
========================================================= */

.office-map {

    min-height: 450px;

    overflow: hidden;

    position: relative;

    border-radius: 8px;

    background:
        linear-gradient(
            135deg,
            #e7ecf1,
            #dce3ea
        );

}


.office-map::before {

    content: "";

    position: absolute;

    inset: 0;

    opacity: .35;

    background-image:
        linear-gradient(
            45deg,
            transparent 48%,
            #fff 49%,
            #fff 51%,
            transparent 52%
        );

    background-size: 70px 70px;

}


.map-placeholder {

    position: absolute;

    z-index: 2;

    top: 50%;

    left: 50%;

    transform:
        translate(-50%,-50%);

    width: min(390px,85%);

    padding: 35px;

    text-align: center;

    background: rgba(255,255,255,.96);

    border-radius: 8px;

    box-shadow:
        0 20px 50px rgba(18,39,71,.15);

}


.map-placeholder-icon {

    width: 60px;

    height: 60px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin: 0 auto 18px;

    border-radius: 50%;

    background: rgba(217,132,47,.1);

    color: #D9842F;

    font-size: 23px;

}


.map-placeholder > span {

    display: block;

    margin-bottom: 6px;

    color: #00A651;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.5px;

}


.map-placeholder h3 {

    margin-bottom: 8px;

    color: #18325B;

    font-size: 23px;

}


.map-placeholder p {

    margin-bottom: 20px;

    color: #707b87;

    font-size: 14px;

    line-height: 1.7;

}


.map-button {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 12px 18px;

    border-radius: 4px;

    background: #18325B;

    color: #fff;

    font-size: 13px;

    font-weight: 700;

    text-decoration: none;

    transition: .3s ease;

}


.map-button:hover {

    background: #122747;

    transform: translateY(-2px);

}



/* =========================================================
   REASONS
========================================================= */

.contact-reasons {

    background: #f5f7fa;

}


.contact-reasons-grid {

    display: grid;

    grid-template-columns:
        repeat(4,1fr);

    gap: 22px;

    margin-top: 50px;

}


.reason-card {

    padding: 32px 27px;

    background: #fff;

    border: 1px solid #e5e9ee;

    border-radius: 7px;

    transition:
        transform .3s ease,
        box-shadow .3s ease;

}


.reason-card:hover {

    transform: translateY(-6px);

    box-shadow:
        0 18px 40px rgba(18,39,71,.08);

}


.reason-icon {

    width: 54px;

    height: 54px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 22px;

    border-radius: 5px;

    background: rgba(24,50,91,.07);

    color: #18325B;

}


.reason-card h3 {

    margin-bottom: 12px;

    color: #18325B;

    font-size: 19px;

}


.reason-card p {

    color: #6c7682;

    font-size: 14px;

    line-height: 1.7;

}



/* =========================================================
   FINAL CTA
========================================================= */

.contact-final-cta {

    padding: 75px 0;

    background:
        linear-gradient(
            115deg,
            #18325B,
            #122747
        );

}


.contact-final-cta-inner {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 40px;

}


.contact-final-cta-inner > div:first-child {

    max-width: 680px;

}


.contact-final-cta-inner span {

    display: block;

    margin-bottom: 12px;

    color: #00A651;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 1.5px;

}


.contact-final-cta h2 {

    margin-bottom: 14px;

    color: #fff;

    font-size: clamp(32px,4vw,46px);

    line-height: 1.15;

}


.contact-final-cta p {

    color: rgba(255,255,255,.72);

    line-height: 1.7;

}


.contact-final-buttons {

    display: flex;

    align-items: center;

    gap: 20px;

    flex-wrap: wrap;

}


.contact-phone-button {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    color: #fff;

    font-size: 14px;

    font-weight: 700;

    text-decoration: none;

}


.contact-phone-button i {

    color: #D9842F;

}



/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {


    .contact-info-grid {

        grid-template-columns:
            repeat(2,1fr);

    }


    .contact-reasons-grid {

        grid-template-columns:
            repeat(2,1fr);

    }


    .contact-form-grid {

        gap: 45px;

    }

}


@media (max-width: 900px) {


    .contact-form-grid,
    .office-grid {

        grid-template-columns: 1fr;

    }


    .contact-form-intro {

        padding-top: 0;

    }


    .office-map {

        min-height: 400px;

    }


    .contact-final-cta-inner {

        align-items: flex-start;

        flex-direction: column;

    }

}


@media (max-width: 700px) {


    .contact-hero {

        min-height: 520px;

    }


    .contact-hero-content {

        padding: 70px 0;

    }


    .contact-hero h1 {

        font-size: 40px;

    }


    .contact-hero p {

        font-size: 16px;

    }


    .contact-info-grid {

        grid-template-columns: 1fr;

    }


    .contact-form-card {

        padding: 28px 22px;

    }


    .form-row {

        grid-template-columns: 1fr;

        gap: 0;

    }


    .office-details {

        grid-template-columns: 1fr;

    }


    .contact-reasons-grid {

        grid-template-columns: 1fr;

    }


    .contact-final-buttons {

        align-items: flex-start;

        flex-direction: column;

    }

}


@media (max-width: 480px) {


    .contact-hero-buttons {

        align-items: stretch;

        flex-direction: column;

    }


    .contact-hero-buttons .btn {

        justify-content: center;

    }


    .contact-form-card {

        padding: 24px 18px;

    }


    .office-map {

        min-height: 370px;

    }


    .map-placeholder {

        padding: 27px 20px;

    }

}