/**
 * Modern Booking Wizard CSS
 * 
 * Complete redesign following modern hotel booking UX/UI patterns
 * with 4-step progressive disclosure, mobile-first responsive design
 * 
 * @package ABATUR_Hotel_Booking
 * @version 2.0.0
 */

/* CSS Custom Properties */
:root {
    --ahb-primary: #880d53;
    --ahb-primary-dark: #6a0a41;
    --ahb-secondary: #9678d2;
    --ahb-success: #059669;
    --ahb-warning: #d97706;
    --ahb-error: #dc2626;
    --ahb-gray-50: #f8fafc;
    --ahb-gray-100: #f1f5f9;
    --ahb-gray-200: #e2e8f0;
    --ahb-gray-300: #cbd5e1;
    --ahb-gray-400: #94a3b8;
    --ahb-gray-500: #64748b;
    --ahb-gray-600: #475569;
    --ahb-gray-700: #334155;
    --ahb-gray-800: #1e293b;
    --ahb-gray-900: #0f172a;
    --ahb-white: #ffffff;
    --ahb-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --ahb-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --ahb-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --ahb-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --ahb-radius: 0.5rem;
    --ahb-radius-lg: 0.75rem;
    --ahb-radius-xl: 1rem;
}

/* Global Reset & Base Styles */
.ahb-booking-wizard {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    background: var(--ahb-white);
    color: var(--ahb-gray-800);
    line-height: 1.6;
}

.ahb-booking-wizard * {
    box-sizing: border-box;
}

/* Progress Bar */
.ahb-progress-container {
    background: var(--ahb-white);
    border-radius: var(--ahb-radius-xl);
    box-shadow: var(--ahb-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
    position: sticky;
    top: 20px;
    z-index: 100;
}

.ahb-progress-bar {
    background: var(--ahb-gray-200);
    border-radius: 50px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.ahb-progress-fill {
    background: linear-gradient(90deg, var(--ahb-primary), var(--ahb-primary-dark));
    height: 100%;
    border-radius: 50px;
    transition: width 0.3s ease;
}

.ahb-steps-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ahb-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    position: relative;
}

.ahb-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 60%;
    right: -40%;
    height: 2px;
    background: var(--ahb-gray-200);
    z-index: -1;
}

.ahb-step.ahb-step-completed:not(:last-child)::after {
    background: var(--ahb-primary);
}

.ahb-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ahb-gray-200);
    color: var(--ahb-gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.ahb-step-active .ahb-step-number {
    background: var(--ahb-primary);
    color: var(--ahb-white);
    transform: scale(1.1);
}

.ahb-step-completed .ahb-step-number {
    background: var(--ahb-success);
    color: var(--ahb-white);
}

.ahb-step-completed .ahb-step-number::before {
    content: '✓';
    font-size: 1rem;
}

.ahb-step-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--ahb-gray-600);
    text-align: center;
}

.ahb-step-active .ahb-step-label {
    color: var(--ahb-primary);
    font-weight: 600;
}

.ahb-step-completed .ahb-step-label {
    color: var(--ahb-success);
}

/* Event Header */
.ahb-event-header {
    text-align: center;
    margin-bottom: 3rem;
}

