/* ===============================================
   TABLE OF CONTENTS
   ===============================================
   
   1. GLOBAL STYLES
      1.1 Reset & Base Styles
      1.2 Typography
      1.3 Responsive Font Sizes
      1.4 Animations & Transitions
   
   2. LAYOUT
      2.1 Body & Container
      2.2 Header
      2.3 Main Content
      2.4 Footer
   
   3. NAVIGATION
      3.1 Navbar
      3.2 Mobile Navigation
   
   4. COMPONENTS
      4.1 Buttons
      4.2 Forms & Inputs
      4.3 Result Display
      4.4 Info Sections
      4.5 Steps Container
      4.6 FAQ Container
      4.7 Festival Components
   
   5. UTILITIES
      5.1 Section Dividers
      5.2 Responsive Adjustments
   =============================================== */

/* ===============================================
   1. GLOBAL STYLES
   =============================================== */

/* 1.1 Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* 1.2 Typography */
p,
li,
label,
button {
    font-size: var(--body-font);
    line-height: 1.6;
    color: var(--text-gray);
}

h1,
h2,
h3,
h4 {
    line-height: 1.3;
    color: var(--deep-gray);
    font-weight: 600;
}

/* New Color Palette */
:root {
    /* Primary Colors */
    --primary-white: #ffffff;
    --secondary-white: #f8f9fa;
    --tertiary-white: #f1f3f5;
    
    /* Gray Shades */
    --light-gray: #e9ecef;
    --medium-gray: #dee2e6;
    --dark-gray: #adb5bd;
    --text-gray: #495057;
    --deep-gray: #343a40;
    
    /* Accent Colors */
    --accent-blue: #4dabf7;
    --accent-light-blue: #e7f5ff;
    --accent-dark-blue: #1971c2;
    
    /* Functional Colors */
    --success-color: #51cf66;
    --warning-color: #fcc419;
    --error-color: #ff6b6b;
    
    /* Shadow Effects */
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
    
    /* Font Sizes */
    --header-font: 2.5rem;
    --title-font: 2rem;
    --subtitle-font: 1.5rem;
    --body-font: 1.1rem;
}

@media (max-width: 1200px) {
    :root {
        --header-font: 2.2rem;
        --title-font: 1.8rem;
        --subtitle-font: 1.3rem;
        --body-font: 1rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-font: 1.8rem;
        --title-font: 1.5rem;
        --subtitle-font: 1.2rem;
        --body-font: 0.95rem;
    }
}

@media (max-width: 480px) {
    :root {
        --header-font: 1.5rem;
        --title-font: 1.3rem;
        --subtitle-font: 1.1rem;
        --body-font: 0.9rem;
    }
}

.mt-1 {
    margin-top: 1rem;
}
.mt-2 {
    margin-top: 2rem;
}

/* 1.4 Animations & Transitions */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

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

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

