/* =========================================================
   CONTACT US PAGE
   Trepeza Kale Hiwot Church
========================================================= */

.contact-page {
    width: 100%;
    overflow: hidden;
    background: #ffffff;
    color: #172b50;
}

.contact-container {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}


/* =========================================================
   HERO
========================================================= */

.contact-hero {
    position: relative;

    min-height: 470px;

    display: flex;

    align-items: center;

    background-image: url("../images/bg.png"); 

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;
}

.contact-hero-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(5, 15, 35, 0.86),
            rgba(5, 15, 35, 0.58),
            rgba(5, 15, 35, 0.35)
        );
}

.contact-hero-content {
    position: relative;
    z-index: 2;
    padding-top: 45px;
    padding-bottom: 45px;
}

.contact-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 14px;
}

.contact-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
}

.contact-breadcrumb a:hover {
    color: #65b7ff;
}

.contact-breadcrumb span:last-child {
    opacity: 0.9;
}

.contact-kicker {
    display: block;
    margin-bottom: 8px;
    color: #52b4ff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 4px;
}

.contact-hero h1 {
    margin: 0 0 18px;
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(48px, 6vw, 72px);
    line-height: 1;
    font-weight: 700;
}

.contact-hero h1 span {
    color: #1689e8;
}

.contact-hero p {
    max-width: 610px;
    margin: 0;
    color: rgba(255,255,255,0.94);
    font-size: 17px;
    line-height: 1.7;
}


/* =========================================================
   SECTION HEADING
========================================================= */

.contact-section-heading {
    max-width: 760px;
    margin: 0 auto 45px;
    text-align: center;
}

.contact-section-heading > span,
.location-heading > span,
.form-heading > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #126bc0;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 3px;
}

.contact-section-heading > span i {
    font-size: 16px;
}

.contact-section-heading h2 {
    margin: 10px 0 8px;
    color: #10365f;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    line-height: 1.2;
}

.contact-section-heading p {
    max-width: 700px;
    margin: 0 auto;
    color: #65748a;
    font-size: 15px;
    line-height: 1.7;
}


/* =========================================================
   CONTACT INFORMATION
========================================================= */

.contact-information-section {
    padding: 60px 0 35px;
    background: #ffffff;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.contact-info-card {
    min-height: 150px;
    padding: 0 25px;
    text-align: center;
    border-right: 1px solid #dce4ed;
    box-sizing: border-box;
}

.contact-info-card:last-child {
    border-right: 0;
}

.contact-info-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e6f3ff;
    color: #0875cc;
    font-size: 22px;
}

.contact-info-card h3 {
    margin: 0 0 10px;
    color: #0875cc;
    font-size: 17px;
    font-weight: 700;
}

.contact-info-card p {
    margin: 0;
    color: #39485b;
    font-size: 15px;
    line-height: 1.55;
}

.contact-info-card p span {
    display: block;
    margin-top: 3px;
    color: #61738a;
    font-size: 13px;
}


/* =========================================================
   FORM + SIDE
========================================================= */

.contact-main-section {
    padding: 30px 0 55px;
    background: #ffffff;
}

.contact-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    gap: 20px;
    align-items: stretch;
}

.contact-form-card {
    padding: 28px 28px 25px;
    border-radius: 6px;
    background: #f2f8fe;
    box-sizing: border-box;
}

.form-heading {
    margin-bottom: 20px;
}

.form-heading > span {
    margin-bottom: 8px;
}

.form-heading h2 {
    margin: 0 0 7px;
    color: #10365f;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
}

.form-heading p {
    margin: 0;
    color: #66758a;
    font-size: 14px;
    line-height: 1.6;
}