.ahb-event-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ahb-gray-900);
    margin: 0 0 1rem 0;
    background: linear-gradient(135deg, var(--ahb-primary), var(--ahb-primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ahb-event-description {
    font-size: 1.125rem;
    color: var(--ahb-gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Form Steps */
.ahb-booking-form {
    position: relative;
}

.ahb-form-step {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.ahb-form-step.ahb-step-active {
    display: block;
}

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

.ahb-step-header {
    text-align: center;
    margin-bottom: 3rem;
}

.ahb-step-header h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--ahb-gray-900);
    margin: 0 0 0.5rem 0;
}

.ahb-step-header p {
    font-size: 1rem;
    color: var(--ahb-gray-600);
    margin: 0;
}

.ahb-section {
    background: var(--ahb-white);
    border-radius: var(--ahb-radius-lg);
    box-shadow: var(--ahb-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--ahb-gray-200);
}

.ahb-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ahb-gray-900);
    margin: 0 0 1.5rem 0;
}

/* STEP 1: Hotel Cards */
.ahb-hotels-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.ahb-hotel-card {
    background: var(--ahb-white);
    border: 2px solid var(--ahb-gray-200);
    border-radius: var(--ahb-radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ahb-hotel-card:hover {
    border-color: var(--ahb-primary);
    box-shadow: var(--ahb-shadow-lg);
    transform: translateY(-2px);
}

.ahb-hotel-card.selected {
    border-color: var(--ahb-primary);
    background: linear-gradient(135deg, var(--ahb-gray-50), var(--ahb-white));
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

.ahb-hotel-card-content {
    padding: 2rem;
}

.ahb-hotel-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ahb-gray-900);
    margin: 0 0 1rem 0;
}

.ahb-hotel-description {
    color: var(--ahb-gray-600);
    margin: 0 0 1rem 0;
    line-height: 1.6;
}

.ahb-hotel-address {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ahb-gray-500);
    font-size: 0.875rem;
    margin: 0 0 1.5rem 0;
}

.ahb-btn-select-hotel {
    width: 100%;
    background: var(--ahb-primary);
    color: var(--ahb-white);
    border: none;
    border-radius: var(--ahb-radius);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ahb-btn-select-hotel:hover {
    background: var(--ahb-primary-dark);
    transform: translateY(-1px);
}

.ahb-hotel-card.selected .ahb-btn-select-hotel {
    background: var(--ahb-success);
}

/* STEP 2: Calendar & Guests */
.ahb-help-text {
    color: var(--ahb-gray-500);
    font-size: 0.875rem;
    margin: 0 0 1.5rem 0;
}

/* === DATE RANGE PICKER === */
.ahb-daterange-picker {
    margin-bottom: 2rem;
}

/* Date range summary bar */
.ahb-daterange-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--ahb-gray-50);
    border: 2px solid var(--ahb-gray-200);
    border-radius: var(--ahb-radius-lg);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    transition: border-color 0.3s ease;
}

.ahb-daterange-bar.ahb-daterange-complete {
    border-color: var(--ahb-primary);
    background: linear-gradient(135deg, rgba(136, 13, 83, 0.03), rgba(150, 120, 210, 0.03));
}

.ahb-daterange-field {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--ahb-radius);
    transition: background 0.2s ease;
}

.ahb-daterange-field:hover {
    background: var(--ahb-gray-100);
}

.ahb-daterange-field.ahb-daterange-active {
    background: rgba(136, 13, 83, 0.08);
}

.ahb-daterange-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.ahb-daterange-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.ahb-daterange-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ahb-gray-500);
}

.ahb-daterange-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ahb-gray-800);
}

.ahb-daterange-value.ahb-daterange-placeholder {
    color: var(--ahb-gray-400);
    font-weight: 400;
}

.ahb-daterange-separator {
    color: var(--ahb-gray-400);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.ahb-daterange-nights {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--ahb-primary);
    color: var(--ahb-white);
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.ahb-daterange-nights-label {
    font-weight: 500;
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Calendar months container */
.ahb-calendar-months {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.ahb-calendar-month {
    background: var(--ahb-white);
    border-radius: var(--ahb-radius);
    overflow: hidden;
}

.ahb-calendar-month-header {
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    color: var(--ahb-gray-800);
    padding: 0.75rem 0;
    text-transform: capitalize;
}

/* Weekday headers */
.ahb-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    margin-bottom: 0.25rem;
}

.ahb-calendar-weekdays span {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: lowercase;
    color: var(--ahb-gray-500);
    padding: 0.5rem 0;
}

/* Calendar grid */
.ahb-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
}

/* Individual day cells */
.ahb-cal-day {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    cursor: default;
    transition: all 0.15s ease;
}

.ahb-cal-day-number {
    position: relative;
    z-index: 2;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--ahb-gray-400);
    border-radius: 50%;
    transition: all 0.15s ease;
}

.ahb-cal-empty {
    cursor: default;
}

.ahb-cal-disabled {
    cursor: default;
}

.ahb-cal-disabled .ahb-cal-day-number {
    color: var(--ahb-gray-300);
}

/* Available (bookable) days */
.ahb-cal-available {
    cursor: pointer;
}

.ahb-cal-available .ahb-cal-day-number {
    color: var(--ahb-gray-700);
    font-weight: 500;
}

