/* ============================================
   SJ Electrical Contractors - Main Stylesheet
   ============================================ */

/* CSS Variables */
:root {
    /* Backgrounds - Dark mode default */
    --color-bg-primary: #0a0a0a;
    --color-bg-secondary: #141414;
    --color-bg-elevated: #1f1f1f;

    /* Text */
    --color-text-primary: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.7);
    --color-text-muted: rgba(255, 255, 255, 0.5);

    /* Accent (Orange) */
    --color-accent: #FF8C00;
    --color-accent-hover: #FFa333;
    --color-accent-text: #0a0a0a;

    /* Semantic */
    --color-success: #00C853;
    --color-error: #FF5252;

    /* Borders & Dividers */
    --color-border: rgba(255, 255, 255, 0.1);
    --color-border-hover: rgba(255, 255, 255, 0.2);

    /* Shadows */
    --shadow-sm: 0 0 10px rgba(255, 140, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.6);

    /* Legacy mappings for existing CSS (prevents breakage) */
    --primary: var(--color-accent);
    --primary-dark: var(--color-accent-hover);
    --secondary: #FFD700;
    --secondary-dark: #e6c200;
    --dark: var(--color-text-primary);
    --dark-light: var(--color-text-secondary);
    --light: var(--color-bg-secondary);
    --white: var(--color-bg-primary);
    --accent: var(--color-success);
    --danger: var(--color-error);
    --shadow: var(--shadow-md);

    /* Radius and transition (unchanged) */
    --radius: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;

    /* Typography */
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: var(--color-accent-hover);
    color: var(--color-accent-text);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--dark);
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

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

.btn-white:hover {
    background: var(--light);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.1rem;
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--color-bg-primary);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--dark);
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 1.5rem;
}

.logo span {
    color: var(--primary);
}

.logo-img {
    height: 55px !important;
    width: auto !important;
    max-width: 200px;
    object-fit: contain;
}

.logo-img.logo-light {
    display: block;
}

.logo-img.logo-dark {
    display: none;
}

[data-theme="light"] .logo-img.logo-light {
    display: none;
}

[data-theme="light"] .logo-img.logo-dark {
    display: block;
}

.footer-logo-img {
    height: 60px;
}

.accreditation-badges {
    margin-top: 15px;
}

.niceic-badge {
    height: 60px;
    width: auto;
    border-radius: 4px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--dark);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

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

.nav-links a.active {
    color: var(--primary);
}

.header-cta {
    display: none;
}

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

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 75px;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    padding: 20px;
    z-index: 999;
}

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

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav-links a {
    display: block;
    color: var(--dark);
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 1px solid var(--light);
}

.mobile-nav .btn {
    width: 100%;
    margin-top: 15px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    padding: 140px 0 80px;
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 L60 40 L90 40 L65 60 L75 90 L50 70 L25 90 L35 60 L10 40 L40 40 Z' fill='%23FFD700' opacity='0.1'/%3E%3C/svg%3E") repeat;
    opacity: 0.15;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.hero-badge svg {
    color: var(--secondary);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--color-accent);
}

.hero-text {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-features {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.hero-feature svg {
    color: var(--secondary);
    flex-shrink: 0;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    background: var(--color-bg-elevated);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    color: var(--color-text-primary);
    max-width: 400px;
    position: relative;
    z-index: 2;
    border: 1px solid var(--color-border);
}

.hero-card h3 {
    color: var(--primary);
    margin-bottom: 20px;
}

.hero-card-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.hero-card-feature svg {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 4px;
}

/* ============================================
   Services Section
   ============================================ */
.services {
    padding: var(--space-3xl) 0;
    background: var(--color-bg-secondary);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-2xl);
}

.section-header h2 {
    color: var(--dark);
}

.section-header p {
    color: var(--dark-light);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--color-accent-text);
    font-size: 1.8rem;
}

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

