
        :root {
            --space-blue: #01203f;
            --carmine-pink: #e63743;
            --midnight-black: #000000;
            --pure-white: #ffffff;
            --seaweed: #00798f;
            --forest-green: #054338;
            --orange: #fe5001;
            --light-gray: #f8f9fa;
            --medium-gray: #e9ecef;
            --dark-gray: #6c757d;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background-color: var(--pure-white);
            color: var(--midnight-black);
            overflow-x: hidden;
        }

        /* Header & Navigation */
        header {
            background-color: var(--space-blue);
            color: var(--pure-white);
            padding: 1rem 2rem;
            position: sticky;
            width: 100%;
            top: 0;
            z-index: 1000;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        }

        .navbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .logo img {
            height: 40px;
            width: auto;
        }

        .logo-text {
            font-size: 1.5rem;
            font-weight: bold;
            letter-spacing: 0.5px;
        }

        .nav-links {
            display: flex;
            gap: 2rem;
        }

        .nav-links a {
            color: var(--pure-white);
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s ease;
            position: relative;
        }

        .nav-links a:hover {
            color: var(--carmine-pink);
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: -5px;
            left: 0;
            background-color: var(--carmine-pink);
            transition: width 0.3s ease;
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        .cta-buttons {
            display: flex;
            gap: 1rem;
        }

        .btn {
            padding: 0.7rem 1.5rem;
            border-radius: 30px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
            border: none;
            font-size: 1rem;
        }

        .btn-primary {
            background-color: var(--carmine-pink);
            color: var(--pure-white);
            border: 2px solid var(--carmine-pink);
        }

        .btn-primary:hover {
            background-color: transparent;
            color: var(--carmine-pink);
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(230, 55, 67, 0.3);
        }

        .btn-secondary {
            background-color: transparent;
            color: var(--pure-white);
            border: 2px solid var(--pure-white);
        }

        .btn-secondary:hover {
            background-color: var(--pure-white);
            color: var(--space-blue);
            transform: translateY(-3px);
        }

        /* Mobile Navigation Styles */
        .mobile-menu {
            display: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: white;
            z-index: 1001;
        }

        .mobile-nav {
            position: fixed;
            top: 0;
            right: -100%;
            width: 300px;
            height: 100vh;
            background-color: var(--space-blue);
            padding: 100px 2rem 2rem;
            transition: right 0.4s ease-in-out;
            z-index: 1000;
            box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        }

        .mobile-nav.active {
            right: 0;
        }

        .mobile-nav-links {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        .mobile-nav-links a {
            color: var(--pure-white);
            text-decoration: none;
            font-size: 1.2rem;
            padding: 0.8rem 1rem;
            border-radius: 8px;
            transition: all 0.3s ease;
        }

        .mobile-nav-links a:hover {
            background-color: rgba(255, 255, 255, 0.1);
            color: var(--carmine-pink);
            padding-left: 1.5rem;
        }

        .mobile-cta-buttons {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            margin-top: 2rem;
        }

        /* Overlay for mobile menu */
        .mobile-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 999;
            display: none;
        }

        .mobile-overlay.active {
            display: block;
        }

        /* Search Hero Section */
        .search-hero {
            background: linear-gradient(135deg, var(--space-blue) 0%, var(--seaweed) 100%);
            color: white;
            padding: 4rem 2rem;
            text-align: center;
        }

        .search-hero-content {
            max-width: 800px;
            margin: 0 auto;
        }

        .search-hero h1 {
            font-size: 2.8rem;
            margin-bottom: 1rem;
            line-height: 1.2;
        }

        .search-hero p {
            font-size: 1.2rem;
            margin-bottom: 2.5rem;
            opacity: 0.9;
        }

        /* Search Form */
        .search-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
        }

        .search-form {
            background-color: white;
            border-radius: 10px;
            padding: 2.5rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            margin-top: -50px;
            position: relative;
            z-index: 100;
        }

        .form-title {
            text-align: center;
            margin-bottom: 2rem;
        }

        .form-title h2 {
            font-size: 1.8rem;
            color: var(--space-blue);
            margin-bottom: 0.5rem;
        }

        .form-title p {
            color: var(--dark-gray);
        }

        .search-fields {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr auto;
            gap: 1.5rem;
            align-items: end;
        }

        .form-group {
            display: flex;
            flex-direction: column;
        }

        .form-group label {
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--space-blue);
        }

        .form-control {
            padding: 0.8rem 1rem;
            border: 1px solid var(--medium-gray);
            border-radius: 8px;
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        .form-control:focus {
            outline: none;
            border-color: var(--carmine-pink);
            box-shadow: 0 0 0 3px rgba(230, 55, 67, 0.1);
        }

        .search-btn {
            height: fit-content;
            padding: 0.8rem 2rem;
            background-color: var(--carmine-pink);
            color: white;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .search-btn:hover {
            background-color: #d32f2f;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(230, 55, 67, 0.3);
        }

        /* Results Section */
        .results-section {
            padding: 4rem 2rem;
            background-color: var(--light-gray);
        }

        .results-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
        }

        .results-count {
            font-size: 1.2rem;
            color: var(--dark-gray);
        }

        .sort-options {
            display: flex;
            gap: 1rem;
            align-items: center;
        }

        .sort-options select {
            padding: 0.5rem 1rem;
            border: 1px solid var(--medium-gray);
            border-radius: 6px;
            background-color: white;
        }

        .companies-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 2rem;
        }

        .company-card {
            background-color: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
        }

        .company-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        }

        .company-image {
            height: 180px;
            background-color: var(--medium-gray);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--dark-gray);
            font-size: 3rem;
            position: relative;
            overflow: hidden;
        }

        .company-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

     /* ===========================================
   COMPANY BADGE STYLING - VISIBLE VERSION
   =========================================== */

