:root{
  --accent: #0b6efd;
  --panel-bg: #ffffff;
  --shadow: 0 8px 28px rgba(11, 110, 253, 0.12);
  --bs-modal-bg: white;
  --muted: #6b7280;
  --radius: 12px;
  --glass: rgba(255,255,255,0.75);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color-scheme: light;
}

/* General Body Styles */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    background-color: #f4f7fa;
    color: #333;
    line-height: 1.6;
}

/* Search Bar */
.search-bar {
    position: relative;
}

.search-bar input {
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 35px 8px 15px;
    font-size: 0.9em;
    width: 200px;
    transition: width 0.3s, box-shadow 0.3s;
}

.search-bar input:focus {
    width: 250px;
    outline: none;
    border-color: #0052cc;
    box-shadow: 0 0 5px rgba(0, 82, 204, 0.2);
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

@keyframes flashHighlight {
    0% {
        box-shadow: 0 0 0 rgba(255, 215, 0, 0);
    }

    50% {
        box-shadow: 0 0 12px rgba(255, 215, 0, 0.9);
    }

    100%{
        box-shadow: 0 0 0 rgba(255, 215, 0, 0);
    }
}

.brand-item.flash {
    animation: flashHighlight 1s ease;
}

.header{
    padding-top: 30px;
    text-align: center;
}

.alphabet-filter-container{
    text-align: center;
    background-color: rgb(233, 238, 238);
    padding-top: 10px;
    padding-bottom: 10px;
    width: 85%;
    margin: 5%;
    margin: 30px auto 0 auto;
    justify-content: center;
}

.alphabet-filter-container button{
    padding: 5px 10px;
    margin-right: 5px;
    border:none;
    background-color: rgb(233, 238, 238);
}

.alphabet-filter-container button:hover{
    background-color: rgb(38, 102, 204);
    color: white;
}

#brands-grid{
    display: flex;
    flex-wrap: wrap;
    /* width: 85%;
    margin-left: 97px;
    margin-top: 20px;
    padding-left: 105px; */
    gap: 24px;
    width: 85%;
    margin: 20px auto;
    padding: 0;
    justify-content: center;
    position: relative;
    padding-bottom: 100px;
}

.brand-item{
    margin-right: 40px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px;
}

/* --- Inquiry Toggle Button (from the main page) --- */
.inquiry-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background:linear-gradient(180deg,var(--accent), #1d2b3a);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ------------------------------------- */
/* --- MODAL CENTERING STYLES --- */
/* ------------------------------------- */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--bs-modal-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 550px;
}

/* ------------------------------------- */
/* --- MODAL INNER STYLES (Based on Video) --- */
/* ------------------------------------- */

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5em;
    color: #333;
}

.close-btn {
    font-size: 1.5em;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover {
    color: #666;
}

.modal-subtitle {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 20px;
}

/* Form Styling */
form {
    display: flex;
    flex-direction: column;
}

label {
    font-size: 0.9em;
    color: #555;
    margin-top: 10px;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 30px;
    font-size: 1em;
}

select {
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23000000%22%20d%3D%22M287%20188.7L154.5%2056.2c-4.4-4.4-11.4-4.4-15.8%200L6.7%20188.7c-4.4%204.4-4.4%2011.4%200%2015.8l15.8%2015.8c4.4%204.4%2011.4%204.4%2015.8%200l106.2-106.2L255.4%20220.3c4.4%204.4%2011.4%204.4%2015.8%200l15.8-15.8c4.4-4.4%204.4-11.4%200-15.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    background-size: 12px;
    padding-right: 30px;
}

.modal-footer-text {
    font-size: 0.75em;
    color: #999;
    margin-top: 10px;
    margin-bottom: 15px;
}

.submit-button {
    background-color: #007bff;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
}

.submit-button:hover {
    background-color: #0056b3;
}
/* ============================================ */
/* RESPONSIVE MEDIA QUERIES */
/* ============================================ */

/* Extra Small Devices (320px - 480px) - Mobile Phones */
@media (max-width: 480px) {
    .header {
        padding-top: 15px;
    }
    
    .header h1 {
        font-size: 1.5em;
        margin-bottom: 10px;
    }
    
    .header p {
        font-size: 0.85em;
        padding: 0 10px;
    }
    
    .alphabet-filter-container {
        width: 95%;
        padding: 8px 5px;
        margin-top: 20px;
    }
    
    .alphabet-filter-container button {
        padding: 4px 6px;
        margin: 2px;
        font-size: 0.75em;
    }
    
    #brands-grid {
        width: 95%;
        margin-left: 0;
        padding-left: 0;
        justify-content: center;
        margin: 15px auto;
    }
    
    .brand-item {
        margin: 5px;
        width: 100%;
        max-width: 140px;
    }
    
    .brand-item img {
        width: 100%;
        max-width: 140px;
        height: auto;
    }
    
    .inquiry-button {
        bottom: 15px;
        right: 15px;
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .modal-content {
        width: 95%;
        padding: 15px;
    }
    
    .modal-header h2 {
        font-size: 1.2em;
    }
}

/* Small Devices (481px - 767px) - Larger Mobile Phones & Small Tablets */
@media (min-width: 481px) and (max-width: 767px) {
    .header {
        padding-top: 20px;
    }
    
    .header h1 {
        font-size: 1.8em;
    }
    
    .header p {
        font-size: 0.9em;
    }
    
    .alphabet-filter-container {
        width: 92%;
        padding: 10px 8px;
        margin-top: 25px;
    }
    
    .alphabet-filter-container button {
        padding: 5px 8px;
        margin: 3px;
        font-size: 0.85em;
    }
    
    #brands-grid {
        width: 92%;
        margin-left: 0;
        padding-left: 0;
        justify-content: center;
        margin: 20px auto;
    }
    
    .brand-item {
        margin: 8px;
        width: calc(50% - 16px);
        max-width: 150px;
    }
    
    .brand-item img {
        width: 100%;
        height: auto;
    }
    
    .inquiry-button {
        bottom: 18px;
        right: 18px;
        padding: 9px 18px;
        font-size: 15px;
    }
    
    .modal-content {
        width: 90%;
        max-width: 400px;
    }
}

