
/* =========================================================
   MOUNT OLIVES CHURCH
   CONTACT PAGE STYLES
   ========================================================= */


/* =========================================================
   CONTACT HERO
   ========================================================= */

.contact-hero {
    position: relative;
    min-height: 430px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(
            110deg,
            rgba(5, 31, 61, 0.96),
            rgba(7, 86, 163, 0.88)
        );
}

.contact-hero::before {
    content: "";
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.10);
    right: -140px;
    top: -190px;
}

.contact-hero::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    right: 80px;
    bottom: -220px;
}

.contact-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 15% 50%,
            rgba(255, 255, 255, 0.08),
            transparent 35%
        );
}

.contact-hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding-top: 45px;
    padding-bottom: 45px;
}

.contact-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.contact-hero-tag i {
    font-size: 0.9rem;
}

.contact-hero h1 {
    margin: 0 0 20px;
    color: #ffffff;
    font-size: clamp(2.7rem, 6vw, 4.6rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -2px;
}

.contact-hero h1 span {
    display: block;
    color: #8fc8ff;
}

.contact-hero p {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
    line-height: 1.8;
}


/* =========================================================
   CONTACT INTRO
   ========================================================= */

.contact-intro {
    padding: 90px 0 65px;
    background: #ffffff;
}

.contact-intro-content {
    max-width: 780px;
}

.section-label {
    display: inline-block;
    margin-bottom: 13px;
    color: #0756a3;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    margin-right: 50px;
}

.contact-intro h2 {
    max-width: 700px;
    margin: 0 0 18px;
    color: #132238;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -1px;
}

.contact-intro h2 span {
    color: #0756a3;
}

.contact-intro p {
    max-width: 720px;
    margin: 0;
    color: #667085;
    font-size: 1rem;
    line-height: 1.85;
}


/* =========================================================
   MAIN CONTACT SECTION
   ========================================================= */

.contact-main {
    padding: 45px 0 100px;
    background: #f7f9fc;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 70px;
    align-items: start;
}


/* =========================================================
   CONTACT DETAILS
   ========================================================= */

.contact-details {
    padding-top: 12px;
}

.contact-details h2 {
    max-width: 480px;
    margin: 0 0 18px;
    color: #132238;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -1px;
}

.contact-details h2 span {
    display: block;
    color: #0756a3;
}

.contact-description {
    max-width: 520px;
    margin: 0 0 38px;
    color: #667085;
    font-size: 0.98rem;
    line-height: 1.8;
}


/* =========================================================
   CONTACT INFORMATION ITEMS
   ========================================================= */

.contact-info-item {
    display: flex;
    gap: 18px;
    padding: 21px 0;
    border-bottom: 1px solid #e5e9ef;
}

.contact-info-item:first-of-type {
    padding-top: 5px;
}

.contact-info-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #e9f3ff;
    color: #0756a3;
    font-size: 1rem;
}

.contact-info-text h3 {
    margin: 0 0 5px;
    color: #17263a;
    font-size: 1rem;
    font-weight: 750;
}

.contact-info-text p {
    margin: 0 0 7px;
    color: #687386;
    font-size: 0.92rem;
    line-height: 1.65;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #0756a3;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition:
        color 0.25s ease,
        gap 0.25s ease;
}

.contact-link:hover {
    color: #043d75;
    gap: 11px;
}

.contact-link i {
    font-size: 0.7rem;
}


/* =========================================================
   WORSHIP SERVICE BOX
   ========================================================= */

.contact-service-box {
    display: flex;
    gap: 17px;
    margin-top: 28px;
    padding: 23px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e6ebf1;
    box-shadow: 0 8px 30px rgba(15, 35, 60, 0.05);
}

.service-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #0756a3;
    color: #ffffff;
    font-size: 0.9rem;
}

.contact-service-box h3 {
    margin: 0 0 6px;
    color: #17263a;
    font-size: 1rem;
    font-weight: 750;
}

.contact-service-box p {
    margin: 0 0 9px;
    color: #687386;
    font-size: 0.88rem;
    line-height: 1.65;
}


/* =========================================================
   CONTACT FORM CARD
   ========================================================= */

.contact-form-wrapper {
    padding: 40px;
    background: #ffffff;
    border: 1px solid #e6ebf1;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(15, 35, 60, 0.08);
}

.form-heading {
    margin-bottom: 30px;
}

.form-heading h2 {
    margin: 0 0 12px;
    color: #132238;
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.8px;
}

.form-heading h2 span {
    color: #0756a3;
}

