/* ============================================
   IRCTC Ticket Date Calculator - Styles
   Warm light theme, mobile-first, premium design
   ============================================ */

/* --- CSS Variables --- */
:root {
    --bg-primary: #F8FAFC;
    --bg-secondary: #F1F5F9;
    --bg-card: #ffffff;
    --bg-card-hover: #F0F7FF;
    --bg-input: #ffffff;
    --border-color: #CBD5E1;
    --border-glow: rgba(37, 99, 235, 0.15);

    --text-primary: #0F172A;
    --text-secondary: #334155;
    --text-muted: #64748B;

    --accent: #2563EB;
    --accent-dark: #1D4ED8;
    --accent-light: #BFDBFE;

    --coral: #F97316;
    --coral-dark: #EA580C;
    --teal: #10B981;
    --teal-dark: #059669;
    --gold: #F59E0B;
    --gold-dark: #D97706;
    --indigo: #1E40AF;

    --gradient-primary: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
    --gradient-hero: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 40%, #FFF7ED 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #F8FAFC 100%);
    --gradient-coral: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    --gradient-teal: linear-gradient(135deg, #10B981 0%, #059669 100%);
    --gradient-gold: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);

    --shadow-card: 0 2px 16px rgba(15, 23, 42, 0.06);
    --shadow-glow: 0 0 12px rgba(37, 99, 235, 0.12);
    --shadow-btn: 0 4px 14px rgba(37, 99, 235, 0.3);
    --shadow-coral: 0 4px 14px rgba(249, 115, 22, 0.3);
    --shadow-teal: 0 4px 14px rgba(16, 185, 129, 0.3);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Outfit', 'Inter', sans-serif;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

.container {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 16px;
}

/* --- Header --- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(248, 250, 252, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
}

.header-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: var(--text-primary);
    text-transform: uppercase;
}

.logo span {
    color: var(--text-primary);
    font-weight: 600;
}

.logo:hover {
    color: var(--accent);
}

/* --- Hero --- */
.hero {
    position: relative;
    padding: 48px 0 32px;
    text-align: center;
    background: linear-gradient(135deg, #2563EB 0%, #1E40AF 40%, #1E3A8A 100%);
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, rgba(16, 185, 129, 0.08) 40%, transparent 70%);
    pointer-events: none;
}

/* Floating decorative shapes */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.1;
}

.hero-shape-1 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #F97316, #F59E0B);
    top: -40px;
    right: -60px;
    animation: floatShape 8s ease-in-out infinite;
}

.hero-shape-2 {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #10B981, #3B82F6);
    bottom: -30px;
    left: -30px;
    animation: floatShape 6s ease-in-out infinite reverse;
}

.hero-shape-3 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #F59E0B, #EF4444);
    top: 40%;
    right: 10%;
    animation: floatShape 10s ease-in-out infinite;
}

@keyframes floatShape {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(10px, -15px) rotate(5deg);
    }

    50% {
        transform: translate(-5px, 10px) rotate(-3deg);
    }

    75% {
        transform: translate(8px, 5px) rotate(2deg);
    }
}

/* Hero badge pill */
.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.5px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 5vw, 2.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    font-weight: 400;
}