@keyframes highlight {
    0% {
        background-color: var(--accent-light-blue);
    }

    50% {
        background-color: var(--light-gray);
    }

    100% {
        background-color: var(--accent-light-blue);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.highlight-animation {
    animation: highlight 1.5s ease;
}

.pulse-animation {
    animation: pulse 1.5s ease infinite;
}

.slide-right {
    animation: slideInRight 0.8s ease forwards;
}

.slide-left {
    animation: slideInLeft 0.8s ease forwards;
}

/* ===============================================
   2. LAYOUT
   =============================================== */

/* 2.1 Body & Container */
body {
    line-height: 1.6;
    background-color: var(--primary-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* 2.2 Header */
header {
    background: linear-gradient(135deg, var(--accent-dark-blue), var(--accent-blue));
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: white;
    padding: 2.5rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

header h1 {
    font-size: var(--header-font);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 2.3 Main Content */
main {
    max-width: 1200px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
    flex: 1;
    width: 100%;
    background-color: var(--primary-white);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
    main {
        margin: 1.5rem auto;
        padding: 0 1rem;
    }
}

/* 2.4 Footer */
footer {
    background: linear-gradient(135deg, var(--deep-gray), var(--text-gray));
    color: white;
    padding: 2.5rem 1rem;
    margin-top: auto;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-blue);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.75rem;
    transition: transform 0.3s ease;
}

.footer-section li:hover {
    transform: translateX(5px);
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    display: inline-block;
    position: relative;
}

.footer-section a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-blue);
    transition: width 0.3s ease;
}

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

.footer-section a:hover::after {
    width: 100%;
}

/* ===============================================
   3. NAVIGATION
   =============================================== */

/* 3.1 Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 1.5rem;
    box-shadow: var(--shadow-md);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--accent-dark-blue);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-logo svg {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.nav-logo:hover svg {
    transform: rotate(5deg);
}

.nav-logo span {
    font-weight: bold;
    font-size: 1.2rem;
}

.nav-menu {
    display: flex;
    gap: 1.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-menu a {
    color: var(--text-gray);
    text-decoration: none;
    padding: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    font-weight: 500;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-blue);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--accent-dark-blue);
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.mobile-menu-btn:hover {
    color: var(--accent-dark-blue);
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

/* 3.2 Mobile Navigation */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: var(--primary-white);
        padding: 1rem;
        gap: 0;
        transform: translateY(-150%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
        z-index: 999;
        box-shadow: var(--shadow-md);
        border-top: 1px solid var(--light-gray);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-menu a {
        display: block;
        text-align: center;
        padding: 1rem;
        border-bottom: 1px solid var(--light-gray);
    }

    .nav-menu a:last-child {
        border-bottom: none;
    }
}

/* ===============================================
   4. COMPONENTS
   =============================================== */

/* 4.1 Buttons */
button {
    background-color: var(--accent-blue);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 180px;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 300px;
    box-shadow: var(--shadow-sm);
}

button:hover {
    background-color: var(--accent-dark-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

button:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

button:hover::before {
    left: 100%;
}

.day-btn {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: auto;
    width: auto;
    max-width: none;
}

.day-btn:hover {
    background-color: #e6e6e6;
}

.day-btn.active {
    background-color: #e67e22;
    color: white;
    border-color: #e67e22;
}

.festival-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    color: #333;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: normal;
    transition: all 0.3s ease;
    min-width: 100px;
    text-align: center;
    width: 100%;
    max-width: none;
}

.festival-btn:hover {
    background-color: #fff3e0;
    border-color: #e67e22;
    transform: translateY(-3px);
}

.festival-btn.active {
    background-color: #fff3e0;
    border-color: #e67e22;
    box-shadow: 0 2px 8px rgba(230, 126, 34, 0.2);
}

/* 4.2 Forms & Inputs */
.form-group {
    margin-bottom: 1.5rem;
    max-width: 100%;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
}

input[type="date"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
    max-width: 400px;
}

input[type="date"]:focus {
    border-color: #004d99;
    outline: none;
}

.days-before-selector {
    margin: 1.5rem 0 1rem 0;
    padding: 1rem;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.days-before-selector label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: bold;
    color: #555;
}

.days-selector-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* 4.3 Result Display */
.result {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #e6f3ff;
    border-radius: 8px;
    display: none;
    border-left: 4px solid #003366;
    width: 100%;
}

.result h3 {
    color: #003366;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.result p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.result ul {
    list-style: none;
    margin-top: 1rem;
    padding-left: 1rem;
}

.result li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

#result {
    transition: all 0.3s ease;
}

#result.highlight-animation {
    box-shadow: 0 0 15px rgba(0, 51, 102, 0.2);
}

/* 4.4 Info Sections */
.info-section {
    background-color: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.info-section h2,
.info-section h3 {
    color: #003366;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-section p {
    font-size: 1rem;
    color: #444;
}

.info-content {
    margin-top: 1rem;
}

.calculator-container {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calculator-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.calculator-container h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #003366;
}

.calculator-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.calculator-form {
    flex: 1;
    min-width: 280px;
}

.feature-list {
    list-style: none;
    margin: 1rem 0;
    padding-left: 1rem;
}

.feature-list li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li:before {
    content: "•";
    color: #003366;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* 4.5 Steps Container */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.step {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
}

.step-number {
    position: absolute;
    top: -1rem;
    left: -1rem;
    background: #003366;
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.step:hover .step-number {
    transform: rotate(360deg);
}

.step h3 {
    color: #003366;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.step p {
    font-size: 0.95rem;
}

/* 4.6 FAQ Container */
.faq-container {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.faq-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.faq-item:hover {
    transform: scale(1.02);
}

.faq-item h3 {
    color: #003366;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.faq-item p {
    color: #444;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 4.7 Festival Components */
.festival-shortcuts {
    flex: 1;
    min-width: 280px;
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #e67e22;
}

.festival-shortcuts h3 {
    color: #e67e22;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.festival-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.festival-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.selected-festival-info {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: none;
}

.selected-festival-info.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.festival-wish {
    background: linear-gradient(135deg, #fdf1d8 0%, #f5e9d8 100%);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 1rem;
    border-bottom: 3px solid #e67e22;
    animation: fadeIn 0.5s ease;
}

.festival-emoji {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.festival-wish h4 {
    color: #e67e22;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.festival-wish p {
    color: #666;
    font-size: 0.95rem;
}

.festival-date {
    margin-top: 0.5rem;
    font-weight: bold;
    color: #e67e22;
    font-size: 0.95rem;
}

.festival-info {
    margin-top: 0.5rem;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.4;
}

.festival-note {
    margin-top: 0.5rem;
    font-style: italic;
    color: #7d5700;
    font-size: 0.9rem;
}

.booking-tip {
    background-color: #e8f4fe;
    padding: 0.75rem;
    border-radius: 6px;
    margin-top: 0.75rem;
    border-left: 4px solid #3498db;
    font-size: 0.95rem;
}

/* ===============================================
   5. UTILITIES
   =============================================== */

/* 5.1 Section Dividers */
.section-divider {
    margin: 2rem 0;
    text-align: center;
}

.section-divider svg {
    width: 100px;
    height: 30px;
    color: #003366;
}

/* 5.2 Responsive Adjustments */
@media (max-width: 1024px) {
    header h1 {
        font-size: 2rem;
    }

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

    .calculator-container {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .calculator-container {
        padding: 1.25rem;
    }

    .steps-container {
        grid-template-columns: 1fr;
    }

    .step {
        padding: 1.25rem;
    }

    .faq-item {
        padding: 1.25rem;
    }

    .calculator-layout {
        flex-direction: column;
    }

    .festival-shortcuts {
        border-left: none;
        border-top: 4px solid #e67e22;
    }

    .days-selector-buttons {
        justify-content: center;
    }

    button {
        max-width: 100%;
    }

    input[type="date"] {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1.5rem 0.5rem;
    }

    .calculator-container {
        padding: 1rem;
    }

    .info-section {
        padding: 1.25rem;
    }

    .festival-buttons {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .festival-btn {
        padding: 0.5rem;
        min-width: 80px;
    }

    .nav-logo span {
        display: none;
    }
}

/* Print styles */
@media print {

    .navbar,
    .mobile-menu-btn,
    .festival-shortcuts {
        display: none !important;
    }

    body {
        background-color: white;
        color: black;
    }

    .calculator-container,
    .info-section {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }

    footer {
        display: none;
    }
}


/* Date and Time Input Styling */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

input[type="date"],
input[type="time"],
select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 1.2rem;
}

input[type="date"]:focus,
input[type="time"]:focus,
select:focus {
    outline: none;
    border-color: #4a6bff;
    box-shadow: 0 0 0 3px rgba(74, 107, 255, 0.2);
}

/* Remove default icons and fix custom ones */
input[type="date"],
input[type="time"] {
    background-image: none !important;
    /* Remove default icon */
    padding-right: 1rem;
    /* Reduce right padding since we don't need icon space */
}


/* Hover effects */
input[type="date"]:hover,
input[type="time"]:hover,
select:hover {
    border-color: #b3b3b3;
}

/* Placeholder styling */
input[type="date"]::placeholder,
input[type="time"]::placeholder {
    color: #999;
}

/* Enhanced Select Dropdown Styling */
select.form-control {
    position: relative;
    cursor: pointer;
}

/* Custom dropdown arrow animation */
select.form-control:focus {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='18 15 12 9 6 15'%3e%3c/polyline%3e%3c/svg%3e");
}

/* Option styling (visible when dropdown is open) */
select option {
    padding: 0.8rem 1rem;
    background: #fff;
    color: #333;
}

/* Class-specific color hints */
select#ticket-class option[value="first_ac"] {
    background-color: #ffebee;
    color: #c62828;
}

select#ticket-class option[value="second_ac"] {
    background-color: #e3f2fd;
    color: #1565c0;
}

select#ticket-class option[value="third_ac"] {
    background-color: #e8f5e9;
    color: #2e7d32;
}

select#ticket-class option[value="sleeper"] {
    background-color: #fff3e0;
    color: #e65100;
}

select#ticket-class option[value="second_seating"] {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

select#ticket-class option[value="exec_chair"] {
    background-color: #e0f7fa;
    color: #00838f;
}

select#ticket-class option[value="chair_car"] {
    background-color: #f1f8e9;
    color: #558b2f;
}

/* Ticket type styling */
select#ticket-type option[value="general"] {
    background-color: #e8f5e9;
    color: #2e7d32;
}

select#ticket-type option[value="tatkal"] {
    background-color: #fff3e0;
    color: #ef6c00;
}

select#ticket-type option[value="premium_tatkal"] {
    background-color: #ffebee;
    color: #c62828;
}

