/* AHI Dealer Locator - Enhanced Professional Styles */
.ahi-top-search,
.ahi-top-search *,
.ahi-dealer-wrap,
.ahi-dealer-wrap *,
.ahi-container,
.ahi-container * {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-sizing: border-box;
}

/* Ensure Dashicons render correctly */
.ahi-top-search .dashicons,
.ahi-dealer-wrap .dashicons,
.ahi-container .dashicons {
    font-family: "dashicons" !important;
}

/* ============================================================
   SEARCH SECTION - Modern Gradient Header
   ============================================================ */
.ahi-top-search {
    background: linear-gradient(135deg, #0a1a2f 0%, #1a3a6b 50%, #2a5a8b 100%);
    padding: 30px 0 40px;
    position: relative;
    overflow: hidden;
}

.ahi-top-search::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
    border-radius: 50%;
}

.ahi-top-search::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.02) 0%, transparent 70%);
    border-radius: 50%;
}

.ahi-container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 35px 45px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    width: 100%;
}

.ahi-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.ahi-filters-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #0a1a2f;
    letter-spacing: -0.5px;
}

.ahi-filters-header .ahi-sub {
    color: #5a7a9a;
    margin: 0;
    font-size: 14px;
}

.ahi-filters {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.ahi-pincode-wrap {
    flex: 1;
    min-width: 220px;
    position: relative;
}

.ahi-pincode-input {
    width: 100%;
    padding: 14px 14px 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    background: #f8fafc;
    color: #1a2a3a;
    transition: all 0.3s ease;
    outline: none;
    font-weight: 500;
}

.ahi-pincode-input:focus {
    border-color: #1a3a6b;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(26, 58, 107, 0.1);
}

.ahi-pincode-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.ahi-btn {
    background: #1a3a6b;
    color: #ffffff;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.ahi-btn:hover {
    background: #0f2a4f;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 58, 107, 0.3);
}

.ahi-btn:active {
    transform: translateY(0);
}

.ahi-btn-secondary {
    background: #e8ecf1;
    color: #1a2a3a;
}

.ahi-btn-secondary:hover {
    background: #d5dce4;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* ============================================================
   MAIN DEALER WRAPPER - Responsive for all screens
   ============================================================ */
.ahi-dealer-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    max-width: 1400px;
    width: 100%;
    margin: 30px auto;
    min-height: 600px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid #e8ecf1;
    box-sizing: border-box;
}

/* Left panel - Increased width to 60% */
.ahi-left {
    width: 60%;
    background: #fafbfc;
    border-right: 1px solid #e8ecf1;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    height: auto;
    max-height: none;
    min-height: 500px;
    min-width: 0; /* prevents flex/grid children from forcing overflow */
}

.ahi-right {
    flex: 1;
    box-sizing: border-box;
    background: #ffffff;
    padding: 0;
    min-width: 40%;
    overflow-y: auto;
    height: auto;
    max-height: none;
}

/* ============================================================
   DEALER LIST - responsive grid (FIXED: missing semicolon was
   breaking grid-template-columns and causing cards to overflow
   into implicit, clipped columns on many desktop widths)
   ============================================================ */
#ahi_dealer_list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
    width: 100%;
    box-sizing: border-box;
}

#ahi_dealer_list .dealer-card {
    padding: 16px 18px;
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    background: #ffffff;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 0;
    border-bottom: 1px solid #e8ecf1;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

#ahi_dealer_list .dealer-card:hover {
    background: #f0f4f9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

#ahi_dealer_list .dealer-card .dealer-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

#ahi_dealer_list .dealer-card .dealer-title {
    font-size: 15px;
    color: #0a1a2f;
    margin: 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}

#ahi_dealer_list .dealer-card .dealer-field {
    margin-bottom: 3px;
    font-size: 12px;
    line-height: 1.4;
    color: #4a5a6a;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    flex-wrap: wrap;
}

#ahi_dealer_list .dealer-card .dealer-field strong {
    color: #1a2a3a;
    font-weight: 600;
    min-width: 40px;
    font-size: 11px;
    flex-shrink: 0;
}

#ahi_dealer_list .dealer-card .dealer-field a {
    text-decoration: none;
    color: #1a3a6b;
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 0;
}