/* --- AdSense Layout --- */
.page-layout {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.ad-sidebar {
    width: 160px;
    position: sticky;
    top: 80px;
    flex-shrink: 0;
    display: none;
    /* Hidden on mobile */
    height: 100%;
}

.ad-slot {
    width: 100%;
    height: 600px;
    background: #f0f0f0;
    display: none;
    /* Hidden until real ads */
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.8rem;
    border-radius: 8px;
    margin-bottom: 20px;
}

.ad-slot.active {
    display: flex;
}

.ad-top-bar {
    width: 100%;
    padding: 10px 16px;
    background: #f8f8f8;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
}

.ad-slot-mobile {
    width: 320px;
    height: 50px;
    background: #e0e0e0;
    display: none;
    /* Hidden until real ads */
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.8rem;
    border-radius: 4px;
}

.ad-slot-mobile.active {
    display: flex;
}

/* Tablet & Desktop */
@media (min-width: 1024px) {
    .ad-sidebar {
        display: block;
    }

    .ad-top-bar {
        display: none;
    }

    /* Make main content flexible but bounded */
    main {
        flex: 1;
        max-width: 720px;
        width: 100%;
    }
}

/* Tablet (Narrower sidebars) */
@media (min-width: 768px) and (max-width: 1023px) {
    .page-layout {
        gap: 12px;
        padding: 0 12px;
    }

    .ad-sidebar {
        display: block;
        width: 120px;
    }

    .ad-slot {
        height: 400px;
    }

    .ad-top-bar {
        display: none;
    }

    main {
        flex: 1;
        width: 100%;
    }
}

.hero-subtitle-link {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 28px;
}

.hero-subtitle-link a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hero-subtitle-link a:hover {
    color: #ffffff;
}

/* --- Today Info Card (Glassmorphic) --- */
.today-info-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin: 0 auto;
    max-width: 400px;
    text-align: center;
}

.today-info-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    color: #FCD34D;
}

.today-info-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.today-label {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.4;
}

.today-date {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    color: #FCD34D;
    letter-spacing: 0.5px;
}

/* Today CTA */
.today-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    padding: 8px 20px;
    font-size: 0.85rem;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    transition: all var(--transition-fast);
}

.today-cta:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.cta-arrow {
    display: inline-block;
    animation: bounceArrow 1.5s infinite;
}

@keyframes bounceArrow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(4px);
    }
}

.info-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    padding-bottom: 8px;
}

/* --- Calculator Section --- */
.calculator-section {
    padding: 0 0 40px;
    margin-top: -20px;
    position: relative;
    z-index: 2;
}

.calc-card {
    background: var(--bg-card);
    border: none;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.06);
}

.calc-card-accent {
    height: 5px;
    background: linear-gradient(90deg, #2563EB, #10B981, #F97316, #F59E0B);
}

.calc-card-inner {
    padding: 28px 20px;
}

.calc-description {
    text-align: center;
}

.calc-description p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
}

.calc-note {
    font-size: 0.78rem !important;
    color: var(--text-muted) !important;
    font-style: italic;
}

/* --- Input Group --- */
.calc-input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
    margin: 0 auto;
}

.calc-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    text-align: center;
    justify-content: center;
}

.calc-label svg {
    color: var(--accent);
    flex-shrink: 0;
}

.date-input {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    outline: none;
    transition: all var(--transition-normal);
    -webkit-appearance: none;
    appearance: none;
    text-align: center;
    animation: puzzle-glow 2s infinite;
}

@keyframes puzzle-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
        border-color: var(--accent);
    }

    50% {
        box-shadow: 0 0 15px 0 rgba(249, 115, 22, 0.45);
        border-color: var(--coral);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
        border-color: var(--accent);
    }
}

/* Show placeholder text on mobile when date input is empty */
@media (max-width: 768px) {

    .date-input:not(:focus):invalid,
    .date-input[value=""]:not(:focus) {
        color: transparent;
    }

    .date-input-wrapper::before {
        content: 'dd/mm/yyyy';
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        color: var(--text-muted);
        font-family: var(--font-primary);
        font-size: 1rem;
        pointer-events: none;
        z-index: 1;
        opacity: 1;
        transition: opacity 0.2s ease;
    }

    .date-input-wrapper.has-value::before {
        opacity: 0;
    }
}

.date-input:focus {
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-glow);
}

/* Date input wrapper with clear button */
.date-input-wrapper {
    position: relative;
    width: 100%;
}

.date-input-wrapper .date-input {
    padding-right: 44px;
}

.clear-date-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 26, 26, 0.06);
    border: 1px solid rgba(26, 26, 26, 0.12);
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 2;
    padding: 0;
}

.clear-date-btn:hover {
    background: rgba(26, 26, 26, 0.12);
    color: var(--text-primary);
}

.clear-date-btn.hidden {
    display: none;
}