.form-heading p {
    max-width: 560px;
    margin: 0;
    color: #737e8e;
    font-size: 0.9rem;
    line-height: 1.7;
}


/* =========================================================
   FORM ROW
   ========================================================= */

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}


/* =========================================================
   FORM GROUP
   ========================================================= */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #27364a;
    font-size: 0.83rem;
    font-weight: 700;
}


/* =========================================================
   INPUT WRAPPER
   ========================================================= */

.input-wrapper {
    position: relative;
}

.input-wrapper > i {
    position: absolute;
    left: 15px;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    color: #8b97a8;
    font-size: 0.82rem;
    pointer-events: none;
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
    width: 100%;
    border: 1px solid #dce2e9;
    border-radius: 9px;
    background: #ffffff;
    color: #27364a;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.input-wrapper input,
.input-wrapper select {
    height: 50px;
    padding: 0 15px 0 43px;
}

.input-wrapper textarea {
    min-height: 145px;
    resize: vertical;
    padding: 15px 15px 15px 43px;
    line-height: 1.65;
}

.input-wrapper select {
    appearance: none;
    cursor: pointer;
}

.input-wrapper:has(select)::after {
    content: "\f078";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #8b97a8;
    font-family: "Font Awesome 6 Free";
    font-size: 0.65rem;
    font-weight: 900;
    pointer-events: none;
}

.input-wrapper input::placeholder,
.input-wrapper textarea::placeholder {
    color: #a3acb9;
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
    border-color: #4b9ae5;
    box-shadow: 0 0 0 3px rgba(7, 86, 163, 0.09);
}


/* =========================================================
   TEXTAREA ICON
   ========================================================= */

.textarea-wrapper > i {
    top: 20px;
    transform: none;
}


/* =========================================================
   VALIDATION STATES
   ========================================================= */

.input-wrapper input.input-error,
.input-wrapper select.input-error,
.input-wrapper textarea.input-error {
    border-color: #dc5c5c;
    background: #fffafa;
}

.input-wrapper input.input-success,
.input-wrapper select.input-success,
.input-wrapper textarea.input-success {
    border-color: #56a878;
}

.form-error {
    display: block;
    min-height: 16px;
    margin-top: 5px;
    color: #d94b4b;
    font-size: 0.72rem;
    line-height: 1.4;
}

.message-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.character-count {
    flex-shrink: 0;
    margin-top: 5px;
    color: #9aa3af;
    font-size: 0.72rem;
}


/* =========================================================
   FORM STATUS
   ========================================================= */

.form-status {
    display: none;
    margin: 5px 0 18px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    line-height: 1.5;
}

.form-status.show {
    display: block;
}

.form-status.success {
    background: #edf9f2;
    color: #287347;
    border: 1px solid #c9ebd6;
}

.form-status.error {
    background: #fff2f2;
    color: #a33a3a;
    border: 1px solid #f1caca;
}
/* =========================================================
   HONEYPOT ANTI-SPAM FIELD
   Hidden from normal visitors but available to spambots
========================================================= */

.contact-honeypot {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}


/* =========================================================
   SUBMIT BUTTON
   ========================================================= */

.contact-submit {
    width: 100%;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    cursor: pointer;
}

.contact-submit i {
    font-size: 0.82rem;
    transition: transform 0.25s ease;
}

.contact-submit:hover i {
    transform: translateX(3px);
}

.contact-submit.loading {
    opacity: 0.75;
    cursor: wait;
}

.contact-submit.loading i {
    animation: contactSpin 0.8s linear infinite;
}

@keyframes contactSpin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   FORM PRIVACY NOTE
   ========================================================= */

.form-note {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 7px;
    margin: 15px 0 0;
    color: #929ba8;
    font-size: 0.72rem;
    line-height: 1.5;
    text-align: center;
}

.form-note i {
    margin-top: 2px;
    color: #7c8795;
}


/* =========================================================
   MAP SECTION
   ========================================================= */

.contact-map-section {
    padding: 100px 0;
    background: #ffffff;
}

.section-heading {
    max-width: 700px;
    margin-bottom: 35px;
}

.section-heading h2 {
    margin: 0 0 14px;
    color: #132238;
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -1px;
}

.section-heading h2 span {
    color: #0756a3;
}

.section-heading p {
    max-width: 620px;
    margin: 0;
    color: #6d7888;
    font-size: 0.95rem;
    line-height: 1.8;
}

.contact-map {
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid #e1e6ec;
    box-shadow: 0 15px 45px rgba(15, 35, 60, 0.08);
}

.contact-map iframe {
    display: block;
}


/* =========================================================
   FINAL CTA
   ========================================================= */

.contact-cta {
    padding: 0 0 100px;
    background: #ffffff;
}

.contact-cta-box {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 45px;
    padding: 55px 60px;
    border-radius: 18px;
    background:
        linear-gradient(
            115deg,
            #082d55,
            #0756a3
        );
}

.contact-cta-box::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    right: -100px;
    top: -150px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 50%;
}