/* Container for proper positioning */
.badge-container {
    position: absolute;
    top: 10px; /* Position inside the image area */
    right: 10px;
    z-index: 20;
    pointer-events: none; /* Allow clicks to pass through to image */
}

/* Company badge styling - Visible in corner */
.company-badge {
    height: 35px;
    width: auto;
    max-width: 70px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    background: white;
    padding: 3px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    display: block;
    transform: none !important; /* Remove rotation if previously set */
}

/* If you want the ribbon effect but visible, use this: */
.company-badge.ribbon {
    position: relative;
    height: 30px;
    width: 100px;
    background: var(--carmine-pink);
    color: white;
    text-align: center;
    line-height: 30px;
    font-size: 0.75rem;
    font-weight: bold;
    transform: rotate(45deg);
    top: 20px;
    right: -30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.company-badge.ribbon img {
    transform: rotate(-45deg); /* Counter-rotate the image */
    height: 20px;
    width: auto;
    margin: 5px auto;
    display: block;
}

/* Alternative: Simple corner badge (recommended) */
.company-badge.corner {
    position: absolute;
    top: 15px;
    right: 15px;
    height: 40px;
    width: auto;
    max-width: 80px;
    z-index: 10;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    background: white;
    padding: 4px;
    border: 2px solid white;
}

/* Make sure the company image container allows overflow */
.company-image {
    position: relative;
    height: 180px;
    overflow: visible !important; /* Allow badge to be visible */
}

/* Ensure company card has proper stacking */
.company-card {
    position: relative;
    overflow: visible !important;
}

/* Different subscription type styling */
.company-badge[src*="Premium"],
.company-badge[src*="Platinum"] {
    border-color: #FFD700;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.3);
}

.company-badge[src*="Gold"] {
    border-color: #FFD700;
}

.company-badge[src*="Standard"] {
    border-color: #C0C0C0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .badge-container {
        top: 8px;
        right: 8px;
    }
    
    .company-badge {
        height: 30px;
        max-width: 60px;
    }
    
    .company-badge.ribbon {
        height: 25px;
        width: 80px;
        font-size: 0.65rem;
        line-height: 25px;
        top: 15px;
        right: -25px;
    }
}