.ahb-cal-available:hover .ahb-cal-day-number {
    background: var(--ahb-gray-100);
    color: var(--ahb-gray-900);
}

/* Event days - subtle indicator */
.ahb-cal-event .ahb-cal-day-number {
    color: var(--ahb-gray-800);
    font-weight: 600;
}

.ahb-cal-event::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--ahb-primary);
    z-index: 1;
}

/* Selected: check-in day */
.ahb-cal-day.ahb-cal-checkin .ahb-cal-day-number {
    background: var(--ahb-primary);
    color: var(--ahb-white);
    font-weight: 600;
}

.ahb-cal-day.ahb-cal-checkin {
    background: linear-gradient(90deg, transparent 50%, rgba(136, 13, 83, 0.1) 50%);
}

/* Selected: check-out day */
.ahb-cal-day.ahb-cal-checkout .ahb-cal-day-number {
    background: var(--ahb-primary);
    color: var(--ahb-white);
    font-weight: 600;
}

.ahb-cal-day.ahb-cal-checkout {
    background: linear-gradient(90deg, rgba(136, 13, 83, 0.1) 50%, transparent 50%);
}

/* Selected: same day (checkin == checkout before second click) */
.ahb-cal-day.ahb-cal-checkin.ahb-cal-only .ahb-cal-day-number {
    background: var(--ahb-primary);
    color: var(--ahb-white);
}

.ahb-cal-day.ahb-cal-checkin.ahb-cal-only {
    background: transparent;
}

/* Selected: in-range days */
.ahb-cal-day.ahb-cal-inrange {
    background: rgba(136, 13, 83, 0.1);
}

.ahb-cal-day.ahb-cal-inrange .ahb-cal-day-number {
    color: var(--ahb-primary-dark);
    font-weight: 500;
}

/* Hover preview for range */
.ahb-cal-day.ahb-cal-hover-range {
    background: rgba(136, 13, 83, 0.05);
}

.ahb-cal-day.ahb-cal-hover-endpoint .ahb-cal-day-number {
    background: rgba(136, 13, 83, 0.2);
    color: var(--ahb-primary-dark);
}

/* Calendar legend */
.ahb-calendar-legend {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0.75rem 0;
    border-top: 1px solid var(--ahb-gray-100);
}

.ahb-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--ahb-gray-600);
}

.ahb-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ahb-legend-event {
    background: var(--ahb-primary);
}

.ahb-legend-extra {
    background: var(--ahb-gray-400);
    border: 2px dashed var(--ahb-gray-500);
    box-sizing: border-box;
}

.ahb-legend-selected {
    background: rgba(136, 13, 83, 0.15);
    border: 2px solid var(--ahb-primary);
    box-sizing: border-box;
}

/* Dates summary */
.ahb-dates-summary {
    background: var(--ahb-gray-50);
    border-radius: var(--ahb-radius);
    padding: 1.25rem 1.5rem;
    margin-top: 1rem;
    border: 1px solid var(--ahb-gray-200);
}

.ahb-dates-summary h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ahb-gray-900);
    margin: 0 0 1rem 0;
}

.ahb-summary-grid {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.ahb-summary-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ahb-summary-label {
    font-weight: 500;
    color: var(--ahb-gray-600);
    font-size: 0.875rem;
}

.ahb-nights-badge {
    background: var(--ahb-primary);
    color: var(--ahb-white);
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-left: auto;
}

.ahb-nights-badge .ahb-nights-label {
    font-weight: 500;
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Guest Selection */
.ahb-guest-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.ahb-guest-counter {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ahb-guest-counter label {
    font-weight: 500;
    color: var(--ahb-gray-700);
}

.ahb-counter-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.ahb-counter-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--ahb-gray-300);
    background: var(--ahb-white);
    color: var(--ahb-gray-600);
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ahb-counter-btn:hover {
    border-color: var(--ahb-primary);
    color: var(--ahb-primary);
    background: var(--ahb-gray-50);
}

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

.ahb-counter-display {
    width: 60px;
    height: 40px;
    border: 1px solid var(--ahb-gray-300);
    border-radius: var(--ahb-radius);
    text-align: center;
    font-size: 1.125rem;
    font-weight: 600;
    background: var(--ahb-gray-50);
}

.ahb-children-ages {
    margin-top: 1.5rem;
}

.ahb-children-ages h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ahb-gray-900);
    margin: 0 0 1rem 0;
}

