.contact-main {
    background-color: #fff;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Mobile Top Nav - Hidden on desktop */
.contact-mobile-nav {
    display: none;
}

.contact-mobile-menu-btn {
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
}

.contact-mobile-menu-btn:focus {
    outline: none;
    border: none;
}

.contact-mobile-menu-btn .hamburger-icon {
    display: block;
}

.contact-mobile-menu-btn .close-icon {
    display: none;
}

.contact-mobile-menu-btn.active .hamburger-icon {
    display: none;
}

.contact-mobile-menu-btn.active .close-icon {
    display: block;
}


.contact-main .m-container-left {
    max-width: 1432px;
    margin: 0 auto;
    padding: 0 0 60px 200px;
}

/* Contact Layout */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    padding-top: 40px;
}

.contact-section-title {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #173132;
    margin-bottom: 20px;
    line-height: 1.3;
}

.contact-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #455A5B;
    margin: 0;
}

/* Contact Form */
.contact-form-wrapper {
    background-color: #F2EEE9;
    padding: 40px;
}

.form-title {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #173132;
    margin-bottom: 16px;
}

.form-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #455A5B;
    margin-bottom: 32px;
}

/* Success/Error Messages */
.contact-message {
    padding: 16px;
    margin-bottom: 24px;
    border-radius: 4px;
    font-size: 0.95rem;
}

.contact-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.contact-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.contact-form .form-field {
    margin-bottom: 24px;
}

.contact-form label {
    display: block;
    font-size: 0.95rem;
    color: #173132;
    margin-bottom: 8px;
    font-weight: 400;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: none;
    background-color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    color: #173132;
    outline: none;
    transition: box-shadow 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    box-shadow: 0 0 0 2px #CC7E3D;
}

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

.contact-submit {
    font-weight: 600;
    font-size: 14px;
    line-height: 140%;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--m-forest);
    background: transparent;
    border: none;
    padding: 12px 0;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-right: 28px;
    transition: color 0.3s ease;
}

.contact-submit::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #CC7E3D;
    transition: width 0.3s ease;
}

.contact-submit::after {
    content: '';
    position: absolute;
    right: 0;
    width: 23px;
    height: 23px;
    background-image: url("data:image/svg+xml,%3Csvg width='23' height='23' viewBox='0 0 23 23' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.67917 8.44532C4.67925 8.00356 5.03703 7.64568 5.47881 7.64568H14.1823C14.2304 7.64571 14.2774 7.65132 14.3232 7.65949C14.3545 7.6651 14.3858 7.67153 14.4164 7.6809C14.4463 7.69005 14.4751 7.7016 14.5034 7.71404C14.5453 7.73247 14.586 7.75435 14.6249 7.78034C14.6296 7.78346 14.6341 7.78679 14.6387 7.79C14.6767 7.81656 14.7139 7.84584 14.7478 7.87977C14.7816 7.91352 14.8105 7.95041 14.8369 7.98819C14.9277 8.11783 14.9819 8.27503 14.9819 8.44532V17.1488C14.9818 17.5904 14.6238 17.9482 14.1823 17.9484C13.7405 17.9484 13.382 17.5899 13.382 17.1481L13.3813 10.3774L7.49516 16.2635C7.18279 16.5759 6.6765 16.5758 6.36407 16.2635C6.05165 15.9511 6.05165 15.4449 6.36407 15.1325L12.2516 9.24496H5.47881C5.03698 9.24495 4.67917 8.88714 4.67917 8.44532Z' fill='%23173132' fill-opacity='0.8'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    transition: transform 0.3s ease;
}

.contact-submit:hover {
    color: #CC7E3D;
}

.contact-submit:hover::before {
    width: calc(100% - 31px);
}

.contact-submit:hover::after {
    transform: translateX(3px);
}

/* Contact Form 7 Styling Override */
.contact-form-wrapper .wpcf7-form p {
    margin-bottom: 24px;
}

.contact-form-wrapper .wpcf7-form label {
    display: block;
    font-size: 0.95rem;
    color: #173132;
    margin-bottom: 8px;
    font-weight: 400;
}

.contact-form-wrapper .wpcf7-form input[type="text"],
.contact-form-wrapper .wpcf7-form input[type="email"],
.contact-form-wrapper .wpcf7-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: none;
    background-color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    color: #173132;
    outline: none;
    transition: box-shadow 0.3s ease;
}

.contact-form-wrapper .wpcf7-form input[type="text"]:focus,
.contact-form-wrapper .wpcf7-form input[type="email"]:focus,
.contact-form-wrapper .wpcf7-form textarea:focus {
    box-shadow: 0 0 0 2px #CC7E3D;
}

.contact-form-wrapper .wpcf7-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form-wrapper .wpcf7-form input[type="submit"] {
    font-weight: 600;
    font-size: 14px;
    line-height: 140%;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--m-forest);
    background: transparent;
    border: none;
    padding: 12px 0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.contact-form-wrapper .wpcf7-form input[type="submit"]:hover {
    color: #CC7E3D;
}

@media (min-width: 901px) {
    body.page-template-template-contact .sidebar-nav {
        top: 16px;
        position: sticky;
        padding: 0;
        left: 0;
    }

    body.page-template-template-contact .site-wrapper {
        display: grid;
        gap: 16px;
        grid-template-columns: max-content 1fr;
    }
}

/* Responsive Design */
@media (max-width: 900px) {

    /* Hide default header menu toggle on contact page */
    body.page-template-template-contact .mobile-menu-toggle:not(.contact-mobile-menu-btn) {
        display: none;
    }

    body.page-template-template-contact .site-wrapper {
        padding: 0 !important;
    }

    body.page-template-template-contact .main-content {
        padding: 0 16px;
    }

    /* Mobile Top Nav */
    .contact-mobile-nav {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        padding: 24px 48px;
        justify-content: space-between;
        align-items: center;
        z-index: 1000000;
        background: transparent;
        pointer-events: none;
    }

    .contact-mobile-nav>* {
        pointer-events: auto;
    }

    .contact-mobile-logo {
        display: flex;
        align-items: center;
    }

    .contact-mobile-logo a {
        display: block;
        line-height: 0;
    }

    .contact-mobile-logo img,
    .contact-mobile-logo svg {
        height: 32px;
        width: auto;
    }

    .contact-mobile-menu-btn .hamburger-icon {
        display: block;
        width: 40px;
        height: 40px;
    }

    .contact-mobile-menu-btn .close-icon {
        display: none;
        width: 40px;
        height: 40px;
    }

    .contact-mobile-menu-btn.active .hamburger-icon {
        display: none !important;
    }

    .contact-mobile-menu-btn.active .close-icon {
        display: block !important;
    }

    .contact-main .m-container-left {
        padding: 0 16px 40px 16px;
        margin-left: 0;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info {
        padding-top: 0;
    }

    .contact-form-wrapper {
        padding: 24px;
    }
}