:root {
    --primary: #009999;
    --primary-dark: #007777;
    --primary-light: #33cccc;
    --secondary: #f8f9fa;
    --accent: #28a745;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark: #343a40;
    --text-dark: #212529;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
    font-size: 1rem;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-accent {
    background: var(--accent);
}

.btn-accent:hover {
    background: #218838;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: var(--dark);
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 15px auto 0;
}

/* Corporate Header */
.corporate-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    width: 100%;
}

.logo img {
    max-height: 50px;
    width: auto;
}

.corporate-nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

.corporate-nav li {
    position: relative;
}

.corporate-nav li::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 3px;
    background: #ff6b6b;
    border-radius: 2px;
    opacity: 0.7;
    transition: var(--transition);
}

.corporate-nav li:hover::before {
    opacity: 1;
    height: 80%;
}

.corporate-nav a {
    font-weight: 500;
    transition: var(--transition);
    color: var(--dark);
    text-decoration: none;
    font-size: 1rem;
    padding: 5px 0;
}

.corporate-nav a:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Image Slider Hero Section with Gradient */
.image-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

/* Gradient overlay for slides */
.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.2) 100%
    );
    z-index: 1;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    max-width: 600px;
    padding: 40px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    margin-left: 10%;
    border-radius: 8px;
    position: relative;
    z-index: 2;
}

.slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: white;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* About Preview */
.about-preview {
    padding: 80px 0;
    background: var(--white);
    width: 100%;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.about-text p {
    margin-bottom: 20px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--light-gray);
    border-radius: 8px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--dark);
}

.about-image img {
    border-radius: 8px;
    box-shadow: var(--shadow);
    width: 100%;
    height: auto;
    max-width: 100%;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background: var(--light-gray);
    width: 100%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.service-card.animated {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    background: var(--primary);
    color: var(--white);
    font-size: 2rem;
    padding: 25px;
    text-align: center;
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    margin-bottom: 15px;
    color: var(--dark);
    font-size: 1.3rem;
}

.service-content p {
    color: #666;
    font-size: 0.95rem;
}

/* Corporate Brands - UPDATED FOR BETTER LOGO DISPLAY */
.corporate-brands {
    padding: 80px 0;
    background: var(--white);
    width: 100%;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 per row on desktop */
    gap: 20px;
    align-items: stretch;
}

.brand-card {
    background: var(--white);
    border-radius: 8px;
    padding: 0;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 180px;
    position: relative;
    overflow: hidden;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-light);
}

.brand-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    text-decoration: none;
    color: inherit;
    height: 100%;
    width: 100%;
}

.brand-logo {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    width: 100%;
}

.brand-logo img {
    max-height: 60px;
    max-width: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: var(--transition);
}

.brand-card:hover .brand-logo img {
    transform: scale(1.05);
}

.brand-info {
    width: 100%;
}

.brand-name {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark);
    font-size: 0.95rem;
    line-height: 1.3;
}

.brand-products {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
}

/* Installer Section */
.installer-section {
    padding: 80px 0;
    background: var(--light-gray);
    width: 100%;
}

.installer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.installer-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.installer-features {
    margin: 25px 0;
}

.installer-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.installer-feature i {
    color: var(--accent);
    font-size: 1rem;
}

.installer-form {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.installer-form h3 {
    margin-bottom: 10px;
    color: var(--dark);
    font-size: 1.4rem;
}

.installer-form p {
    margin-bottom: 20px;
    color: #666;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 153, 153, 0.2);
}

/* Pricing Table Styles */
.pricing-table-container {
    position: relative;
    margin-top: 20px;
}

.pricing-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    box-shadow: var(--shadow);
    background: var(--white);
}