#children-ages-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

/* Room Selection */
.ahb-loading-message {
    text-align: center;
    padding: 2rem;
    color: var(--ahb-gray-500);
    font-style: italic;
}

.ahb-rooms-grid {
    display: grid;
    gap: 1rem;
}

.ahb-room-card {
    background: var(--ahb-white);
    border: 2px solid var(--ahb-gray-200);
    border-radius: var(--ahb-radius);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ahb-room-card:hover {
    border-color: var(--ahb-primary);
    box-shadow: var(--ahb-shadow);
}

.ahb-room-card.selected {
    border-color: var(--ahb-primary);
    background: linear-gradient(135deg, var(--ahb-gray-50), var(--ahb-white));
}

/* Room Availability Information */
.ahb-availability-info {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--ahb-success);
    color: var(--ahb-white);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.ahb-availability-info.low-availability {
    background: var(--ahb-warning);
}

.ahb-availability-info.no-availability {
    background: var(--ahb-error);
}

.ahb-availability-info .icon {
    width: 0.875rem;
    height: 0.875rem;
}

.ahb-room-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.ahb-room-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ahb-primary);
}

.ahb-room-capacity {
    font-size: 0.875rem;
    color: var(--ahb-gray-600);
}

.ahb-room-inventory {
    font-size: 0.875rem;
    color: var(--ahb-gray-500);
    font-style: italic;
}

/* STEP 3: Guest Information */
.ahb-radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ahb-radio-option {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border: 2px solid var(--ahb-gray-200);
    border-radius: var(--ahb-radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.ahb-radio-option:hover {
    border-color: var(--ahb-primary);
    background: var(--ahb-gray-50);
}

.ahb-radio-option input[type="radio"] {
    margin: 0.25rem 0 0 0;
    accent-color: var(--ahb-primary);
}

.ahb-radio-option input[type="radio"]:checked + .ahb-radio-label {
    color: var(--ahb-primary);
    font-weight: 600;
}

.ahb-radio-label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ahb-radio-label small {
    color: var(--ahb-gray-500);
    font-size: 0.875rem;
}

.ahb-conditional-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--ahb-gray-50);
    border-radius: var(--ahb-radius);
    border-left: 4px solid var(--ahb-primary);
}

.ahb-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.ahb-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ahb-label {
    font-weight: 500;
    color: var(--ahb-gray-700);
    font-size: 0.875rem;
}

.ahb-required {
    color: var(--ahb-error);
}

.ahb-input,
.ahb-textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--ahb-gray-300);
    border-radius: var(--ahb-radius);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--ahb-white);
}

.ahb-input:focus,
.ahb-textarea:focus {
    outline: none;
    border-color: var(--ahb-primary);
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

.ahb-input:invalid,
.ahb-textarea:invalid {
    border-color: var(--ahb-error);
}

.ahb-textarea {
    resize: vertical;
    min-height: 100px;
}

/* STEP 4: Confirmation */
.ahb-booking-summary {
    background: var(--ahb-gray-50);
    border-radius: var(--ahb-radius-lg);
    overflow: hidden;
}

.ahb-summary-card {
    padding: 2rem;
}

.ahb-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--ahb-gray-200);
}

.ahb-summary-row:last-child {
    border-bottom: none;
}

.ahb-summary-total {
    background: transparent;
    color: var(--ahb-gray-800);
    margin: 0;
    padding: 1rem 0;
    font-weight: 700;
    font-size: 1.125rem;
    border-top: 2px solid var(--ahb-gray-300);
}

.ahb-summary-total .ahb-summary-label,
.ahb-summary-total span {
    font-weight: 700;
    color: var(--ahb-gray-800);
}

/* Captcha */
.ahb-captcha-section {
    max-width: 400px;
}

.ahb-captcha-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--ahb-gray-50);
    border-radius: var(--ahb-radius);
    border: 1px solid var(--ahb-gray-300);
}

.ahb-captcha-question {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ahb-primary);
}

