/* Contact Us Page - Complete Redesign */

.contactus {
    align-items: center;
    background-color: var(--white);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: auto;
    justify-content: flex-start;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
}

/* ===== NAVIGATION (ORIGINAL) ===== */
.contactus .nav-oIv5dk {
    align-items: center;
    background-color: transparent;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    flex-shrink: 1;
    height: 51px;
    justify-content: flex-start;
    margin-left: 6.0px;
    margin-top: 44px;
    min-width: 1234px;
    position: relative;
    width: auto;
}

.contactus .logo-l5Cy85 {
    flex-shrink: 1;
    position: relative;
    height: 40px;
    width: auto;
}

.contactus .services-l5Cy85 {
    background-color: transparent;
    flex-shrink: 1;
    font-weight: 300;
    height: auto;
    letter-spacing: 0.00px;
    line-height: 21px;
    margin-bottom: 2.0px;
    margin-left: 142px;
    min-width: 68px;
    position: relative;
    text-align: left;
    white-space: nowrap;
    width: auto;
}

.contactus .pricing-l5Cy85 {
    background-color: transparent;
    flex-shrink: 1;
    font-weight: 300;
    height: auto;
    letter-spacing: 0.00px;
    line-height: 21px;
    margin-bottom: 2.0px;
    margin-left: 41px;
    min-width: 55px;
    position: relative;
    text-align: left;
    white-space: nowrap;
    width: auto;
}

.contactus .resources-l5Cy85 {
    background-color: transparent;
    flex-shrink: 1;
    font-weight: 300;
    height: auto;
    letter-spacing: 0.00px;
    line-height: 21px;
    margin-bottom: 2.0px;
    margin-left: 42px;
    min-width: 84px;
    position: relative;
    text-align: left;
    white-space: nowrap;
    width: auto;
}

.contactus .button-l5Cy85 {
    align-self: flex-start;
    background-color: transparent;
    background-image: url(../img/pricing-button-backgroundmask.png);
    background-size: 100% 100%;
    flex-shrink: 1;
    height: 50px;
    margin-left: 41px;
    overflow: hidden;
    position: relative;
    width: 357px;
}

.contactus .background-NrekwJ {
    width: 357px;
}

.contactus .shchedule-a-free-consultation-NrekwJ {
    background-color: transparent;
    font-weight: 600;
    height: auto;
    left: 32px;
    letter-spacing: 1.10px;
    line-height: 21px;
    position: absolute;
    text-align: left;
    top: 16px;
    white-space: nowrap;
    width: auto;
}

.contactus .login-button-l5Cy85 {
    align-self: flex-start;
    background-color: transparent;
    background-image: url(../img/attorney-mail-button-backgroundmask-1@2x.png);
    background-size: 100% 100%;
    flex-shrink: 1;
    height: 50px;
    margin-left: 43px;
    overflow: hidden;
    position: relative;
    width: 143px;
}

.contactus .background-cHsuyi {
    width: 143px;
}

.contactus .login-cHsuyi {
    background-color: transparent;
    font-weight: 600;
    height: 29px;
    left: 37px;
    letter-spacing: 0.88px;
    line-height: 21px;
    position: absolute;
    text-align: center;
    top: 12px;
    width: 68px;
}

/* ===== HEADER (ORIGINAL) ===== */
.contactus .header-oIv5dk {
    background-color: transparent;
    flex-shrink: 1;
    height: 76px;
    margin-left: 1.0px;
    margin-top: 60px;
    position: relative;
    width: 519px;
    text-align: center;
}

.contactus .title-FaUNzG {
    background-color: transparent;
    color: var(--black);
    font-family: var(--font-family-lora);
    font-size: 60px;
    font-style: normal;
    font-weight: 400;
    height: auto;
    letter-spacing: 0.00px;
    line-height: 76px;
    text-align: center;
    white-space: nowrap;
    width: auto;
}

.contactus .line-2-FaUNzG,
.contactus .line-2-copy-FaUNzG {
    display: none;
}