.pricing-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.pricing-table th,
.pricing-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.pricing-table th {
    background: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

.pricing-table tr:last-child td {
    border-bottom: none;
}

.pricing-table .highlight {
    background: rgba(40, 167, 69, 0.1);
    font-weight: 600;
}

/* Horizontal scroll indicator */
.pricing-table::-webkit-scrollbar {
    height: 6px;
}

.pricing-table::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.pricing-table::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.pricing-table::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.pricing-table-container:after {
    content: '→';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
    opacity: 0.7;
    display: none;
}

/* Testimonials */
.testimonials-section {
    padding: 80px 0;
    background: var(--white);
    width: 100%;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.7;
}

.testimonial-text:before {
    content: '"';
    font-size: 3rem;
    color: var(--primary-light);
    position: absolute;
    top: -15px;
    left: -10px;
    opacity: 0.3;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
}

.author-info h4 {
    margin-bottom: 5px;
    font-size: 1rem;
}

.author-info p {
    font-size: 0.85rem;
    color: #666;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(rgba(0, 153, 153, 0.9), rgba(0, 119, 119, 0.9)), url('images/cta-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    width: 100%;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Footer */
.corporate-footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 20px;
    width: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    max-height: 50px;
    margin-bottom: 15px;
    width: auto;
}

.footer-section p {
    margin-bottom: 20px;
    color: #aaa;
    font-size: 0.95rem;
}

.footer-heading {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.footer-nav {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    color: #aaa;
    transition: var(--transition);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-nav a:hover {
    color: var(--primary);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.contact-info i {
    color: var(--primary);
    width: 20px;
    font-size: 0.9rem;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
    text-decoration: none;
    font-size: 0.9rem;
}

.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #aaa;
    font-size: 0.9rem;
}

/* ==================== */
/* MODAL STYLES - FIXED */
/* ==================== */

.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
    padding: 20px;
}

.modal-content {
    background: var(--white);
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: slideUp 0.3s;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-header h3 {
    color: var(--dark);
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    transition: var(--transition);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: var(--dark);
    background: #f8f9fa;
}

.modal-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-body p {
    margin-bottom: 20px;
    color: #666;
    text-align: center;
    font-size: 1rem;
    line-height: 1.5;
    width: 100%;
}

.account-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
    align-items: center;
}

.account-options .btn {
    width: 70%;
    padding: 12px;
    font-size: 1rem;
    border-radius: 6px;
}

/* Form Styles in Modals */
#modalLoginForm,
#installerApplicationForm {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#modalLoginForm .form-group,
#installerApplicationForm .form-group {
    margin-bottom: 20px;
    width: 70%;
}

#modalLoginForm .form-control,
#installerApplicationForm .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
    box-sizing: border-box;
}

#modalLoginForm .form-control:focus,
#installerApplicationForm .form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 153, 153, 0.2);
}

/* Textarea Specific Fix */
#installerApplicationForm textarea.form-control {
    resize: vertical;
    min-height: 100px;
    max-height: 200px;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    line-height: 1.5;
}

/* Select Specific Fix */
#installerApplicationForm select.form-control {
    appearance: menulist;
    width: 100%;
    box-sizing: border-box;
}

/* Modal Form Buttons */
#modalLoginForm .btn,
#installerApplicationForm .btn {
    width: 70%;
    padding: 12px;
    font-size: 1rem;
    margin-top: 10px;
    border-radius: 6px;
}

/* Modal Links */
.modal-links {
    text-align: center;
    margin-top: 15px;
    width: 100%;
}

.modal-links a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.modal-links a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Application Form Additional Info */
.application-info {
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    width: 70%;
}

.application-info p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ==================== */
/* MOBILE RESPONSIVENESS FIXES */
/* ==================== */

@media (max-width: 1200px) {
    .brands-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 per row on smaller desktop */
    }
}

