* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #dc3545;
    --secondary-color: #000000;
    --accent-color: #25D366;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --text-muted: #6c757d;
    --bg-light: #f8f8f8;
    --bg-dark: #1a1a1a;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.2);
    --gradient-dark: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
}

/* Light Mode Variables */
body.light-mode {
    --text-dark: #1a1a1a;
    --text-light: #1a1a1a;
    --text-muted: #555555;
    --bg-light: #f0f0f0;
    --bg-dark: #ffffff;
    --bg-white: #ffffff;
    --border-color: #d0d0d0;
    --shadow: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --gradient-dark: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

html {
    scroll-padding-top: 100px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--bg-dark);
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: var(--gradient-dark);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a {
    display: block;
    text-decoration: none;
}

.logo-img {
    height: 70px;
    width: auto;
    display: block;
}

/* Footer logo */
.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 1rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.btn-nav {
    background-color: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.btn-nav:hover {
    background-color: #c82333;
    transform: translateY(-2px);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

/* Theme Toggle */
.theme-switcher {
    display: flex;
    align-items: center;
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: white;
}

.theme-toggle:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

body.light-mode .theme-toggle .sun-icon {
    display: block;
}

body.light-mode .theme-toggle .moon-icon {
    display: none;
}

body.light-mode .theme-toggle {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
    color: #1a1a1a;
}

/* Light Mode Specific Styles */
body.light-mode {
    background-color: #f5f5f5;
    color: #1a1a1a;
}

body.light-mode::before {
    background: rgba(255, 255, 255, 0.8);
}

body.light-mode .navbar {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

body.light-mode .nav-menu a {
    color: #1a1a1a;
}

body.light-mode .nav-menu a:hover {
    color: var(--primary-color);
}

body.light-mode .mobile-menu-toggle span {
    background-color: #1a1a1a;
}

/* Mobile menu light mode */
@media (max-width: 992px) {
    body.light-mode .nav-menu {
        background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }

    body.light-mode .nav-menu li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    body.light-mode .nav-menu a {
        color: #1a1a1a;
    }

    body.light-mode .nav-menu a:hover {
        color: var(--primary-color);
        background: rgba(0, 0, 0, 0.05);
    }
}

body.light-mode .logo-img {
    filter: invert(1) brightness(0.2);
}

body.light-mode .footer .logo-img,
body.light-mode .footer-logo {
    filter: none;
}

body.light-mode .hero {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

body.light-mode .hero::before {
    background: rgba(0, 0, 0, 0.4);
}

body.light-mode .hero-title,
body.light-mode .hero-subtitle,
html.light-mode .hero-title,
html.light-mode .hero-subtitle,
.light-mode .hero-title,
.light-mode .hero-subtitle {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

body.light-mode .hero-tagline .tagline-text,
html.light-mode .hero-tagline .tagline-text,
.light-mode .hero-tagline .tagline-text {
    color: rgba(255, 255, 255, 0.9) !important;
}

body.light-mode .hero-content,
.light-mode .hero-content {
    color: #ffffff;
}

/* Keep hero buttons same style in light mode */
body.light-mode .hero-buttons .btn-secondary,
.light-mode .hero-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

body.light-mode .hero-buttons .btn-secondary:hover,
.light-mode .hero-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

body.light-mode .stats {
    background: #ffffff;
}

body.light-mode .stat-item {
    color: #1a1a1a;
}

body.light-mode .stat-label {
    color: #555;
}

body.light-mode .tuning-database,
body.light-mode .services,
body.light-mode .about,
body.light-mode .reviews,
body.light-mode .contact {
    background: #f8f8f8;
}

body.light-mode .section-header h2,
body.light-mode .section-header p {
    color: #1a1a1a;
}

body.light-mode .service-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
}

body.light-mode .service-content h3,
body.light-mode .service-content p,
body.light-mode .service-features li {
    color: #1a1a1a;
}

body.light-mode .dealer-program {
    background: linear-gradient(135deg, #e8e8e8 0%, #f5f5f5 100%);
}

body.light-mode .dealer-text h2,
body.light-mode .dealer-text p,
body.light-mode .benefit-item h4,
body.light-mode .benefit-item p {
    color: #1a1a1a;
}

body.light-mode .about-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
}

body.light-mode .about-card h3,
body.light-mode .about-card p {
    color: #1a1a1a;
}

body.light-mode .review-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
}

body.light-mode .review-card h4,
body.light-mode .review-text,
body.light-mode .review-location,
body.light-mode .review-vehicle {
    color: #1a1a1a;
}

body.light-mode .contact-form-container {
    background: #ffffff;
}

body.light-mode .contact-form label {
    color: #1a1a1a;
}

body.light-mode .contact-form input,
body.light-mode .contact-form select,
body.light-mode .contact-form textarea {
    background: #f8f8f8;
    border-color: #d0d0d0;
    color: #1a1a1a;
}

body.light-mode .info-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
}

body.light-mode .info-card h3,
body.light-mode .info-card p {
    color: #1a1a1a;
}

body.light-mode .footer {
    background: #1a1a1a;
    color: #ffffff;
}

body.light-mode .filter-select {
    background-color: #ffffff;
    border-color: #d0d0d0;
    color: #1a1a1a;
}

body.light-mode .results-placeholder {
    color: #555;
}

body.light-mode .result-card {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
}

/* Hero Section */
.hero {
    position: relative;
    background: var(--gradient-dark);
    color: white;
    padding: 5rem 0;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgba(26, 26, 26, 0.85) 0%, rgba(26, 26, 26, 0.7) 50%, rgba(220, 53, 69, 0.3) 100%),
        url('images/hero-car.jpg');
    background-size: cover;
    background-position: center;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-weight: 400;
    color: #ffffff;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

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

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

.btn-primary:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(220, 53, 69, 0.4);
}

.btn-secondary {
    background-color: #000000;
    color: white;
    border: 2px solid #000000;
}

.btn-secondary:hover {
    background-color: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

.hero-features {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-icon {
    width: 24px;
    height: 24px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

/* App Download Banner */
.app-download-banner {
    background: linear-gradient(135deg, #3ddc84 0%, #00c853 100%);
    padding: 1rem 0;
}

.app-download-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.app-icon {
    font-size: 2.5rem;
}

.app-info {
    display: flex;
    flex-direction: column;
}

.app-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.app-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.btn-app-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #000;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-app-download:hover {
    background: #333;
    transform: translateY(-2px);
}

.btn-app-download svg {
    fill: #3ddc84;
}

/* Stats Section */
.stats {
    background-color: var(--bg-dark);
    padding: 3rem 0;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

/* Tuning Database */
.tuning-database {
    padding: 5rem 0;
    background-color: rgba(35, 35, 35, 0.95);
}

.search-container {
    max-width: 900px;
    margin: 0 auto 3rem;
}

.search-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.filter-select {
    padding: 1rem;
    border: 2px solid #3a3a3a;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    background-color: #1a1a1a;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.filter-select:disabled {
    background-color: #252525;
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
}

.results-container {
    min-height: 300px;
}

.results-placeholder {
    text-align: center;
    padding: 3rem;
    color: rgba(255, 255, 255, 0.6);
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.result-card {
    background: #2a2a2a;
    border: 2px solid #3a3a3a;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.result-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px) scale(1.01);
}

.chart-container {
    width: 100%;
    height: 400px;
    margin: 1.5rem 0 2rem;
    padding: 1rem;
    background: linear-gradient(to bottom, #333333, #2a2a2a);
    border-radius: 8px;
    border: 1px solid #3a3a3a;
}

@media (max-width: 640px) {
    .chart-container {
        height: 300px;
        padding: 0.5rem;
    }
}

.result-header {
    margin-bottom: 1.5rem;
}

.result-header h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.result-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-box {
    background: #1a1a1a;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.stat-box h4 {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-values {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.original {
    color: rgba(255, 255, 255, 0.6);
}

.arrow {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.tuned {
    color: var(--success-color);
}

.gain {
    margin-top: 0.5rem;
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Services Section */
.services {
    padding: 5rem 0;
    background-color: rgba(45, 45, 45, 0.95);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #2a2a2a;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid #3a3a3a;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a.service-card {
    text-decoration: none;
    color: inherit;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: var(--primary-color);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-card.featured {
    border: 2px solid var(--primary-color);
}

.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.service-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, #2a2a2a, transparent);
    pointer-events: none;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-content {
    padding: 1.5rem;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.service-card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: rgba(255, 255, 255, 0.8);
}

.service-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* Dealer Program */
.dealer-program {
    padding: 5rem 0;
    background: var(--gradient-dark);
    color: white;
}

.dealer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.dealer-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.dealer-benefits {
    margin-bottom: 2rem;
}

.benefit-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.benefit-icon {
    font-size: 2rem;
    min-width: 50px;
}

.benefit-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.benefit-item p {
    opacity: 0.9;
    font-size: 0.95rem;
}

.dealer-image {
    height: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
}

.dealer-img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
    object-position: center center;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

/* Feature Banner */
.feature-banner {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.feature-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(220, 53, 69, 0.4) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.feature-overlay h2 {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
}

.feature-overlay p {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.9);
    font-weight: 300;
    letter-spacing: 2px;
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: rgba(35, 35, 35, 0.95);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.about-card {
    background: #2a2a2a;
    padding: 2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid #3a3a3a;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.about-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.about-card p {
    color: rgba(255, 255, 255, 0.7);
}

/* Reviews Section */
.reviews {
    padding: 5rem 0;
    background-color: rgba(40, 40, 40, 0.95);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.review-card {
    background: #2a2a2a;
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid #3a3a3a;
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.review-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), #ff6b7a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.review-info h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.review-location {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.review-stars {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.review-stars .star {
    font-size: 1.25rem;
    color: #3a3a3a;
}

.review-stars .star.filled {
    color: #ffc107;
}

.review-stars .star.half {
    color: #ffc107;
    opacity: 0.5;
}

.review-stars .star.partial {
    color: #ffc107;
    opacity: 0.8;
}

.rating-number {
    margin-left: 0.5rem;
    font-weight: 600;
    color: #ffc107;
    font-size: 1rem;
}

.review-text {
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.review-vehicle {
    display: inline-block;
    background: rgba(220, 53, 69, 0.2);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background-color: rgba(45, 45, 45, 0.95);
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.contact-form {
    background: #2a2a2a;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border: 1px solid #3a3a3a;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #ffffff;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #3a3a3a;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #1a1a1a;
    color: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: #2a2a2a;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border: 1px solid #3a3a3a;
}

.info-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.info-card p {
    color: rgba(255, 255, 255, 0.7);
}

.info-card p a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.info-card p a:hover {
    opacity: 0.8;
}

/* Footer */
.footer {
    background: var(--gradient-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.8;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-section ul li a:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    opacity: 0.8;
}

.footer-bottom a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-bottom a:hover {
    opacity: 0.7;
}

/* Responsive Design */

/* Tablet and below */
@media (max-width: 968px) {
    .container {
        padding: 0 15px;
    }

    .logo-img {
        height: 50px;
    }

    .nav-content {
        padding: 0.75rem 0;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background: linear-gradient(180deg, #0a0a0a 0%, #1a1a2e 100%);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease-in-out;
        box-shadow: var(--shadow-lg);
        padding: 80px 20px 2rem;
        gap: 0.5rem;
        z-index: 998;
        height: 100vh;
        height: 100dvh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        color: rgba(255, 255, 255, 0.9);
        font-size: 1.1rem;
        padding: 1rem 0;
        display: block;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-menu .btn-nav {
        margin: 1rem auto;
        max-width: 280px;
        padding: 1rem 2rem;
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
        padding: 10px;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .hero {
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }

    .hero-features {
        gap: 1rem;
    }

    .feature-item {
        font-size: 0.9rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

    .section-header p {
        font-size: 1rem;
        padding: 0 10px;
    }

    .dealer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .dealer-text h2 {
        font-size: 1.8rem;
    }

    .dealer-image {
        min-height: 300px;
        order: -1;
    }

    .dealer-img {
        min-height: 300px;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .search-filters {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .feature-banner {
        height: 250px;
    }

    .feature-overlay h2 {
        font-size: 2rem;
    }

    .feature-overlay p {
        font-size: 1rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile phones */
@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    .nav-content {
        padding: 0.5rem 0;
    }

    .logo-img {
        height: 36px;
    }

    .nav-menu {
        padding-top: 70px;
    }

    .nav-menu a {
        font-size: 1rem;
        padding: 0.875rem 0;
    }

    .hero {
        padding: 2.5rem 0;
    }

    .hero-title {
        font-size: 1.5rem;
        line-height: 1.35;
        padding: 0 5px;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.75rem;
        line-height: 1.5;
        padding: 0 10px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.875rem;
        padding: 0 10px;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 1rem 1.5rem;
        min-height: 48px;
        font-size: 0.95rem;
    }

    .hero-features {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }

    .hero-tagline {
        margin-top: 1rem;
    }

    .tagline-text {
        font-size: 0.9rem;
    }

    .stats {
        padding: 2rem 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-item {
        padding: 0.5rem;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .stat-label {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .section-header {
        margin-bottom: 2rem;
        padding: 0 5px;
    }

    .section-header h2 {
        font-size: 1.4rem;
        letter-spacing: 0.5px;
    }

    .section-header p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .tuning-database,
    .services,
    .dealer-program,
    .about,
    .reviews,
    .contact {
        padding: 2.5rem 0;
    }

    .filter-select {
        padding: 1rem;
        font-size: 1rem;
        min-height: 48px;
    }

    .result-card {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .result-header h3 {
        font-size: 1.1rem;
    }

    .result-meta {
        font-size: 0.8rem;
    }

    .result-stats {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }

    .stat-box {
        padding: 1rem;
    }

    .stat-box h4 {
        font-size: 0.8rem;
    }

    .stat-values {
        font-size: 1.2rem;
    }

    .gain {
        font-size: 0.9rem;
    }

    .service-card {
        border-radius: 12px;
    }

    .service-image {
        height: 160px;
    }

    .service-content {
        padding: 1.25rem;
    }

    .badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.75rem;
    }

    .service-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .service-card p {
        font-size: 0.875rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    .service-features li {
        font-size: 0.875rem;
        padding: 0.4rem 0;
        padding-left: 1.25rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .about-card {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .about-card h3 {
        font-size: 1.05rem;
    }

    .about-card p {
        font-size: 0.875rem;
        line-height: 1.5;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .review-card {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .review-header {
        margin-bottom: 0.875rem;
    }

    .review-avatar {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .review-info h4 {
        font-size: 0.95rem;
    }

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

    .review-stars {
        margin-bottom: 0.75rem;
    }

    .review-stars .star {
        font-size: 1.1rem;
    }

    .review-text {
        font-size: 0.875rem;
        line-height: 1.55;
    }

    .review-vehicle {
        font-size: 0.8rem;
    }

    .dealer-text {
        padding: 0 5px;
    }

    .dealer-text h2 {
        font-size: 1.4rem;
    }

    .lead {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .dealer-benefits {
        margin-bottom: 1.5rem;
    }

    .benefit-item {
        margin-bottom: 1.25rem;
    }

    .benefit-icon {
        font-size: 1.5rem;
        min-width: 40px;
    }

    .benefit-item h4 {
        font-size: 1rem;
    }

    .benefit-item p {
        font-size: 0.85rem;
        line-height: 1.45;
    }

    .dealer-image {
        min-height: 220px;
        border-radius: 12px;
    }

    .dealer-img {
        min-height: 220px;
        border-radius: 12px;
    }

    .feature-banner {
        height: 180px;
    }

    .feature-overlay h2 {
        font-size: 1.35rem;
        letter-spacing: 1px;
    }

    .feature-overlay p {
        font-size: 0.85rem;
        letter-spacing: 0.5px;
    }

    .contact-form {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .contact-form h3 {
        font-size: 1.2rem;
        margin-bottom: 1.25rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group label {
        font-size: 0.875rem;
        margin-bottom: 0.4rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.875rem;
        font-size: 1rem;
        min-height: 48px;
        border-radius: 8px;
    }

    .form-group textarea {
        min-height: 120px;
    }

    .info-card {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .info-card h3 {
        font-size: 1rem;
    }

    .info-card p {
        font-size: 0.875rem;
        line-height: 1.5;
    }

    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section h3,
    .footer-section h4 {
        font-size: 1.05rem;
        margin-bottom: 0.75rem;
    }

    .footer-section p {
        font-size: 0.875rem;
    }

    .footer-section ul li {
        margin-bottom: 0.4rem;
    }

    .footer-section ul li a {
        font-size: 0.875rem;
    }

    .footer-logo {
        height: 36px;
    }

    .footer-certificate {
        padding: 1.5rem 0 !important;
    }

    .footer-certificate p {
        font-size: 0.8rem !important;
    }

    .footer-certificate img {
        max-width: 100% !important;
        width: auto;
        height: auto;
    }

    .footer-bottom {
        padding-top: 1rem;
    }

    .footer-bottom p {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .footer-links {
        margin-top: 0.5rem;
    }

    .footer-links a {
        font-size: 0.8rem;
    }

    /* App download banner mobile */
    .app-download-banner {
        padding: 0.875rem 0;
    }

    .app-download-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .app-icon {
        font-size: 2rem;
    }

    .app-title {
        font-size: 1rem;
    }

    .app-desc {
        font-size: 0.85rem;
    }

    .btn-app-download {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Extra small phones */
@media (max-width: 380px) {
    .container {
        padding: 0 12px;
    }

    .hero-title {
        font-size: 1.3rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .section-header h2 {
        font-size: 1.2rem;
    }

    .section-header p {
        font-size: 0.85rem;
    }

    .stats-grid {
        gap: 0.6rem;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .btn {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    .service-card p {
        font-size: 0.8rem;
    }

    .about-card h3 {
        font-size: 1rem;
    }

    .about-card p {
        font-size: 0.8rem;
    }

    .review-text {
        font-size: 0.8rem;
    }

    .dealer-text h2 {
        font-size: 1.2rem;
    }

    .feature-overlay h2 {
        font-size: 1.15rem;
    }

    .feature-overlay p {
        font-size: 0.75rem;
    }

    .info-card h3 {
        font-size: 0.95rem;
    }

    .info-card p {
        font-size: 0.8rem;
    }

    .floating-btn {
        width: 46px;
        height: 46px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover,
    .about-card:hover,
    .review-card:hover,
    .result-card:hover,
    .info-card:hover {
        transform: none;
    }

    .service-card:hover .service-image img {
        transform: none;
    }

    .btn:hover {
        transform: none;
    }

    .btn-nav:hover {
        transform: none;
    }

    /* Better tap feedback for touch devices */
    .btn:active,
    .service-card:active,
    .about-card:active,
    .review-card:active,
    .info-card:active {
        transform: scale(0.98);
        opacity: 0.9;
    }

    .nav-menu a:active {
        background: rgba(255, 255, 255, 0.1);
    }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 1.5rem 0;
    }

    .hero-title {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .hero-buttons {
        flex-direction: row;
        margin-bottom: 1rem;
    }

    .hero-buttons .btn {
        width: auto;
        padding: 0.75rem 1.5rem;
    }

    .hero-tagline {
        margin-top: 0.5rem;
    }

    .feature-banner {
        height: 160px;
    }

    .nav-menu {
        padding-top: 60px;
    }

    .floating-contact {
        top: 60px;
    }
}

/* Safe area insets for notched devices (iPhone X+, etc.) */
@supports (padding: max(0px)) {
    .navbar {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }

    .nav-menu {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
        padding-bottom: max(2rem, env(safe-area-inset-bottom));
    }

    .footer {
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }

    .floating-contact {
        right: max(10px, env(safe-area-inset-right));
    }

    .modal-content {
        padding-bottom: max(2rem, env(safe-area-inset-bottom));
    }

    @media (max-width: 640px) {
        .container {
            padding-left: max(16px, env(safe-area-inset-left));
            padding-right: max(16px, env(safe-area-inset-right));
        }

        .hero-buttons {
            padding-left: max(10px, env(safe-area-inset-left));
            padding-right: max(10px, env(safe-area-inset-right));
        }
    }
}

/* Prevent text size adjustment on orientation change */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Floating Contact Buttons */
.floating-contact {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.floating-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.floating-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.whatsapp-btn {
    background: #25D366;
    color: white;
}

.whatsapp-btn:hover {
    background: #20bd5a;
}

.call-btn {
    background: var(--primary-color);
    color: white;
}

.call-btn:hover {
    background: #c82333;
}

.floating-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.floating-text {
    white-space: nowrap;
}

/* Mobile floating buttons - small round */
@media (max-width: 768px) {
    .floating-contact {
        top: 80px;
        right: 10px;
        gap: 8px;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
    }

    .floating-icon {
        width: 22px;
        height: 22px;
    }

    .floating-text {
        display: none;
    }
}

/* RTL floating buttons */
body.rtl .floating-contact {
    right: auto;
    left: 20px;
}

@media (max-width: 768px) {
    body.rtl .floating-contact {
        left: 10px;
    }
}

/* Hero Tagline */
.hero-tagline {
    margin-top: 1.5rem;
}

.tagline-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .tagline-text {
        font-size: 1rem;
    }
}

/* Appointment Section in Results */
.appointment-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.appointment-section .appointment-btn {
    min-width: 200px;
    font-size: 1rem;
    padding: 0.9rem 2rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #0a0a0a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h2 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 1rem;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-content .form-group {
    margin-bottom: 1.25rem;
}

.modal-content .form-group label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.modal-content .form-group input {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.modal-content .form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.modal-content .form-group input:disabled {
    background: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.3);
    color: rgba(255, 255, 255, 0.9);
}

.modal-content .form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.modal-content .form-group select {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    transition: border-color 0.3s ease, background 0.3s ease;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.modal-content .form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.08);
}

.modal-content .form-group select option {
    background: #1a1a2e;
    color: #ffffff;
}

.form-hint {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0.5rem 0 1rem;
    font-style: italic;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.modal-buttons .btn {
    flex: 1;
    padding: 0.9rem 1.5rem;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.appointment-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.appointment-message.success {
    display: block;
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.5);
    color: #28a745;
}

.appointment-message.error {
    display: block;
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: #dc3545;
}

.appointment-message.success .success-content {
    text-align: center;
}

.appointment-message.success .success-content p {
    margin: 0 0 1rem 0;
}

.appointment-message.success .inquiry-number {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-size: 1.1rem;
}

/* Reviews CTA */
.reviews-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Star Rating Input */
.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.25rem;
    position: relative;
}

.star-rating-input input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.star-rating-input label {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: color 0.2s ease;
}

.star-rating-input label:hover,
.star-rating-input label:hover ~ input + label,
.star-rating-input label:hover ~ label {
    color: #ffc107;
}

.star-rating-input input:checked + label,
.star-rating-input input:checked ~ input + label {
    color: #ffc107;
}

/* Review Message */
.review-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.review-message.success {
    display: block;
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.5);
    color: #28a745;
}

.review-message.error {
    display: block;
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: #dc3545;
}

/* Modal textarea */
.modal-content .form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.modal-content .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.modal-content .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Light mode modal adjustments */
body.light-mode .modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    border: 1px solid #e0e0e0;
}

body.light-mode .modal-content h2 {
    color: #1a1a1a;
}

body.light-mode .modal-close {
    color: rgba(0, 0, 0, 0.5);
}

body.light-mode .modal-close:hover {
    color: var(--primary-color);
}

body.light-mode .modal-content .form-group label {
    color: #1a1a1a;
}

body.light-mode .modal-content .form-group input,
body.light-mode .modal-content .form-group textarea,
body.light-mode .modal-content .form-group select {
    background: #f8f8f8;
    border-color: #d0d0d0;
    color: #1a1a1a;
}

body.light-mode .modal-content .form-group input::placeholder,
body.light-mode .modal-content .form-group textarea::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

body.light-mode .star-rating-input label {
    color: rgba(0, 0, 0, 0.2);
}

body.light-mode .btn-secondary {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
    color: #1a1a1a;
}

body.light-mode .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.15);
}

.appointment-message.success .inquiry-code {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #28a745;
    letter-spacing: 2px;
    margin-top: 0.5rem;
    font-family: monospace;
}

.appointment-message.success .inquiry-note {
    font-size: 0.9rem;
    color: rgba(40, 167, 69, 0.9);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.appointment-message.success .success-close-btn {
    margin-top: 1rem;
}

/* Contact Form Inquiry Number */
.form-message .inquiry-number-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem;
    border-radius: 8px;
    margin: 0.75rem 0;
    display: inline-block;
}

.form-message .inquiry-code {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: #25D366;
    letter-spacing: 2px;
    margin-top: 0.25rem;
    font-family: monospace;
}

.form-message .inquiry-note {
    font-size: 0.85rem;
    font-style: italic;
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
}

/* Modal RTL Support */
body.rtl .modal-close {
    right: auto;
    left: 15px;
}

body.rtl .modal-content .form-group label {
    text-align: right;
}

body.rtl .modal-content .form-group input {
    text-align: right;
}

body.rtl .modal-content .form-group select {
    text-align: right;
    background-position: left 1rem center;
    padding-right: 1rem;
    padding-left: 2.5rem;
}

body.rtl .form-hint {
    text-align: right;
}

/* Modal Mobile */
@media (max-width: 640px) {
    .modal-content {
        padding: 1.5rem;
        margin: 10px;
    }

    .modal-content h2 {
        font-size: 1.25rem;
    }

    .modal-buttons {
        flex-direction: column;
    }

    .modal-buttons .btn {
        width: 100%;
    }
}
