/* =========================================
   CONTACT PAGE — ESPE
   Typography inherits from the main theme styles.
========================================= */

.contact-page {
    overflow: hidden;
    background: #fff;
    color: #111;
}

.contact-container {
    width: calc(100% - 126px);
    max-width: 1430px;
    margin: 0 auto;
}

/* HERO */
.contact-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 390px;
    overflow: hidden;
    color: #fff;
    background: #050505;
}

.contact-hero-background {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-position: center 48%;
    background-size: cover;
}

.contact-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(5,5,5,.98) 0%, rgba(5,5,5,.88) 34%, rgba(5,5,5,.42) 72%, rgba(5,5,5,.2) 100%);
}

.contact-hero-content {
    max-width: 650px;
    padding: 105px 0 90px;
}

.contact-section-tag {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.contact-section-tag span {
    display: block;
    width: 48px;
    height: 2px;
    flex: 0 0 48px;
    background: #ff5a00;
}

.contact-section-tag p {
    margin: 0;
    color: #ff5a00;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.contact-hero-title {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(48px, 6vw, 76px);
    font-weight: 700;
    line-height: .98;
    text-transform: uppercase;
}

.contact-hero-description {
    max-width: 530px;
    margin: 0;
    color: rgba(255,255,255,.82);
    font-size: 16px;
    line-height: 1.7;
}

/* MAIN CONTACT AREA */
.contact-main-section {
    position: relative;
    padding: 30px 0 100px;
    background: #fff;
}

.contact-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 55px;
    color: #888;
    font-size: 12px;
}

.contact-breadcrumb a {
    color: #777;
    text-decoration: none;
    transition: color .25s ease;
}

.contact-breadcrumb a:hover {
    color: #ff5a00;
}

.contact-breadcrumb i {
    color: #aaa;
    font-size: 12px;
}

.contact-breadcrumb span {
    color: #111;
}

.contact-main-row {
    --bs-gutter-x: 3.5rem;
}

.contact-section-tag-dark {
    margin-bottom: 16px;
}

.contact-section-title,
.contact-form-title {
    margin: 0 0 18px;
    color: #111;
    font-size: clamp(30px, 3.2vw, 42px);
    font-weight: 700;
    line-height: 1.08;
    text-transform: uppercase;
}

.contact-section-description,
.contact-form-intro {
    margin: 0;
    color: #666;
    font-size: 15px;
    line-height: 1.75;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 27px;
    margin-top: 38px;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-detail-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    background: #f4f4f4;
    color: #ff5a00;
    font-size: 23px;
}

.contact-detail-content {
    min-width: 0;
    padding: 2px 0 2px 18px;
    border-left: 2px solid #ff5a00;
}

.contact-detail-content h3 {
    margin: 0 0 6px;
    color: #111;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    text-transform: uppercase;
}

.contact-detail-content p,
.contact-detail-content a {
    display: block;
    margin: 0;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.contact-detail-content a:hover {
    color: #ff5a00;
}

/* FORM PANEL */
.contact-form-panel {
    padding: 42px 40px;
    background: #f6f6f6;
}

.contact-form-panel .contact-section-tag {
    margin-bottom: 14px;
}

.contact-form-title {
    margin-bottom: 10px;
}

.contact-form-intro {
    margin-bottom: 28px;
}

.contact-fluent-form .fluentform {
    margin: 0;
}

.contact-fluent-form .ff-el-group {
    margin-bottom: 18px;
}

.contact-fluent-form .ff-el-input--label label {
    margin-bottom: 8px;
    color: #222;
    font-size: 13px;
    font-weight: 600;
}

.contact-fluent-form input,
.contact-fluent-form select,
.contact-fluent-form textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 15px;
    border: 1px solid #d8d8d8;
    border-radius: 2px;
    background: #fff;
    color: #222;
    box-shadow: none;
    font-size: 14px;
    line-height: 1.5;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.contact-fluent-form textarea {
    min-height: 135px;
    resize: vertical;
}

.contact-fluent-form input:focus,
.contact-fluent-form select:focus,
.contact-fluent-form textarea:focus {
    border-color: #ff5a00;
    outline: 0;
    box-shadow: 0 0 0 2px rgba(255,90,0,.1);
}

.contact-fluent-form input::placeholder,
.contact-fluent-form textarea::placeholder {
    color: #999;
    opacity: 1;
}

.contact-fluent-form .ff-btn-submit,
.contact-fluent-form button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 13px 30px;
    border: 1px solid #ff5a00;
    border-radius: 2px;
    background: #ff5a00;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    transition: background .25s ease, border-color .25s ease, transform .25s ease;
}

.contact-fluent-form .ff-btn-submit:hover,
.contact-fluent-form button[type="submit"]:hover {
    border-color: #e64f00;
    background: #e64f00;
    color: #fff;
    transform: translateY(-2px);
}

.contact-fluent-form .ff-message-success {
    border-color: #d6e9d8;
    border-radius: 2px;
}

.contact-form-notice {
    margin: 0;
    padding: 15px;
    border-left: 3px solid #ff5a00;
    background: #fff;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

/* OPTIONAL MAP */
.contact-map-section {
    width: 100%;
    background: #eee;
}

.contact-map-frame {
    position: relative;
    width: 100%;
    min-height: 420px;
}

.contact-map-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 420px;
    border: 0;
    filter: grayscale(1);
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .contact-container {
        width: calc(100% - 80px);
    }

    .contact-main-row {
        --bs-gutter-x: 2rem;
    }

    .contact-form-panel {
        padding: 35px 30px;
    }
}

@media (max-width: 767px) {
    .contact-container {
        width: calc(100% - 40px);
    }

    .contact-hero {
        min-height: 340px;
    }

    .contact-hero-content {
        padding: 85px 0 70px;
    }

    .contact-hero-overlay {
        background: linear-gradient(90deg, rgba(5,5,5,.96) 0%, rgba(5,5,5,.78) 68%, rgba(5,5,5,.55) 100%);
    }

    .contact-hero-title {
        font-size: clamp(43px, 11vw, 60px);
    }

    .contact-hero-description {
        font-size: 14px;
    }

    .contact-main-section {
        padding: 25px 0 65px;
    }

    .contact-breadcrumb {
        margin-bottom: 38px;
    }

    .contact-main-row {
        --bs-gutter-y: 3rem;
    }

    .contact-section-title,
    .contact-form-title {
        font-size: 32px;
    }

    .contact-details-list {
        gap: 23px;
        margin-top: 30px;
    }

    .contact-form-panel {
        padding: 30px 22px;
    }

    .contact-map-frame,
    .contact-map-frame iframe {
        min-height: 320px;
    }
}

@media (max-width: 380px) {
    .contact-container {
        width: calc(100% - 32px);
    }

    .contact-form-panel {
        padding: 26px 17px;
    }

    .contact-detail-item {
        gap: 14px;
    }

    .contact-detail-icon {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        font-size: 20px;
    }

    .contact-detail-content {
        padding-left: 13px;
    }
}