.ahb-captcha-refresh {
    background: var(--ahb-gray-600);
    color: var(--ahb-white);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.ahb-captcha-refresh:hover {
    background: var(--ahb-gray-700);
    transform: rotate(180deg);
}

.ahb-captcha-input {
    max-width: 100px;
    text-align: center;
    font-weight: 600;
}

/* Navigation */
.ahb-form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding: 2rem;
    background: var(--ahb-white);
    border-radius: var(--ahb-radius-lg);
    box-shadow: var(--ahb-shadow);
    border: 1px solid var(--ahb-gray-200);
}

.ahb-btn {
    padding: 0.75rem 2rem;
    border-radius: var(--ahb-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.ahb-btn-primary {
    background: var(--ahb-primary);
    color: var(--ahb-white);
}

.ahb-btn-primary:hover {
    background: var(--ahb-primary-dark);
    transform: translateY(-1px);
}

.ahb-btn-secondary {
    background: var(--ahb-gray-200);
    color: var(--ahb-gray-700);
}

.ahb-btn-secondary:hover {
    background: var(--ahb-gray-300);
}

.ahb-btn-success {
    background: var(--ahb-success);
    color: var(--ahb-white);
    font-size: 1.125rem;
    padding: 1rem 2.5rem;
}

.ahb-btn-success:hover {
    background: #047857;
    transform: translateY(-2px);
    box-shadow: var(--ahb-shadow-lg);
}

.ahb-btn:disabled,
.ahb-btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    background: var(--ahb-gray-400) !important;
    color: var(--ahb-gray-600) !important;
}

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

/* Messages */
.ahb-messages {
    padding: 1rem 1.5rem;
    border-radius: var(--ahb-radius);
    margin: 1rem 0;
    font-weight: 500;
}

.ahb-messages.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.ahb-messages.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.ahb-messages.warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fed7aa;
}

/* Loading Overlay */
.ahb-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.ahb-loading-content {
    background: var(--ahb-white);
    border-radius: var(--ahb-radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--ahb-shadow-lg);
}

.ahb-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--ahb-gray-200);
    border-top: 4px solid var(--ahb-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Sticky Summary */
.ahb-sticky-summary {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--ahb-white);
    border-top: 1px solid var(--ahb-gray-200);
    box-shadow: 0 -4px 6px -1px rgb(0 0 0 / 0.1);
    z-index: 50;
    display: none;
}

