/* =========================================
   MAD TRAILS CONTACT PAGE
========================================= */

.mt-contact-page-template {
    background: #ffffff;
    color: #111111;
    overflow-x: hidden;
}

.mt-contact-page-template * {
    box-sizing: border-box;
}

.mt-contact-container {
    width: 92%;
    max-width: 1450px;
    margin: 0 auto;
}

.mt-contact-hero {
    min-height: 430px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: #ffffff;
}

.mt-contact-hero span,
.mt-contact-info-panel > span,
.mt-contact-form-card > span {
    display: inline-block;
    color: #d6a21f;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.mt-contact-hero h1 {
    max-width: 900px;
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(42px, 7vw, 86px);
    line-height: 1;
    text-transform: uppercase;
}

.mt-contact-hero p {
    max-width: 780px;
    color: #f5f5f5;
    font-size: 19px;
    line-height: 1.7;
}

.mt-contact-main {
    padding: 85px 0;
}

.mt-contact-grid {
    display: grid;
    grid-template-columns: .85fr 1.5fr;
    gap: 35px;
    align-items: start;
}

.mt-contact-info-panel {
    background: #001f54;
    color: #ffffff;
    border-radius: 22px;
    padding: 34px;
    position: sticky;
    top: 120px;
}

.mt-contact-info-panel h2,
.mt-contact-form-card h2 {
    margin: 0 0 22px;
    color: #ffffff;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1;
    text-transform: uppercase;
}

.mt-contact-form-card h2 {
    color: #001f54;
}

.mt-contact-info-list {
    display: grid;
    gap: 18px;
}

.mt-contact-info-list div {
    padding-bottom: 17px;
    border-bottom: 1px solid rgba(255,255,255,.18);
}

.mt-contact-info-list strong {
    display: block;
    color: #d6a21f;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-size: 13px;
}

.mt-contact-info-list a,
.mt-contact-info-list p {
    color: #eef3ff;
    line-height: 1.7;
    margin: 0;
    text-decoration: none;
}

.mt-contact-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.mt-contact-socials a {
    background: #ffffff;
    color: #001f54;
    border-radius: 999px;
    padding: 9px 13px;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.mt-contact-form-card {
    background: #ffffff;
    border: 1px solid #d9e1ec;
    border-radius: 22px;
    padding: 34px;
    box-shadow: 0 16px 38px rgba(0,31,84,.10);
}

.mt-contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.mt-contact-field {
    margin-bottom: 16px;
}

.mt-contact-field label {
    display: block;
    color: #001f54;
    font-weight: 900;
    margin-bottom: 7px;
    font-size: 13px;
    text-transform: uppercase;
}

.mt-contact-field label em {
    color: #7b0000;
    font-style: normal;
}

.mt-contact-field input,
.mt-contact-field select,
.mt-contact-field textarea {
    width: 100%;
    min-height: 50px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px;
    color: #111111;
    background: #ffffff;
    font-size: 15px;
}

.mt-contact-field textarea {
    min-height: 160px;
    resize: vertical;
}

.mt-contact-field input:focus,
.mt-contact-field select:focus,
.mt-contact-field textarea:focus {
    outline: none;
    border-color: #d6a21f;
    box-shadow: 0 0 0 3px rgba(214,162,31,.18);
}

.mt-contact-submit {
    width: 100%;
    min-height: 56px;
    border: none;
    border-radius: 8px;
    background: #d6a21f;
    color: #001f54;
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
}

.mt-contact-submit:hover {
    background: #001f54;
    color: #ffffff;
}

.mt-contact-error {
    background: #ffecec;
    color: #7b0000;
    border: 1px solid #ffc9c9;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 18px;
    font-weight: 700;
}

.mt-contact-success-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.65);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mt-contact-success-box {
    position: relative;
    background: #ffffff;
    border-radius: 18px;
    max-width: 540px;
    width: 100%;
    padding: 38px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

.mt-contact-success-box h2 {
    color: #001f54;
    margin: 0 0 12px;
    font-size: 32px;
    text-transform: uppercase;
}

.mt-contact-success-box p {
    color: #5f6b7a;
    line-height: 1.7;
}

.mt-contact-success-box a {
    display: inline-flex;
    margin-top: 18px;
    min-height: 48px;
    padding: 12px 24px;
    background: #d6a21f;
    color: #001f54;
    border-radius: 8px;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
}

.mt-contact-close-modal {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #001f54;
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
}

@media (max-width: 950px) {
    .mt-contact-grid,
    .mt-contact-row {
        grid-template-columns: 1fr;
    }

    .mt-contact-info-panel {
        position: static;
    }
}

@media (max-width: 600px) {
    .mt-contact-hero {
        min-height: 360px;
    }

    .mt-contact-main {
        padding: 55px 0;
    }

    .mt-contact-info-panel,
    .mt-contact-form-card {
        padding: 24px;
        border-radius: 16px;
    }

    .mt-contact-hero h1 {
        font-size: 36px;
    }

    .mt-contact-hero p {
        font-size: 16px;
    }
}