#ahi_dealer_list .dealer-card .dealer-field a:hover {
    text-decoration: underline;
}

#ahi_dealer_list .dealer-card .services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

#ahi_dealer_list .dealer-card .service-badge {
    display: inline-block;
    background: #e8ecf1;
    color: #1a2a3a;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 500;
    text-transform: capitalize;
}

#ahi_dealer_list .dealer-card .service-badge.sales {
    background: #dbeafe;
    color: #1a3a6b;
}

#ahi_dealer_list .dealer-card .service-badge.installation {
    background: #fef3c7;
    color: #92400e;
}

#ahi_dealer_list .dealer-card .service-badge.service {
    background: #d1fae5;
    color: #065f46;
}

/* ============================================================
   ENQUIRY PANEL / RIGHT PANEL
   ============================================================ */
.ahi-enquiry-panel {
    background: #ffffff;
    padding: 35px 40px;
    box-sizing: border-box;
    min-height: 100%;
}

.ahicapp-form-wrap {
    max-width: 100%;
}

.ahicapp-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #1a3a6b;
    margin-bottom: 6px;
}

.ahicapp-heading {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 700;
    color: #0a1a2f;
    line-height: 1.2;
}

.ahicapp-subtitle {
    margin: 0 0 24px;
    font-size: 14px;
    color: #6b7a8a;
}

.ahicapp-required {
    color: #dc3545;
}

/* Form Rows */
.ahicapp-row {
    display: flex;
    gap: 18px;
    margin-bottom: 14px;
    width: 100%;
    flex-wrap: wrap;
}

.ahicapp-row > div {
    flex: 1;
    min-width: 0;
}

.ahicapp-row.ahicapp-full {
    display: flex;
    flex-direction: column;
}

.ahicapp-row.ahicapp-full > div {
    width: 100%;
}

.ahicapp-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1a2a3a;
    margin-bottom: 6px;
}

/* Inputs, Selects, Textareas */
.ahicapp-application-form-container input[type="text"],
.ahicapp-application-form-container input[type="email"],
.ahicapp-application-form-container input[type="tel"],
.ahicapp-application-form-container select,
.ahicapp-application-form-container textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: #1a2a3a;
    background: #fafbfc;
    transition: all 0.3s ease;
    outline: none;
}

.ahicapp-application-form-container input:focus,
.ahicapp-application-form-container select:focus,
.ahicapp-application-form-container textarea:focus {
    border-color: #1a3a6b;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(26, 58, 107, 0.06);
}

.ahicapp-application-form-container input::placeholder,
.ahicapp-application-form-container textarea::placeholder {
    color: #94a3b8;
}

.ahicapp-application-form-container select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7a8a' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.ahicapp-application-form-container textarea {
    resize: vertical;
    min-height: 100px;
}

/* Select Row with Change Button */
.ahicapp-select-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    flex-wrap: wrap;
}

.ahicapp-select-row select {
    flex: 1;
    min-width: 0;
}

.ahicapp-change-dealer-btn {
    flex-shrink: 0;
    background: transparent;
    border: 2px solid #1a3a6b;
    color: #1a3a6b;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.ahicapp-change-dealer-btn:hover {
    background: #1a3a6b;
    color: #ffffff;
}

/* Selected Dealer Card */
.ahi-enquiry-selected-dealer {
    margin-top: 6px;
    margin-bottom: 14px;
}

.ahi-enquiry-selected-dealer:empty {
    display: none;
}

.ahi-enquiry-selected-dealer .ahi-enquiry-dealer-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #eef1f5 100%);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 20px;
    transition: all 0.3s ease;
}

.ahi-enquiry-selected-dealer .ahi-enquiry-dealer-card:hover {
    border-color: #1a3a6b;
    box-shadow: 0 4px 15px rgba(26, 58, 107, 0.08);
}

.ahi-enquiry-dealer-card h4 {
    margin: 0 0 8px 0;
    color: #1a3a6b;
    font-size: 16px;
    font-weight: 600;
}

.ahi-enquiry-dealer-card p {
    margin: 4px 0;
    font-size: 13px;
    color: #4a5a6a;
}

.ahi-enquiry-dealer-card p strong {
    display: inline-block;
    min-width: 60px;
    color: #1a2a3a;
    font-weight: 600;
}