@media (max-width: 576px) {
    .company-badge {
        height: 25px;
        max-width: 50px;
    }
}

        .company-info {
            padding: 1.5rem;
        }

        .company-name {
            font-size: 1.3rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
            color: var(--space-blue);
        }

        .company-industry {
            display: inline-block;
            background-color: rgba(1, 32, 63, 0.1);
            color: var(--space-blue);
            padding: 0.3rem 0.8rem;
            border-radius: 30px;
            font-size: 0.8rem;
            font-weight: 600;
            margin-bottom: 1rem;
        }

        .company-details {
            margin-bottom: 1.5rem;
        }

        .company-detail {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.5rem;
            color: var(--dark-gray);
        }

        .company-detail i {
            width: 16px;
            color: var(--carmine-pink);
        }

        .company-rating {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 1rem;
        }

        .stars {
            color: #ffc107;
        }

        .rating-value {
            font-weight: 600;
        }

        .review-count {
            color: var(--dark-gray);
            font-size: 0.9rem;
        }

        .company-description {
            color: var(--dark-gray);
            font-size: 0.9rem;
            line-height: 1.4;
            margin-bottom: 1.5rem;
        }

        .company-actions {
            display: flex;
            gap: 0.8rem;
        }

        .action-btn {
            flex: 1;
            padding: 0.6rem;
            text-align: center;
            border-radius: 6px;
            font-weight: 600;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            border: none;
        }

        .action-btn.primary {
            background-color: var(--space-blue);
            color: white;
        }

        .action-btn.primary:hover {
            background-color: #011225;
        }

        .action-btn.secondary {
            background-color: transparent;
            color: var(--space-blue);
            border: 1px solid var(--space-blue);
        }

        .action-btn.secondary:hover {
            background-color: rgba(1, 32, 63, 0.05);
        }

        /* No Results State */
        .no-results {
            text-align: center;
            padding: 3rem;
            background-color: white;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        }

        .no-results i {
            font-size: 4rem;
            color: var(--medium-gray);
            margin-bottom: 1.5rem;
        }

        .no-results h3 {
            font-size: 1.5rem;
            margin-bottom: 1rem;
            color: var(--space-blue);
        }

        .no-results p {
            color: var(--dark-gray);
            margin-bottom: 1.5rem;
        }

        /* Loader */
        #loader {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 9999;
            background: rgba(255, 255, 255, 0.9);
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            display: none;
        }

        .loader-content {
            text-align: center;
        }

        .loader-content img {
            width: 60px;
            height: 60px;
        }

        /* Footer */
        footer {
            background-color: var(--midnight-black);
            color: white;
            padding: 4rem 2rem 2rem;
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 3rem;
        }

        .footer-column h3 {
            font-size: 1.3rem;
            margin-bottom: 1.5rem;
            color: var(--pure-white);
            position: relative;
            padding-bottom: 10px;
        }

        .footer-column h3::after {
            content: '';
            position: absolute;
            width: 40px;
            height: 3px;
            background-color: var(--carmine-pink);
            bottom: 0;
            left: 0;
        }

        .footer-column ul {
            list-style: none;
        }

        .footer-column ul li {
            margin-bottom: 0.8rem;
        }

        .footer-column ul li a {
            color: #bbb;
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .footer-column ul li a:hover {
            color: var(--carmine-pink);
        }

        .social-icons {
            display: flex;
            gap: 1rem;
            margin-top: 1.5rem;
        }

        .social-icons a {
            width: 40px;
            height: 40px;
            background-color: #333;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .social-icons a:hover {
            background-color: var(--carmine-pink);
            transform: translateY(-3px);
        }

        .footer-bottom {
            max-width: 1200px;
            margin: 3rem auto 0;
            padding-top: 2rem;
            border-top: 1px solid #333;
            text-align: center;
            color: #bbb;
            font-size: 0.9rem;
        }

        /* Modal customization for new design */
        .modal-header {
            background-color: var(--space-blue);
            color: white;
        }

        .modal-title {
            color: white;
        }

        .btn-close {
            filter: invert(1) grayscale(100%) brightness(200%);
        }

        /* Responsive Design */
        @media (max-width: 992px) {
            .search-fields {
                grid-template-columns: 1fr 1fr;
            }
            
            .footer-content {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 768px) {
            .nav-links, .cta-buttons {
                display: none;
            }
            
            .mobile-menu {
                display: block;
            }
            
            .search-hero h1 {
                font-size: 2.2rem;
            }
            
            .search-fields {
                grid-template-columns: 1fr;
            }
            
            .results-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 1rem;
            }
            
            .companies-grid {
                grid-template-columns: 1fr;
            }
            
            .footer-content {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 576px) {
            .search-form {
                padding: 1.5rem;
            }
            
            .search-hero {
                padding: 3rem 1rem;
            }
            
            .results-section {
                padding: 3rem 1rem;
            }
            
            .company-actions {
                flex-direction: column;
            }
        }

        /* Additional styles for gallery and forms */
        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
            margin-top: 20px;
        }

        .gallery-grid img {
            width: 100%;
            height: 100px;
            object-fit: cover;
            cursor: pointer;
            border-radius: 5px;
            transition: transform 0.3s ease;
        }

        .gallery-grid img:hover {
            transform: scale(1.05);
        }

        .expanded-gallery {
            max-width: 100%;
            max-height: 400px;
            margin: 20px auto;
            display: block;
        }

/* ===========================================
   MODAL STYLES (All Three Modals)
   =========================================== */

/* Modal Backdrop & Base Styles */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5) !important;
}

