/* ==========================================================================
   Emer Taxi landing page stylesheet
   Core Brand Colors:
   - Teal: #2EBDAA (HSL 172, 61%, 46%)
   - Charcoal: #231F20 (HSL 345, 6%, 11%)
   ========================================================================== */

/* Custom Reset & Base Variables */
:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --container-max-width: 1200px;
    --danger-color: #ef4444;
}

body {
    --brand-teal: #2EBDAA;
    --brand-teal-glow: rgba(46, 189, 170, 0.35);
    --brand-teal-hover: #3bd9c3;
    --brand-charcoal: #ffffff;
    --brand-charcoal-dark: #f0eff1;
    --brand-charcoal-light: #e6e5e8;
    --bg-dark: #f6f5f7;
    --card-bg: rgba(255, 255, 255, 0.75);
    --card-border: rgba(46, 189, 170, 0.22);
    --card-border-hover: rgba(46, 189, 170, 0.55);
    
    --text-white: #1e1b1c;
    --text-primary: #231F20;
    --text-muted: #6b6667;
    --text-teal: #1a8a7c;
    
    --nav-bg: rgba(246, 245, 247, 0.85);
    --nav-bg-scrolled: rgba(246, 245, 247, 0.95);
    --nav-border: rgba(0, 0, 0, 0.06);
    
    --stats-bg: rgba(230, 229, 232, 0.5);
    --stats-border: rgba(0, 0, 0, 0.03);
    
    --input-border: rgba(0, 0, 0, 0.08);
    --input-focus-border: var(--brand-teal);
    
    --btn-border: rgba(0, 0, 0, 0.08);
    --btn-border-hover: rgba(0, 0, 0, 0.15);
    
    --card-progress-overlay-bg: rgba(255, 255, 255, 0.75);
    --divider-color: rgba(0, 0, 0, 0.08);
    --faq-border: rgba(0, 0, 0, 0.06);
    --toggle-border: rgba(0, 0, 0, 0.08);
}

body.dark-theme {
    --brand-charcoal: #231F20;
    --brand-charcoal-dark: #191617;
    --brand-charcoal-light: #2d2829;
    --bg-dark: #1a1718;
    --card-bg: rgba(45, 40, 41, 0.55);
    --card-border: rgba(46, 189, 170, 0.15);
    --card-border-hover: rgba(46, 189, 170, 0.4);
    
    --text-white: #ffffff;
    --text-primary: #f2f2f2;
    --text-muted: #9e9a9b;
    --text-teal: #2EBDAA;
    
    --nav-bg: rgba(26, 23, 24, 0.85);
    --nav-bg-scrolled: rgba(26, 23, 24, 0.95);
    --nav-border: rgba(255, 255, 255, 0.04);
    
    --stats-bg: rgba(25, 22, 23, 0.5);
    --stats-border: rgba(255, 255, 255, 0.03);
    
    --input-border: rgba(255, 255, 255, 0.1);
    --input-focus-border: var(--brand-teal);
    
    --btn-border: rgba(255, 255, 255, 0.1);
    --btn-border-hover: rgba(255, 255, 255, 0.2);
    
    --card-progress-overlay-bg: rgba(35, 31, 32, 0.65);
    --divider-color: rgba(255, 255, 255, 0.06);
    --faq-border: rgba(255, 255, 255, 0.04);
    --toggle-border: rgba(255, 255, 255, 0.1);
}

/* Global Language Styles (managed by body[data-lang]) */
body[data-lang="az"] .lang-en { display: none !important; }
body[data-lang="en"] .lang-az { display: none !important; }

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

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.grid {
    display: grid;
    gap: 2.5rem;
}

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