/* Time selector styling */
select#cancellation-time option {
    padding-left: 1.5rem;
    position: relative;
}

select#cancellation-time option::before {
    content: "";
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: #e0e0e0;
}

select#cancellation-time option[value="48h"]::before {
    background-color: #4caf50;
}

select#cancellation-time option[value="12h"]::before {
    background-color: #ff9800;
}

select#cancellation-time option[value="6h"]::before {
    background-color: #f44336;
}

select#cancellation-time option[value="6h_less"]::before,
select#cancellation-time option[value="after_departure"]::before {
    background-color: #9e9e9e;
}

/* Floating label effect */
.form-group {
    position: relative;
}

.form-group label {
    position: absolute;
    top: -0.6rem;
    left: 0.8rem;
    background: white;
    padding: 0 0.3rem;
    font-size: 0.8rem;
    z-index: 1;
    transform-origin: left center;
    transition: all 0.2s ease;
}

.form-group input:focus+label,
.form-group select:focus+label {
    color: #4a6bff;
    transform: translateY(-0.2rem) scale(0.9);
}

/* Animated focus effect */
.form-group::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #4a6bff;
    transition: width 0.3s ease;
}

.form-group input:focus~ ::after,
.form-group select:focus~ ::after {
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {

    input[type="date"],
    input[type="time"],
    select {
        padding: 0.7rem 0.8rem;
        font-size: 0.9rem;
    }

    .form-group label {
        font-size: 0.85rem;
    }
}

/* Add this to your CSS for the fare input */
#ticket-fare {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    /* Extra left padding for icon */
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    appearance: none;
}

