        :root {
            --primary: #d32f2f;
            --primary-dark: #b71c1c;
            --secondary: #ffca28;
            --dark: #111;
            --light: #f8f9fa;
        }

        * { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Poppins', sans-serif; }
        body { background-color: var(--light); color: var(--dark); line-height: 1.6; overflow-x: hidden; }

        header { background: #111; color: #fff; position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
        .navbar { display: flex; justify-content: space-between; align-items: center; max-width: 1400px; margin: 0 auto; padding: 10px 30px; min-height: 80px; }
        .logo-container { display: flex; align-items: center; cursor: pointer; text-decoration: none; z-index: 1001; }
        .logo-img { height: 60px; margin-right: 15px; background: white; border-radius: 50%; padding: 2px; transition: transform 0.3s ease; }
        .logo-container:hover .logo-img { transform: scale(1.1); }
        .logo { font-size: 1.4rem; font-weight: 700; color: var(--secondary); text-transform: uppercase; letter-spacing: 1px; line-height: 1.2; }
        .logo span { display: block; font-size: 0.75rem; color: #ccc; letter-spacing: 0; font-weight: 400; }

        .nav-links { display: flex; gap: 15px; align-items: center; }
        .nav-item { position: relative; }
        .nav-btn { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: #eee; padding: 10px 25px; border-radius: 50px; cursor: pointer; font-size: 0.9rem; font-weight: 500; transition: all 0.3s ease; display: inline-block; text-transform: uppercase; letter-spacing: 0.5px; }
        .nav-btn:hover, .nav-item:hover .nav-btn { color: var(--secondary); }
        .nav-btn.active-btn { color: var(--secondary); font-weight: 700; border-color: var(--secondary); }

        .dropdown-content { display: none; position: absolute; background-color: #222; min-width: 220px; box-shadow: 0px 8px 16px rgba(0,0,0,0.3); z-index: 100; border-radius: 8px; top: 100%; left: 0; overflow: hidden; border-top: 3px solid var(--secondary); }
        .dropdown-content button { color: #eee; padding: 12px 20px; display: block; background: none; border: none; width: 100%; text-align: left; cursor: pointer; transition: background 0.2s; font-size: 0.9rem; }
        .dropdown-content button:hover { background-color: #333; color: var(--secondary); }
        .nav-item:hover .dropdown-content { display: block; }

        .hamburger { display: none; flex-direction: column; cursor: pointer; gap: 6px; z-index: 1001; }
        .bar { width: 30px; height: 3px; background-color: var(--secondary); border-radius: 5px; transition: 0.3s; }

        .page-section { display: none; animation: fadeIn 0.5s ease; min-height: 80vh; width: 100%; }
        .active-section { display: block; }
        @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
        .content-container { max-width: 1200px; margin: 0 auto; padding: 3rem 20px; }

        .hero { width: 100%; height: 85vh; min-height: 500px; background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)), url('car.png'); background-color: #333; background-size: cover; background-position: center; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: white; border-radius: 0 0 30px 30px; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
        .hero h1 { font-size: 3.5rem; margin-bottom: 1rem; font-weight: 700; }
        .hero p { font-size: 1.3rem; margin-bottom: 2.5rem; max-width: 700px; padding: 0 20px; }
        .btn-cta { background: var(--secondary); color: #000; padding: 18px 45px; border-radius: 50px; font-weight: 700; font-size: 1.1rem; border: none; cursor: pointer; transition: all 0.3s ease; text-transform: uppercase; box-shadow: 0 4px 15px rgba(0,0,0,0.3); text-decoration: none; display: inline-block;}
        .btn-cta:hover { transform: translateY(-3px) scale(1.02); background: #ffca28; box-shadow: 0 0 20px rgba(255, 202, 40, 0.6); }

        .section-title { text-align: center; margin-bottom: 3rem; font-size: 2rem; color: var(--primary); position: relative; width: 100%; }
        .section-title::after { content: ''; display: block; width: 60px; height: 4px; background: var(--secondary); margin: 10px auto 0; border-radius: 2px; }
        .rto-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
        .service-card { background: white; padding: 2.5rem 2rem; text-align: center; border-radius: 12px; border-top: 5px solid var(--primary); box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: 0.3s; }
        .service-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
        .service-card h3 { color: #333; margin-bottom: 1rem; font-size: 1.4rem; }

        .form-box { 
            background: white; 
            padding: 3rem; 
            border-radius: 12px; 
            box-shadow: 0 10px 40px rgba(0,0,0,0.08); 
            max-width: 700px; 
            margin: 0 auto; 
            border-top: 5px solid var(--secondary);
        }
        .form-group { margin-bottom: 1.5rem; }
        .form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: #444; }
        .form-group input, .form-group select, .form-group textarea { 
            width: 100%; 
            padding: 14px; 
            border: 1px solid #ddd; 
            border-radius: 8px; 
            font-size: 1rem; 
            background: #fdfdfd;
        }
        .form-group input:focus { border-color: var(--primary); outline: none; background: #fff; box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1); }
        
        .btn-submit { 
            width: 100%; 
            padding: 15px; 
            background: var(--primary); 
            color: white; 
            border: none; 
            border-radius: 8px; 
            font-size: 1.1rem; 
            font-weight: 600; 
            cursor: pointer; 
            transition: 0.3s;
        }
        .btn-submit:hover { background: var(--primary-dark); }

        .alert { padding: 15px; background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; border-radius: 8px; margin-bottom: 2rem; display: none; text-align: center; font-weight: 600; }
        
        .instruction-box {
            background-color: #fff8e1;
            border-left: 5px solid var(--secondary);
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 30px;
            text-align: left;
        }
        .instruction-box h4 {
            margin-bottom: 10px;
            color: var(--dark);
            font-size: 1.1rem;
        }
        .instruction-box ol {
            margin-left: 20px;
            color: #555;
            font-size: 0.95rem;
        }
        .instruction-box li {
            margin-bottom: 8px;
        }

        .package-container {
            margin-top: 4rem;
            text-align: center;
        }
        
        .package-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            margin-top: 2rem;
            align-items: stretch; 
        }

        .package-card {
            background: #fff;
            border: 1px solid #e0e0e0;
            display: flex;
            flex-direction: column;
            box-shadow: 0 4px 10px rgba(0,0,0,0.05);
            transition: transform 0.3s;
        }

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

        .pkg-header {
            background-color: var(--secondary); 
            color: #000;
            font-weight: 700;
            font-size: 1.3rem;
            padding: 25px 10px;
            text-transform: capitalize;
        }

        .pkg-row {
            padding: 20px;
            border-bottom: 1px solid #eee;
            color: #333;
            font-size: 1rem;
            font-weight: 600;
            display: flex;
            flex-direction: column;
            justify-content: center;
            min-height: 100px; 
        }
        
        .pkg-price {
            display: block;
            font-size: 1.2rem;
            font-weight: 800;
            margin-top: 5px;
            color: #000;
        }

        .pkg-footer {
            background-color: #f1f1f1;
            padding: 25px;
            margin-top: auto;
        }

        .btn-pkg {
            background: var(--primary); color: white; padding: 18px 45px; font-weight: 700; font-size: 1.1rem; border: none; cursor: pointer; transition: all 0.3s ease; text-transform: uppercase; box-shadow: 0 4px 15px rgba(0,0,0,0.3); text-decoration: none; display: inline-block;
        }

        .btn-pkg:hover {
             background: var(--primary-dark); box-shadow: 0 0 20px rgba(183, 28, 28, 0.6); background: var(--primary-dark);
            color: #000; 
        }

        .service-card.detailed {
            text-align: left; 
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .service-card.detailed h3 {
            text-align: center; 
            color: var(--primary);
        }
        
        .service-card.detailed .icon-large {
            text-align: center;
            font-size: 2.5rem;
            margin-bottom: 1rem;
            display: block;
        }

        .card-info {
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px solid #eee;
            font-size: 0.9rem;
            color: #444;
        }

        .info-row {
            display: flex;
            margin-bottom: 10px;
            align-items: flex-start;
        }

        .info-label {
            font-weight: 700;
            min-width: 80px; 
            color: var(--dark);
        }

        .info-val {
            flex: 1;
        }

        .call-btn-small {
            display: block;
            width: 100%;
            text-align: center;
            background: #222;
            color: #fff;
            text-decoration: none;
            padding: 10px;
            border-radius: 5px;
            margin-top: 15px;
            transition: 0.3s;
        }
        .call-btn-small:hover {
            background: var(--secondary);
            color: #000;
        }

        footer {
            background-color: #111;
            color: #b0b0b0;
            padding-top: 70px;
            margin-top: 0;
            font-size: 0.95rem;
            position: relative;
        }

        .footer-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
            margin-bottom: 50px;
        }

        .footer-col h4 {
            color: #fff;
            font-size: 1.2rem;
            margin-bottom: 25px;
            position: relative;
            padding-bottom: 10px;
        }

        .footer-col h4::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 50px;
            height: 3px;
            background-color: var(--secondary);
        }

        .footer-col p {
            line-height: 1.8;
            margin-bottom: 15px;
        }

        .footer-links {
            list-style: none;
        }
        .footer-links li {
            margin-bottom: 5px;
        }
        .footer-links a {
            color: #b0b0b0;
            text-decoration: none;
            transition: 0.3s;
            display: inline-block;
        }
        .footer-links a:hover {
            color: var(--secondary);
            padding-left: 8px;
        }
        .contact-row {
            display: flex;
            align-items: flex-start;
            gap: 15px;
            margin-bottom: 15px;
        }
        .contact-icon {
            color: var(--secondary);
            font-size: 1.2rem;
            margin-top: 2px;
        }

        .newsletter-form {
            position: relative;
            margin-top: 20px;
        }
        .newsletter-input {
            width: 100%;
            padding: 12px;
            background: #222;
            border: 1px solid #333;
            color: #fff;
            border-radius: 5px;
        }
        .newsletter-btn {
            background: var(--primary);
            color: white;
            border: none;
            padding: 10px 20px;
            margin-top: 10px;
            border-radius: 5px;
            cursor: pointer;
            font-weight: 600;
            transition: 0.3s;
            width: 100%;
        }
        .newsletter-btn:hover {
            background: var(--primary-dark);
            color: #000;
        }

        .footer-bottom {
            background-color: #000;
            padding: 20px;
            text-align: center;
            border-top: 1px solid #222;
        }
        .footer-bottom p {
            font-size: 0.85rem;
            margin: 0;
        }
        .footer-bottom span {
            color: var(--secondary);
            font-weight: 600;
        }

        .social-links {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }
        .social-btn {
            width: 35px;
            height: 35px;
            background: #222;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            color: white;
            text-decoration: none;
            transition: 0.3s;
        }
        .social-btn:hover {
            background: var(--secondary);
            color: #000;
            transform: translateY(-3px);
        }

        .about-intro {
            text-align: center;
            max-width: 800px;
            margin: 0 auto 40px;
            font-size: 1.1rem;
            color: #555;
            line-height: 1.8;
        }
        .about-highlight {
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--primary);
            display: block;
            margin-bottom: 15px;
        }
        .stats-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 50px;
        }
        .stat-box {
            background: var(--primary);
            color: white;
            padding: 30px 20px;
            border-radius: 12px;
            text-align: center;
            transition: transform 0.3s, box-shadow 0.3s;
            box-shadow: 0 10px 20px rgba(211, 47, 47, 0.2);
            position: relative;
            overflow: hidden;
        }
        .stat-box:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(211, 47, 47, 0.4);
        }
        .stat-box::after {
            content: '';
            position: absolute;
            top: -20px;
            right: -20px;
            width: 80px;
            height: 80px;
            background: rgba(255,255,255,0.1);
            border-radius: 50%;
        }
        .stat-number {
            font-size: 2.5rem;
            font-weight: 800;
            display: block;
            margin-bottom: 5px;
            color: var(--secondary);
        }
        .stat-label {
            font-size: 0.95rem;
            opacity: 0.95;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-weight: 600;
        }
        .facilities-title {
            text-align: center;
            margin: 50px 0 30px;
            font-size: 1.8rem;
            color: var(--dark);
        }
        .facilities-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
        }
        .facility-box {
            background: #fff;
            border-left: 5px solid var(--primary);
            padding: 25px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.06);
            display: flex;
            align-items: flex-start;
            gap: 20px;
            transition: 0.3s;
        }
        .facility-box:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
            background: #fff8e1; 
        }
        .facility-icon {
            font-size: 2.5rem;
            line-height: 1;
        }
        .facility-text h4 {
            margin-bottom: 8px;
            color: var(--dark);
            font-size: 1.2rem;
        }
        .facility-text p {
            font-size: 0.9rem;
            color: #555;
            line-height: 1.5;
            margin: 0;
        }
        .values-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 30px;
        }
        .value-card {
            background: white;
            padding: 35px 25px;
            border-radius: 12px;
            border-bottom: 5px solid var(--secondary);
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
            text-align: center;
            transition: 0.3s;
        }
        .value-card:hover {
            transform: translateY(-5px);
            border-bottom-color: var(--primary);
        }
        .value-icon {
            font-size: 3rem;
            margin-bottom: 20px;
            display: inline-block;
            background: #fff8e1;
            width: 80px;
            height: 80px;
            line-height: 80px;
            border-radius: 50%;
        }
        .value-card h3 {
            color: var(--dark);
            margin-bottom: 15px;
            font-size: 1.3rem;
        }
        .value-card p {
            color: #666;
            font-size: 0.95rem;
        }

#drivingCheckboxes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.driving-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 2px solid #e0e0e0;
    background: #fff;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.driving-option input {
    display: none;
}

