﻿/* Premium Design System - Light Theme */
:root {
    /* Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --accent-color: #0ea5e9;
    --accent-glow: rgba(14, 165, 233, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.05);

    /* Typography */
    --font-main: 'Outfit', sans-serif;

    /* Spacing */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    padding-top: 50px;
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    font-size: 1.125rem;
}

/* Layout */
.site-header {
    position: absolute;
    top: 50px;
    right: 50px;
    left: auto;
    width: auto;
    padding: 0;
    z-index: 100;
}

.logo {
    font-family: 'Roboto Slab', serif;
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 400;
}

/* Menu Button */
.menu-btn {
    position: absolute;
    top: 50px;
    left: 50px;
    z-index: 200;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
}

.menu-line {
    width: 30px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

.menu-btn:hover .menu-line {
    background-color: var(--accent-color);
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    /* Hidden by default */
    width: 300px;
    height: 100vh;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    z-index: 300;
    transition: var(--transition-smooth);
    padding: var(--spacing-xl) var(--spacing-lg);
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.1);
}

.sidebar.open {
    left: 0;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.close-btn:hover {
    color: var(--accent-color);
}

.menu-list {
    list-style: none;
    margin-top: var(--spacing-lg);
}

.menu-list li {
    margin-bottom: var(--spacing-md);
}

.menu-list a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 500;
    transition: var(--transition-fast);
    display: block;
    padding: 0.5rem 0;
}

.menu-list a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    width: 100%;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at top center, #f1f5f9 0%, #ffffff 70%);
}

.hero-content {
    z-index: 10;
    max-width: 800px;
    animation: fadeInUp 0.8s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Form Elements */
.selection-container {
    margin-top: var(--spacing-xl);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: var(--spacing-lg);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    width: fit-content;
    min-width: 350px;
    margin-left: auto;
    margin-right: auto;
}

.input-group {
    text-align: center;
}

.input-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Custom Dropdown */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
}

.custom-select {
    position: relative;
    display: flex;
    flex-direction: column;
}

.custom-select__trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.custom-select__trigger:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--accent-color);
}

.custom-select-options {
    position: absolute;
    display: block;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: var(--transition-fast);
    z-index: 20;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.custom-select.open .custom-select-options {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateY(0);
}

.custom-option {
    position: relative;
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: left;
}

.custom-option:hover {
    background: var(--accent-color);
    color: #fff;
}

.custom-option.selected {
    background: rgba(14, 165, 233, 0.1);
    color: var(--accent-color);
}

.arrow {
    position: relative;
    height: 10px;
    width: 10px;
}

.arrow::before,
.arrow::after {
    content: "";
    position: absolute;
    bottom: 0px;
    width: 0.15rem;
    height: 100%;
    transition: all 0.2s;
    background-color: var(--text-secondary);
}

.arrow::before {
    left: -3px;
    transform: rotate(-45deg);
}

.arrow::after {
    left: 3px;
    transform: rotate(45deg);
}

.open .arrow::before {
    left: -3px;
    transform: rotate(45deg);
}

.open .arrow::after {
    left: 3px;
    transform: rotate(-45deg);
}

/* Search Component */
.search-wrapper {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-family: var(--font-main);
    font-weight: 500;
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    outline: none;
    transition: var(--transition-fast);
}

.search-input:focus {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
}

.search-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-top: 8px;
    max-height: 200px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-fast);
    z-index: 30;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.search-suggestions.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
    color: var(--text-primary);
    text-align: left;
}

.suggestion-item:hover {
    background: var(--accent-color);
    color: #fff;
}

.suggestion-item strong {
    color: var(--accent-color);
}

.suggestion-item:hover strong {
    color: #fff;
}

/* Travel Mode Icons */
.travel-modes {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.mode-option {
    flex: 1;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    min-width: 80px;
    max-width: 100px;
}

.mode-option:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
    border-color: var(--accent-color);
    box-shadow: 0 0 20px var(--accent-glow);
}

.mode-option.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

.mode-option svg {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: var(--transition-fast);
}

.mode-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

/* Merged Walk + Public Transport Button */
.mode-option.double-width {
    flex: 2.1;
    max-width: none;
    flex-direction: row;
    justify-content: space-around;
    padding: 0.5rem;
}

.mode-inner-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mode-separator {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-secondary);
    align-self: center;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 1.25rem;
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-main);
    color: #fff;
    background: linear-gradient(135deg, var(--accent-color), #0284c7);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-top: var(--spacing-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Options Page Specifics */
.options-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    width: 100%;
    text-align: left;
}

.option-card {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.option-card:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--accent-color);
}

.option-card.selected {
    background: rgba(14, 165, 233, 0.1);
    border-color: var(--accent-color);
}

.option-radio {
    width: 24px;
    height: 24px;
    accent-color: var(--accent-color);
    flex-shrink: 0;
    margin: 0;
}

.option-details {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
}

.option-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.option-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.payment-buttons {
    display: flex;
    gap: 1rem;
    margin-top: var(--spacing-lg);
    width: 100%;
}

.btn-payment {
    flex: 1;
    height: 64px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    background: white;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.btn-payment:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.btn-payment.selected {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* Pay Button Specifics */
.pay-btn {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    /* Green */
    opacity: 0.5;
    pointer-events: none;
    margin-top: var(--spacing-lg);
}

.pay-btn.active {
    opacity: 1;
    pointer-events: all;
}

.pay-btn:hover {
    box-shadow: 0 10px 15px -3px rgba(34, 197, 94, 0.4);
}

.stripe-btn-container {
    margin-top: var(--spacing-lg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    cursor: pointer;
    transition: var(--transition-fast);
    margin-top: var(--spacing-sm);
    width: 100%;
    display: flex;
    justify-content: center;
}

.site-header:hover {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-primary);
}

.email-hint {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: var(--spacing-md);
    margin-bottom: 0;
    font-weight: 500;
}

.spam-hint {
    color: #ef4444;
    /* Red color */
    display: block;
    margin-top: 4px;
    font-weight: 600;
}

/* Promotional Banner */
.promo-banner {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 33.33%;
    background-color: white;
    color: darkred;
    font-weight: bold;
    text-align: center;
    z-index: 1000;
    padding: 5px 0;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}