.max-w-lg { max-width: 720px; margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-4xl { font-size: 2.5rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-extrabold { font-weight: 800; }
.text-white { color: var(--text-white); }
.text-muted { color: var(--text-muted); }
.text-teal { color: var(--text-teal); }
.text-danger { color: var(--danger-color); }
.margin-bottom-sm { margin-bottom: 0.5rem; }
.margin-bottom-md { margin-bottom: 1rem; }
.margin-bottom-lg { margin-bottom: 2rem; }
.margin-top-md { margin-top: 1rem; }
.margin-top-lg { margin-top: 2rem; }
.w-full { width: 100%; }
.inline-block { display: inline-block; }

/* Text Gradient Effect */
.text-gradient {
    background: linear-gradient(135deg, var(--brand-teal) 30%, #46eed7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Button Component Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.9rem 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-teal) 0%, #1d8e81 100%);
    color: var(--brand-charcoal);
    box-shadow: 0 4px 20px var(--brand-teal-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(46, 189, 170, 0.5);
    color: var(--brand-charcoal-dark);
}

.btn-secondary {
    background-color: var(--brand-charcoal-light);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background-color: #383233;
    border-color: rgba(255, 255, 255, 0.2);
}

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

.btn-primary-outline:hover {
    background-color: var(--brand-teal);
    color: var(--brand-charcoal-dark);
    box-shadow: 0 4px 15px var(--brand-teal-glow);
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    transition: var(--transition-normal);
}

.glass-panel:hover {
    border-color: var(--card-border-hover);
    box-shadow: 0 15px 35px rgba(46, 189, 170, 0.08);
}

/* Header & Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--nav-border);
    transition: var(--transition-normal);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background-color: var(--nav-bg-scrolled);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
}

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

.logo-img {
    height: 48px;
    object-fit: contain;
    transition: var(--transition-normal);
}

.logo:hover .logo-img {
    transform: scale(1.03);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.2rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--brand-teal);
    transition: var(--transition-normal);
}

.nav-link:hover {
    color: var(--text-white);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

/* Toggle buttons for language and theme */
.lang-toggle-btn {
    background-color: var(--brand-charcoal-light);
    border: 1px solid var(--toggle-border);
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.lang-toggle-btn:hover {
    background-color: var(--brand-teal);
    color: var(--brand-charcoal);
    border-color: var(--brand-teal);
}

.theme-toggle-btn {
    background-color: var(--brand-charcoal-light);
    border: 1px solid var(--toggle-border);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.theme-toggle-btn:hover {
    background-color: var(--brand-teal);
    color: var(--brand-charcoal);
    border-color: var(--brand-teal);
}

.nav-btn-mobile { display: none; }

.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-white);
    border-radius: 2px;
    transition: var(--transition-normal);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding-top: 180px;
    padding-bottom: 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.18;
}

.hero-bg-shapes .shape-1 {
    width: 450px;
    height: 450px;
    background-color: var(--brand-teal);
    top: -100px;
    right: -50px;
}

.hero-bg-shapes .shape-2 {
    width: 500px;
    height: 500px;
    background-color: #1d8e81;
    bottom: -150px;
    left: -100px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.badge-new {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background-color: rgba(46, 189, 170, 0.12);
    border: 1px solid rgba(46, 189, 170, 0.3);
    border-radius: 50px;
    color: var(--brand-teal);
    font-size: 0.85rem;
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1.8rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.2rem;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 3.2rem;
}

.app-badges {
    display: flex;
    gap: 1.2rem;
}

.app-badge {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.6rem 1.4rem;
    background-color: #000000;
    border: 1px solid var(--btn-border);
    border-radius: var(--radius-sm);
    color: #ffffff; /* keep text white on black badge button */
    transition: var(--transition-normal);
    position: relative;
}

.app-badge:hover {
    transform: translateY(-2px);
    border-color: var(--brand-teal);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.app-badge-progress {
    position: relative;
    opacity: 0.75;
}

.app-badge-progress:hover {
    opacity: 1;
}

.badge-status-progress {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, var(--brand-teal) 0%, #1d8e81 100%);
    color: var(--brand-charcoal);
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 20px;
    box-shadow: 0 2px 8px var(--brand-teal-glow);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.app-badge i {
    font-size: 1.8rem;
}

.badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

/* Floating interactive UI elements in Hero */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-card-wrapper {
    position: relative;
    width: 320px;
    height: 640px;
    perspective: 1000px;
}

.visual-card {
    position: relative;
    width: 100%;
    height: 100%;
    background: rgba(35, 31, 32, 0.8);
    border: 3px solid #2d2829;
    border-radius: 40px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(46, 189, 170, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0) rotate(0.5deg); }
    50% { transform: translateY(-12px) rotate(-0.5deg); }
}

.card-header-app {
    padding: 1.2rem 1.5rem 0.5rem 1.5rem;
    background-color: rgba(25, 22, 23, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.app-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-white);
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.status-icons {
    display: flex;
    gap: 5px;
}

.app-brand-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-logo-small {
    height: 20px;
    object-fit: contain;
}

.app-badge-status {
    font-size: 0.65rem;
    padding: 2px 8px;
    background-color: rgba(46, 189, 170, 0.2);
    border: 1px solid var(--brand-teal);
    color: var(--brand-teal);
    border-radius: 20px;
    font-weight: 700;
}

.app-screen-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.map-placeholder {
    flex: 1;
    background-color: #1e2225;
    background-image: 
        radial-gradient(circle, rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(to right, rgba(46, 189, 170, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(46, 189, 170, 0.03) 1px, transparent 1px);
    background-size: 20px 20px, 40px 40px, 40px 40px;
    position: relative;
    overflow: hidden;
}

.map-route {
    position: absolute;
    top: 30%;
    left: 20%;
    width: 60%;
    height: 40%;
    border: 3px dashed var(--brand-teal);
    border-radius: 50%;
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
    opacity: 0.8;
}

.marker {
    position: absolute;
    font-size: 1.3rem;
    z-index: 5;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.marker-start {
    top: 45%;
    left: 20%;
    color: var(--brand-teal);
}

.marker-end {
    top: 25%;
    right: 25%;
    color: var(--danger-color);
}

.taxi-car-icon {
    position: absolute;
    top: 32%;
    left: 45%;
    color: var(--text-white);
    background-color: var(--brand-teal);
    padding: 6px;
    border-radius: 50%;
    font-size: 0.8rem;
    box-shadow: 0 4px 10px rgba(46, 189, 170, 0.4);
    animation: driveCar 4s ease-in-out infinite;
}

@keyframes driveCar {
    0%, 100% { transform: translate(0, 0) rotate(15deg); }
    50% { transform: translate(15px, -5px) rotate(10deg); }
}

.app-bottom-sheet {
    background-color: var(--brand-charcoal);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px 24px 0 0;
    padding: 1.2rem;
    position: relative;
    box-shadow: 0 -8px 25px rgba(0,0,0,0.4);
}

.sheet-handle {
    width: 40px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    margin: 0 auto 1.1rem auto;
}

.sheet-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.destination-preview {
    background-color: var(--brand-charcoal-dark);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.quick-options {
    display: flex;
    gap: 0.75rem;
}

.quick-item {
    flex: 1;
    background-color: var(--brand-charcoal-light);
    padding: 0.6rem;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition-fast);
}

.quick-item:hover {
    border-color: rgba(46, 189, 170, 0.3);
    background-color: rgba(46, 189, 170, 0.05);
}

.quick-item i {
    font-size: 1rem;
    color: var(--brand-teal);
}

.stats-section {
    padding: 60px 0;
    background-color: var(--stats-bg);
    border-top: 1px solid var(--stats-border);
    border-bottom: 1px solid var(--stats-border);
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--brand-teal);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px var(--brand-teal-glow);
}

.stat-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Standard Section Styles */
.passengers-section,
.drivers-section,
.estimator-section,
.faq-section {
    padding: 100px 0;
}

.section-tag {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2.2rem;
}

/* Features List for Passenger */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.feature-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: rgba(46, 189, 170, 0.08);
    border: 1px solid rgba(46, 189, 170, 0.2);
    border-radius: var(--radius-sm);
    color: var(--brand-teal);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.feature-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.feature-text {
    color: var(--text-muted);
}

/* Image & Phone Mockups */
.section-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: relative;
    border: 8px solid #2d2829;
    border-radius: 40px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    aspect-ratio: 1280 / 596;
    width: 100%;
    max-width: 580px;
    background-color: var(--brand-charcoal);
}

.mockup-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Interactive Estimator */
.calculator-card {
    padding: 2.2rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.input-group label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.form-input {
    background-color: var(--brand-charcoal-dark);
    border: 1px solid var(--input-border);
    color: var(--text-white);
    padding: 0.95rem 1.2rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--input-focus-border);
    box-shadow: 0 0 10px var(--brand-teal-glow);
}

.class-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.8rem;
}

.class-option {
    flex: 1;
    background-color: var(--brand-charcoal-light);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition-normal);
}

.class-option i {
    font-size: 1.4rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.class-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
}

.class-rate {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.class-option.active {
    background-color: rgba(46, 189, 170, 0.08);
    border-color: var(--brand-teal);
    box-shadow: 0 4px 15px rgba(46, 189, 170, 0.1);
}

.class-option.active i {
    color: var(--brand-teal);
}

.class-option:hover:not(.active) {
    background-color: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.1);
}

.calc-result {
    margin-top: 1.8rem;
    animation: fadeIn 0.4s ease-out;
}

.result-details {
    background-color: var(--brand-charcoal-dark);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 1.2rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.2rem;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.divider {
    border: 0;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.06);
    margin: 0.5rem 0;
}

.total-row {
    padding-top: 0.8rem;
}

.margin-top-md {
    margin-top: 1rem;
}

/* Drivers Section Details */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.benefit-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
}

.benefit-desc {
    color: var(--text-muted);
}

.driver-form-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.driver-register-card {
    padding: 2.5rem;
    width: 100%;
    max-width: 460px;
    position: relative;
    overflow: hidden;
}

/* Card in progress styles */
.card-in-progress {
    position: relative;
}

.card-in-progress form {
    opacity: 0.22;
    pointer-events: none;
}

.card-in-progress .form-title,
.card-in-progress .form-subtitle {
    opacity: 0.22;
}

.card-progress-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--card-progress-overlay-bg);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.progress-overlay-content {
    animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.animate-spin-slow {
    animation: spin 6s linear infinite;
}

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

.overlay-title {
    font-family: var(--font-heading);
    color: var(--text-white);
}

.overlay-desc {
    color: var(--text-muted);
}

.form-terms {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-terms input {
    accent-color: var(--brand-teal);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.form-terms label {
    cursor: pointer;
}

.error-msg {
    color: var(--danger-color);
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
    min-height: 1rem;
}

.form-success {
    text-align: center;
    padding: 1rem 0;
    animation: scaleIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.success-desc {
    color: var(--text-muted);
}

/* FAQ Accordion Section */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background-color: var(--brand-charcoal-light);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition-normal);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.3rem 1.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-white);
    cursor: pointer;
    text-align: left;
    transition: var(--transition-fast);
}

.faq-arrow {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition-normal);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.6rem;
    transition: max-height 0.35s cubic-bezier(0, 1, 0, 1), padding 0.35s ease;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.faq-item.active {
    border-color: rgba(46, 189, 170, 0.25);
    background-color: rgba(46, 189, 170, 0.02);
}

.faq-item.active .faq-question {
    color: var(--brand-teal);
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
    color: var(--brand-teal);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 1.5rem;
    transition: max-height 0.35s cubic-bezier(1, 0, 1, 0), padding 0.35s ease;
}

/* Footer Section */
.footer-section {
    background-color: var(--brand-charcoal-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 80px;
}

.footer-grid {
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-logo {
    height: 48px;
    object-fit: contain;
}

.social-links {
    display: flex;
    gap: 0.8rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: var(--brand-charcoal-light);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--brand-teal);
    color: var(--brand-charcoal);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px var(--brand-teal-glow);
}

.footer-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.4rem;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--brand-teal);
    padding-left: 4px;
}

.contact-item {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    color: var(--text-muted);
}

.contact-item i {
    color: var(--brand-teal);
    margin-top: 3px;
    width: 16px;
}

.footer-bottom {
    padding: 30px 0;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.animate-on-scroll.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries & Responsive Rules */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3.5rem;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .app-badges {
        justify-content: center;
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
        gap: 2.2rem;
    }
    
    .hamburger-menu {
        display: flex;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--brand-charcoal-dark);
        border-left: 1px solid rgba(255, 255, 255, 0.05);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: var(--transition-normal);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-btn-desktop {
        display: none;
    }
    
    .nav-btn-mobile {
        display: block;
        padding: 0.8rem 2rem;
        background-color: rgba(46, 189, 170, 0.1);
        border: 1.5px solid var(--brand-teal);
        border-radius: var(--radius-sm);
        color: var(--brand-teal);
    }
    
    /* Hamburger transitions */
    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .section-title {
        font-size: 2.1rem;
    }
    
    .calculator-card {
        padding: 1.5rem;
    }
    
    .class-selector {
        flex-direction: column;
        gap: 0.6rem;
    }
    
    .driver-register-card {
        padding: 1.8rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    .app-badges {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }
    
    .app-badge {
        width: 100%;
        max-width: 240px;
        justify-content: center;
    }
    
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .navbar-container {
        padding: 0 1rem;
    }
    
    .visual-card-wrapper {
        width: 280px;
        height: 560px;
    }
}

/* ==========================================
   Map Estimator Styling & Dark Theme Map Override
   ========================================== */
.estimator-map {
    width: 100%;
    height: 280px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin: 1.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    z-index: 10;
    position: relative;
    overflow: hidden;
}

body.dark-theme .estimator-map {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Custom Premium Dark Mode Tiles using CSS Filter */
body.dark-theme .estimator-map .leaflet-tile-container {
    filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%);
}

/* Customize Leaflet Popups and Controls for Premium Aesthetics */
.leaflet-popup-content-wrapper {
    background-color: var(--card-bg) !important;
    color: var(--text-color) !important;
    border-radius: 8px !important;
    font-family: var(--font-body);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid var(--stats-border);
}

.leaflet-popup-tip {
    background-color: var(--card-bg) !important;
}

.leaflet-bar {
    border: none !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
}

.leaflet-bar a {
    background-color: var(--card-bg) !important;
    color: var(--text-color) !important;
    border-bottom: 1px solid var(--stats-border) !important;
    transition: background-color var(--transition-fast);
}

.leaflet-bar a:hover {
    background-color: var(--brand-teal-glow) !important;
    color: var(--brand-teal) !important;
}

/* Custom Marker Styling */
.custom-map-marker {
    background: none;
    border: none;
}

.marker-pin-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
}

.marker-pin-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
    transition: transform var(--transition-fast) ease-in-out;
}

.marker-pin-icon:hover {
    transform: scale(1.15);
}

