/**
 * Contact Us Page Specific Styles
 * Aaditri Group - Locations Section
 */

/* Contact Us Page Background */
.contact-us-wrapper {
    background: url("../img/legacy-bg.png");
    background-size: 31%;
    background-repeat: repeat;
    min-height: 100vh;
}

/* Responsive background adjustments */
@media (max-width: 767.98px) {
    .contact-us-wrapper {
        background-size: 25%;
    }
}

@media (max-width: 575.98px) {
    .contact-us-wrapper {
        background-size: 20%;
        padding: 0 10px;
    }
}

/* Locations Section */
.locations-section {
    padding: 40px 0;
    position: relative;
}

.locations-header {
    margin-bottom: 30px;
}

.locations-section .section-title {
    font-size: 30px;
    font-weight: 400;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0;
    line-height: 1.2;
    display: inline-block;
    margin-right: 40px;
}

/* Location Selector Dropdown */
.location-selector {
    display: inline-block;
}

.location-custom-dropdown {
    position: relative;
    width: auto;
    min-width: 250px;
}

.location-custom-dropdown .dropdown-selected {
    border: none;
    border-bottom: 2px solid #717171;
    background-color: transparent;
    font-size: 18px;
    font-weight: 400;
    color: #000;
    padding: 8px 25px 8px 0;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 250px;
    text-align: left;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
}

.location-custom-dropdown .dropdown-selected:hover {
    border-bottom-color: #000;
}

.location-custom-dropdown .dropdown-arrow {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #000;
    transition: transform 0.3s ease;
}

.location-custom-dropdown .dropdown-selected.active .dropdown-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.location-custom-dropdown .dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #000;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    min-width: 250px;
    white-space: nowrap;
}

.location-custom-dropdown .dropdown-options.show {
    display: block;
}

.location-custom-dropdown .dropdown-option {
    padding: 12px 15px;
    background-color: #fff;
    color: #000;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-align: left;
    white-space: nowrap;
}

.location-custom-dropdown .dropdown-option:hover {
    background-color: #000;
    color: #fff;
}

/* Section Divider */
.section-divider {
    border: none;
    height: 1px;
    background-color: #000;
    margin: 30px 0;
}

/* Regional Office Section */
.regional-section {
    margin-top: 30px;
}

.regional-header {
    margin-bottom: 10px;
}