#ticket-fare:focus {
    outline: none;
    border-color: #4a6bff;
    box-shadow: 0 0 0 3px rgba(74, 107, 255, 0.2);
}

/* Currency icon for fare input */
.fare-input-wrapper {
    position: relative;
}

.fare-input-wrapper::before {
    content: "₹";
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    font-weight: bold;
    color: #666;
    pointer-events: none;
}

/* Hover effects */
#ticket-fare:hover {
    border-color: #b3b3b3;
}

/* Validation styling */
#ticket-fare:invalid {
    border-color: #ff5252;
}

#ticket-fare:valid {
    border-color: #4caf50;
}

/* Style when picker is open */
.date-time-wrapper.picker-open {
    box-shadow: 0 0 0 2px rgba(74, 107, 255, 0.3);
    border-radius: 8px;
}

/* Hide the default dropdown arrow in Firefox */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    position: absolute;
    right: 0;
    width: 100%;
    height: 50%;
    cursor: pointer;
}

/* Style for Firefox */
input[type="date"]::-moz-calendar-picker-indicator,
input[type="time"]::-moz-calendar-picker-indicator {
    opacity: 0;
    width: 100%;
    height: 50%;
    cursor: pointer;
}

/* Ensure the input is clickable through */
input[type="date"],
input[type="time"] {
    cursor: pointer;
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

th,
td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #003366;
    color: white;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Festival Calendar */
.festival-calendar {
    display: grid;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.festival {
    background: white;
    padding: 1.25rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #e67e22;
}

/* Responsive Tables */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
    }
}