.modal-backdrop.show {
    opacity: 0.5 !important;
}

.modal-content {
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
    border: none !important;
}

/* Modal Header (All Modals) */
.modal-header {
    background-color: var(--space-blue) !important;
    color: white !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 1.25rem 2rem !important;
}

.modal-title {
    color: white !important;
    font-weight: 600 !important;
    font-size: 1.25rem !important;
    margin: 0 !important;
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%) !important;
    opacity: 0.8 !important;
    transition: opacity 0.3s ease !important;
}

.btn-close-white:hover {
    opacity: 1 !important;
}

/* Modal Body (All Modals) */
.modal-body {
    padding: 2rem !important;
    max-height: 70vh !important;
    overflow-y: auto !important;
}

.modal-lg .modal-body {
    padding: 1.5rem 2rem !important;
}

/* Modal Footer (All Modals) */
.modal-footer {
    background-color: var(--light-gray) !important;
    padding: 1.25rem 2rem !important;
    border-top: 1px solid var(--medium-gray) !important;
    border-bottom-left-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
}

/* ===========================================
   COMPANY PROFILE MODAL SPECIFIC STYLES
   =========================================== */

/* Card styling for company profile modal */
.modal-content .card {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Nav pills styling for tabs */
.nav-pills {
    background-color: white !important;
    border-radius: 30px !important;
    padding: 0.25rem !important;
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    border: 1px solid var(--medium-gray) !important;
}

.nav-pills .nav-link {
    color: var(--space-blue) !important;
    border-radius: 30px !important;
    padding: 0.5rem 1.5rem !important;
    margin: 0 0.1rem !important;
    background-color: transparent !important;
    border: none !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
}

.nav-pills .nav-link.active {
    background-color: var(--carmine-pink) !important;
    color: white !important;
    box-shadow: 0 3px 10px rgba(230, 55, 67, 0.3) !important;
}

.nav-pills .nav-link:hover:not(.active) {
    background-color: var(--light-gray) !important;
    color: var(--space-blue) !important;
}

/* Tab content styling */
.tab-content {
    padding: 1.5rem 0 !important;
}

/* Detail card styling */
.detail-card {
    background-color: white !important;
    border-radius: 10px !important;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid var(--medium-gray) !important;
    height: 100% !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.detail-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important;
}

.detail-card h5 {
    color: var(--space-blue) !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
    font-size: 1.1rem !important;
}

.detail-card p {
    color: var(--dark-gray) !important;
    line-height: 1.6 !important;
    margin-bottom: 0 !important;
}

/* Company logo styling */
.company-logo {
    text-align: center !important;
    padding: 1rem !important;
}

.company-logo img {
    max-width: 100% !important;
    max-height: 200px !important;
    height: auto !important;
    border-radius: 10px !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important;
    object-fit: contain !important;
}

/* About section specific */
.about-section {
    padding: 1.5rem !important;
}

.about-section h5 {
    font-size: 1.2rem !important;
    margin-bottom: 1rem !important;
    border-bottom: 2px solid var(--carmine-pink) !important;
    padding-bottom: 0.5rem !important;
    display: inline-block !important;
}

/* Contact items styling */
.contact-item {
    padding: 1rem !important;
    text-align: center !important;
}

.contact-item h5 {
    color: var(--space-blue) !important;
    font-size: 1rem !important;
    margin-bottom: 0.75rem !important;
}

.contact-item h5 i {
    color: var(--carmine-pink) !important;
    margin-right: 0.5rem !important;
}

.contact-item p {
    color: var(--dark-gray) !important;
    margin-bottom: 0 !important;
    font-size: 0.95rem !important;
}

.contact-item a {
    color: var(--carmine-pink) !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
    word-break: break-all !important;
}

.contact-item a:hover {
    color: var(--space-blue) !important;
    text-decoration: underline !important;
}

/* Contact section background */
.contact-social-section {
    background-color: rgba(1, 32, 63, 0.03) !important;
    border-radius: 10px !important;
    padding: 1.5rem !important;
    margin-top: 1.5rem !important;
    border: 1px solid var(--medium-gray) !important;
}

.contact-social-section h5 {
    color: var(--space-blue) !important;
    font-weight: 600 !important;
    margin-bottom: 1.5rem !important;
    text-align: center !important;
}

/* Social icons styling */
.social-icon {
    display: inline-block !important;
    margin: 0 0.75rem !important;
}

.social-icon a {
    display: inline-flex !important;
    width: 50px !important;
    height: 50px !important;
    background-color: var(--space-blue) !important;
    border-radius: 50% !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-size: 1.5rem !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.social-icon a:hover {
    background-color: var(--carmine-pink) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 5px 15px rgba(230, 55, 67, 0.3) !important;
}

/* Services, Products, Branches containers */
.services-container,
.products-container,
.branches-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 1.5rem !important;
    padding: 1rem 0 !important;
}

.service-card,
.product-card,
.branch-card {
    background-color: white !important;
    border-radius: 10px !important;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid var(--medium-gray) !important;
    transition: all 0.3s ease !important;
    overflow: hidden !important;
}

.service-card:hover,
.product-card:hover,
.branch-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.service-title,
.product-title,
.branch-title {
    color: var(--space-blue) !important;
    font-weight: 600 !important;
    margin-bottom: 0.75rem !important;
    font-size: 1.1rem !important;
}

.service-description,
.product-description,
.branch-location {
    color: var(--dark-gray) !important;
    line-height: 1.5 !important;
    margin-bottom: 1rem !important;
    font-size: 0.95rem !important;
}

.product-price {
    color: var(--forest-green) !important;
    font-weight: 600 !important;
    margin-bottom: 0.75rem !important;
}

.product-image {
    width: 100% !important;
    height: 180px !important;
    object-fit: cover !important;
    border-radius: 8px 8px 0 0 !important;
}

.branch-coordinates {
    color: var(--dark-gray) !important;
    font-size: 0.9rem !important;
    margin-bottom: 0 !important;
}

/* Gallery grid */
.gallery-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
    gap: 1rem !important;
    padding: 1rem 0 !important;
}