.regional-title {
    font-size: 20px;
    font-weight: 300;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.regional-divider {
    border: none;
    height: 1px;
    background-color: #000;
    margin: 10px 0 30px 0;
}

.regional-office-item {
    padding: 0;
    margin-bottom: 0;
}

.regional-city {
    font-size: 19px;
    font-weight: 500;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    line-height: 1.3;
}

.regional-type {
    font-size: 19px;
    font-weight: 500;
    color: #000;
    margin-bottom: 10px;
    line-height: 1.4;
}

.regional-address {
    font-size: 18px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
}

.regional-location-link {
    font-size: 17px;
    font-weight: 400;
    color: #9a0000 !important;
    text-decoration: none;
    letter-spacing: 0;
}

.regional-location-link:hover {
    color: #9a0000 !important;
    text-decoration: none;
}

/* Corporate Office Section */
.corporate-section {
    margin-top: 30px;
}

.corporate-header {
    margin-bottom: 10px;
}

.corporate-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.corporate-divider {
    border: none;
    height: 1px;
    background-color: #000;
    margin: 10px 0 30px 0;
}

.corporate-office-item {
    padding: 0;
    margin-bottom: 0;
}

.corporate-city {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    line-height: 1.3;
}

.corporate-type {
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 10px;
    line-height: 1.4;
}

.corporate-address {
    font-size: 17px;
    color: #717171;
    line-height: 1.5;
    margin-bottom: 10px;
}

.corporate-location-link {
    font-size: 17px;
    font-weight: 400;
    color: #9a0000;
    text-decoration: none;
    letter-spacing: 0;
}

.corporate-location-link:hover {
    color: #9a0000 !important;
    text-decoration: none;
}

/* Corporate Office Map */
.corporate-map {
    height: 100%;
    min-height: 300px;
    border-radius: 0;
    overflow: hidden;
}

.corporate-map-iframe {
    border-radius: 0;
    width: 100%;
    height: 300px;
    border: none;
}

/* Project Locations Section */
.projects-section {
    margin-top: 30px;
}

.projects-header {
    margin-bottom: 10px;
}

.projects-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.projects-divider {
    border: none;
    height: 1px;
    background-color: #000;
    margin: 10px 0 30px 0;
}

.project-city-section {
    margin-bottom: 40px;
}

.project-city-title {
    font-size: 20px;
    font-weight: 300;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 8px 0;
}

.project-city-divider {
    border: none;
    height: 1px;
    background-color: #000;
    margin: 8px 0 20px 0;
}

.project-item {
    padding: 0;
    margin-bottom: 25px;
}

.project-name {
    font-size: 18px;
    font-weight: 500;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    line-height: 1.3;
}

.project-address {
    font-size: 16px;
    color: #717171;
    line-height: 1.5;
    margin-bottom: 8px;
}

.project-location-link {
    font-size: 16px;
    font-weight: 400;
    color: #9a0000 !important;
    text-decoration: none;
    letter-spacing: 0;
}

.project-location-link:hover {
    color: #9a0000 !important;
    text-decoration: none;
}

/* Section Transitions */
.regional-section,
.corporate-section,
.projects-section {
    opacity: 1;
}

.regional-section.d-none,
.corporate-section.d-none,
.projects-section.d-none {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .locations-section {
        padding: 30px 0;
    }

    .locations-section .section-title {
        font-size: 1.3rem;
        display: block;
        margin-bottom: 15px;
        margin-right: 0;
    }

    .location-selector {
        display: block;
    }
}

@media (max-width: 767.98px) {
    .locations-section {
        padding: 25px 0;
    }

    .locations-section .section-title {
        font-size: 1.2rem;
        text-align: center;
        margin-bottom: 20px;
        margin-right: 0;
        display: block;
        width: 100%;
    }

    .locations-header .d-flex {
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
    }

    .location-selector {
        text-align: center;
        width: 100%;
        max-width: 300px;
    }

    .location-custom-dropdown {
        min-width: 100%;
        width: 100%;
    }

    .location-dropdown {
        font-size: 0.8rem;
    }

    .regional-section .row,
    .corporate-section .row {
        flex-direction: column;
    }

    .project-city-title {
        font-size: 0.75rem;
    }

    .project-name {
        font-size: 0.75rem;
    }

    .project-address {
        font-size: 0.65rem;
    }

    .project-location-link {
        font-size: 0.65rem;
    }

    .corporate-map {
        margin-top: 20px;
        min-height: 250px;
    }

    .corporate-map-iframe {
        height: 250px;
    }
}

@media (max-width: 575.98px) {
    .locations-section {
        padding: 20px 0;
    }

    .locations-section .section-title {
        font-size: 1.1rem;
        letter-spacing: 1px;
        margin-bottom: 15px;
        text-align: center;
        display: block;
        width: 100%;
    }

    .locations-header .d-flex {
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .location-selector {
        width: 100%;
        max-width: 280px;
    }

    .location-custom-dropdown {
        min-width: 100%;
        width: 100%;
    }

    .location-custom-dropdown .dropdown-selected {
        font-size: 0.75rem;
        padding: 8px 12px;
    }

    .location-custom-dropdown .dropdown-arrow {
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
        border-top: 5px solid #000;
    }

    .regional-city,
    .corporate-city {
        font-size: 0.8rem;
    }

    .regional-type,
    .corporate-type {
        font-size: 0.7rem;
    }

    .regional-address,
    .corporate-address {
        font-size: 0.65rem;
    }

    .regional-location-link,
    .corporate-location-link {
        font-size: 0.65rem;
    }

    .corporate-map {
        min-height: 200px;
    }

    .corporate-map-iframe {
        height: 200px;
    }
}

/* Contact Form Section */
.contact-form-section {
    padding: 50px 0;
}

.locations-section {
    border-bottom: 1px solid #717171;
}

.contact-form-wrapper {
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
}

/* Contact Header */
.contact-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.contact-phone {
    font-size: 21px;
    color: #000;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    font-weight: 500;
}

.contact-phone::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #000;
}

.contact-title {
    font-size: 24px;
    font-weight: 400;
    color: #000;
    margin: 0;
    text-transform: capitalize;
    letter-spacing: 1px;
    padding-top: 20px;
}

/* Contact Form */
.contact-form-container {
    margin-top: 30px;
}

/* Custom Mobile Input Group - Matches Exact Design */
.mobile-input-group {
    display: flex !important;
    width: 100% !important;
    position: relative !important;
}

.mobile-input-group .country-code-select {
    width: 120px !important;
    min-width: 120px !important;
    max-width: 120px !important;
    flex-shrink: 0 !important;
    border: none !important;
    border-bottom: 1px solid #ddd !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 8px 8px 8px 12px !important;
    font-size: 0.85rem !important;
    color: #333 !important;
    height: 38px !important;
    margin-right: 0 !important;
    outline: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    cursor: pointer !important;
    border-right: 1px solid #ddd !important;
}

.mobile-input-group .country-code-select:focus {
    border: none !important;
    border-bottom: 2px solid #9a0000 !important;
    border-right: 1px solid #9a0000 !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.mobile-input-group .mobile-number-input {
    flex: 1 !important;
    border: none !important;
    border-bottom: 1px solid #ddd !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 8px 12px !important;
    font-size: 0.85rem !important;
    color: #333 !important;
    height: 38px !important;
    margin-left: 0 !important;
    outline: none !important;
}

.mobile-input-group .mobile-number-input:focus {
    border: none !important;
    border-bottom: 2px solid #9a0000 !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.mobile-input-group .mobile-number-input::placeholder {
    color: #999 !important;
    font-size: 0.85rem !important;
}

.mobile-input-group .country-code-select::placeholder {
    color: #999 !important;
    font-size: 0.85rem !important;
}

/* Custom dropdown arrow for country select */
.mobile-input-group .country-code-select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    background-size: 12px !important;
    padding-right: 28px !important;
}