/* Style the date input calendar picker */
.date-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    padding: 4px;
}

.calculate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    background: var(--gradient-coral);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-coral);
    position: relative;
    overflow: hidden;
}

.calculate-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.15) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.calculate-btn:hover::after {
    transform: translateX(100%);
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(249, 115, 22, 0.4);
}

.calculate-btn:active {
    transform: translateY(0);
}

.calculate-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

.calculate-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

.calculate-btn:disabled::after {
    display: none;
}

/* --- Result Section --- */
.result-section {
    margin-top: 28px;

}

.result-section.hidden {
    display: none;
}

.result-card {
    background: rgba(203, 197, 234, 0.08);
    border: 1px solid rgba(203, 197, 234, 0.4);
    border-radius: var(--radius-lg);
    overflow: hidden;
    animation: resultSlideIn 0.4s ease-out;
}

@keyframes resultSlideIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contextual result card variants */
.result-card.warning {
    border-color: rgba(249, 115, 22, 0.5);
    background: rgba(255, 247, 237, 0.5);
}

.result-card.warning .result-header {
    background: rgba(249, 115, 22, 0.1);
    border-bottom-color: rgba(249, 115, 22, 0.2);
    color: #C2410C;
}

.result-card.success {
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(236, 253, 245, 0.5);
}

.result-card.success .result-header {
    background: rgba(16, 185, 129, 0.1);
    border-bottom-color: rgba(16, 185, 129, 0.2);
    color: #047857;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: rgba(203, 197, 234, 0.2);
    border-bottom: 1px solid rgba(203, 197, 234, 0.3);
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
}

.result-body {
    padding: 18px;
}

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

.result-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.result-value {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.result-value.booking-date {
    font-size: 1.15rem;
    color: var(--coral);
}

.result-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

.result-days-info {
    text-align: center;
    padding: 10px 0 4px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.result-days-info .highlight-text {
    color: var(--accent-dark);
    font-weight: 700;
}

/* --- Calendar Section --- */
.calendar-section {
    margin-top: 20px;
    text-align: center;
}

.calendar-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

#calendarButtonContainer {
    display: flex;
    justify-content: center;
}

/* Style overrides for add-to-calendar-button */
add-to-calendar-button {
    --btn-background: var(--bg-card);
    --btn-text: var(--text-primary);
}

/* --- Countdown Timer --- */
.countdown-timer {
    text-align: center;
    padding: 12px;
    margin-top: 8px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(16, 185, 129, 0.06));
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.5px;
}

.countdown-timer.hidden {
    display: none;
}

/* --- Book Now Button --- */
.book-now-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    margin-top: 12px;
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition-normal);
    box-shadow: 0 3px 12px rgba(211, 84, 0, 0.3);
}

.book-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(211, 84, 0, 0.4);
    color: #fff;
}

.book-now-btn.hidden {
    display: none;
}

/* --- Share Actions --- */
.share-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.share-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    font-family: var(--font-primary);
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.copy-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.copy-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-light);
    color: var(--accent);
}

.whatsapp-btn {
    background: #25d366;
    border: 1px solid #25d366;
    color: #fff;
}

.whatsapp-btn:hover {
    background: #1da851;
    border-color: #1da851;
    color: #fff;
}

/* --- SEO Section: How It Works --- */
.seo-section {
    padding: 32px 0;
    border-top: 1px solid var(--border-color);
}

.seo-heading {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 4vw, 1.5rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.seo-content {
    text-align: center;
    margin-bottom: 28px;
}

.seo-content p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.seo-content a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.how-it-works-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.step-card {
    text-align: center;
    padding: 20px 14px;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition-normal);
}

.step-card:hover {
    border-color: rgba(115, 98, 138, 0.3);
}

.step-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    border-radius: 50%;
    color: #ffffff;
    transition: transform var(--transition-normal);
}

.step-card:nth-child(1) .step-icon {
    background: var(--gradient-teal);
}

.step-card:nth-child(2) .step-icon {
    background: var(--gradient-coral);
}