.contact-cta-box::after {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    right: 70px;
    bottom: -130px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.contact-cta-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.contact-cta-content .section-label {
    color: #a9d5ff;
}

.contact-cta-content h2 {
    margin: 0 0 13px;
    color: #ffffff;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -1px;
}

.contact-cta-content h2 span {
    color: #a9d5ff;
}

.contact-cta-content p {
    max-width: 600px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.94rem;
    line-height: 1.75;
}

.contact-cta-buttons {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.contact-cta-buttons .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 7px;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease;
}

.contact-cta-buttons .btn:hover {
    transform: translateY(-2px);
}

.btn-light {
    background: #ffffff;
    color: #0756a3;
}

.btn-light:hover {
    background: #f0f6fc;
    color: #043d75;
}

.btn-outline {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: #ffffff;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .contact-details {
        max-width: 760px;
    }

    .contact-form-wrapper {
        max-width: 800px;
    }

    .contact-cta-box {
        align-items: flex-start;
        flex-direction: column;
        padding: 48px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .contact-hero {
        min-height: 380px;
    }

    .contact-hero-content {
        padding-top: 55px;
        padding-bottom: 55px;
    }

    .contact-hero h1 {
        font-size: clamp(2.3rem, 11vw, 3.3rem);
        letter-spacing: -1.3px;
    }

    .contact-hero p {
        font-size: 0.92rem;
        line-height: 1.7;
    }


    .contact-intro {
        padding: 65px 0 40px;
    }

    .contact-intro h2 {
        font-size: 2rem;
    }

    .contact-intro p {
        font-size: 0.92rem;
        line-height: 1.75;
    }


    .contact-main {
        padding: 35px 0 70px;
    }

    .contact-grid {
        gap: 45px;
    }

    .contact-details h2 {
        font-size: 2rem;
    }


    .contact-form-wrapper {
        padding: 28px 20px;
        border-radius: 13px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-heading {
        margin-bottom: 25px;
    }

    .form-heading h2 {
        font-size: 1.85rem;
    }


    .contact-info-item {
        gap: 14px;
    }

    .contact-info-icon {
        flex-basis: 43px;
        width: 43px;
        height: 43px;
    }

    .contact-service-box {
        padding: 20px;
    }


    .contact-map-section {
        padding: 70px 0;
    }

    .section-heading h2 {
        font-size: 2rem;
    }

    .contact-map {
        border-radius: 12px;
    }

    .contact-map iframe {
        height: 350px;
    }


    .contact-cta {
        padding-bottom: 70px;
    }

    .contact-cta-box {
        padding: 38px 25px;
        border-radius: 13px;
    }

    .contact-cta-content h2 {
        font-size: 2rem;
    }

    .contact-cta-buttons {
        width: 100%;
        flex-direction: column;
    }

    .contact-cta-buttons .btn {
        width: 100%;
    }

}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 420px) {

    .contact-hero {
        min-height: 350px;
    }

    .contact-hero h1 {
        font-size: 2.25rem;
    }

    .contact-hero-tag {
        font-size: 0.72rem;
    }

    .contact-form-wrapper {
        padding: 25px 17px;
    }

    .contact-service-box {
        gap: 12px;
        padding: 18px;
    }

    .contact-service-box .service-icon {
        flex-basis: 39px;
        width: 39px;
        height: 39px;
    }

    .contact-map iframe {
        height: 300px;
    }

}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.contact-link:focus-visible,
.contact-submit:focus-visible,
.contact-cta-buttons .btn:focus-visible,
.input-wrapper input:focus-visible,
.input-wrapper select:focus-visible,
.input-wrapper textarea:focus-visible {
    outline: 3px solid rgba(7, 86, 163, 0.25);
    outline-offset: 2px;
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .contact-link,
    .contact-submit,
    .contact-submit i,
    .contact-cta-buttons .btn,
    .input-wrapper input,
    .input-wrapper select,
    .input-wrapper textarea {
        transition: none;
    }

    .contact-submit.loading i {
        animation: none;
    }

}