.gallery-container img {
    width: 100% !important;
    height: 150px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: transform 0.3s ease !important;
    border: 2px solid transparent !important;
}

.gallery-container img:hover {
    transform: scale(1.05) !important;
    border-color: var(--carmine-pink) !important;
}

/* Expanded gallery image */
.imagecontainer {
    position: relative !important;
    margin-top: 2rem !important;
    display: none !important;
}

.expanded-gallery {
    max-width: 100% !important;
    max-height: 400px !important;
    margin: 0 auto !important;
    display: block !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

.closebtn {
    position: absolute !important;
    top: 15px !important;
    right: 25px !important;
    color: white !important;
    font-size: 35px !important;
    cursor: pointer !important;
    z-index: 1000 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

#imgtext {
    position: absolute !important;
    bottom: 20px !important;
    left: 20px !important;
    color: white !important;
    font-size: 18px !important;
    background: rgba(0, 0, 0, 0.6) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 5px !important;
}

/* ===========================================
   FORM MODALS (Request Quote & Purchase Request)
   =========================================== */

/* Form labels */
.form-label {
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
    color: var(--space-blue) !important;
}

/* Form controls */
.form-control {
    border: 1px solid var(--medium-gray) !important;
    border-radius: 8px !important;
    padding: 0.75rem 1rem !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    background-color: white !important;
    width: 100% !important;
}

.form-control:focus {
    border-color: var(--carmine-pink) !important;
    box-shadow: 0 0 0 3px rgba(230, 55, 67, 0.1) !important;
    outline: none !important;
    transform: translateY(-1px) !important;
}

.form-control:read-only {
    background-color: var(--light-gray) !important;
    color: var(--dark-gray) !important;
    cursor: not-allowed !important;
}

.form-control:required:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #dc3545 !important;
}

.form-control:required:valid {
    border-color: #28a745 !important;
}

/* Form validation feedback */
.invalid-feedback {
    display: none !important;
    color: #dc3545 !important;
    font-size: 0.875rem !important;
    margin-top: 0.25rem !important;
}