.driving-check {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid #bbb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    transition: 0.25s;
}

.driving-text {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.driving-option:hover {
    border-color: var(--primary);
    background: #fff8e1;
}

.driving-option input:checked + .driving-check {
    background: var(--primary);
    border-color: var(--primary);
}

.driving-option input:checked + .driving-check::after {
    content: "✓";
}

.driving-option input:checked ~ .driving-text {
    color: var(--primary);
}
.driving-option.disabled {
    opacity: 0.4;
    pointer-events: none;
    filter: grayscale(0.4);
}
.form-group.error input {
    border-color: #e53935;
    background: #fff5f5;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.15);
}

.form-group.error label {
    color: #e53935;
}

.age-error {
    margin-top: 6px;
    font-size: 0.85rem;
    color: #e53935;
    font-weight: 500;
    animation: fadeInUp 0.3s ease;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    50% { transform: translateX(4px); }
    75% { transform: translateX(-4px); }
    100% { transform: translateX(0); }
}

.form-group.error {
    animation: shake 0.35s;
}
@media (max-width: 600px) {
    .age-error {
        font-size: 0.8rem;
    }
}
@media (min-width: 768px) {
    #drivingCheckboxes {
        grid-template-columns: repeat(2, 1fr);
    }
}
        @media (max-width: 768px) {
            .navbar { padding: 15px 20px; }
            .logo-img { height: 45px; }
            .logo { font-size: 1.1rem; }
            .hamburger { display: flex; }
            .hero h1 { font-size: 2.2rem; }
            .nav-links { position: absolute; top: 80px; left: 0; width: 100%; background: #111; flex-direction: column; align-items: stretch; gap: 0; max-height: 0; overflow: hidden; transition: max-height 0.3s ease-in-out; }
            .nav-links.active { max-height: 600px; border-bottom: 2px solid var(--secondary); }
            .nav-item { width: 100%; }
            .nav-btn { width: 100%; text-align: center; padding: 15px; border-bottom: 1px solid #222; border-radius: 0; }
            .dropdown-content { position: relative; display: none; min-width: 100%; background: #1f1f1f; box-shadow: none; top: 0; border: none; }
            .nav-item:hover .dropdown-content { display: block; }
            .dropdown-content button { text-align: center; padding: 15px; border-bottom: 1px solid #2a2a2a; }
        }
        .contact-wrapper {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 40px;
            align-items: start;
        }

        .contact-info-col {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .info-box {
            background: white;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
            display: flex;
            align-items: center;
            gap: 20px;
            border-left: 5px solid var(--secondary);
            transition: transform 0.3s;
        }
        .info-box:hover {
            transform: translateX(5px);
        }

        .info-icon {
            background: #fff8e1;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            font-size: 1.5rem;
            flex-shrink: 0;
        }

        .info-text h4 { margin-bottom: 5px; color: #333; }
        .info-text p { font-size: 0.95rem; color: #666; margin: 0; }

.top-alert {
  position: fixed;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 420px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  padding: 14px 18px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  z-index: 10000;
  transition: all 0.5s ease;
}
.top-alert.show {
  top: 20px !important;
}
.top-alert.error {
  background: linear-gradient(135deg, #dc2626, #ef4444);
}

.fade-up {
    animation: fadeUp linear;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
}

.driving-error {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #e53935;
    font-weight: 600;
    animation: fadeInUp 0.3s ease;
}
#drivingLevelBox.error .driving-option {
    border-color: #e53935;
    background: #fff5f5;
}
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
        .map {
    margin-top: 20px;
    background: white;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.map h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--dark);
    text-align: center;
}
.map iframe {
    border-radius: 8px;
    width: 100%;
    display: block; 
}
        .contact-form-wrapper {
            background: white;
            padding: 40px;
            border-radius: 12px;
            box-shadow: 0 15px 40px rgba(0,0,0,0.1);
            border-top: 5px solid var(--primary);
        }
        @media (max-width: 900px) {
            .contact-wrapper { grid-template-columns: 1fr; }
            .map iframe { height: 250px; }
        }
#apply .form-group {
    scroll-margin-top: 100px;
}

html {
    scroll-padding-top: 90px;
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 110px;
    }
}
.top-alert {
  will-change: transform, opacity;
}

.service-gallery {
    display: flex;
    flex-direction: column;  
    gap: 16px;
    margin-top: 20px;
}

.service-gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.service-gallery img:hover {
    transform: scale(1.04);
    box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}
@media (max-width: 600px) {
    .service-gallery img {
        height: 190px;
    }
}
@media (max-width: 600px) {
    .service-gallery {
        grid-template-columns: 1fr; 
    }
    .service-gallery img {
        height: 180px; 
    }
}
/* ===== DRIVING SCHOOL GALLERY SECTION ===== */
.driving-gallery-section {
    margin-top: 60px;
    text-align: center;
}

.driving-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 30px;
}

.driving-gallery img {
    width: 100%;
    height: 390px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

/* Hover effect */
.driving-gallery img:hover {
    transform: scale(1.06);
    box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}

/* Tablet */
@media (max-width: 900px) {
    .driving-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    .driving-gallery img {
        height: 200px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .driving-gallery {
        grid-template-columns: 1fr;
    }
    .driving-gallery img {
        height: 400px;
    }
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ===== FIXED DETAILED SERVICE CARD ===== */
.service-card.detailed {
    background: #fff;
    padding: 2.2rem 2rem;
    border-radius: 14px;
    border-top: 5px solid var(--primary);
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card.detailed:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.14);
}

/* Title */
.service-card.detailed h3 {
    text-align: center;
    color: var(--primary);
    font-size: 1.45rem;
    margin-bottom: 5px;
}

/* Description */
.service-card.detailed p {
    text-align: center;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

/* Info section */
.card-info {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
}

/* Info rows */
.info-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    align-items: flex-start;
}

.info-label {
    min-width: 85px;
    font-weight: 700;
    color: var(--dark);
}

.info-val {
    flex: 1;
    color: #444;
}

/* Call button */
.call-btn-small {
    margin-top: 10px;
    padding: 12px;
    text-align: center;
    background: #111;
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.call-btn-small:hover {
    background: var(--secondary);
    color: #000;
}

/* Gallery stays LAST */
.service-card.detailed .service-gallery {
    margin-top: 12px;
}
/* ===== MOBILE OPTIMIZATION FOR DETAILED SERVICE CARD ===== */
@media (max-width: 600px) {

    .service-card.detailed {
        padding: 1.6rem 1.4rem;      /* tighter padding */
        gap: 12px;
        border-radius: 16px;
    }

    /* Title */
    .service-card.detailed h3 {
        font-size: 1.25rem;
        line-height: 1.3;
    }

    /* Description */
    .service-card.detailed p {
        font-size: 0.92rem;
        line-height: 1.55;
        margin-bottom: 6px;
    }

    /* Info rows stack cleanly */
    .info-row {
        flex-direction: column;
        gap: 2px;
    }

    .info-label {
        min-width: auto;
        font-size: 0.82rem;
        color: #666;
    }

    .info-val {
        font-size: 0.9rem;
        font-weight: 600;
        color: #222;
    }

    /* Call button – bigger & thumb friendly */
    .call-btn-small {
        padding: 14px;
        font-size: 1rem;
        border-radius: 10px;
    }

    /* Gallery images – larger */
    .service-gallery {
        gap: 12px;
    }

    .service-gallery img {
        height: 190px;
        border-radius: 14px;
    }
}
/* ===== PREMIUM CONSENT CARD ===== */

.consent-box {
    margin-top: 18px;
}

/* Card */
.consent-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 2px solid #e0e0e0;
    background: #fff;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* Hide checkbox */
.consent-card input {
    display: none;
}

/* Custom checkbox */
.consent-check {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    border: 2px solid #bbb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 900;
    color: white;
    transition: 0.25s;
    flex-shrink: 0;
}

/* Text */
.consent-text {
    font-size: 0.9rem;
    color: #444;
    line-height: 1.55;
    font-weight: 500;
}

/* Links */
.consent-text a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.consent-text a:hover {
    text-decoration: underline;
}

/* Hover */
.consent-card:hover {
    border-color: var(--primary);
    background: #fff8e1;
}

/* Checked */
.consent-card input:checked + .consent-check {
    background: var(--primary);
    border-color: var(--primary);
}

.consent-card input:checked + .consent-check::after {
    content: "✓";
}

.consent-card input:checked ~ .consent-text {
    color: var(--primary);
}

/* Error (JS-triggered) */
.consent-box.error .consent-card {
    border-color: #e53935;
    background: #fff5f5;
    animation: shake 0.35s;
}

.consent-box.error .consent-text {
    color: #e53935;
}

/* Mobile comfort */
@media (max-width: 600px) {
    .consent-card {
        padding: 14px 15px;
    }
    .consent-text {
        font-size: 0.85rem;
    }
}
/* Add this to your CSS file */

.consent-error-msg {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #e53935;
    font-weight: 600;
    padding-left: 5px;
    animation: fadeInUp 0.3s ease;
}

/* Ensure the box turns red when error is active */
.consent-box.error .consent-card {
    border-color: #e53935;
    background: #fff5f5;
    animation: shake 0.35s;
}

.consent-box.error .consent-text {
    color: #e53935;
}
/* ===== PREVIEW MODAL (FIXED & CLEAN) ===== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

/* Modal */
.preview-modal {
    background: #fff;
    width: 100%;
    max-width: 520px;
    border-radius: 16px;
    overflow: hidden;
    animation: slideDown 0.3s ease;
}

/* Header */
.preview-header {
    background: var(--dark);
    color: var(--secondary);
    padding: 18px;
    text-align: center;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Body */
.preview-body {
    padding: 22px;
    max-height: 70vh;
    overflow-y: auto;
}

/* Card Layout */
.preview-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Section title */
.preview-subtitle {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

/* Item */
.preview-item {
    display: flex;
    gap: 12px;
    background: #f9fafb;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #eee;
}

.preview-icon {
    font-size: 1.4rem;
    line-height: 1;
}

/* Text */
.preview-text {
    display: flex;
    flex-direction: column;
}

.preview-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #777;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.preview-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #222;
    margin-top: 2px;
}

/* Divider */
.preview-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 12px 0;
}

/* Tags */
.preview-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.preview-tag {
    background: var(--secondary);
    color: #000;
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
}

/* Footer */
.preview-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 18px;
    background: #f9f9f9;
}

.btn-modal-confirm {
    padding: 12px;
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}

.btn-modal-cancel {
    padding: 12px;
    border: 2px solid #ddd;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

/* Mobile UX */
@media (max-width: 600px) {
    .preview-modal {
        margin-top: auto;
        border-radius: 20px 20px 0 0;
    }

    .preview-footer {
        grid-template-columns: 1fr;
    }

    .btn-modal-confirm {
        order: -1;
    }
}