/* ===============================================
           STRATEGIC AD POSITIONS & CSS
           =============================================== */

/* 1. TOP BANNER AD - High visibility above fold */
.ad-banner-top {
    width: 100%;
    max-width: 728px;
    height: 90px;
    margin: 1rem auto 2rem auto;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.ad-banner-top::before {
    content: "Advertisement";
    font-size: 0.75rem;
    color: #6c757d;
    position: absolute;
    top: 4px;
    left: 8px;
}

/* 2. SIDEBAR AD - Desktop sticky sidebar */
.ad-sidebar-sticky {
    position: sticky;
    top: 100px;
    width: 300px;
    height: 600px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin: 1rem 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.ad-sidebar-sticky::before {
    content: "Advertisement";
    font-size: 0.75rem;
    color: #6c757d;
    position: absolute;
    top: 8px;
    left: 8px;
}

/* 3. IN-CONTENT AD - Between sections */
.ad-in-content {
    width: 100%;
    max-width: 336px;
    height: 280px;
    margin: 2rem auto;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ad-in-content::before {
    content: "Advertisement";
    font-size: 0.75rem;
    color: #6c757d;
    position: absolute;
    top: 8px;
    left: 8px;
}

/* 4. BOTTOM STICKY AD - Mobile friendly */
.ad-bottom-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 60px;
    background-color: #ffffff;
    border-top: 1px solid #e9ecef;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.ad-bottom-sticky::before {
    content: "Advertisement";
    font-size: 0.7rem;
    color: #6c757d;
    position: absolute;
    top: 2px;
    left: 8px;
}

/* Close button for bottom sticky ad */
.ad-close-btn {
    position: absolute;
    top: 5px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-close-btn:hover {
    color: #dc3545;
}

/* 5. FLOATING AD - Appears after scroll */
.ad-floating {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 160px;
    height: 600px;
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 999;
    display: none;
    /* Initially hidden */
    opacity: 0;
    transition: opacity 0.5s ease;
}

.ad-floating.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.ad-floating::before {
    content: "Advertisement";
    font-size: 0.7rem;
    color: #6c757d;
    position: absolute;
    top: 8px;
    left: 8px;
}

/* 6. NATIVE AD - Blends with content */
.ad-native {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.ad-native::before {
    content: "Sponsored";
    font-size: 0.75rem;
    color: #6c757d;
    background-color: #f8f9fa;
    padding: 2px 8px;
    border-radius: 4px;
    position: absolute;
    top: 8px;
    right: 8px;
}

/* Layout adjustments for ads */
.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.main-content {
    min-width: 0;
    /* Prevents grid blowout */
}

.sidebar-ads {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Body padding for bottom sticky ad */
body.has-bottom-ad {
    padding-bottom: 80px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1200px) {
    .ad-floating {
        display: none !important;
    }

    .ad-sidebar-sticky {
        width: 250px;
        height: 500px;
    }
}

@media (max-width: 1024px) {
    .content-with-sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar-ads {
        display: none;
    }

    .ad-banner-top {
        max-width: 320px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .ad-banner-top {
        max-width: 300px;
        height: 250px;
    }

    .ad-in-content {
        max-width: 300px;
        height: 250px;
    }

    .ad-bottom-sticky {
        height: 50px;
    }

    body.has-bottom-ad {
        padding-bottom: 70px;
    }
}

@media (max-width: 480px) {

    .ad-banner-top,
    .ad-in-content {
        max-width: 280px;
        height: 200px;
    }

    .ad-bottom-sticky {
        height: 45px;
    }

    body.has-bottom-ad {
        padding-bottom: 65px;
    }
}

/* ACCESSIBILITY & UX */
.ad-container {
    transition: opacity 0.3s ease;
}

.ad-container:hover {
    opacity: 0.95;
}

/* Smooth scrolling adjustment for sticky ads */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Loading placeholder animation */
.ad-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}