/* Travion Airline Wizard - Premium Styles */

:root {
    --wizard-primary: #252a69;
    --wizard-accent: #0ea5a0;
    --wizard-text: #1a1a1a;
    --wizard-text-soft: #666;
    --wizard-bg: rgba(255, 255, 255, 0.95);
    --wizard-glass: rgba(255, 255, 255, 0.7);
    --wizard-blur: 15px;
    --wizard-radius: 16px;
    --wizard-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.wizard-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeIn 0.4s ease;
}

.wizard-modal.active {
    display: flex;
}

.wizard-container {
    width: 100%;
    max-width: 900px;
    background: var(--wizard-bg);
    border-radius: var(--wizard-radius);
    box-shadow: var(--wizard-shadow);
    overflow: hidden;
    position: relative;
    display: grid;
    grid-template-columns: 380px 1fr;
    min-height: 550px;
    animation: slideUp 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

@media (max-width: 800px) {
    .wizard-container {
        grid-template-columns: 1fr;
        max-width: 450px;
        min-height: auto;
    }
}

/* Sidebar Image */
.wizard-sidebar {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: var(--wizard-primary);
}

.wizard-sidebar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    opacity: 0.6;
    transition: transform 1s ease, opacity 0.5s ease;
}

.wizard-sidebar-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(37, 42, 105, 0.9), transparent);
}

.wizard-sidebar h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.wizard-sidebar p {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.5;
}

/* Main Content Area */
.wizard-main {
    padding: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.wizard-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--wizard-text-soft);
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
}

.wizard-close:hover {
    color: var(--wizard-primary);
}

/* Progress Header */
.wizard-header {
    margin-bottom: 30px;
}

.wizard-step-info {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--wizard-accent);
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.wizard-progress-bar {
    height: 4px;
    background: #eee;
    border-radius: 2px;
    overflow: hidden;
}

.wizard-progress-fill {
    height: 100%;
    background: var(--wizard-accent);
    width: 0%;
    transition: width 0.4s ease;
}

/* Step Content */
.wizard-steps {
    flex: 1;
    position: relative;
}

.wizard-step {
    display: none;
    animation: stepIn 0.5s ease forwards;
}

.wizard-step.active {
    display: block;
}

.wizard-step h3 {
    font-size: 1.5rem;
    color: var(--wizard-text);
    margin-bottom: 25px;
    font-weight: 600;
}

/* Form Elements */
.wizard-input-group {
    margin-bottom: 20px;
}

.wizard-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--wizard-text-soft);
    margin-bottom: 8px;
}

.wizard-select, .wizard-input {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid #eee;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s;
    background: #fdfdfd;
}

/* Searchable Dropdown CSS */
.airport-search-wrap {
    position: relative;
}

.airport-results {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 100;
    max-height: 280px;
    overflow-y: auto;
    display: none;
    border: 1px solid #eee;
}

.airport-results.active {
    display: block;
}

.airport-item {
    padding: 15px 18px;
    cursor: pointer;
    border-bottom: 1px solid #f9f9f9;
    transition: background 0.2s;
}

.airport-item:last-child {
    border-bottom: none;
}

.airport-item:hover, .airport-item.focused {
    background: #f0f7f7;
}

.airport-city-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.airport-city {
    font-weight: 700;
    color: var(--wizard-text);
    font-size: 1rem;
}

.airport-code {
    font-size: 0.8rem;
    font-weight: 700;
    background: #eee;
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--wizard-primary);
}

.airport-name {
    font-size: 0.75rem;
    color: var(--wizard-text-soft);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wizard-select:focus, .wizard-input:focus {
    border-color: var(--wizard-accent);
    box-shadow: 0 0 0 4px rgba(14, 165, 160, 0.1);
}

/* Radio Cards */
.wizard-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.wizard-option {
    position: relative;
    padding: 20px;
    border: 1.5px solid #eee;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
}

.wizard-option.selected {
    border-color: var(--wizard-accent);
    background: rgba(14, 165, 160, 0.05);
}

.wizard-option input {
    display: none;
}

.wizard-option i {
    font-size: 1.5rem;
    color: var(--wizard-accent);
    margin-bottom: 10px;
    display: block;
}

.wizard-option span {
    font-weight: 600;
    color: var(--wizard-text);
}

/* Passenger Breakdown */
.passenger-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
    animation: fadeIn 0.4s ease;
}

/* Footer Nav */
.wizard-footer {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
}

.wizard-btn {
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.wizard-btn-prev {
    background: rgba(0, 0, 0, 0.05);
    color: var(--wizard-text-soft);
    border: 1px solid #ddd;
}

.wizard-btn-prev:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--wizard-text);
}

.wizard-btn-next {
    background: var(--wizard-primary);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wizard-btn-next:hover {
    background: var(--wizard-accent);
    transform: translateY(-2px);
}

.wizard-btn-prev:hover {
    background: #eee;
}

.wizard-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

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

/* Mobile Adjustments */
@media (max-width: 480px) {
    .wizard-main { padding: 30px 20px; }
    .wizard-sidebar { display: none; }
    .wizard-options { grid-template-columns: 1fr; }
    .passenger-grid { grid-template-columns: 1fr; }
}

/* Success Message Overlay */
/* Flatpickr Custom Theme */
.flatpickr-calendar {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid #eee;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
}

.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange, 
.flatpickr-day.selected.prevMonthDay, .flatpickr-day.startRange.prevMonthDay, 
.flatpickr-day.endRange.prevMonthDay, .flatpickr-day.selected.nextMonthDay, 
.flatpickr-day.startRange.nextMonthDay, .flatpickr-day.endRange.nextMonthDay {
    background: var(--wizard-primary);
    border-color: var(--wizard-primary);
}

.flatpickr-day.selected:hover, .flatpickr-day.startRange:hover, 
.flatpickr-day.endRange:hover {
    background: var(--wizard-accent);
    border-color: var(--wizard-accent);
}

.flatpickr-day.today {
    border-color: var(--wizard-accent);
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    font-weight: 700;
}

.flatpickr-weekday {
    color: var(--wizard-text-soft);
    font-weight: 600;
}

.wizard-success {
    position: absolute;
    inset: 0;
    background: #fff;
    z-index: 20;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

.wizard-success i {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 20px;
}

.wizard-success h2 {
    color: var(--wizard-primary);
    margin-bottom: 10px;
}
