/**
 * Servizio Taxi Caserta - Unified Responsive Stylesheet
 * Mobile-first approach with breakpoints for tablet and desktop
 */

/* ============================================
   AOS Fallback - Ensure content is visible if AOS fails to load
   This only applies if AOS hasn't initialized (no .aos-init class on body)
   ============================================ */
body:not(.aos-init) [data-aos] {
    opacity: 1 !important;
    transform: none !important;
}

/* ============================================
   CSS Reset & Base
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul, ol {
    list-style: none;
}

/* ============================================
   Utility Classes
   ============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.hidden { display: none !important; }
.visible { display: block !important; }

/* ============================================
   Header & Navigation
   ============================================ */
.header {
    background: #222;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    flex-wrap: wrap;
}

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

/* Mobile Menu Toggle */
.menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 5px 0;
    transition: 0.3s;
}

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

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

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

/* Navigation */
.main-nav {
    display: none;
    width: 100%;
    padding: 15px 0;
}

.main-nav.active {
    display: block;
}

.main-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.main-nav li a {
    display: block;
    color: #fff;
    padding: 12px 15px;
    font-size: 0.9rem;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background 0.3s;
}

.main-nav li a:hover,
.main-nav li.active a {
    color: #f5c34c;
    background: rgba(255,255,255,0.05);
}

/* Language Switcher */
.lang-switcher {
    background: #f5c34c;
    color: #222;
    border: none;
    padding: 8px 15px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin: 10px 15px;
    text-transform: uppercase;
}

.lang-switcher:hover {
    background: #fff;
    color: #222;
}

/* ============================================
   Hero Section / Slider
   ============================================ */
.hero {
    background: linear-gradient(135deg, #f5c34c 0%, #e5a000 100%);
    padding: 40px 15px;
    text-align: center;
}

.hero h1 {
    font-size: 2rem;
    color: #fff;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero h2 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 15px;
}

.hero .phone-number {
    display: inline-block;
    font-size: 1.5rem;
    color: #fff;
    background: #222;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
}

.hero .phone-number:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

/* Slider */
.slider {
    position: relative;
    overflow: hidden;
    max-height: 300px;
}

.slider img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ============================================
   Content Sections
   ============================================ */
.section {
    padding: 40px 15px;
}

.section-dark {
    background: #222;
    color: #fff;
}

.section-light {
    background: #f5f5f5;
}

.section-yellow {
    background: #f5c34c;
    color: #fff;
}

.section-title {
    font-size: 1.5rem;
    text-transform: uppercase;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #f5c34c;
}

.section-dark .section-title::after {
    background: #fff;
}

/* ============================================
   Service Cards / Grid
   ============================================ */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.card {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.section-dark .card {
    background: #333;
}

.card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 15px;
}

.card h3 {
    font-size: 1.2rem;
    color: #f5c34c;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.section-dark .card h3 {
    color: #f5c34c;
}

.card h4 {
    font-size: 1rem;
    color: #99834D;
    margin-bottom: 10px;
}

.card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.7;
}

.section-dark .card p {
    color: #aaa;
}

/* ============================================
   Gallery / Destinations
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.gallery-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.gallery-item-content {
    padding: 20px;
}

.gallery-item h4 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.gallery-item:hover h4 {
    color: #f5c34c;
}

.gallery-item p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.contact-info {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
}

.contact-info h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.contact-info p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 8px;
}

.contact-info a {
    color: #f5c34c;
}

.contact-info a:hover {
    text-decoration: underline;
}

.map-container {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 250px;
    border: none;
}

/* Contact Form */
.contact-form {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.contact-form h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f5c34c;
    box-shadow: 0 0 0 3px rgba(245, 195, 76, 0.2);
}

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

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

.btn-primary {
    background: #f5c34c;
    color: #222;
}

.btn-primary:hover {
    background: #e5a000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 195, 76, 0.4);
}

.btn-dark {
    background: #222;
    color: #fff;
}

.btn-dark:hover {
    background: #333;
}

/* reCAPTCHA responsive */
.g-recaptcha {
    margin-bottom: 20px;
    transform: scale(0.9);
    transform-origin: 0 0;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: #f5c34c;
    padding: 40px 15px;
    text-align: center;
}