.ahi-enquiry-dealer-card a {
    color: #1a3a6b;
    text-decoration: none;
}

.ahi-enquiry-dealer-card a:hover {
    text-decoration: underline;
}

/* Hide pincode from selected dealer card */
.ahi-enquiry-dealer-card .pincode-display,
.ahi-enquiry-dealer-card .dealer-pincode {
    display: none !important;
}

/* Response Messages */
.ahi-enquiry-response {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 13px;
}

.ahi-enquiry-response.success {
    background: #e6f7e6;
    color: #1a7a34;
    border: 1px solid #b8e6b8;
}

.ahi-enquiry-response.error {
    background: #fde8e8;
    color: #c0392b;
    border: 1px solid #f5c6c6;
}

/* Footer */
.ahicapp-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.ahicapp-privacy-check {
    flex: 1;
    min-width: 240px;
}

.ahicapp-privacy-check label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #4a5a6a;
    cursor: pointer;
}

.ahicapp-privacy-check input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: #1a3a6b;
    cursor: pointer;
}

.ahicapp-privacy-check .consent-text a {
    color: #1a3a6b;
    text-decoration: underline;
}

.ahicapp-submit-button {
    background: linear-gradient(135deg, #1a3a6b 0%, #0f2a4f 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 58, 107, 0.25);
}

.ahicapp-submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(26, 58, 107, 0.35);
}

.ahicapp-submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Ultra Wide Screens (1800-2000px) */
@media (min-width: 1801px) and (max-width: 2000px) {
    .ahi-dealer-wrap {
        max-width: 1700px;
        margin: 45px auto;
        min-height: 700px;
    }

    .ahi-left {
        width: 58%;
        min-height: 600px;
    }

    .ahi-right {
        min-width: 42%;
    }

    .ahi-container {
        max-width: 1700px;
        padding: 40px 55px;
    }

    .ahi-enquiry-panel {
        padding: 40px 45px;
    }

    #ahi_dealer_list {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
        padding: 14px;
    }
}

/* Extra Large Screens (1600-1800px) */
@media (min-width: 1601px) and (max-width: 1800px) {
    .ahi-dealer-wrap {
        max-width: 1550px;
        margin: 40px auto;
        min-height: 650px;
    }

    .ahi-left {
        width: 58%;
        min-height: 550px;
    }

    .ahi-right {
        min-width: 42%;
    }

    .ahi-container {
        max-width: 1550px;
        padding: 38px 50px;
    }

    .ahi-enquiry-panel {
        padding: 38px 42px;
    }

    #ahi_dealer_list {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
        padding: 14px;
    }
}

/* Large Screens (1441-1600px) */
@media (min-width: 1441px) and (max-width: 1600px) {
    .ahi-dealer-wrap {
        max-width: 1400px;
        margin: 38px auto;
        min-height: 650px;
    }

    .ahi-left {
        width: 58%;
        min-height: 550px;
    }

    .ahi-right {
        min-width: 42%;
    }

    .ahi-container {
        max-width: 1400px;
        padding: 35px 45px;
    }

    .ahi-enquiry-panel {
        padding: 35px 40px;
    }

    #ahi_dealer_list {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 12px;
    }
}

/* 1440px Screens */
@media (max-width: 1440px) {
    .ahi-dealer-wrap {
        max-width: 1340px;
        margin: 35px auto;
        min-height: 600px;
    }

    .ahi-left {
        width: 60%;
        min-height: 500px;
        max-height: none;
    }

    .ahi-right {
        min-width: 40%;
        max-height: none;
    }

    .ahi-container {
        max-width: 1340px;
        padding: 32px 40px;
    }

    .ahi-enquiry-panel {
        padding: 32px 38px;
    }
}

/* Standard Desktop (1201-1400px) */
@media (min-width: 1201px) and (max-width: 1400px) {
    .ahi-dealer-wrap {
        max-width: 1200px;
        margin: 30px auto;
        min-height: 580px;
    }

    .ahi-left {
        width: 60%;
        min-height: 480px;
        max-height: none;
    }

    .ahi-right {
        min-width: 40%;
        max-height: none;
    }

    .ahi-container {
        max-width: 1200px;
        padding: 30px 35px;
    }

    .ahi-enquiry-panel {
        padding: 30px 35px;
    }

    #ahi_dealer_list {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 12px;
    }
}