.form-control:invalid:not(:focus):not(:placeholder-shown) ~ .invalid-feedback {
    display: block !important;
}

/* Form text helper */
.form-text {
    color: var(--dark-gray) !important;
    font-size: 0.875rem !important;
    margin-top: 0.25rem !important;
}

/* Required field asterisk */
.text-danger {
    color: var(--carmine-pink) !important;
}

/* Alert styling */
.alert {
    border-radius: 10px !important;
    border: none !important;
    padding: 1rem 1.25rem !important;
    margin-top: 1.5rem !important;
    font-size: 0.95rem !important;
}

.alert-info {
    background-color: rgba(1, 32, 63, 0.08) !important;
    color: var(--space-blue) !important;
    border-left: 4px solid var(--seaweed) !important;
}

.alert i {
    color: var(--seaweed) !important;
}

/* Form groups */
.form-group {
    margin-bottom: 1.5rem !important;
}

/* Modal form buttons */
.modal-footer .btn {
    padding: 0.75rem 1.75rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    border: none !important;
    font-size: 1rem !important;
}

.modal-footer .btn-primary {
    background-color: var(--carmine-pink) !important;
    color: white !important;
}

.modal-footer .btn-primary:hover {
    background-color: #d32f2f !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(230, 55, 67, 0.3) !important;
}

.modal-footer .btn-secondary {
    background-color: var(--dark-gray) !important;
    color: white !important;
}

.modal-footer .btn-secondary:hover {
    background-color: #5a6268 !important;
    transform: translateY(-2px) !important;
}

/* Button icons */
.btn i {
    vertical-align: middle !important;
    margin-right: 0.5rem !important;
}

/* Date input customization */
input[type="date"] {
    position: relative !important;
    cursor: pointer !important;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    background: transparent !important;
    bottom: 0 !important;
    color: transparent !important;
    cursor: pointer !important;
    height: auto !important;
    left: 0 !important;
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    width: auto !important;
}

/* ===========================================
   RESPONSIVE STYLES FOR ALL MODALS
   =========================================== */

@media (max-width: 992px) {
    .modal-lg {
        max-width: 90% !important;
        margin: 1rem auto !important;
    }
    
    .services-container,
    .products-container,
    .branches-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    .modal-dialog {
        margin: 0.5rem !important;
    }
    
    .modal-content {
        border-radius: 10px !important;
    }
    
    .modal-header {
        padding: 1rem 1.25rem !important;
    }
    
    .modal-body {
        padding: 1.25rem !important;
    }
    
    .modal-footer {
        padding: 1rem 1.25rem !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    .modal-footer .btn {
        width: 100% !important;
        margin: 0 !important;
    }
    
    /* Tabs responsive */
    .nav-pills {
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        padding: 0.5rem !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .nav-pills .nav-link {
        padding: 0.4rem 1rem !important;
        font-size: 0.9rem !important;
        margin: 0 0.05rem !important;
    }
    
    /* Grid containers responsive */
    .services-container,
    .products-container,
    .branches-container {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .gallery-container {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.75rem !important;
    }
    
    .gallery-container img {
        height: 120px !important;
    }
    
    /* Form responsive */
    .row {
        margin-left: -0.5rem !important;
        margin-right: -0.5rem !important;
    }
    
    .col-md-6, .col-md-12 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    .form-group {
        margin-bottom: 1rem !important;
    }
    
    .alert {
        padding: 0.75rem !important;
        font-size: 0.9rem !important;
    }
}

@media (max-width: 576px) {
    .modal-body {
        padding: 1rem !important;
    }
    
    .modal-title {
        font-size: 1.1rem !important;
    }
    
    .gallery-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .contact-item {
        padding: 0.75rem 0.5rem !important;
    }
    
    .social-icon {
        margin: 0 0.5rem !important;
    }
    
    .social-icon a {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.3rem !important;
    }
    
    .expanded-gallery {
        max-height: 300px !important;
    }
    
    .closebtn {
        top: 10px !important;
        right: 15px !important;
        font-size: 30px !important;
        width: 35px !important;
        height: 35px !important;
    }
}

@media (max-width: 400px) {
    .nav-pills .nav-link {
        padding: 0.3rem 0.75rem !important;
        font-size: 0.85rem !important;
    }
    
    .gallery-container img {
        height: 100px !important;
    }
}