/* Medium Devices (768px - 991px) - Tablets */
@media (min-width: 768px) and (max-width: 991px) {
    .header {
        padding-top: 25px;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .alphabet-filter-container {
        width: 88%;
        margin-top: 30px;
    }
    
    .alphabet-filter-container button {
        padding: 6px 10px;
        margin: 3px;
        font-size: 0.9em;
    }
    
    #brands-grid {
        width: 88%;
        margin-left: 0;
        padding-left: 0;
        justify-content: center;
        margin: 20px auto;
    }
    
    .brand-item {
        margin: 10px;
        width: calc(33.33% - 20px);
        max-width: 150px;
    }
    
    .brand-item img {
        width: 100%;
        height: auto;
    }
    
    .search-bar input {
        width: 220px;
    }
    
    .search-bar input:focus {
        width: 270px;
    }
}

/* Large Devices (992px - 1199px) - Desktops */
@media (min-width: 992px) and (max-width: 1199px) {
    .header {
        padding-top: 28px;
    }
    
    .alphabet-filter-container {
        width: 87%;
    }
    
    .alphabet-filter-container button {
        padding: 5px 10px;
        font-size: 0.95em;
    }
    
    #brands-grid {
        width: 87%;
        margin-left: 50px;
        padding-left: 80px;
    }
    
    .brand-item {
        margin: 10px 30px 12px 8px;
    }
    
    .brand-item img {
        max-width: 150px;
    }
}

/* Extra Large Devices (1200px - 1440px) - Large Desktops */
@media (min-width: 1200px) and (max-width: 1440px) {
    .header {
        padding-top: 30px;
    }
    
    .alphabet-filter-container {
        width: 85%;
    }
    
    #brands-grid {
        width: 85%;
        margin-left: 97px;
        padding-left: 105px;
    }
    
    .brand-item {
        margin-right: 40px;
        margin-bottom: 15px;
    }
}

/* Ultra Wide Screens (1441px+) */
@media (min-width: 1441px) {
    .header {
        padding-top: 35px;
    }
    
    .alphabet-filter-container {
        width: 80%;
    }
    
    #brands-grid {
        width: 80%;
        margin-left: auto;
        margin-right: auto;
        padding-left: 0;
        justify-content: center;
    }
    
    .brand-item {
        margin: 10px 25px;
    }
}

/* Landscape Orientation Adjustments for Mobile/Tablet */
@media (max-width: 991px) and (orientation: landscape) {
    .header {
        padding-top: 15px;
    }
    
    .header h1 {
        font-size: 1.6em;
        margin-bottom: 8px;
    }
    
    .header p {
        margin-bottom: 10px;
    }
    
    .alphabet-filter-container {
        padding: 8px;
    }
    
    .alphabet-filter-container button {
        padding: 4px 8px;
        margin: 2px;
    }
    
    #brands-grid {
        margin-top: 15px;
    }
    
    .brand-item {
        margin: 6px;
    }
}

/* Print Media Query */
@media print {
    .inquiry-button {
        display: none;
    }
    
    .alphabet-filter-container button {
        border: 1px solid #ccc;
    }
    
    body {
        background-color: white;
    }
}

.brand-item img {
    max-width: 80px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}


/* #loo{
    height: 80px;
    width: 80px;
} */