/* Desktop (1025-1200px) */
@media (min-width: 1025px) and (max-width: 1200px) {
    .ahi-dealer-wrap {
        max-width: 1100px;
        margin: 25px auto;
        min-height: 550px;
    }

    .ahi-left {
        width: 58%;
        min-height: 450px;
        max-height: none;
    }

    .ahi-right {
        min-width: 42%;
        max-height: none;
    }

    .ahi-enquiry-panel {
        padding: 28px 30px;
    }

    .ahi-container {
        max-width: 1100px;
        padding: 28px 32px;
    }

    #ahi_dealer_list {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 10px;
    }
}

/* Tablet Landscape (769-1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .ahi-dealer-wrap {
        flex-direction: column;
        max-width: 100%;
        margin: 20px 20px;
        border-radius: 12px;
        min-height: auto;
    }

    .ahi-left {
        width: 100%;
        min-height: 300px;
        max-height: 450px;
        border-right: none;
        border-bottom: 1px solid #e8ecf1;
    }

    .ahi-right {
        width: 100%;
        min-width: unset;
        max-height: 650px;
    }

    .ahi-enquiry-panel {
        padding: 25px 30px;
    }

    .ahi-container {
        max-width: 100%;
        padding: 28px 30px;
        margin: 0 20px;
    }

    .ahi-filters {
        flex-wrap: wrap;
    }

    .ahi-pincode-wrap {
        min-width: 200px;
        flex: 1;
    }

    #ahi_dealer_list {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 10px;
    }
}

/* Tablet Portrait (481-768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .ahi-dealer-wrap {
        flex-direction: column;
        max-width: 100%;
        margin: 15px 15px;
        border-radius: 10px;
        min-height: auto;
    }

    .ahi-left {
        width: 100%;
        min-height: 250px;
        max-height: 380px;
        border-right: none;
        border-bottom: 1px solid #e8ecf1;
    }

    .ahi-right {
        width: 100%;
        min-width: unset;
        max-height: 550px;
    }

    .ahi-enquiry-panel {
        padding: 20px 24px;
    }

    .ahi-container {
        max-width: 100%;
        padding: 22px 24px;
        margin: 0 15px;
        border-radius: 12px;
    }

    .ahi-filters-header h2 {
        font-size: 20px;
    }

    .ahi-filters {
        flex-direction: column;
        gap: 10px;
    }

    .ahi-pincode-wrap {
        width: 100%;
        min-width: unset;
    }

    .ahi-pincode-input {
        padding: 12px 12px 12px 18px;
        font-size: 14px;
    }

    .ahi-btn {
        width: 100%;
        padding: 12px 20px;
        justify-content: center;
    }

    #ahi_dealer_list {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
    }

    #ahi_dealer_list .dealer-card {
        padding: 14px 16px;
    }

    #ahi_dealer_list .dealer-card .dealer-title {
        font-size: 14px;
    }

    #ahi_dealer_list .dealer-card .dealer-field {
        font-size: 12px;
    }

    .ahicapp-heading {
        font-size: 20px;
    }

    .ahicapp-row {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 12px;
    }

    .ahicapp-row.ahicapp-full {
        flex-direction: column;
    }

    .ahicapp-select-row {
        flex-direction: column;
        align-items: stretch;
    }

    .ahicapp-change-dealer-btn {
        width: 100%;
        text-align: center;
        padding: 10px;
    }

    .ahi-enquiry-selected-dealer .ahi-enquiry-dealer-card {
        padding: 14px 16px;
    }

    .ahicapp-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .ahicapp-submit-button {
        width: 100%;
        text-align: center;
        padding: 14px;
    }

    .dealer-wrapper {
        padding: 14px 12px;
    }

    .ahi-dealer-search-input {
        padding: 12px 14px !important;
        font-size: 13px;
    }

    .ahi-dealer-search-btn {
        width: 46px !important;
        height: 46px !important;
    }

    .ahi-dealer-search-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* Mobile (320-480px) */