.ahb-sticky-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.ahb-sticky-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ahb-sticky-total {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--ahb-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .ahb-booking-wizard {
        padding: 0.5rem;
    }
    
    .ahb-progress-container {
        padding: 1rem;
        position: static;
        margin-bottom: 1rem;
    }
    
    .ahb-steps-indicator {
        justify-content: space-around;
    }
    
    .ahb-step-label {
        font-size: 0.625rem;
    }
    
    .ahb-event-title {
        font-size: 2rem;
    }
    
    .ahb-step-header h2 {
        font-size: 1.5rem;
    }
    
    .ahb-section {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .ahb-hotels-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .ahb-calendar-months {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .ahb-daterange-bar {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }

    .ahb-daterange-separator {
        transform: rotate(90deg);
        font-size: 1rem;
    }

    .ahb-daterange-nights {
        align-self: center;
        margin-top: 0.25rem;
    }

    .ahb-cal-day {
        height: 38px;
    }

    .ahb-cal-day-number {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .ahb-guest-selection {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .ahb-form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .ahb-radio-group {
        gap: 0.75rem;
    }
    
    .ahb-radio-option {
        padding: 1rem;
    }
    
    .ahb-form-navigation {
        padding: 1rem;
        margin-top: 2rem;
    }
    
    .ahb-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .ahb-sticky-summary {
        display: block;
    }
    
    .ahb-booking-wizard {
        padding-bottom: 80px;
    }
}

@media (max-width: 480px) {
    .ahb-event-title {
        font-size: 1.75rem;
    }
    
    .ahb-step-header h2 {
        font-size: 1.25rem;
    }
    
    .ahb-section {
        padding: 1rem;
    }
    
    .ahb-hotel-card-content {
        padding: 1.5rem;
    }
    
    .ahb-calendar-legend {
        gap: 1rem;
    }

    .ahb-nights-badge {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .ahb-summary-grid {
        grid-template-columns: 1fr;
    }
    
    .ahb-captcha-container {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .ahb-form-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .ahb-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    .ahb-progress-container,
    .ahb-form-navigation,
    .ahb-sticky-summary {
        display: none;
    }
    
    .ahb-booking-wizard {
        max-width: none;
        margin: 0;
        padding: 0;
    }
    
    .ahb-section {
        box-shadow: none;
        border: 1px solid var(--ahb-gray-300);
        break-inside: avoid;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --ahb-primary: #0066cc;
        --ahb-primary-dark: #004499;
        --ahb-gray-200: #cccccc;
        --ahb-gray-300: #999999;
        --ahb-gray-600: #333333;
        --ahb-gray-700: #000000;
    }
}

/* Success Page Styles */
.ahb-success-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--ahb-primary);
    color: var(--ahb-white);
    text-align: center;
}

.ahb-success-content {
    max-width: 600px;
    width: 100%;
    background: var(--ahb-white);
    color: var(--ahb-gray-700);
    border-radius: var(--ahb-radius-xl);
    padding: 3rem 2rem;
    box-shadow: var(--ahb-shadow-xl);
    animation: successSlideIn 0.6s ease-out;
}

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

.ahb-success-icon {
    margin-bottom: 1.5rem;
}

.ahb-success-icon svg {
    filter: drop-shadow(0 4px 8px rgba(136, 13, 83, 0.3));
}

.ahb-success-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--ahb-primary);
}

.ahb-success-message {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: var(--ahb-gray-600);
    line-height: 1.6;
}

.ahb-reservation-id {
    background: var(--ahb-gray-50);
    padding: 1rem;
    border-radius: var(--ahb-radius-md);
    margin-top: 1rem;
    font-family: monospace;
    border-left: 4px solid var(--ahb-primary);
}

.ahb-folio {
    background: var(--ahb-gray-50);
    padding: 1rem;
    border-radius: var(--ahb-radius-md);
    margin-top: 1rem;
    border-left: 4px solid var(--ahb-primary);
}

.ahb-folio-number {
    font-family: monospace;
    font-size: 1.2rem;
    color: var(--ahb-primary);
    font-weight: 700;
    letter-spacing: 1px;
}

.ahb-success-details {
    margin-bottom: 2.5rem;
}

.ahb-success-details h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--ahb-gray-700);
}

.ahb-booking-summary {
    background: var(--ahb-gray-50);
    border-radius: var(--ahb-radius-md);
    padding: 1.5rem;
    text-align: left;
}

.ahb-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--ahb-gray-200);
}

.ahb-summary-row:last-child {
    border-bottom: none;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ahb-primary);
}