/* Mobile Input Group Responsive Styles */
/* Small devices (landscape phones, 576px and up) */
@media (max-width: 575.98px) {
    .mobile-input-group {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .mobile-input-group .country-code-select {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 0 !important;
        border-right: none !important;
        font-size: 0.8rem !important;
        padding: 6px 8px !important;
    }

    .mobile-input-group .mobile-number-input {
        width: 100% !important;
        font-size: 0.8rem !important;
        padding: 6px 8px !important;
    }
}

/* Medium devices (tablets, 768px and down) */
@media (max-width: 767.98px) {
    .mobile-input-group {
        flex-direction: row !important;
    }

    .mobile-input-group .country-code-select {
        width: 110px !important;
        max-width: 110px !important;
        margin-bottom: 0 !important;
        border-right: 1px solid #ddd !important;
        font-size: 0.8rem !important;
    }

    .mobile-input-group .mobile-number-input {
        flex: 1 !important;
        font-size: 0.8rem !important;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .mobile-input-group .country-code-select {
        width: 120px !important;
        font-size: 0.85rem !important;
    }

    .mobile-input-group .mobile-number-input {
        font-size: 0.85rem !important;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .contact-form-wrapper {
        max-width: 800px;
        margin: 0 auto;
    }

    .locations-section .container {
        max-width: 1140px;
    }

    .mobile-input-group .country-code-select {
        width: 130px !important;
    }
}

/* Ultra wide screens (1400px and up) */
@media (min-width: 1400px) {
    .contact-form-wrapper {
        max-width: 900px;
    }

    .locations-section .container {
        max-width: 1320px;
    }
}

.inquiry-type-group {
    margin-bottom: 40px;
}

/* Responsive styles for inquiry type groups */
@media (max-width: 767.98px) {
    .inquiry-type-group {
        margin-bottom: 30px;
    }
}

@media (max-width: 575.98px) {
    .inquiry-type-group {
        margin-bottom: 25px;
    }
}

/* Custom Dropdown Styling - Figma Design Match */
.custom-dropdown {
    position: relative;
    width: 100%;
    /* max-width: 340px;
    margin: 0 auto; */
}

/* Responsive custom dropdown */
@media (max-width: 767.98px) {
    .custom-dropdown {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .custom-dropdown {
        max-width: 100%;
        width: 100%;
        margin: 0;
    }
}

.dropdown-selected {
    border: none;
    border-bottom: 1px solid #ddd;
    background-color: #fff;
    font-size: 16px;
    font-weight: 400;
    color: #333;
    padding: 12px 0;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 250px;
    text-align: center;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
}

/* Responsive dropdown selected */
@media (max-width: 767.98px) {
    .dropdown-selected {
        min-width: 100%;
        width: 100%;
        font-size: 0.8rem;
        padding: 10px 0;
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .dropdown-selected {
        font-size: 0.75rem;
        padding: 8px 0;
        letter-spacing: 0.3px;
    }

    .dropdown-arrow {
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
        border-top: 5px solid #999;
    }
}

.dropdown-selected:hover {
    border-bottom-color: #999;
}

.dropdown-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #999;
    transition: transform 0.3s ease;
}

.dropdown-selected.active .dropdown-arrow {
    transform: translateY(-50%) rotate(180deg);
}

/* Dropdown Options Styling */
.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.dropdown-options.show {
    display: block;
}

.dropdown-option {
    padding: 12px 15px;
    background-color: #fff;
    color: #333;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-align: left;
}

.dropdown-option:hover {
    background-color: #000;
    color: #fff;
}

.dropdown-option:first-child {
    background-color: #000;
    color: #fff;
}

/* Form Message Text */
.form-message-text {
    text-align: center;
    margin: 30px 0 40px 0;
}

.form-message-text p {
    font-size: 16px;
    color: #000;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Form Fields */
.form-fields-container {
    margin-top: 40px;
}

.form-group {
    margin-bottom: 35px;
}

.form-control {
    border: none;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
    padding: 12px 0;
    font-size: 0.85rem;
    font-weight: 400;

    background-color: transparent;
    box-shadow: none;
    outline: none;
    width: 100%;
}

.form-control:focus {
    border-bottom-color: #999;
    box-shadow: none;
    outline: none;
    background-color: transparent;
}

.form-control::placeholder {
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.85rem;
}

/* Mobile Number Group */
.mobile-group {
    position: relative;
}

.mobile-input-wrapper {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding: 0;
    position: relative;
}

.mobile-input-wrapper:focus-within {
    border-bottom-color: #999;
}

.country-code-select {
    border: none;
    background: transparent;
    font-size: 0.85rem;
    color: #333;
    padding: 12px 20px 12px 0;
    margin-right: 15px;
    cursor: pointer;
    min-width: 80px;
    border-radius: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 8"><path fill="%23999" d="M6 8L0 2h12z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 5px center;
    background-size: 10px;
}

.country-code-select:focus {
    border: none;
    box-shadow: none;
    background-color: transparent;
    outline: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 8"><path fill="%23999" d="M6 8L0 2h12z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 5px center;
    background-size: 10px;
}

.mobile-input {
    border: none;
    border-bottom: none !important;
    flex: 1;
    padding: 12px 0;
    background: transparent;
    font-size: 0.85rem;
    color: #333;
    width: auto;
    min-width: 0;
    box-shadow: none;
    outline: none;
}

.mobile-input:focus {
    border-bottom: none !important;
    box-shadow: none;
    outline: none;
}

.mobile-input::placeholder {
    color: #aaa;
    font-size: 0.85rem;
    text-transform: none;
    letter-spacing: 0;
}

/* Textarea */
textarea.form-control {
    resize: vertical;
    min-height: 80px;
    padding: 12px 0;
    line-height: 1.4;
}

/* Form Section Headers */
.form-section-header {
    margin: 40px 0 30px 0;
    padding-bottom: 10px;
    text-align: center;
}

.form-section-header h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #000;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* File Upload Styling */
.file-upload-label {
    font-size: 0.85rem;
    color: #333;
    margin-bottom: 8px;
    display: block;
    text-transform: none;
    letter-spacing: 0;
}

.file-input {
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    padding: 8px 12px !important;
    background-color: #f9f9f9;
    font-size: 0.8rem;
}

.file-input:focus {
    border-color: #999 !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    background-color: #fff;
}

.file-help-text {
    font-size: 0.7rem;
    color: #666;
    margin-top: 5px;
    display: block;
    font-style: italic;
}

/* Form Help Text */
.form-help-text {
    font-size: 0.75rem;
    color: #666;
    margin-top: 5px;
    margin-bottom: 20px;
    line-height: 1.4;
    font-style: italic;
}

/* Franchise Partner Form Specific Styling */
.franchise-form .row {
    margin-left: 0;
    margin-right: 0;
}

.franchise-form .col-md-12,
.franchise-form .col-md-6,
.franchise-form .col-md-4 {
    padding-left: 0;
    padding-right: 15px;
}

.franchise-form .col-md-12:last-child {
    padding-right: 0;
}

/* Channel Partner Form Specific Styling */
.channel-form .row {
    margin-left: 0;
    margin-right: 0;
}

.channel-form .col-md-12,
.channel-form .col-md-6,
.channel-form .col-md-4 {
    padding-left: 0;
    padding-right: 15px;
}

.channel-form .col-md-12:last-child {
    padding-right: 0;
}

/* Full width form wrapper for franchise partner */
.col-md-12 .contact-form-wrapper {
    max-width: 100%;
}

.col-md-12 .contact-form {
    max-width: 100%;
}

/* Select dropdown styling for franchise form */
.franchise-form select.form-control {
    border: none;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
    background-color: transparent;
    font-size: 0.85rem;
    color: #333;
    padding: 12px 0;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 8"><path fill="%23999" d="M6 8L0 2h12z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 5px center;
    background-size: 10px;
}

.franchise-form select.form-control:focus {
    border-bottom-color: #999;
    box-shadow: none;
    outline: none;
}

/* Submit Button */
.form-submit-wrapper {
    text-align: center;
    margin-top: 50px;
}

.contact-submit-btn {
    background-color: #444;
    color: #fff;
    border: none;
    padding: 10px 25px;
    font-size: 17px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
    min-width: 120px;
}

.contact-submit-btn:hover {
    background-color: #333;
    color: #fff;
    transform: none;
    box-shadow: none;
}

/* Contact Form Responsive Styles */
/* Tablet responsive styles */
@media (min-width: 768px) and (max-width: 991.98px) {
    .contact-form-section {
        padding: 60px 0;
    }

    .contact-form-wrapper {
        padding: 40px 30px;
        max-width: 700px;
        margin: 0 auto;
    }

    .contact-title {
        font-size: 1.6rem;
        text-align: center;
    }

    /* Optimize form layout for tablets */
    .contact-form-wrapper .col-md-6 {
        margin-bottom: 20px;
    }

    .contact-form-wrapper .form-control,
    .contact-form-wrapper .form-select {
        font-size: 0.9rem;
        padding: 10px 12px;
    }
}

/* Large tablet and small desktop */
@media (max-width: 991.98px) {
    .contact-form-section {
        padding: 60px 0;
    }

    .contact-form-wrapper {
        padding: 40px 30px;
    }

    .contact-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 767.98px) {
    .contact-form-section {
        padding: 40px 0;
        margin-top: 40px;
    }

    .contact-form-wrapper {
        padding: 30px 20px;
        margin: 0 15px;
    }

    .contact-title {
        font-size: 1.4rem;
        line-height: 1.3;
    }

    /* Force all form columns to stack on tablets */
    .contact-form-wrapper .col-md-6,
    .contact-form-wrapper .col-md-4,
    .contact-form-wrapper .col-md-12 {
        margin-bottom: 15px;
    }

    /* Ensure form controls are properly sized */
    .contact-form-wrapper .form-control,
    .contact-form-wrapper .form-select {
        font-size: 0.85rem;
        padding: 8px 12px;
        height: auto;
        min-height: 38px;
    }

    .contact-phone {
        font-size: 0.8rem;
    }

    .inquiry-dropdown {
        min-width: 180px;
        font-size: 0.85rem;
    }

    .form-control {
        font-size: 0.85rem;
        padding: 10px 0;
    }

    .contact-submit-btn {
        padding: 12px 30px;
        font-size: 0.85rem;
        min-width: 120px;
    }

    .mobile-input-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .country-code-select {
        margin-right: 0;
        margin-bottom: 10px;
        border-bottom: 1px solid #ddd;
        padding-bottom: 8px;
        background-position: right 5px center;
    }

    .mobile-input {
        border-bottom: 1px solid #ddd !important;
    }
}

@media (max-width: 575.98px) {
    .contact-form-wrapper {
        margin: 0 10px;
        padding: 25px 15px;
    }

    .contact-title {
        font-size: 1.2rem;
        text-align: center;
        margin-bottom: 20px;
    }

    .form-fields-container {
        margin-top: 30px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    /* Ensure all form elements are properly sized on small screens */
    .contact-form-wrapper .form-control,
    .contact-form-wrapper .form-select {
        font-size: 0.8rem;
        padding: 8px 12px;
        height: auto;
        min-height: 44px; /* Increased for better touch targets */
    }

    /* Stack all columns on mobile */
    .contact-form-wrapper .row > [class*="col-"] {
        margin-bottom: 15px;
    }

    /* Adjust submit button for mobile */
    .contact-submit-btn {
        width: 100%;
        padding: 14px 12px; /* Increased for better touch target */
        font-size: 0.85rem;
        margin-top: 15px;
        min-height: 48px; /* Better touch target */
    }

    /* Improve mobile input group touch targets */
    .mobile-input-group .country-code-select,
    .mobile-input-group .mobile-number-input {
        min-height: 44px;
        padding: 8px 12px;
    }

    /* Better spacing for mobile forms */
    .form-group {
        margin-bottom: 20px;
    }

    /* Improve textarea sizing on mobile */
    .contact-form-wrapper textarea.form-control {
        min-height: 100px;
        resize: vertical;
    }

    /* Mobile form label styling */
    .form-label,
    .fw-bold {
        font-size: 0.75rem !important;
        margin-bottom: 6px !important;
    }

    .form-section-header {
        margin: 30px 0 20px 0;
    }

    .form-section-header h4 {
        font-size: 0.9rem;
    }

    .file-upload-label {
        font-size: 0.8rem;
    }

    .file-help-text {
        font-size: 0.65rem;
    }

    /* Responsive form label styling */
    .form-label,
    .fw-bold {
        font-size: 0.8rem !important;
    }

    .form-help-text {
        font-size: 0.7rem;
    }

    /* Mobile responsive for full width franchise form */
    .col-md-12 .contact-form-wrapper {
        padding: 20px;
    }

    .franchise-form .col-md-6,
    .franchise-form .col-md-4,
    .channel-form .col-md-6,
    .channel-form .col-md-4 {
        padding-right: 0;
        margin-bottom: 15px;
    }
}

/* Form Error States */
.form-control.field-error {
    border-bottom-color: #9a0000 !important;
}

.field-error-message {
    color: #9a0000;
    font-size: 0.75rem;
    margin-top: 5px;
}

/* Form Loading State */
.contact-submit-btn:disabled {
    background-color: #666;
    cursor: not-allowed;
    transform: none;
}

.contact-submit-btn:disabled:hover {
    background-color: #666;
    transform: none;
    box-shadow: none;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Form label styling */
.form-label {
    font-weight: 400 !important;
    font-size: 0.85rem !important;
    color: #333 !important;
    margin-bottom: 8px !important;
    display: block !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    line-height: 1.4 !important;
}

.fw-bold {
    font-weight: 400 !important;
    font-size: 0.85rem !important;
    color: #333 !important;
}

/* Form spacing */
.form-group.mt-3 {
    margin-top: 1rem !important;
}

.form-group.mb-3 {
    margin-bottom: 1rem !important;
}

/* File input styling - exact as in image with bordered button */
.file-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-input {
    border: none;
    padding: 8px 0;
    background-color: transparent;
    border-radius: 0;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    width: 100%;
    height: 38px;
}

.file-input:focus {
    border: none;
    outline: none;
    box-shadow: none;
    background-color: transparent;
}

.file-input::-webkit-file-upload-button {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 12px;
    margin-right: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
}

.file-input::-webkit-file-upload-button:hover {
    background-color: #e9ecef;
    border-color: #ccc;
}

/* Firefox file input styling */
.file-input::-moz-file-upload-button {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 12px;
    margin-right: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
}

/* Select dropdown styling - underline only as in image */
.form-select {
    border: none;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
    padding: 8px 12px;
    font-size: 14px;
    color: #666;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px 8px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    height: 38px;
    line-height: 1.5;
}

.form-select:focus {
    border: none;
    border-bottom: 2px solid #9a0000;
    outline: 0;
    box-shadow: none;
    color: #333;
    background-color: transparent;
}

.form-select option {
    color: #333;
    background-color: #fff;
    padding: 8px 12px;
}

.form-select option:first-child {
    color: #666;
}

/* Form controls with underline only - exact as in image */
.form-control,
.form-select {
    height: 55px;
    padding: 8px 0px;
    font-size: 15px;
    line-height: 1.5;
    border: none;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
    background-color: transparent;
}

p.text-heading {
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 50px;
}

.form-control:focus,
.form-select:focus {
    border: none;
    border-bottom: 2px solid #9a0000;
    outline: none;
    box-shadow: none;
    background-color: transparent;
}

/* Textarea specific styling */
textarea.form-control {
    border: none;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
    background-color: transparent;
    resize: vertical;
    min-height: 80px;
}

textarea.form-control:focus {
    border: none;
    border-bottom: 2px solid #9a0000;
    outline: none;
    box-shadow: none;
    background-color: transparent;
}

/* Text muted styling */
.text-muted {
    color: #6c757d !important;
    font-size: 12px;
}

/* Country code select styling - underline only */
.country-code-select {
    border: none;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
    max-width: 70px;
    flex: 0 0 70px;
    background-color: transparent;
}

.input-group .form-control {
    border: none;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
    background-color: transparent;
}

.input-group .form-control:focus {
    border: none;
    border-bottom: 2px solid #9a0000;
    outline: none;
    box-shadow: none;
    background-color: transparent;
}

.country-code-select:focus {
    border: none;
    border-bottom: 2px solid #9a0000;
    outline: none;
    box-shadow: none;
    background-color: transparent;
}

/* 3-column layout for channel partner form */
.channel-form .col-md-4 {
    padding-right: 15px;
    padding-left: 15px;
}

/* Mobile responsive for 3-column layout */
@media (max-width: 768px) {
    .channel-form .col-md-4 {
        margin-bottom: 15px;
    }
}

/* Guidelines section styling */
.guidelines-section {
    margin-top: 30px;
    padding: 20px 0;
}

.guidelines-content {
    max-width: 100%;
}

.guidelines-content h4,
.guidelines-header {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    margin-top: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.guidelines-content h4:first-child,
.guidelines-header:first-child {
    margin-top: 0;
}

.guidelines-content ul,
.guidelines-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.guidelines-content ul li,
.guidelines-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

.guidelines-content ul li:before,
.guidelines-list li:before {
    content: "•";
    color: #000;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

#formSelector {
    margin-bottom: 30px;
}

.iti--separate-dial-code .iti__selected-flag {
    background-color: transparent;
}
/* Mobile responsive for guidelines */
@media (max-width: 768px) {
    .guidelines-section {
        margin-top: 20px;
        padding: 15px 0;
    }

    .guidelines-content h4,
    .guidelines-header {
        font-size: 14px;
        margin-bottom: 12px;
        margin-top: 20px;
    }

    .guidelines-content ul li,
    .guidelines-list li {
        font-size: 13px;
        margin-bottom: 8px;
        padding-left: 18px;
    }
}