@media (max-width: 480px) {
    .ahi-top-search {
        padding: 20px 0 25px;
    }

    .ahi-dealer-wrap {
        flex-direction: column;
        max-width: 100%;
        width: 100%;
        margin: 10px 0;
        border-radius: 8px;
        min-height: auto;
    }

    .ahi-left {
        width: 100%;
        min-height: 200px;
        max-height: 320px;
        border-right: none;
        border-bottom: 1px solid #e8ecf1;
    }

    .ahi-right {
        width: 100%;
        min-width: unset;
        max-height: 500px;
    }

    .ahi-enquiry-panel {
        padding: 16px;
    }

    .ahi-container {
        max-width: 100%;
        width: 100%;
        padding: 16px 12px;
        margin: 0;
        border-radius: 10px;
    }

    .ahi-filters-header h2 {
        font-size: 17px;
    }

    .ahi-filters-header .ahi-sub {
        font-size: 13px;
    }

    .ahi-filters {
        flex-direction: column;
        gap: 8px;
    }

    .ahi-pincode-wrap {
        width: 100%;
        min-width: unset;
    }

    .ahi-pincode-input {
        padding: 11px 11px 11px 16px;
        font-size: 13px;
    }

    .ahi-btn {
        width: 100%;
        padding: 11px 16px;
        justify-content: center;
        font-size: 13px;
    }

    #ahi_dealer_list {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 8px;
        width: 100%;
    }

    #ahi_dealer_list .dealer-card {
        padding: 12px 14px;
        width: 100%;
    }

    #ahi_dealer_list .dealer-card .dealer-title {
        font-size: 13px;
    }

    #ahi_dealer_list .dealer-card .dealer-field {
        font-size: 11px;
    }

    #ahi_dealer_list .dealer-card .dealer-field strong {
        min-width: 35px;
    }

    .ahicapp-heading {
        font-size: 18px;
    }

    .ahicapp-subtitle {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .ahicapp-row {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 10px;
    }

    .ahicapp-row.ahicapp-full {
        flex-direction: column;
    }

    .ahicapp-select-row {
        flex-direction: column;
        align-items: stretch;
    }

    .ahicapp-change-dealer-btn {
        width: 100%;
        text-align: center;
        padding: 8px;
        font-size: 12px;
    }

    .ahi-enquiry-selected-dealer .ahi-enquiry-dealer-card {
        padding: 12px 14px;
    }

    .ahi-enquiry-dealer-card h4 {
        font-size: 14px;
    }

    .ahi-enquiry-dealer-card p {
        font-size: 12px;
    }

    .ahicapp-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .ahicapp-submit-button {
        width: 100%;
        text-align: center;
        padding: 12px;
        font-size: 13px;
    }

    .dealer-wrapper {
        padding: 12px 10px;
    }

    .ahi-dealer-search-input {
        padding: 10px 12px !important;
        font-size: 12px;
    }

    .ahi-dealer-search-btn {
        width: 40px !important;
        height: 40px !important;
    }

    .ahi-dealer-search-btn svg {
        width: 16px;
        height: 16px;
    }

    .ahi-results-count .results-info {
        font-size: 12px;
    }
}

/* Very Small Mobile (under 320px) */
@media (max-width: 320px) {
    .ahi-container {
        padding: 12px 8px;
        margin: 0;
        width: 100%;
    }

    .ahi-dealer-wrap {
        margin: 6px 0;
        width: 100%;
    }

    .ahi-left {
        min-height: 150px;
        max-height: 280px;
    }

    .ahi-right {
        max-height: 450px;
    }

    .ahi-enquiry-panel {
        padding: 12px;
    }

    .ahi-filters-header h2 {
        font-size: 15px;
    }

    .ahi-btn {
        font-size: 12px;
        padding: 10px 12px;
    }

    #ahi_dealer_list {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 6px;
    }

    #ahi_dealer_list .dealer-card {
        padding: 10px 12px;
    }

    #ahi_dealer_list .dealer-card .dealer-title {
        font-size: 12px;
    }

    #ahi_dealer_list .dealer-card .dealer-field {
        font-size: 10px;
    }

    .ahicapp-heading {
        font-size: 16px;
    }
}

/* ============================================================
   SCROLLBAR STYLING
   ============================================================ */
.ahi-left::-webkit-scrollbar {
    width: 5px;
}

.ahi-left::-webkit-scrollbar-track {
    background: #f1f3f5;
    border-radius: 3px;
}

.ahi-left::-webkit-scrollbar-thumb {
    background: #c1c9d4;
    border-radius: 3px;
}