.footer-phone {
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.footer-brand {
    font-size: 1.5rem;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.footer-brand a {
    color: #fff;
}

.footer-brand a:hover {
    text-decoration: underline;
}

.back-to-top {
    display: inline-block;
    width: 48px;
    height: 48px;
    background: #222;
    color: #fff;
    border-radius: 50%;
    line-height: 48px;
    font-size: 1.2rem;
    transition: background 0.3s, transform 0.3s;
}

.back-to-top:hover {
    background: #333;
    transform: translateY(-3px);
}

/* ============================================
   Responsive Breakpoints
   ============================================ */

/* Tablet (min-width: 768px) */
@media (min-width: 768px) {
    .container {
        padding: 0 30px;
    }

    .header .container {
        padding: 15px 30px;
    }

    .menu-toggle {
        display: none;
    }

    .main-nav {
        display: block;
        width: auto;
        padding: 0;
    }

    .main-nav ul {
        flex-direction: row;
        gap: 0;
    }

    .main-nav li a {
        padding: 15px 20px;
        border-bottom: none;
    }

    .main-nav {
        display: flex;
        align-items: center;
    }

    .lang-switcher {
        margin: 0 0 0 20px;
    }

    .hero {
        padding: 60px 30px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero .phone-number {
        font-size: 2rem;
        padding: 20px 40px;
    }

    .slider {
        max-height: 400px;
    }

    .section {
        padding: 60px 30px;
    }

    .section-title {
        font-size: 2rem;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

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

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

    .g-recaptcha {
        transform: scale(1);
    }

    .footer-phone {
        font-size: 3rem;
    }
}

/* Desktop (min-width: 1024px) */
@media (min-width: 1024px) {
    .logo img {
        height: 60px;
    }

    .main-nav li a {
        padding: 20px 25px;
        font-size: 0.85rem;
    }

    .hero h1 {
        font-size: 4rem;
    }

    .hero .phone-number {
        font-size: 2.5rem;
    }

    .slider {
        max-height: 500px;
    }

    .section {
        padding: 80px 30px;
    }

    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

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

    .gallery-item img {
        height: 200px;
    }

    .footer-phone {
        font-size: 4rem;
    }

    .footer-brand {
        font-size: 2rem;
    }
}

/* Large Desktop (min-width: 1200px) */
@media (min-width: 1200px) {
    .hero h1 {
        font-size: 5rem;
    }

    .cards-grid.five-cols {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .header,
    .footer,
    .back-to-top,
    .menu-toggle {
        display: none;
    }

    .section {
        padding: 20px 0;
    }

    body {
        font-size: 12pt;
        color: #000;
    }
}

/* ============================================
   Hero Slider
   ============================================ */
.hero-slider {
    position: relative;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    overflow: hidden;
}

.slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: 90%;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 2.5rem;
    color: #fff;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content h2 {
    font-size: 1.2rem;
    color: #f5c34c;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-content .phone-number {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    color: #222;
    background: #f5c34c;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.hero-content .phone-number:hover {
    transform: scale(1.05);
    background: #fff;
}

.phone-icon {
    font-size: 1.2em;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.dot:hover,
.dot.active {
    background: #f5c34c;
    transform: scale(1.2);
}

/* ============================================
   Cookie Banner
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #222;
    color: #fff;
    padding: 15px;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    text-align: center;
}

.cookie-content p {
    font-size: 0.9rem;
    margin: 0;
}

.cookie-content a {
    color: #f5c34c;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline:hover {
    background: #fff;
    color: #222;
}

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

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
}

.modal-content h2 {
    margin-bottom: 20px;
    color: #333;
}

.modal-content h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #333;
}

.modal-content p {
    color: #666;
    line-height: 1.7;
}

/* ============================================
   Form Improvements
   ============================================ */
.form-subtitle {
    color: #666;
    margin-bottom: 20px;
}

.form-response {
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    text-align: center;
}

.form-response.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-response.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #222;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   Card Image Style
   ============================================ */
.card-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* ============================================
   Lead Text
   ============================================ */
.lead-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

/* ============================================
   Header Scroll Effect
   ============================================ */
.header.scrolled {
    background: rgba(34, 34, 34, 0.95);
    backdrop-filter: blur(10px);
}

/* ============================================
   Footer Links
   ============================================ */
.footer-links {
    margin: 15px 0;
}

.footer-links a {
    color: #fff;
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ============================================
   Responsive - Hero Slider
   ============================================ */
@media (min-width: 768px) {
    .hero-slider {
        height: 70vh;
        max-height: 700px;
    }

    .hero-content h1 {
        font-size: 4rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-content .phone-number {
        font-size: 2rem;
        padding: 20px 40px;
    }

    .cookie-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .hero-slider {
        height: 80vh;
    }

    .hero-content h1 {
        font-size: 5rem;
    }

    .hero-content .phone-number {
        font-size: 2.5rem;
    }
}

/* ============================================
   Skip Link (Accessibility)
   ============================================ */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #f5c34c;
    color: #222;
    padding: 10px 20px;
    z-index: 10001;
    font-weight: bold;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* ============================================
   Scroll Progress Indicator
   ============================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #f5c34c, #e5a000);
    width: 0%;
    z-index: 10002;
    transition: width 0.1s ease-out;
}

/* ============================================
   Floating Phone Button
   ============================================ */
.floating-phone {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #f5c34c;
    color: #222;
    padding: 15px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 9998;
    transition: all 0.3s;
    text-decoration: none;
}

.floating-phone:hover {
    transform: scale(1.05);
    background: #fff;
}

.floating-phone-icon {
    font-size: 1.5rem;
}

.floating-phone-text {
    display: none;
}

@media (min-width: 768px) {
    .floating-phone {
        bottom: 30px;
        right: 30px;
        padding: 18px 25px;
    }

    .floating-phone-text {
        display: inline;
    }
}

/* Hide floating phone on desktop (larger screens) */
@media (min-width: 1024px) {
    .floating-phone {
        display: none;
    }
}

/* ============================================
   FAQ Section
   ============================================ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    text-align: left;
    transition: all 0.3s;
}

.faq-question:hover {
    background: #f9f9f9;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: #f5c34c;
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 25px 20px;
}

.faq-answer p {
    color: #666;
    line-height: 1.7;
}

/* ============================================
   Footer Social Links
   ============================================ */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s;
}

.social-link:hover {
    background: #f5c34c;
    color: #222;
    transform: translateY(-3px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   Focus States (Accessibility)
   ============================================ */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid #f5c34c;
    outline-offset: 2px;
}

.btn:focus {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

/* ============================================
   Reduced Motion (Accessibility)
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .scroll-progress {
        transition: none;
    }
}

/* ============================================
   Back to Top Button (Improved)
   ============================================ */
.back-to-top {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ============================================
   Form Validation States
   ============================================ */
.form-group {
    position: relative;
}

.validation-icon {
    position: absolute;
    right: 15px;
    top: 42px;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.form-group.valid .validation-icon::after {
    content: '✓';
    color: #28a745;
}

.form-group.invalid .validation-icon::after {
    content: '✕';
    color: #dc3545;
}

.form-group.valid .validation-icon,
.form-group.invalid .validation-icon {
    opacity: 1;
}

.form-group.valid input,
.form-group.valid textarea {
    border-color: #28a745;
}

.form-group.invalid input,
.form-group.invalid textarea {
    border-color: #dc3545;
}

/* ============================================
   Character Counter
   ============================================ */
.char-counter {
    text-align: right;
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
}

.char-counter.warning {
    color: #dc3545;
    font-weight: bold;
}

/* ============================================
   Toast Notifications
   ============================================ */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #333;
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 280px;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transform: translateX(120%);
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    background: #28a745;
}

.toast-error {
    background: #dc3545;
}

.toast-icon {
    font-size: 1.3rem;
    font-weight: bold;
}

.toast-message {
    flex: 1;
    font-size: 0.95rem;
}

/* ============================================
   Lightbox
   ============================================ */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: #f5c34c;
}

#lightbox-img {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 5px;
}

.lightbox-caption {
    color: #fff;
    font-size: 1.2rem;
    margin-top: 15px;
    text-align: center;
}

/* ============================================
   Hero Slider Enhancement
   ============================================ */
/* Parallax effect removed - not compatible with absolute positioned slides */

/* ============================================
   Gallery Images Hover Effect
   ============================================ */
.gallery-item img {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* ============================================
   Mobile Toast Position
   ============================================ */
@media (max-width: 480px) {
    .toast-container {
        left: 10px;
        right: 10px;
        top: auto;
        bottom: 100px;
    }

    .toast {
        min-width: auto;
        max-width: none;
    }
}

/* ============================================
   Subpage Styles
   ============================================ */

.page-header {
    background: #222;
    color: #fff;
    padding: 100px 0 40px;
    text-align: center;
}

.page-header h1 {
    font-size: 2rem;
    color: #f5c34c;
    margin-bottom: 10px;
}

.page-header .lead-text {
    color: #ccc;
    font-size: 1.05rem;
    max-width: 700px;
    margin: 0 auto 15px;
}

.breadcrumb {
    font-size: 0.85rem;
    color: #999;
}

.breadcrumb a {
    color: #f5c34c;
    text-decoration: none;
}

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

.breadcrumb span {
    margin: 0 8px;
}

.cta-section {
    text-align: center;
    padding: 50px 0;
}

.cta-section .phone-cta {
    font-size: 2rem;
    font-weight: 700;
    color: #f5c34c;
    text-decoration: none;
    display: inline-block;
    margin: 20px 0;
}

.cta-section .phone-cta:hover {
    text-decoration: underline;
}

.gallery-item-content .btn {
    margin-top: 10px;
    display: inline-block;
}

.related-routes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .page-header {
        padding: 120px 0 50px;
    }

    .page-header h1 {
        font-size: 2.8rem;
    }

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

@media (min-width: 1024px) {
    .page-header h1 {
        font-size: 3.2rem;
    }
}