.service-card p {
    color: var(--dark-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.service-card .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* ============================================
   Why Choose Us Section
   ============================================ */
.why-us {
    padding: var(--space-3xl) 0;
}

.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.why-us-content h2 {
    margin-bottom: 20px;
}

.why-us-content > p {
    color: var(--dark-light);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.why-us-features {
    display: grid;
    gap: 20px;
}

.why-feature {
    display: flex;
    gap: 15px;
}

.why-feature-icon {
    width: 50px;
    height: 50px;
    background: var(--light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.4rem;
    flex-shrink: 0;
}

.why-feature h4 {
    margin-bottom: 5px;
}

.why-feature p {
    color: var(--dark-light);
    font-size: 0.95rem;
    margin: 0;
}

.why-us-image {
    position: relative;
}

.credentials-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.niceic-styled-badge {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #006633 0%, #004d26 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    border: 4px solid #FFD700;
}

.niceic-styled-badge span:first-child {
    font-size: 1.4rem;
}

.niceic-styled-badge span:last-child {
    font-size: 0.7rem;
    opacity: 0.9;
}

.credentials-card h3 {
    color: var(--dark);
    margin-bottom: 10px;
}

.credentials-card p {
    color: var(--dark-light);
    font-size: 0.95rem;
}

.credentials-badge-img {
    width: 120px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
    border-radius: 4px;
}

/* ============================================
   Photo Quote CTA Section
   ============================================ */
.photo-quote-cta {
    padding: var(--space-3xl) 0;
    background: var(--color-accent);
}

/* Photo quote CTA section text colors */
.photo-quote-cta .cta-content h2,
.photo-quote-cta .cta-content p,
.photo-quote-cta .cta-step p {
    color: var(--color-accent-text);
}

.photo-quote-cta .step-number {
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
}

.photo-quote-cta .section-header h2,
.photo-quote-cta .section-header p {
    color: var(--color-accent-text);
}

/* Button on orange background needs dark fill for contrast */
.photo-quote-cta .btn-primary {
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
    border-color: var(--color-bg-primary);
}

.photo-quote-cta .btn-primary:hover {
    background: var(--color-bg-secondary);
    border-color: var(--color-bg-secondary);
}

.cta-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.cta-content h2 {
    color: var(--dark);
    margin-bottom: 20px;
}

.cta-content p {
    color: var(--dark-light);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.cta-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.cta-step {
    display: flex;
    align-items: center;
    gap: 15px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--dark);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    flex-shrink: 0;
}

.cta-step p {
    margin: 0;
    font-weight: 500;
    color: var(--dark);
}

.cta-image {
    display: flex;
    justify-content: center;
}

.upload-preview {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 350px;
}

.upload-preview svg {
    color: var(--primary);
    margin-bottom: 20px;
}

.upload-preview h4 {
    color: var(--dark);
    margin-bottom: 10px;
}

.upload-preview p {
    color: var(--dark-light);
    font-size: 0.9rem;
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials {
    padding: var(--space-3xl) 0;
    background: var(--color-bg-secondary);
}

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

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow);
}

.testimonial-stars {
    color: var(--secondary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--dark-light);
    margin-bottom: 20px;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.author-info p {
    font-size: 0.85rem;
    color: var(--dark-light);
    margin: 0;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: #111111;
    color: var(--color-text-primary);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 15px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.footer-contact svg {
    color: var(--secondary);
    flex-shrink: 0;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact a:hover {
    color: var(--secondary);
}

/* Social Media Links */
.footer-social {
    margin-top: 20px;
}

.footer-social h4 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--color-accent);
    color: var(--color-accent-text);
    transform: translateY(-2px);
}

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

/* Placeholder indicator for social links */
.social-link[data-placeholder="true"] {
    opacity: 0.6;
}

.social-link[data-placeholder="true"]:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ============================================
   Services Page
   ============================================ */
.page-hero {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
}

.page-hero h1 {
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.service-detail {
    padding: 60px 0;
    border-bottom: 1px solid var(--light);
}

.service-detail:last-of-type {
    border-bottom: none;
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.service-detail:nth-child(even) .service-detail-grid {
    direction: rtl;
}

.service-detail:nth-child(even) .service-detail-content {
    direction: ltr;
}

.service-detail:nth-child(even) .service-detail-image {
    direction: ltr;
}

.service-detail-content h2 {
    color: var(--dark);
    margin-bottom: 15px;
}

.service-detail-content > p {
    color: var(--dark-light);
    font-size: 1.05rem;
    margin-bottom: 25px;
}

.service-list {
    list-style: none;
    margin-bottom: 25px;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--dark);
}

.service-list svg {
    color: var(--accent);
    flex-shrink: 0;
}

.service-detail-image {
    display: flex;
    justify-content: center;
}

.service-image-card {
    background: var(--light);
    border-radius: var(--radius-lg);
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-image-card svg {
    color: var(--primary);
}

/* ============================================
   Quote Form Page
   ============================================ */
.quote-page {
    padding: 140px 0 80px;
    background: var(--light);
    min-height: 100vh;
}

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

.quote-header {
    text-align: center;
    margin-bottom: 40px;
}

.quote-header h1 {
    color: var(--dark);
    margin-bottom: 15px;
}

.quote-header p {
    color: var(--dark-light);
    font-size: 1.1rem;
}

.quote-form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.form-section {
    margin-bottom: 30px;
}

.form-section h3 {
    color: var(--dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light);
}

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

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.form-group label span {
    color: var(--danger);
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    transition: var(--transition);
    background: var(--color-bg-elevated);
    color: var(--color-text-primary);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.2);
}

.form-control::placeholder {
    color: #999;
}

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

select.form-control {
    cursor: pointer;
}

select.form-control option {
    background: var(--color-bg-elevated);
    color: var(--color-text-primary);
}

/* Photo Upload Zone */
.upload-zone {
    border: 3px dashed var(--primary);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(0, 102, 204, 0.02);
}

.upload-zone:hover,
.upload-zone.dragover {
    background: rgba(0, 102, 204, 0.05);
    border-color: var(--primary-dark);
}

.upload-zone svg {
    color: var(--primary);
    margin-bottom: 15px;
}

.upload-zone h4 {
    color: var(--dark);
    margin-bottom: 10px;
}

.upload-zone p {
    color: var(--dark-light);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.upload-zone .browse-btn {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

.upload-input {
    display: none;
}

/* Image Preview */
.image-previews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.preview-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: var(--shadow);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
    background: var(--danger);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.preview-remove:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* Contact Preferences */
.checkbox-group {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-item input {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

/* Form Submit */
.form-submit {
    text-align: center;
    padding-top: 20px;
}

.form-submit .btn {
    min-width: 250px;
}

.form-note {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--dark-light);
}

/* Success Message */
.form-success {
    display: none;
    text-align: center;
    padding: 60px 20px;
}

.form-success.show {
    display: block;
}

.form-success svg {
    color: var(--accent);
    margin-bottom: 20px;
}

.form-success h2 {
    color: var(--dark);
    margin-bottom: 15px;
}

.form-success p {
    color: var(--dark-light);
    font-size: 1.1rem;
}

/* Form Error Container */
.form-error-container {
    display: none;
    background: rgba(255, 82, 82, 0.1);
    border: 2px solid var(--color-error);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 20px;
    color: var(--color-error);
    font-weight: 500;
}

.form-error-container.visible {
    display: block;
}

/* Form field error state */
.form-control.error {
    border-color: var(--color-error);
    background: rgba(255, 82, 82, 0.05);
}

.form-control.error:focus {
    border-color: var(--color-error);
    box-shadow: 0 0 0 3px rgba(255, 82, 82, 0.2);
}

/* Inline field error message (for future enhancement) */
.field-error {
    display: block;
    color: var(--color-error);
    font-size: 0.85rem;
    margin-top: 6px;
}

/* ============================================
   WhatsApp Button
   ============================================ */
.form-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: var(--dark-light);
    font-size: 0.9rem;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

.form-divider span {
    padding: 0 15px;
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
    width: 100%;
    max-width: 250px;
    min-height: 44px;
    margin: 0 auto;
}

.btn-whatsapp:hover {
    background: #128C7E;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   Voice Recorder
   ============================================ */
.voice-recorder {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.record-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    min-height: 44px;
    background: var(--color-bg-elevated);
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    color: var(--color-text-primary);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.record-btn:hover {
    border-color: var(--color-accent);
    background: var(--color-bg-secondary);
}

.record-btn.recording {
    background: var(--color-error);
    border-color: var(--color-error);
    color: #fff;
}

.record-btn.recording:hover {
    background: #cc4444;
    border-color: #cc4444;
}

.record-btn .mic-icon {
    transition: var(--transition);
}

.record-btn.recording .mic-icon {
    animation: micPulse 1s ease-in-out infinite;
}

@keyframes micPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.recording-indicator {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(255, 82, 82, 0.1);
    border-radius: var(--radius);
    font-size: 0.95rem;
}

.recording-indicator.visible {
    display: flex;
}

.recording-dot {
    width: 12px;
    height: 12px;
    background: var(--color-error);
    border-radius: 50%;
    animation: recordingPulse 1s ease-in-out infinite;
}

@keyframes recordingPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.recording-label {
    color: var(--dark-light);
    font-size: 0.85rem;
}

.voice-playback {
    display: none;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding: 15px;
    background: var(--color-bg-secondary);
    border-radius: var(--radius);
}

.voice-playback.visible {
    display: flex;
}

.voice-playback audio {
    flex: 1;
    height: 40px;
}

.delete-voice-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 2px solid var(--color-error);
    border-radius: var(--radius);
    color: var(--color-error);
    cursor: pointer;
    transition: var(--transition);
}

.delete-voice-btn:hover {
    background: var(--color-error);
    color: #fff;
}

/* ============================================
   Symptom Checker
   ============================================ */
.symptom-checker {
    display: none;
    margin-bottom: 20px;
    padding: 20px;
    background: var(--color-bg-secondary);
    border-radius: var(--radius);
    border-left: 4px solid var(--color-accent);
    animation: slideDown 0.3s ease;
}

.symptom-checker.visible {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.symptom-checker h4 {
    color: var(--color-text-primary);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.symptom-questions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.symptom-question {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.symptom-question > label {
    font-weight: 600;
    color: var(--color-text-primary);
    font-size: 0.95rem;
}

.symptom-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.symptom-option {
    display: flex;
    cursor: pointer;
}

.symptom-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.symptom-option span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    min-height: 44px;
    background: var(--color-bg-elevated);
    border: 2px solid var(--color-border);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--color-text-primary);
    transition: var(--transition);
}

.symptom-option:hover span {
    border-color: var(--color-accent);
}

.symptom-option input:checked + span {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-accent-text);
}

.symptom-option input:focus-visible + span {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Light mode adjustments */
[data-theme="light"] .symptom-checker {
    background: #f5f5f5;
}

[data-theme="light"] .symptom-option span {
    background: #fff;
}

[data-theme="light"] .voice-playback {
    background: #f5f5f5;
}

[data-theme="light"] .recording-indicator {
    background: rgba(255, 82, 82, 0.08);
}

[data-theme="light"] .record-btn {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .record-btn:hover {
    border-color: var(--color-accent);
    background: #f5f5f5;
}

/* ============================================
   About Page
   ============================================ */
.about-intro {
    padding: var(--space-3xl) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    color: var(--dark);
    margin-bottom: 20px;
}

.about-content p {
    color: var(--dark-light);
    font-size: 1.05rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    padding: 25px;
    background: var(--light);
    border-radius: var(--radius);
}

.stat-item h3 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.stat-item p {
    color: var(--dark-light);
    font-size: 0.95rem;
    margin: 0;
}

.about-image-section {
    display: flex;
    justify-content: center;
}

.about-badge-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 50px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.certifications {
    padding: var(--space-3xl) 0;
    background: var(--color-bg-secondary);
}

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

.cert-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
}

.cert-icon {
    width: 80px;
    height: 80px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 2rem;
}

.cert-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.cert-card p {
    color: var(--dark-light);
    font-size: 0.9rem;
    margin: 0;
}

.service-areas {
    padding: var(--space-3xl) 0;
}

.areas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.areas-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.areas-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark);
}

.areas-list svg {
    color: var(--primary);
}

.areas-map {
    background: var(--light);
    border-radius: var(--radius-lg);
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-light);
}

/* ============================================
   Contact Page
   ============================================ */
.contact-section {
    padding: var(--space-3xl) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    margin-bottom: 30px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-method {
    display: flex;
    gap: 20px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-method h4 {
    margin-bottom: 5px;
}

.contact-method p {
    color: var(--dark-light);
    margin: 0;
}

.contact-method a {
    color: var(--primary);
    font-weight: 600;
}

.opening-hours {
    margin-top: 40px;
    padding: 25px;
    background: var(--light);
    border-radius: var(--radius);
}

.opening-hours h4 {
    margin-bottom: 15px;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hours-list p {
    display: flex;
    justify-content: space-between;
    margin: 0;
    font-size: 0.95rem;
}

.hours-list span:last-child {
    font-weight: 600;
}

.contact-form-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.contact-form-section h3 {
    margin-bottom: 25px;
}

.map-section {
    padding: 0 0 60px;
}

.map-container {
    height: 400px;
    background: var(--light);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

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

/* ============================================
   Responsive Design
   ============================================ */
@media (min-width: 992px) {
    .header-cta {
        display: block;
    }
}

@media (max-width: 991px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .hero-buttons {
        justify-content: center;
    }

    .hero-features {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-image {
        display: none;
    }

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

    .why-us-grid,
    .cta-container,
    .about-grid,
    .areas-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

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

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

    .service-detail-grid {
        grid-template-columns: 1fr;
    }

    .service-detail:nth-child(even) .service-detail-grid {
        direction: ltr;
    }

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

@media (max-width: 767px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }

    .hero {
        padding: 120px 0 60px;
    }

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

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

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

    .quote-form-card {
        padding: 25px;
    }

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

    .checkbox-group {
        flex-direction: column;
        gap: 15px;
    }

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

    .areas-list {
        grid-template-columns: 1fr;
    }

    /* Voice recorder responsive */
    .voice-recorder {
        flex-direction: column;
        align-items: flex-start;
    }

    .voice-playback {
        flex-direction: column;
        gap: 10px;
    }

    .voice-playback audio {
        width: 100%;
    }

    /* Symptom options responsive */
    .symptom-options {
        flex-direction: column;
    }

    .symptom-option span {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

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

/* ============================================
   Utility Classes
   ============================================ */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none; }

/* ============================================
   Light Mode (toggled)
   ============================================ */
[data-theme="light"] {
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #f8f8f8;
    --color-bg-elevated: #ffffff;

    --color-text-primary: #0a0a0a;
    --color-text-secondary: rgba(0, 0, 0, 0.7);
    --color-text-muted: rgba(0, 0, 0, 0.5);

    --color-accent: #E67E00;
    --color-accent-hover: #CC7000;

    --color-border: rgba(0, 0, 0, 0.1);
    --color-border-hover: rgba(0, 0, 0, 0.2);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);

    /* Legacy mappings */
    --primary: var(--color-accent);
    --primary-dark: var(--color-accent-hover);
    --dark: var(--color-text-primary);
    --dark-light: var(--color-text-secondary);
    --light: var(--color-bg-secondary);
    --white: var(--color-bg-primary);
}

[data-theme="light"] body {
    background-color: #ffffff;
}

[data-theme="light"] .header {
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .mobile-nav {
    background: #ffffff;
}

[data-theme="light"] .service-card,
[data-theme="light"] .testimonial-card,
[data-theme="light"] .quote-form-card,
[data-theme="light"] .contact-form-section,
[data-theme="light"] .credentials-card,
[data-theme="light"] .hero-card,
[data-theme="light"] .upload-preview,
[data-theme="light"] .about-badge-card,
[data-theme="light"] .cert-card {
    background: #ffffff;
}

[data-theme="light"] .form-control {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    color: #0a0a0a;
}

[data-theme="light"] .form-control:focus {
    border-color: var(--color-accent);
}

[data-theme="light"] .form-error-container {
    background: rgba(255, 82, 82, 0.08);
}

[data-theme="light"] .form-control.error {
    background: rgba(255, 82, 82, 0.05);
}

[data-theme="light"] .upload-zone {
    background: rgba(230, 126, 0, 0.05);
    border-color: var(--color-accent);
}

[data-theme="light"] .footer {
    background: #1a1a1a;
}

/* CTA button on orange section - dark fill for contrast in light mode too */
[data-theme="light"] .photo-quote-cta .btn-primary {
    background: #1a1a1a;
    color: #ffffff;
    border-color: #1a1a1a;
}

[data-theme="light"] .photo-quote-cta .btn-primary:hover {
    background: #2a2a2a;
    border-color: #2a2a2a;
}

[data-theme="light"] .mobile-menu-btn span {
    background: #0a0a0a;
}

/* Dark mode transition for flicker effect */
body.theme-transitioning {
    animation: flicker 0.5s ease;
}

@keyframes flicker {
    0% { opacity: 1; }
    10% { opacity: 0.4; }
    20% { opacity: 0.8; }
    30% { opacity: 0.2; }
    40% { opacity: 0.9; }
    50% { opacity: 0.3; }
    60% { opacity: 0.8; }
    70% { opacity: 0.5; }
    80% { opacity: 0.9; }
    90% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* ============================================
   Light Switch Toggle
   ============================================ */
.light-switch {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    cursor: pointer;
}

.switch-plate {
    width: 50px;
    height: 80px;
    background: linear-gradient(145deg, #2a2a3e, #1a1a2e);
    border-radius: 8px;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.5),
        inset 0 2px 3px rgba(255, 255, 255, 0.1),
        inset 0 -2px 3px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid #3a3a4e;
}

[data-theme="light"] .switch-plate {
    background: linear-gradient(145deg, #e6e6e6, #ffffff);
    border-color: #d0d0d0;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 2px 3px rgba(255, 255, 255, 0.8),
        inset 0 -2px 3px rgba(0, 0, 0, 0.1);
}

.switch-toggle {
    width: 24px;
    height: 40px;
    background: linear-gradient(180deg, #4a4a5e 0%, #3a3a4e 50%, #4a4a5e 100%);
    border-radius: 4px;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
    transition: all 0.15s ease;
    transform: rotateX(0deg);
    transform-origin: center bottom;
}

.switch-toggle.off {
    transform: rotateX(-25deg);
    box-shadow:
        0 -2px 8px rgba(0, 0, 0, 0.3),
        inset 0 -1px 2px rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .switch-toggle {
    background: linear-gradient(180deg, #f5f5f5 0%, #e0e0e0 50%, #f5f5f5 100%);
}

.light-switch:hover .switch-plate {
    transform: scale(1.05);
}

.light-switch:active .switch-toggle {
    transform: rotateX(-15deg);
}

.switch-label {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 600;
    color: var(--dark);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.light-switch:hover .switch-label {
    opacity: 1;
}

/* ============================================
   Lightbulb Loading Animation
   ============================================ */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a12 0%, #1a1a2e 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.lightbulb-container {
    position: relative;
    width: 120px;
    height: 180px;
}

.lightbulb {
    position: relative;
    width: 100%;
    height: 100%;
}

.bulb-glass {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50% 50% 45% 45%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.bulb-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: var(--secondary);
    border-radius: 50%;
    opacity: 0;
    filter: blur(15px);
    transition: opacity 0.1s ease;
}

.bulb-filament {
    position: absolute;
    top: 35px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 40px;
}

.filament-wire {
    position: absolute;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    left: 50%;
    transform: translateX(-50%);
}

.filament-wire::before,
.filament-wire::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    bottom: 0;
}

.filament-wire::before {
    left: -8px;
    transform: rotate(-15deg);
    transform-origin: bottom center;
}

.filament-wire::after {
    left: 8px;
    transform: rotate(15deg);
    transform-origin: bottom center;
}

.bulb-base {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 35px;
    background: linear-gradient(180deg, #666 0%, #444 50%, #666 100%);
    border-radius: 0 0 5px 5px;
}

.bulb-base::before {
    content: '';
    position: absolute;
    top: 0;
    left: -5px;
    right: -5px;
    height: 8px;
    background: linear-gradient(180deg, #888 0%, #555 100%);
    border-radius: 3px;
}

.bulb-screw {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: repeating-linear-gradient(
        0deg,
        #555 0px,
        #555 4px,
        #777 4px,
        #777 8px
    );
    border-radius: 0 0 50% 50%;
}

/* Lightbulb states */
.lightbulb.flickering .bulb-glow {
    animation: bulbFlicker 0.6s ease-in-out;
}

.lightbulb.flickering .filament-wire,
.lightbulb.flickering .filament-wire::before,
.lightbulb.flickering .filament-wire::after {
    animation: filamentFlicker 0.6s ease-in-out;
}

.lightbulb.on .bulb-glow {
    opacity: 1;
    width: 100px;
    height: 100px;
    filter: blur(30px);
}

.lightbulb.on .bulb-glass {
    background: rgba(255, 215, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.5);
}

.lightbulb.on .filament-wire,
.lightbulb.on .filament-wire::before,
.lightbulb.on .filament-wire::after {
    background: var(--secondary);
    box-shadow: 0 0 10px var(--secondary);
}

@keyframes bulbFlicker {
    0% { opacity: 0; }
    20% { opacity: 0.5; }
    40% { opacity: 0.2; }
    60% { opacity: 0.8; }
    80% { opacity: 0.4; }
    100% { opacity: 1; width: 100px; height: 100px; filter: blur(30px); }
}

@keyframes filamentFlicker {
    0% { background: rgba(255, 255, 255, 0.3); box-shadow: none; }
    25% { background: rgba(255, 200, 100, 0.5); box-shadow: 0 0 5px rgba(255, 200, 100, 0.5); }
    50% { background: rgba(255, 255, 255, 0.3); box-shadow: none; }
    75% { background: rgba(255, 200, 100, 0.7); box-shadow: 0 0 7px rgba(255, 200, 100, 0.5); }
    100% { background: var(--secondary); box-shadow: 0 0 10px var(--secondary); }
}

.loader-text {
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.loader-text span {
    animation: textPulse 1.5s ease-in-out infinite;
}

.loader-text span:nth-child(2) { animation-delay: 0.1s; }
.loader-text span:nth-child(3) { animation-delay: 0.2s; }
.loader-text span:nth-child(4) { animation-delay: 0.3s; }
.loader-text span:nth-child(5) { animation-delay: 0.4s; }
.loader-text span:nth-child(6) { animation-delay: 0.5s; }
.loader-text span:nth-child(7) { animation-delay: 0.6s; }
.loader-text span:nth-child(8) { animation-delay: 0.7s; }
.loader-text span:nth-child(9) { animation-delay: 0.8s; }
.loader-text span:nth-child(10) { animation-delay: 0.9s; }

@keyframes textPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ============================================
   Voltage Meter for Quote Form
   ============================================ */
.voltage-meter {
    position: sticky;
    top: 90px;
    background: linear-gradient(145deg, #1a1a2e, #0f0f1a);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    z-index: 100;
}

.meter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.meter-title {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.meter-title svg {
    color: var(--secondary);
}

.meter-percentage {
    color: var(--secondary);
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
}

.meter-gauge {
    position: relative;
    height: 30px;
    background: #0a0a12;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
}

.meter-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg,
        #ff4444 0%,
        #ff8800 25%,
        #ffcc00 50%,
        #88ff00 75%,
        #00ff88 100%
    );
    border-radius: 15px;
    transition: width 0.5s ease;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.meter-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 15px 15px 0 0;
}

.meter-sparks {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.meter-markers {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    padding: 0 5px;
}

.meter-marker {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Montserrat', sans-serif;
}

.meter-status {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.status-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.status-text.charged {
    color: #00ff88;
    font-weight: 600;
}

/* Meter animations */
.meter-fill.charging {
    animation: meterPulse 1s ease-in-out infinite;
}

@keyframes meterPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.5); }
    50% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.8), 0 0 50px rgba(255, 215, 0, 0.3); }
}

.meter-fill.full {
    animation: meterComplete 0.5s ease;
}

@keyframes meterComplete {
    0% { box-shadow: 0 0 20px rgba(0, 255, 136, 0.5); }
    50% { box-shadow: 0 0 50px rgba(0, 255, 136, 1), 0 0 100px rgba(0, 255, 136, 0.5); }
    100% { box-shadow: 0 0 30px rgba(0, 255, 136, 0.7); }
}

/* Mini sparks on the meter */
.mini-spark {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--secondary);
    animation: miniSparkFloat 0.8s ease-out forwards;
}

@keyframes miniSparkFloat {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx, 10px), var(--ty, -20px)) scale(0);
    }
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .voltage-meter {
        position: relative;
        top: 0;
    }
}