.step-card:nth-child(3) .step-icon {
    background: var(--gradient-gold);
}

.step-card:hover .step-icon {
    transform: scale(1.1);
}

.step-card h3 {
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.step-card p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --- SEO Section: FAQ --- */
.faq-section {
    padding: 32px 0 40px;
    border-top: 1px solid var(--border-color);
}

.faq-item {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color var(--transition-normal);
}

.faq-item[open] {
    border-color: rgba(115, 98, 138, 0.25);
}

.faq-question {
    padding: 14px 18px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: color var(--transition-fast);
    user-select: none;
    -webkit-user-select: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--coral);
    transition: transform var(--transition-normal);
}

.faq-item[open] .faq-question::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-question:hover {
    color: var(--accent);
}

.faq-answer {
    padding: 0 18px 16px;
}

.faq-answer p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --- Footer --- */
.footer {
    text-align: center;
    padding: 24px 16px;
    border-top: 1px solid var(--border-color);
    margin-top: 20px;
    background: linear-gradient(180deg, transparent, rgba(30, 64, 175, 0.02));
}

.footer-disclaimer {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    line-height: 1.5;
}

.footer-copy {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.footer-divider {
    color: var(--text-muted);
    font-size: 0.6rem;
}



@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* --- Responsive --- */
@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    .header-inner {
        padding: 10px 14px;
    }

    .logo {
        font-size: 1.1rem;
    }

    .hero {
        padding: 28px 0 18px;
    }

    .hero-title {
        font-size: 1.35rem;
        letter-spacing: 0.5px;
    }

    .today-info-card {
        padding: 14px 16px;
        gap: 12px;
    }

    .today-info-icon {
        width: 38px;
        height: 38px;
    }

    .today-date {
        font-size: 1.15rem;
    }

    .calc-card {
        padding: 20px 16px;
        border-radius: var(--radius-lg);
    }

    .calc-description p {
        font-size: 0.82rem;
    }

    .date-input {
        padding: 12px 14px;
        font-size: 0.95rem;
    }

    .calculate-btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .result-header {
        padding: 12px 14px;
        font-size: 0.92rem;
    }

    .result-body {
        padding: 14px;
    }

    .result-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 8px 0;
    }

    .result-value.booking-date {
        font-size: 1.05rem;
    }

    .how-it-works-steps {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .step-card {
        display: flex;
        align-items: center;
        gap: 14px;
        text-align: left;
        padding: 14px 16px;
    }

    .step-number {
        margin: 0;
        flex-shrink: 0;
    }

    .step-card h3 {
        margin-bottom: 2px;
    }

    .faq-question {
        font-size: 0.82rem;
        padding: 12px 14px;
    }

    .faq-answer {
        padding: 0 14px 14px;
    }

    .faq-answer p {
        font-size: 0.8rem;
    }

    .seo-content p {
        font-size: 0.82rem;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .today-info-card {
        max-width: 480px;
    }
}

@media (min-width: 769px) {
    .container {
        padding: 0 24px;
    }

    .hero {
        padding: 56px 0 32px;
    }

    .calc-card {
        padding: 36px 32px;
    }
}

/* --- Touch optimizations --- */
@media (hover: none) and (pointer: coarse) {
    .calculate-btn:hover {
        transform: none;
        box-shadow: var(--shadow-btn);
    }

    .calculate-btn:active {
        transform: scale(0.98);
    }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}


/* --- Mobile Sidebar --- */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    /* Hidden on left side */
    width: 280px;
    height: 100%;
    background: var(--bg-card);
    z-index: 999;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.active {
    transform: translateX(280px);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.sidebar-logo img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid var(--border-color);
}

.sidebar-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.sidebar-close-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar-link {
    display: block;
    padding: 12px 24px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: var(--bg-card-hover);
    color: var(--accent);
    border-left-color: var(--accent);
}

.sidebar-link.external {
    color: var(--accent);
    font-weight: 600;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Prevent body scroll when sidebar is open */
body.sidebar-open {
    overflow: hidden;
}