/* ===== MAIN CONTENT AREA - REDESIGNED ===== */
.contactus .main-content {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 1200px;
    margin: 60px auto 0;
    gap: 60px;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ===== CONTACT INFO SIDEBAR - REDESIGNED ===== */
.contactus .contact-info {
    flex: 0 0 400px;
    background-color: var(--cararra);
    border-radius: 8px;
    padding: 40px 30px;
    height: fit-content;
}

.contactus .contact-group {
    margin-bottom: 40px;
}

.contactus .contact-group:last-child {
    margin-bottom: 0;
}

.contactus .contact-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.contactus .contact-icon {
    width: 4px;
    height: 14px;
    margin-right: 8px;
}

.contactus .contact-label {
    font-family: var(--font-family-space_grotesk);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 1.10px;
    color: var(--black);
}

.contactus .contact-details {
    font-family: var(--font-family-space_grotesk);
    font-size: 16px;
    line-height: 1.5;
    color: var(--black);
    margin-left: 12px;
}

.contactus .contact-details a {
    color: var(--black);
    text-decoration: none;
}

.contactus .contact-details a:hover {
    color: var(--guardsman-red);
}

/* ===== CONTACT FORM - REDESIGNED ===== */
.contactus .contact-form {
    flex: 1;
    background: white;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: fit-content;
}

.contactus .form-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.contactus .form-header img {
    width: 4px;
    height: 14px;
    margin-right: 8px;
}

.contactus .form-title {
    font-family: var(--font-family-space_grotesk);
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 1.10px;
    color: var(--black);
}

.contactus .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.contactus .form-field {
    flex: 1;
    position: relative;
}

.contactus .form-field.full-width {
    width: 100%;
}

.contactus .form-input {
    width: 100%;
    height: 54px;
    border: 2px solid #ddd;
    border-radius: 6px;
    padding: 0 20px;
    font-family: var(--font-family-space_grotesk);
    font-size: 16px;
    font-weight: 400;
    background: white;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s ease;
}

.contactus .form-input:focus {
    border-color: var(--guardsman-red);
}

.contactus .form-textarea {
    width: 100%;
    height: 120px;
    border: 2px solid #ddd;
    border-radius: 6px;
    padding: 15px 20px;
    font-family: var(--font-family-space_grotesk);
    font-size: 16px;
    font-weight: 400;
    background: white;
    box-sizing: border-box;
    outline: none;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.3s ease;
}

.contactus .form-textarea:focus {
    border-color: var(--guardsman-red);
}

.contactus .form-input::placeholder,
.contactus .form-textarea::placeholder {
    color: #666;
    opacity: 1;
}

.contactus .captcha-container {
    margin: 30px 0;
    display: flex;
    justify-content: center;
}

.contactus .submit-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 220px;
    height: 54px;
    background-color: var(--guardsman-red);
    border: none;
    border-radius: 6px;
    color: white;
    font-family: var(--font-family-space_grotesk);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 1.10px;
    margin: 20px auto 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contactus .submit-button:hover {
    background-color: #a00000;
}

/* ===== FOOTER (ORIGINAL) ===== */
.contactus .footer-GIL5vn {
    background-color: transparent;
    height: 300px;
    margin-top: 80px;
    position: relative;
    width: 100%;
}

.contactus .rectangle-b2fhe2 {
    background-color: transparent;
    height: 300px;
    left: 1px;
    position: absolute;
    top: 0px;
    max-width: 1440px;
    width: 100%;
}

.contactus .copyright-b2fhe2 {
    background-color: transparent;
    font-weight: 300;
    height: auto;
    left: 599px;
    letter-spacing: 0.00px;
    line-height: 23px;
    position: absolute;
    text-align: center;
    top: 250px;
    white-space: nowrap;
    width: auto;
}

.contactus .line-b2fhe2 {
    background-color: transparent;
    height: 47px;
    left: -0px;
    position: absolute;
    top: 202px;
    width: 1443px;
}

.contactus .links-b2fhe2 {
    background-color: transparent;
    font-weight: 400;
    height: auto;
    left: 297px;
    letter-spacing: 0.00px;
    line-height: 33px;
    position: absolute;
    text-align: left;
    top: 133px;
    white-space: nowrap;
    width: auto;
}

.contactus .socials-b2fhe2 {
    background-color: transparent;
    font-weight: 400;
    height: auto;
    left: 1174px;
    letter-spacing: 0.00px;
    line-height: 28px;
    position: absolute;
    text-align: center;
    top: 55px;
    width: 148px;
}

.contactus .logo-b2fhe2 {
    left: 101px;
    position: absolute;
    top: 50px;
    height: 40px;
    width: auto;
}

/* Hide original form structure */
.contactus .overlap-group-oIv5dk,
.contactus .form-GIL5vn,
.contactus .sidebar,
.contactus .mobile-contact-form {
    display: none;
}

/* Mobile Navigation from platform.css */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    background: white;
    border: 2px solid var(--guardsman-red);
    border-radius: 4px;
    cursor: pointer;
    padding: 8px;
    width: 45px;
    height: 45px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.hamburger {
    display: block;
    position: relative;
    width: 25px;
    height: 3px;
    background-color: var(--guardsman-red);
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 25px;
    height: 3px;
    background-color: var(--guardsman-red);
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.mobile-nav-toggle.active .hamburger {
    background-color: transparent;
}

.mobile-nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: white;
    z-index: 9999;
    transition: right 0.35s ease;
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9998;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-header {
    padding: 20px;
    border-bottom: 1px solid var(--iron);
    text-align: center;
}

.mobile-menu-logo {
    height: 40px;
    width: auto;
}

.mobile-menu-content {
    flex: 1;
    padding: 20px;
}

.mobile-menu-item {
    display: block;
    padding: 15px 0;
    color: var(--black);
    text-decoration: none;
    font-size: 16px;
    border-bottom: 1px solid var(--iron);
}

.mobile-submenu-toggle {
    display: block;
    padding: 15px 0;
    color: var(--black);
    font-family: var(--font-family-space_grotesk);
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid var(--iron);
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.mobile-submenu-toggle::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 15px;
    font-size: 20px;
    transition: transform 0.3s ease;
}

.mobile-submenu-toggle.active::after {
    transform: rotate(45deg);
}

.mobile-submenu-toggle:hover {
    color: var(--guardsman-red);
}

.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: var(--romance);
    margin: 0 -20px;
    padding: 0 20px;
}

.mobile-submenu.active {
    max-height: 500px;
    padding: 10px 20px;
}

.mobile-submenu-item {
    display: block;
    padding: 10px 0;
    padding-left: 20px;
    color: var(--black);
    text-decoration: none;
    font-family: var(--font-family-space_grotesk);
    font-size: 14px;
    font-weight: 300;
    border-bottom: 1px solid var(--celeste);
    transition: color 0.3s ease;
}

.mobile-submenu-item:hover {
    color: var(--guardsman-red);
}

.mobile-menu-buttons {
    padding: 20px;
    border-top: 1px solid var(--iron);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-menu-button {
    display: block;
    padding: 12px 20px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mobile-menu-button.primary {
    background-color: var(--guardsman-red);
    color: var(--white);
}

.mobile-menu-button.secondary {
    background-color: var(--white);
    color: var(--guardsman-red);
    border: 2px solid var(--guardsman-red);
}

/* Utility Classes */
.hide-mobile {
    display: block;
}

.show-mobile {
    display: none;
}

/* =================================================================== */
/* --- MOBILE RESPONSIVE OVERRIDES --- */
/* =================================================================== */

@media screen and (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }

    .show-mobile {
        display: flex !important;
    }

    .mobile-nav-toggle {
        display: flex;
    }

    .contactus {
        padding-top: 70px;
        min-width: 100%;
        width: 100%;
    }

    /* Hide desktop navigation */
    .contactus .nav-oIv5dk {
        display: none;
    }

    /* Mobile Header */
    .contactus .header-oIv5dk {
        width: 100%;
        margin: 20px 0 40px 0;
        height: auto;
        text-align: center;
    }

    .contactus .title-FaUNzG {
        font-size: 36px;
        line-height: 1.3;
        white-space: normal;
    }

    /* Mobile Main Content */
    .contactus .main-content {
        flex-direction: column;
        max-width: 100%;
        margin: 0;
        gap: 30px;
        padding: 0 15px;
    }

    /* Mobile Contact Info */
    .contactus .contact-info {
        flex: none;
        order: 1;
        padding: 30px 20px;
        margin-bottom: 0;
    }

    .contactus .contact-group {
        margin-bottom: 30px;
        text-align: center;
    }

    .contactus .contact-header {
        justify-content: center;
        margin-bottom: 8px;
    }

    .contactus .contact-details {
        margin-left: 0;
        text-align: center;
    }

    /* Mobile Form */
    .contactus .contact-form {
        order: 2;
        padding: 30px 20px;
        margin: 0;
        box-shadow: none;
        border: 1px solid #eee;
    }

    .contactus .form-row {
        flex-direction: column;
        gap: 20px;
    }

    .contactus .form-field {
        width: 100%;
    }

    .contactus .submit-button {
        width: 100%;
        max-width: 300px;
    }

    /* Mobile Footer */
    .contactus .footer-GIL5vn {
        margin-top: 40px;
        height: auto;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 40px 20px !important;
        background-color: var(--cararra) !important;
    }

    .contactus .footer-GIL5vn > * {
        position: static !important;
        margin: 0 0 25px 0 !important;
        text-align: center !important;
        width: auto !important;
        left: auto !important;
        top: auto !important;
    }

    .contactus .footer-GIL5vn .rectangle-b2fhe2,
    .contactus .footer-GIL5vn .line-b2fhe2 {
        display: none !important;
    }

    .contactus .footer-GIL5vn .copyright-b2fhe2 {
        order: 1 !important;
        margin-bottom: 25px !important;
    }

    .contactus .footer-GIL5vn .links-b2fhe2 {
        order: 2 !important;
        font-size: 0 !important;
        line-height: 1 !important;
        margin-bottom: 25px !important;
    }

    .contactus .footer-GIL5vn .socials-b2fhe2 {
        order: 3 !important;
        width: auto !important;
        margin-bottom: 25px !important;
    }

    .contactus .footer-GIL5vn .logo-b2fhe2 {
        order: 4 !important;
        margin-bottom: 0 !important;
        position: static !important;
        max-width: 150px;
        height: auto;
    }

    .contactus .footer-GIL5vn .links-b2fhe2 a {
        display: block !important;
        font-size: 18px !important;
        padding: 8px 0 !important;
        color: var(--black, #000);
        text-decoration: none;
        font-family: var(--font-family-lora);
    }
}

/* Small mobile screens */
@media screen and (max-width: 480px) {
    .contactus .title-FaUNzG {
        font-size: 28px;
    }

    .contactus .main-content {
        padding: 0 10px;
    }

    .contactus .contact-form,
    .contactus .contact-info {
        padding: 20px 15px;
    }

    .contactus .footer-GIL5vn {
        padding: 30px 15px !important;
    }
}