.ahi-left::-webkit-scrollbar-thumb:hover {
    background: #a0abb8;
}

/* ============================================================
   MAP POPUP STYLES
   ============================================================ */
.dealer-map-popup .leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.dealer-popup-header {
    background: linear-gradient(135deg, #1a3a6b 0%, #0f2a4f 100%);
    color: #fff;
    padding: 14px 18px;
}

.dealer-popup-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.dealer-popup-body {
    padding: 16px 18px;
    max-height: 350px;
    overflow-y: auto;
}

.dealer-popup-field {
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 6px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f2f5;
}

.dealer-popup-field:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.dealer-popup-label {
    min-width: 80px;
    font-weight: 600;
    color: #1a2a3a;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.dealer-popup-value {
    flex: 1;
    color: #4a5a6a;
    word-wrap: break-word;
    font-size: 13px;
    line-height: 1.5;
}

.dealer-popup-link {
    color: #1a3a6b;
    text-decoration: none;
    font-weight: 500;
}

.dealer-popup-link:hover {
    text-decoration: underline;
}

.dealer-popup-services {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.dealer-popup-service-badge {
    display: inline-block;
    padding: 3px 10px;
    background: #e8ecf1;
    color: #1a2a3a;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 500;
    text-transform: capitalize;
}

/* ============================================================
   WARRANTY AGENT SPECIFIC FIXES
   ============================================================ */
.ahi-warranty-wrap .ahi-enquiry-panel {
    padding: 30px 35px;
}

.ahi-warranty-wrap .ahicapp-form-wrap {
    max-width: 100%;
}

.ahi-warranty-wrap .dealer-card {
    padding: 18px 18px;
}

.ahi-warranty-wrap .dealer-card .dealer-header {
    padding-left: 0;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dealer-card {
    animation: fadeInUp 0.35s ease forwards;
}

.dealer-card:nth-child(2) { animation-delay: 0.05s; }
.dealer-card:nth-child(3) { animation-delay: 0.1s; }
.dealer-card:nth-child(4) { animation-delay: 0.15s; }
.dealer-card:nth-child(5) { animation-delay: 0.2s; }

.ahi-enquiry-dealer-card {
    animation: fadeInUp 0.3s ease;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.ahi-text-center {
    text-align: center;
}

.ahi-mt-10 {
    margin-top: 10px;
}

.ahi-mb-10 {
    margin-bottom: 10px;
}

.ahi-text-muted {
    color: #6b7a8a;
}

.ahi-text-primary {
    color: #1a3a6b;
}

/* ============================================================
   GLOBAL LOCATIONS SECTION
   ============================================================ */
.ahi-global-locations {
    padding: 40px 0;
    background: #fafbfc;
}

.ahi-global-title {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
    color: #0a1a2f;
    text-align: center;
}

.ahi-global-subtitle {
    margin: 0 0 30px;
    font-size: 15px;
    color: #6b7a8a;
    text-align: center;
}

.ahi-location-card {
    background: #ffffff;
    border: 1px solid #e8ecf1;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.ahi-location-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-color: #d5dce4;
}

.ahi-location-card-body {
    padding: 20px;
}

.ahi-location-card-name {
    font-size: 18px;
    font-weight: 600;
    color: #0a1a2f;
    margin-bottom: 8px;
}

.ahi-location-card-address {
    font-size: 14px;
    color: #4a5a6a;
    line-height: 1.6;
}

.ahi-location-card .ahi-connect-btn {
    background: #1a3a6b;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ahi-location-card .ahi-connect-btn:hover {
    background: #0f2a4f;
    transform: translateY(-2px);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.ahi-empty-state {
    padding: 40px 20px;
    text-align: center;
    color: #6b7a8a;
}

.ahi-empty-state .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    opacity: 0.5;
}

.ahi-empty-state h3 {
    font-size: 18px;
    color: #1a2a3a;
    margin-bottom: 8px;
}

.ahi-empty-state p {
    font-size: 14px;
    margin-bottom: 16px;
}

/* ============================================================
   LOADING STATE
   ============================================================ */
.ahi-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    gap: 12px;
    color: #6b7a8a;
}

.ahi-loading .spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #e8ecf1;
    border-top-color: #1a3a6b;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}