.contact-form {
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-group {
    margin-bottom: 13px;
}

.form-group label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.input-wrapper {
    position: relative;
}

.input-wrapper > i {
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 2;
    transform: translateY(-50%);
    color: #70849a;
    font-size: 13px;
    pointer-events: none;
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
    width: 100%;
    border: 1px solid #d5e0eb;
    border-radius: 5px;
    outline: none;
    background: #ffffff;
    color: #3e5065;
    font-family: inherit;
    font-size: 13px;
    box-sizing: border-box;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.input-wrapper input,
.input-wrapper select {
    height: 42px;
    padding: 0 14px 0 38px;
}

.input-wrapper textarea {
    min-height: 145px;
    padding: 14px 14px 14px 38px;
    resize: vertical;
}

.input-wrapper textarea + * {
    vertical-align: top;
}

.textarea-wrapper > i {
    top: 17px;
    transform: none;
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
    border-color: #1689e8;
    box-shadow: 0 0 0 3px rgba(22,137,232,0.10);
}

.input-wrapper select {
    appearance: auto;
    cursor: pointer;
}

.form-error {
    display: block;
    min-height: 0;
    margin-top: 4px;
    color: #c52c35;
    font-size: 11px;
}

.form-group.has-error input,
.form-group.has-error textarea {
    border-color: #c52c35;
}

.contact-submit {
    width: 100%;
    min-height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 4px;
    background: #1689e8;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.contact-submit:hover {
    background: #0b69b9;
    transform: translateY(-1px);
}

.contact-submit:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

.contact-form-status {
    min-height: 20px;
    margin-top: 10px;
    text-align: center;
    font-size: 13px;
}

.contact-form-status.success {
    color: #18764b;
}

.contact-form-status.error {
    color: #c52c35;
}


/* =========================================================
   CHURCH SIDE
========================================================= */

.contact-side-column {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-church-image {
    height: 265px;
    overflow: hidden;
    border-radius: 5px;
}

.contact-church-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.contact-mission-card {
    position: relative;
    display: grid;
    grid-template-columns: 6px 52px 1fr;
    gap: 15px;
    min-height: 145px;
    padding: 20px 20px 20px 12px;
    background: #f2f8fe;
    border-radius: 5px;
    box-sizing: border-box;
}

.mission-line {
    width: 3px;
    height: 100%;
    background: #1689e8;
    border-radius: 5px;
}

.mission-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0875cc;
    font-size: 25px;
}

.mission-content h3 {
    margin: 2px 0 8px;
    color: #10365f;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
}

.mission-content p {
    margin: 0;
    color: #5c6e83;
    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   LOCATION
========================================================= */

.contact-location-section {
    padding: 5px 0 70px;
    background: #ffffff;
}

.location-heading {
    margin-bottom: 20px;
}

.location-heading > span {
    margin-left: 3px;
}

.location-heading h2 {
    margin: 7px 0 0;
    color: #10365f;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
}

.location-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.9fr);
    gap: 20px;
}

.map-wrapper {
    height: 330px;
    overflow: hidden;
    border-radius: 5px;
    border: 1px solid #dce5ef;
    background: #edf3f8;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.branch-card {
    padding: 24px 25px;
    border-radius: 5px;
    background: #f2f8fe;
    box-sizing: border-box;
}

.branch-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    color: #10365f;
    font-size: 16px;
}

.branch-card h3 i {
    color: #0875cc;
}

.branch-item {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 10px;
    margin-bottom: 18px;
}

.branch-item:last-child {
    margin-bottom: 0;
}

.branch-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e2f2ff;
    color: #0875cc;
    font-size: 14px;
}

.branch-item strong {
    display: block;
    margin-bottom: 3px;
    color: #0875cc;
    font-size: 14px;
}

.branch-item span {
    display: block;
    color: #687a8e;
    font-size: 12px;
    line-height: 1.45;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 950px) {

    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 30px;
    }

    .contact-info-card:nth-child(2) {
        border-right: 0;
    }

    .contact-info-card:nth-child(3) {
        border-top: 1px solid #dce4ed;
        padding-top: 25px;
    }

    .contact-info-card:nth-child(4) {
        border-top: 1px solid #dce4ed;
        padding-top: 25px;
    }

    .contact-main-grid,
    .location-grid {
        grid-template-columns: 1fr;
    }

    .contact-side-column {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .contact-church-image {
        height: 100%;
        min-height: 300px;
    }

    .location-grid {
        gap: 25px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .contact-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .contact-hero {
        min-height: 330px;
    }

    .contact-hero-content {
        padding-top: 35px;
        padding-bottom: 35px;
    }

    .contact-breadcrumb {
        margin-bottom: 25px;
        font-size: 13px;
    }

    .contact-kicker {
        font-size: 12px;
        letter-spacing: 3px;
    }

    .contact-hero h1 {
        font-size: 48px;
    }

    .contact-hero p {
        font-size: 14px;
        line-height: 1.65;
    }

    .contact-information-section {
        padding: 48px 0 20px;
    }

    .contact-section-heading {
        margin-bottom: 32px;
    }

    .contact-section-heading h2 {
        font-size: 29px;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
        row-gap: 0;
    }

    .contact-info-card,
    .contact-info-card:nth-child(3),
    .contact-info-card:nth-child(4) {
        min-height: auto;
        padding: 22px 15px;
        border-right: 0;
        border-top: 1px solid #dce4ed;
    }

    .contact-info-card:first-child {
        border-top: 0;
    }

    .contact-main-section {
        padding: 20px 0 45px;
    }

    .contact-form-card {
        padding: 22px 15px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-heading h2 {
        font-size: 25px;
    }

    .contact-side-column {
        display: flex;
    }

    .contact-church-image {
        height: 250px;
        min-height: 0;
    }

    .contact-mission-card {
        grid-template-columns: 5px 42px 1fr;
        gap: 9px;
        padding: 17px 12px 17px 9px;
    }

    .mission-icon {
        width: 40px;
        font-size: 22px;
    }

    .mission-content h3 {
        font-size: 20px;
    }

    .mission-content p {
        font-size: 13px;
    }

    .contact-location-section {
        padding-bottom: 50px;
    }

    .location-heading h2 {
        font-size: 28px;
    }

    .map-wrapper {
        height: 300px;
    }

    .branch-card {
        padding: 20px 18px;
    }
}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 380px) {

    .contact-hero h1 {
        font-size: 42px;
    }

    .contact-kicker {
        letter-spacing: 2px;
    }

    .contact-section-heading h2,
    .location-heading h2 {
        font-size: 26px;
    }

    .contact-church-image {
        height: 220px;
    }
}