/* ========================================
   BPE CONTACT PAGE
   Isolated CSS - Does not override homepage
======================================== */

.bpe-contact-page {
    --bpe-c-blue: #174b70;
    --bpe-c-navy: #102f49;
    --bpe-c-orange: #f47721;
    --bpe-c-text: #526170;
    --bpe-c-light: #f4f7fa;
    color: #172b3a;
    overflow: hidden;
}

.bpe-contact-page,
.bpe-contact-page * {
    box-sizing: border-box;
}

.bpe-contact-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.bpe-contact-page a {
    text-decoration: none;
}

.bpe-contact-eyebrow {
    display: inline-block;
    margin-bottom: 17px;
    color: var(--bpe-c-orange);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1.7;
}

/* HERO */

.bpe-contact-hero {
    position: relative;
    padding: 35px 0 85px;
    background:
        linear-gradient(90deg, rgba(8, 29, 46, 0.96), rgba(13, 44, 67, 0.83)),
        url("{{ asset('frontend/images/panel-wide.jpeg') }}") center/cover
            no-repeat;
}

.bpe-contact-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-bottom: 55px;
    color: #e0e8ef;
    font-size: 13px;
}

.bpe-contact-breadcrumb a {
    color: #ffad69;
}

.bpe-contact-hero-content {
    max-width: 780px;
}

.bpe-contact-hero h1 {
    margin: 0 0 20px;
    color: #fff;
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: -1.2px;
}

.bpe-contact-hero h1 span {
    color: #ff994b;
}

.bpe-contact-hero-content > p {
    max-width: 620px;
    margin: 0;
    color: #d9e3eb;
    font-size: 15px;
    line-height: 1.9;
}

.bpe-contact-btn {
    display: inline-flex;
    min-height: 49px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 27px;
    padding: 13px 22px;
    border: 1px solid var(--bpe-c-orange);
    border-radius: 4px;
    background: var(--bpe-c-orange);
    color: #fff !important;
    font-size: 13px;
    font-weight: 800;
    transition: 0.25s ease;
}

.bpe-contact-btn:hover {
    transform: translateY(-2px);
    background: #df6411;
    border-color: #df6411;
}

/* QUICK CONTACT CARDS */

.bpe-contact-info-section {
    position: relative;
    z-index: 2;
    padding: 0 0 35px;
    background: #fff;
    padding-top: 67px;
}

.bpe-contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: -35px;
}

.bpe-contact-info-card {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 14px;
    padding: 24px 19px;
    background: #fff;
    border: 1px solid #e5ebf0;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(16, 47, 73, 0.06);
    transition: 0.25s ease;
}

.bpe-contact-info-card:hover {
    transform: translateY(-4px);
    border-color: #f2b17f;
}

.bpe-contact-info-icon {
    display: flex;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: #edf4f9;
    color: var(--bpe-c-blue);
    font-size: 23px;
    font-weight: 800;
}

.bpe-contact-info-card > div:nth-child(2) {
    min-width: 0;
    flex: 1;
}

.bpe-contact-info-card span {
    display: block;
    margin-bottom: 7px;
    color: #758392;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.bpe-contact-info-card h3 {
    margin: 0 0 5px;
    color: #173a54;
    font-size: 14px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.bpe-contact-info-card p {
    margin: 0;
    color: var(--bpe-c-text);
    font-size: 11px;
    line-height: 1.6;
}

.bpe-contact-info-card > b {
    color: var(--bpe-c-orange);
    font-size: 17px;
}

/* MAIN SECTION */

.bpe-contact-main-section {
    padding: 75px 0 95px;
    background: var(--bpe-c-light);
}

.bpe-contact-main-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
    gap: 60px;
}

.bpe-contact-details {
    padding-top: 15px;
}

.bpe-contact-details h2 {
    margin: 0 0 22px;
    color: #17364d;
    font-size: clamp(30px, 3.6vw, 43px);
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: -0.8px;
}

.bpe-contact-details h2 span {
    color: var(--bpe-c-blue);
}

.bpe-contact-description {
    margin: 0 0 32px;
    color: var(--bpe-c-text);
    font-size: 14px;
    line-height: 1.9;
}

.bpe-contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 23px;
}

.bpe-contact-detail-icon {
    display: flex;
    flex: 0 0 47px;
    width: 47px;
    height: 47px;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: #fff;
    color: var(--bpe-c-blue);
    font-size: 23px;
    box-shadow: 0 4px 15px rgba(16, 47, 73, 0.05);
}

.bpe-contact-detail-item h3 {
    margin: 2px 0 7px;
    color: #18384f;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.5;
}

.bpe-contact-detail-item p {
    margin: 0;
    color: var(--bpe-c-text);
    font-size: 12px;
    line-height: 1.8;
}

.bpe-contact-location {
    margin-top: 35px;
    padding: 23px;
    border-left: 3px solid var(--bpe-c-orange);
    background: #fff;
}

.bpe-contact-location > span {
    color: var(--bpe-c-orange);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 1.5px;
}

.bpe-contact-location h3 {
    margin: 10px 0;
    color: #17364d;
    font-size: 17px;
    font-weight: 800;
}