.ahb-success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.ahb-success-actions .ahb-btn {
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.ahb-success-actions .ahb-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.ahb-success-actions .ahb-btn-primary {
    background: var(--ahb-primary);
    color: var(--ahb-white);
}

.ahb-success-actions .ahb-btn-primary:hover {
    background: var(--ahb-primary-dark);
}

.ahb-success-actions .ahb-btn-secondary {
    background: var(--ahb-gray-100);
    color: var(--ahb-gray-700);
    border: 2px solid var(--ahb-gray-300);
}

.ahb-success-actions .ahb-btn-secondary:hover {
    background: var(--ahb-gray-200);
    border-color: var(--ahb-gray-400);
}

/* Responsive Success Page */
@media (max-width: 768px) {
    .ahb-success-page {
        padding: 1rem;
        min-height: 70vh;
    }
    
    .ahb-success-content {
        padding: 2rem 1.5rem;
    }
    
    .ahb-success-title {
        font-size: 2rem;
    }
    
    .ahb-success-actions {
        flex-direction: column;
    }
    
    .ahb-success-actions .ahb-btn {
        width: 100%;
        min-width: auto;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .ahb-progress-fill,
    .ahb-step-number,
    .ahb-btn,
    .ahb-hotel-card,
    .ahb-cal-day,
    .ahb-cal-day-number {
        transition: none;
    }
    
    .ahb-success-content {
        animation: none;
    }
}

/* ===========================
   TRANSFER MODULE STYLES 
   ===========================*/

/* Transfer Step Container */
.ahb-form-step[data-step="4"] {
    min-height: 600px;
}

/* Transfer Option Selection */
.ahb-conditional-section {
    transition: all 0.3s ease;
    overflow: hidden;
}

.ahb-conditional-section[style*="display: none"] {
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
}

/* Transfer Type Radio Groups */
.ahb-radio-group {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.ahb-radio-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid var(--ahb-gray-200);
    border-radius: var(--ahb-radius);
    background: var(--ahb-white);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.ahb-radio-option:hover {
    border-color: var(--ahb-primary);
    background: var(--ahb-gray-50);
    transform: translateY(-1px);
    box-shadow: var(--ahb-shadow-sm);
}

.ahb-radio-option input[type="radio"] {
    margin: 0;
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--ahb-primary);
    cursor: pointer;
}

.ahb-radio-option input[type="radio"]:checked + .ahb-radio-label,
.ahb-radio-option:has(input:checked) {
    border-color: var(--ahb-primary);
    background: rgba(37, 99, 235, 0.05);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.ahb-radio-label {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ahb-radio-label strong {
    color: var(--ahb-gray-800);
    font-weight: 600;
    font-size: 1rem;
}

.ahb-radio-label small {
    color: var(--ahb-gray-600);
    font-size: 0.875rem;
    line-height: 1.4;
}

.ahb-radio-label span {
    color: var(--ahb-gray-700);
    font-size: 0.95rem;
}

/* Flight Details Sections */
#arrival-flight-section,
#departure-flight-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--ahb-gray-50);
    border-radius: var(--ahb-radius-lg);
    border: 1px solid var(--ahb-gray-200);
}

#arrival-flight-section h4,
#departure-flight-section h4 {
    margin: 0 0 1rem 0;
    color: var(--ahb-gray-800);
    font-size: 1.125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Airline Dropdown Styling */
#arrival_airline,
#departure_airline {
    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.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

/* Flight Information Grid */
.ahb-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .ahb-form-grid {
        grid-template-columns: 1fr;
    }
}

/* Flight Input Fields */
input[placeholder*="AA"],
input[placeholder*="Ciudad de"] {
    text-transform: uppercase;
}

input[type="time"],
input[type="date"] {
    min-height: 2.75rem;
}

/* Transfer Passenger Summary */
#transfer-passenger-summary {
    font-weight: 600;
    color: var(--ahb-primary);
}

/* Transfer Special Requests */
#transfer_special_requests {
    resize: vertical;
    min-height: 4rem;
}

/* Transfer Pricing Notice */
.ahb-pricing-notice {
    animation: slideIn 0.4s ease;
}

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

/* Transfer Summary in Step 5 */
#summary-transfer-row {
    border-top: 1px solid var(--ahb-gray-200);
}

#summary-transfer {
    font-weight: 500;
    color: var(--ahb-gray-700);
}

/* Step 4 Specific Styling */
.ahb-form-step[data-step="4"] .ahb-step-header h2 {
    color: var(--ahb-primary);
}

.ahb-form-step[data-step="4"] .ahb-section:first-of-type {
    border-bottom: 1px solid var(--ahb-gray-200);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Enhanced Radio Button Animations */
.ahb-radio-option input[type="radio"]:checked {
    animation: radioSelect 0.3s ease;
}

@keyframes radioSelect {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Transfer Section Loading State */
.ahb-conditional-section.loading {
    opacity: 0.6;
    pointer-events: none;
}

.ahb-conditional-section.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2rem;
    height: 2rem;
    border: 2px solid var(--ahb-gray-300);
    border-top-color: var(--ahb-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Transfer Form Validation States */
.ahb-radio-option:has(input:required:invalid) {
    border-color: var(--ahb-error);
    animation: shake 0.3s ease-in-out;
}

.ahb-radio-option:has(input:required:valid) {
    border-color: var(--ahb-success);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Responsive Transfer Adjustments */
@media (max-width: 640px) {
    .ahb-radio-option {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .ahb-radio-option input[type="radio"] {
        align-self: flex-start;
    }
    
    #arrival-flight-section,
    #departure-flight-section {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .ahb-form-grid {
        gap: 0.75rem;
    }
}

/* High DPI Display Adjustments */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .ahb-radio-option {
        border-width: 1px;
    }
    
    .ahb-radio-option:hover {
        border-width: 2px;
    }
}