﻿
/* Highlights the selected contact category based on current emailID/title mapping */
.contact-wrapper {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.category-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 12px;
    margin: 18px auto 25px;
    max-width: 720px;
}

.category-link {
    flex: 0 0 calc((100% - 36px) / 4);
    width: calc((100% - 36px) / 4);
    min-width: 0;
    padding: 10px 8px;
    border: 1px solid #cfcfcf;
    border-radius: 3px;
    background: #f7f7f7;
    color: #222;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    box-sizing: border-box;
}

    .category-link:hover,
    .category-link:focus {
        background: #e6eef7;
        outline: 2px solid #4d7fb8;
    }

.selected-category-text {
    font-weight: bold;
    margin-left: 5px;
    color: #000;
}

.category-link.selected-category {
    background: #4F6F8C;
    color: #fff !important;
    border: 1px solid #3E5C76;
}

.contact-form {
    max-width: 620px;
    margin: 0 auto;
    text-align: left;
}

    .contact-form label {
        display: block;
        margin-top: 12px;
        font-weight: bold;
    }

.form-input {
    width: 100%;
    height: 28px;
    box-sizing: border-box;
    margin-top: 4px;
}

textarea.form-input {
    height: 85px;
}

.button-row {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.submit-button,
.reset-button {
    height: 36px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    border: none;
}

.submit-button {
    flex: 1;
    background: #0d6efd;
    color: #fff;
}

    .submit-button:hover {
        background: #0b5ed7;
    }

.reset-button {
    width: 90px;
    background: #6c757d;
    color: #fff;
}

    .reset-button:hover {
        background: #5c636a;
    }

.recaptcha-text,
.phone-support,
.disclaimer-text {
    text-align: center;
    margin-top: 15px;
}

.disclaimer-text {
    font-size: 11px;
}

.category-contacting-text {
    margin: 15px 0 20px 0;
    font-size: 15px;
    color: #333;
}

    .category-contacting-text strong {
        font-weight: bold;
    }

.form-row {
    margin-top: 12px;
}

.two-column-row {
    display: flex;
    gap: 12px;
}

.field-half {
    flex: 1;
}

.full-row {
    width: 100%;
}

.form-input {
    width: 100%;
    height: 28px;
    box-sizing: border-box;
    margin-top: 4px;
}

textarea.form-input {
    height: 85px;
}

.button-row {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.submit-button {
    flex: 1;
}

.reset-button {
    display: none;
}

.success-message {
    display: block;
    text-align: center;
    color: #2e7d32;
    font-weight: bold;
    font-size: 14px;
    margin: 8px 0 18px 0;
}

.text-green {
    color: green !important;
}

.font-bold {
    font-weight: bold !important;
}


@media screen and (max-width: 1000px) {

    /* ===== PAGE WRAPPER ===== */

    html,
    body {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }

    body {
        background: #8B8B8B url('../images/pageBG.jpg') fixed repeat-y center top !important;
    }

        body > center {
            display: block !important;
            width: 100% !important;
            max-width: 100% !important;
            min-width: 0 !important;
            margin: 0 !important;
            padding: 0 12px !important;
            text-align: left !important;
            overflow-x: hidden !important;
            box-sizing: border-box !important;
        }

    /* ===== WEB FORMS / MASTER-PAGE CONTAINERS ===== */

    #form1,
    form#aspnetForm,
    form.category-contact-page {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

        form.category-contact-page > table.site-table,
        table.site-table,
        table.site-container,
        table.site-container > tbody,
        table.site-container > tbody > tr,
        table.site-container > tbody > tr > td {
            width: 100% !important;
            max-width: 100% !important;
            min-width: 0 !important;
            height: auto !important;
            min-height: 0 !important;
            margin: 0 !important;
            box-sizing: border-box !important;
        }

    table.site-table,
    table.site-container {
        table-layout: fixed !important;
    }

        /* ===== HEADER IMAGE ===== */

        table.site-container > tbody > tr:first-child > td {
            width: 100% !important;
            max-width: 100% !important;
            min-width: 0 !important;
            padding: 0 !important;
            overflow: hidden !important;
            box-sizing: border-box !important;
        }

            table.site-container > tbody > tr:first-child > td > img {
                display: block !important;
                width: 100% !important;
                max-width: 100% !important;
                height: auto !important;
                margin: 0 !important;
                box-sizing: border-box !important;
            }

    /* ===== NAVIGATION ===== */

    td.menuHolder,
    nav.main-nav,
    .mobile-menu-scroll {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    td.menuHolder {
        overflow: hidden !important;
    }

    /* Only the black navigation area scrolls horizontally. */
    .mobile-menu-scroll {
        display: block !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
    }

        .mobile-menu-scroll .main-nav__list {
            display: inline-flex !important;
            flex-wrap: nowrap !important;
            width: max-content !important;
            min-width: max-content !important;
            max-width: none !important;
            margin: 0 !important;
            padding: 0 !important;
        }

            .mobile-menu-scroll .main-nav__list > li {
                display: block !important;
                float: none !important;
                flex: 0 0 auto !important;
                white-space: nowrap !important;
            }

    /* Dropdowns must not make the entire page wider. */
    .main-nav__dropdown {
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }

    /* ===== DIVIDER ROW ===== */

    td.divider-height {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        padding: 0 !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

        td.divider-height img {
            display: block !important;
            width: 100% !important;
            max-width: 100% !important;
            height: auto !important;
            box-sizing: border-box !important;
        }

    /* ===== CONTENT HEIGHT / BLANK-SPACE FIX ===== */

    td.contentHolder.height-100,
    td.content-height-full.contentHolder,
    td.content-height-full,
    td.contentHolder,
    table.homeContent,
    table.homeContent > tbody,
    table.homeContent > tbody > tr,
    table.homeContent > tbody > tr > td {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

        td.content-height-full.contentHolder > center,
        td.content-height-full.contentHolder > center > div {
            display: block !important;
            width: 100% !important;
            max-width: 100% !important;
            min-width: 0 !important;
            height: auto !important;
            min-height: 0 !important;
            max-height: none !important;
            margin: 0 !important;
            box-sizing: border-box !important;
        }

    table.homeContent {
        table-layout: auto !important;
    }

    /* ===== FOOTER ===== */

    table.footer {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 auto !important;
        table-layout: auto !important;
        box-sizing: border-box !important;
    }

        table.footer tr,
        table.footer td {
            height: auto !important;
            min-height: 0 !important;
            box-sizing: border-box !important;
        }

    .footer-content,
    .footer-language,
    .footer-notification,
    .footer-copyright,
    .footer-links,
    .footer-disclaimer {
        max-width: 100% !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
        box-sizing: border-box !important;
    }

    /* ===== HEADING SPACING ===== */

    table.homeContent h1 {
        display: block !important;
        position: static !important;
        clear: both !important;
        margin: 10px 0 !important;
    }

    .contact-wrapper > h3 {
        display: block !important;
        position: static !important;
        clear: both !important;
        margin: 15px 0 12px !important;
        padding: 0 !important;
    }

    /* ===== CONTACT CONTENT ===== */

    .contact-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .category-grid {
        width: 100% !important;
        max-width: 760px !important;
        min-width: 0 !important;
        margin: 0 auto 15px !important;
        box-sizing: border-box !important;
    }

    .contact-form {
        width: 100% !important;
        max-width: 620px !important;
        min-width: 0 !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }

    /* ===== PRESERVE DESKTOP-STYLE FIELD ALIGNMENT ON TABLETS ===== */

    .form-row,
    .full-row,
    .additional-fields {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    .two-column-row {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: flex-start !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

        .two-column-row > .field-half,
        .two-column-row > div {
            flex: 1 1 0 !important;
            width: auto !important;
            max-width: none !important;
            min-width: 0 !important;
            box-sizing: border-box !important;
        }

    .three-column-row {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: flex-start !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

        .three-column-row > .field-third,
        .three-column-row > div {
            flex: 1 1 0 !important;
            width: auto !important;
            max-width: none !important;
            min-width: 0 !important;
            box-sizing: border-box !important;
        }

    /* ===== CONTROLS / MEDIA ===== */

    .category-contact-page input,
    .category-contact-page select,
    .category-contact-page textarea,
    .category-contact-page img,
    .category-contact-page iframe {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form input[type="tel"],
    .contact-form select,
    .contact-form textarea {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    /* Keep form-control borders visible when the layout shrinks. */
    .contact-form .form-input {
        height: 30px !important;
        min-height: 30px !important;
        padding: 3px 6px !important;
        border: 2px solid #777 !important;
        box-sizing: border-box !important;
    }

    .contact-form textarea.form-input {
        height: 90px !important;
        min-height: 90px !important;
        padding: 6px !important;
        border: 2px solid #777 !important;
        box-sizing: border-box !important;
    }

    /* ===== TEXT WRAPPING ===== */

    .contact-wrapper h2,
    .contact-wrapper h3,
    .contact-wrapper label,
    .contact-wrapper span,
    .contact-wrapper div,
    .phone-support,
    .disclaimer-text {
        max-width: 100% !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
        box-sizing: border-box !important;
    }
}


@media screen and (max-width: 600px) {

    /* ===== PAGE WRAPPER ===== */

    html,
    body {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }

        body > center {
            display: block !important;
            width: 100% !important;
            max-width: 100% !important;
            min-width: 0 !important;
            margin: 0 !important;
            padding: 0 8px !important;
            text-align: left !important;
            overflow-x: hidden !important;
            box-sizing: border-box !important;
        }

    form#aspnetForm,
    form.category-contact-page,
    table.site-container,
    table.site-container > tbody,
    table.site-container > tbody > tr,
    table.site-container > tbody > tr > td,
    table.homeContent,
    table.footer {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    table.site-container,
    table.homeContent{
        table-layout: fixed;
    }
    table.footer{
        table-layout:auto !important;
    }
    /* Remove inherited fixed content height. */
    td.content-height-full.contentHolder,
    td.content-height-full,
    td.contentHolder,
    td.content-height-full.contentHolder > center,
    td.content-height-full.contentHolder > center > div {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    /* ===== HEADER AND DIVIDER IMAGES ===== */

    table.site-container > tbody > tr:first-child img {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }

    td.divider-height,
    td.divider-height img {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    /* ===== MOBILE NAVIGATION ===== */

    td.menuHolder,
    nav.main-nav,
    .mobile-menu-scroll {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    td.menuHolder {
        padding: 0 !important;
        overflow: hidden !important;
    }

    /* Only the black navigation bar scrolls horizontally. */
    .mobile-menu-scroll {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
    }

        /* Keep all main menu items in one continuous row. */
        .mobile-menu-scroll .main-nav__list {
            display: inline-flex !important;
            flex-wrap: nowrap !important;
            width: max-content !important;
            min-width: max-content !important;
            max-width: none !important;
            margin: 0 !important;
            padding: 0 !important;
        }

            .mobile-menu-scroll .main-nav__list > li {
                display: block !important;
                float: none !important;
                flex: 0 0 auto !important;
                white-space: nowrap !important;
            }

    /* ===== CONTACT CONTENT ===== */

    .contact-wrapper,
    .contact-form {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    .contact-wrapper {
        padding: 0 !important;
    }

    /* ===== CATEGORY BUTTONS ===== */

    .category-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 auto 15px !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    .category-link {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: none !important;
    }


        .category-grid a,
        .category-grid button,
        .category-grid input {
            display: block !important;
            width: 100% !important;
            max-width: 100% !important;
            min-width: 0 !important;
            white-space: normal !important;
            box-sizing: border-box !important;
        }

    /* ===== CONTACT FORM ROWS ===== */

    .form-row,
    .full-row,
    .additional-fields {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    /*
       Preserve the desktop-style field arrangement:
       Email + Phone,
       City + State + ZIP,
       Property Address + File/Order.
    */
    .two-column-row {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: flex-start !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

        .two-column-row > .field-half,
        .two-column-row > div {
            flex: 1 1 0 !important;
            width: auto !important;
            max-width: none !important;
            min-width: 0 !important;
            margin: 0 !important;
            box-sizing: border-box !important;
        }

    .three-column-row {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: flex-start !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

        .three-column-row > .field-third,
        .three-column-row > div {
            flex: 1 1 0 !important;
            width: auto !important;
            max-width: none !important;
            min-width: 0 !important;
            margin: 0 !important;
            box-sizing: border-box !important;
        }

    /* ===== FORM CONTROLS ===== */

    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form input[type="tel"],
    .contact-form select,
    .contact-form textarea {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .contact-form textarea {
        resize: vertical;
    }

    .button-row,
    .submit-button,
    .reset-button {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    /* ===== TEXT WRAPPING ===== */

    .contact-wrapper h2,
    .contact-wrapper h3,
    .contact-wrapper label,
    .contact-wrapper span,
    .contact-wrapper div,
    .phone-support,
    .disclaimer-text {
        max-width: 100% !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
        box-sizing: border-box !important;
    }

    .category-contact-page img,
    .category-contact-page iframe {
        max-width: 100% !important;
        height: auto;
    }
    /* ===== MOBILE FOOTER ===== */

    table.footer,
    table.footer > tbody,
    table.footer > tbody > tr,
    table.footer > tbody > tr > td {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    table.footer {
        table-layout: auto !important;
    }

    .footer-copyright,
    .footer-links,
    .footer-disclaimer,
    .footer-content,
    .footer-language,
    .footer-notification {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: anywhere !important;
        writing-mode: horizontal-tb !important;
        text-align: left !important;
        box-sizing: border-box !important;
    }

}