.bpe-contact-location p {
    margin: 0;
    color: var(--bpe-c-text);
    font-size: 12px;
    line-height: 1.8;
}

/* FORM CARD */

.bpe-contact-form-card {
    min-width: 0;
    padding: 35px;
    border: 1px solid #e4eaf0;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 15px 45px rgba(16, 47, 73, 0.07);
    scroll-margin-top: 30px;
}

.bpe-contact-form-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 27px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e9eef2;
}

.bpe-contact-form-heading > div:first-child {
    min-width: 0;
}

.bpe-contact-form-heading > div:first-child > span {
    display: block;
    margin-bottom: 9px;
    color: var(--bpe-c-orange);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 1.5px;
}

.bpe-contact-form-heading h2 {
    margin: 0 0 9px;
    color: #17364d;
    font-size: 25px;
    font-weight: 850;
    line-height: 1.3;
}

.bpe-contact-form-heading p {
    margin: 0;
    color: var(--bpe-c-text);
    font-size: 12px;
    line-height: 1.8;
}

.bpe-contact-form-mark {
    display: flex;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    background: var(--bpe-c-navy);
    color: #fff;
    font-size: 18px;
    font-weight: 900;
}

.bpe-contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 17px;
}

.bpe-contact-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 9px;
}

.bpe-contact-field-full {
    grid-column: 1 / -1;
}

.bpe-contact-field label {
    color: #263f52;
    font-size: 12px;
    font-weight: 800;
}

.bpe-contact-field input,
.bpe-contact-field select,
.bpe-contact-field textarea {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    margin: 0;
    padding: 13px 14px;
    border: 1px solid #dce4ea;
    border-radius: 4px;
    outline: none;
    background: #fff;
    color: #213a4d;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.5;
    box-shadow: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.bpe-contact-field textarea {
    min-height: 135px;
    resize: vertical;
}

.bpe-contact-field input::placeholder,
.bpe-contact-field textarea::placeholder {
    color: #96a2ad;
    opacity: 1;
}

.bpe-contact-field input:focus,
.bpe-contact-field select:focus,
.bpe-contact-field textarea:focus {
    border-color: var(--bpe-c-blue);
    box-shadow: 0 0 0 3px rgba(23, 75, 112, 0.08);
}

.bpe-contact-submit {
    display: flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 13px;
    margin-top: 25px;
    padding: 14px 20px;
    border: 0;
    border-radius: 4px;
    background: var(--bpe-c-orange);
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
    transition: 0.25s ease;
}

.bpe-contact-submit:hover {
    background: #df6411;
}

.bpe-contact-submit span {
    font-size: 18px;
}

.bpe-contact-form-note {
    margin: 13px 0 0;
    color: #758392;
    font-size: 11px;
    line-height: 1.8;
    text-align: center;
}

.bpe-contact-form-error {
    display: none;
    margin-top: 17px;
    padding: 12px;
    border-radius: 4px;
    background: #fff0ef;
    color: #a32119;
    font-size: 12px;
    line-height: 1.7;
}

.bpe-contact-form-error.is-visible {
    display: block;
}

/* BOTTOM CTA */

.bpe-contact-cta {
    padding: 65px 0;
    background: var(--bpe-c-navy);
}

.bpe-contact-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.bpe-contact-cta h2 {
    max-width: 730px;
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(27px, 3.5vw, 39px);
    font-weight: 850;
    line-height: 1.25;
}

.bpe-contact-cta h2 span {
    color: #ff994b;
}

.bpe-contact-cta p {
    margin: 0;
    color: #d8e3eb;
    font-size: 13px;
    line-height: 1.8;
}

.bpe-contact-cta .bpe-contact-btn {
    flex: 0 0 auto;
    margin-top: 0;
}

/* TABLET */

@media (max-width: 991px) {
    .bpe-contact-info-grid {
        grid-template-columns: 1fr;
        margin-top: -25px;
    }

    .bpe-contact-info-card {
        padding: 18px;
    }

    .bpe-contact-main-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .bpe-contact-details {
        padding-top: 0;
    }
}

/* MOBILE */

@media (max-width: 767px) {
    .bpe-contact-container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .bpe-contact-hero {
        padding: 28px 0 65px;
    }

    .bpe-contact-breadcrumb {
        margin-bottom: 35px;
    }

    .bpe-contact-hero h1 {
        font-size: clamp(31px, 8vw, 42px);
        letter-spacing: -0.6px;
    }

    .bpe-contact-hero-content > p {
        font-size: 14px;
    }

    .bpe-contact-main-section {
        padding: 50px 0 60px;
    }

    .bpe-contact-details h2 {
        font-size: 32px;
    }

    .bpe-contact-form-card {
        padding: 23px 18px;
    }

    .bpe-contact-form-heading h2 {
        font-size: 21px;
    }

    .bpe-contact-form-grid {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .bpe-contact-field-full {
        grid-column: auto;
    }

    .bpe-contact-cta {
        padding: 50px 0;
    }

    .bpe-contact-cta-inner {
        align-items: stretch;
        flex-direction: column;
        gap: 25px;
    }

    .bpe-contact-cta h2 {
        font-size: 30px;
    }

    .bpe-contact-cta .bpe-contact-btn {
        width: 100%;
    }
}