@media (max-width: 992px) {
    .about-content, .installer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        order: -1;
    }
    
    .image-slider {
        height: 500px;
    }
    
    .slide-content {
        margin-left: 5%;
        padding: 30px;
    }
    
    .slide-content h2 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 1.1rem;
    }
    
    .modal-content {
        max-width: 90%;
    }
    
    .brands-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 per row on tablet */
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        gap: 15px;
        padding: 10px 0;
    }
    
    .corporate-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    /* Increased mobile slider height */
    .image-slider {
        height: 450px;
    }
    
    .slide-content {
        margin: 0 5%;
        padding: 20px;
    }
    
    .slide-content h2 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .slide-content p {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .corporate-header {
        top: 0;
        position: sticky;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .modal-content {
        max-width: 95%;
        margin: 10px;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    /* Installer Section Mobile Optimization */
    .installer-section {
        padding: 50px 0;
    }
    
    .installer-content {
        gap: 30px;
    }
    
    .installer-text h2 {
        font-size: 1.6rem;
    }
    
    .installer-features {
        margin: 20px 0;
    }
    
    .installer-feature {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .installer-feature i {
        font-size: 0.9rem;
        min-width: 18px;
    }
    
    .installer-form {
        padding: 20px;
        margin-top: 20px;
        width: 98%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .installer-form h3 {
        font-size: 1.2rem;
    }
    
    .installer-form p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .form-control {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    /* Mobile form container adjustments */
    .installer-form-container {
        width: 98% !important;
        margin: 0 auto;
    }
    
    .mobile-form-group {
        width: 70% !important;
        margin: 0 auto 20px !important;
    }
    
    .mobile-form-control {
        width: 100% !important;
    }
    
    /* Pricing Table Mobile */
    .pricing-table-container:after {
        display: block;
    }
    
    .pricing-table table {
        min-width: 500px;
    }
    
    .pricing-table th,
    .pricing-table td {
        padding: 10px 8px;
        font-size: 0.8rem;
    }
    
    .pricing-table th {
        font-size: 0.85rem;
        padding: 12px 8px;
    }
    
    /* Adjust form width for tablets */
    #modalLoginForm .form-group,
    #installerApplicationForm .form-group,
    .account-options .btn,
    #modalLoginForm .btn,
    #installerApplicationForm .btn,
    .application-info {
        width: 85%;
    }
    
    /* Application Form Mobile */
    #installerApplicationForm .form-group {
        width: 85%;
        margin-bottom: 15px;
    }
    
    #installerApplicationForm .form-control {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    #installerApplicationForm textarea.form-control {
        min-height: 80px;
        max-height: 150px;
        font-size: 0.9rem;
    }
    
    #installerApplicationForm .btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .brands-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 per row on mobile */
        gap: 15px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .image-slider {
        height: 400px;
    }
    
    .slide-content {
        margin: 0 5%;
        padding: 15px;
    }
    
    .slide-content h2 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .slide-content p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .services-grid, .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 5px;
        width: calc(100% - 10px);
    }
    
    .installer-form {
        padding: 15px;
    }
    
    .account-options .btn {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    /* Installer Section Small Mobile */
    .installer-text h2 {
        font-size: 1.4rem;
    }
    
    .installer-text h3 {
        font-size: 1.2rem;
        margin-top: 25px;
    }
    
    .installer-feature {
        font-size: 0.85rem;
    }
    
    /* Pricing Table Small Mobile */
    .pricing-table table {
        min-width: 450px;
    }
    
    .pricing-table th,
    .pricing-table td {
        padding: 8px 6px;
        font-size: 0.75rem;
    }
    
    .pricing-table th {
        font-size: 0.8rem;
        padding: 10px 6px;
    }
    
    /* Full width forms on mobile */
    #modalLoginForm .form-group,
    #installerApplicationForm .form-group,
    .account-options .btn,
    #modalLoginForm .btn,
    #installerApplicationForm .btn,
    .application-info {
        width: 100%;
    }
    
    /* Application Form Small Mobile */
    #installerApplicationForm .form-control {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    #installerApplicationForm textarea.form-control {
        min-height: 70px;
        max-height: 120px;
        font-size: 0.85rem;
    }
    
    .application-info {
        width: 100%;
        padding: 8px;
    }
    
    .application-info p {
        font-size: 0.8rem;
    }
    
    /* Brands grid for small mobile */
    .brands-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 per row on very small screens */
        gap: 12px;
    }
}

/* Extra Small Devices */
@media (max-width: 400px) {
    .image-slider {
        height: 350px;
    }
    
    .slide-content {
        padding: 12px;
    }
    
    .slide-content h2 {
        font-size: 1.3rem;
    }
    
    .slide-content p {
        font-size: 0.85rem;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .form-control {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .logo img {
        max-height: 40px;
    }
    
    /* Installer Section Ultra Small */
    .installer-text h2 {
        font-size: 1.3rem;
    }
    
    .installer-text h3 {
        font-size: 1.1rem;
    }
    
    .installer-feature {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }
    
    .installer-feature i {
        font-size: 0.8rem;
    }
    
    /* Pricing Table Ultra Small */
    .pricing-table table {
        min-width: 400px;
    }
    
    .pricing-table th,
    .pricing-table td {
        padding: 6px 4px;
        font-size: 0.7rem;
    }
    
    .pricing-table th {
        font-size: 0.75rem;
        padding: 8px 4px;
    }
    
    /* Forms Ultra Small */
    .installer-form {
        padding: 12px;
    }
    
    .installer-form h3 {
        font-size: 1rem;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-group label {
        font-size: 0.8rem;
    }
    
    .form-control {
        padding: 6px 8px;
        font-size: 0.8rem;
    }
    
    #installerApplicationForm .form-control {
        padding: 6px 8px;
        font-size: 0.8rem;
    }
    
    /* Brands grid for ultra small screens */
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .brand-card {
        min-height: 150px;
    }
    
    .brand-logo {
        height: 60px;
    }
    
    .brand-logo img {
        max-height: 50px;
        max-width: 100px;
    }
    
    .brand-name {
        font-size: 0.85rem;
    }
    
    .brand-products {
        font-size: 0.75rem;
    }
}

/* Deals Banner Mobile Optimization */
@media (max-width: 768px) {
    .deals-banner {
        padding: 6px 0;
        font-size: 0.8rem;
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    .deals-banner {
        padding: 5px 0;
        font-size: 0.75rem;
        line-height: 1.2;
    }
}