/**
 * Airport Transfer Booking - Frontend Styles
 * Modern, clean, mobile-responsive design
 */

/* ==========================================================================
   Booking Form Container
   ========================================================================== */

.atb-booking-form {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.atb-booking-form h2 {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
}

.atb-booking-form .atb-subtitle {
    margin: 0 0 30px;
    font-size: 16px;
    color: #666;
}

/* ==========================================================================
   Form Steps
   ========================================================================== */

.atb-form-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    padding: 0;
    list-style: none;
}

.atb-form-step {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 15px 10px;
}

.atb-form-step::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #e0e0e0;
    z-index: -1;
}

.atb-form-step:first-child::before {
    width: 50%;
}

.atb-form-step:last-child::before {
    width: 50%;
    left: 0;
}

.atb-step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    font-weight: 700;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.atb-form-step.active .atb-step-number {
    background: #2196F3;
    color: #ffffff;
}

.atb-form-step.completed .atb-step-number {
    background: #4CAF50;
    color: #ffffff;
}

.atb-step-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #999;
    transition: color 0.3s ease;
}

.atb-form-step.active .atb-step-label,
.atb-form-step.completed .atb-step-label {
    color: #1a1a1a;
}

/* ==========================================================================
   Form Sections
   ========================================================================== */

.atb-form-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.atb-form-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.atb-section-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #1a1a1a;
    padding-bottom: 10px;
    border-bottom: 2px solid #2196F3;
}

/* ==========================================================================
   Form Fields
   ========================================================================== */

.atb-form-group {
    margin-bottom: 25px;
}

.atb-form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.atb-form-label .required {
    color: #f44336;
}

.atb-form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.atb-form-control:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.atb-form-control.error {
    border-color: #f44336;
}

.atb-form-control.error:focus {
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1);
}

.atb-error-message {
    display: none;
    margin-top: 6px;
    font-size: 13px;
    color: #f44336;
}

.atb-form-control.error + .atb-error-message {
    display: block;
}

textarea.atb-form-control {
    min-height: 100px;
    resize: vertical;
}

/* Two Column Layout */
.atb-form-row {
    display: flex;
    gap: 20px;
    margin: 0 -10px;
}

.atb-form-col {
    flex: 1;
    padding: 0 10px;
}

/* ==========================================================================
   Route Selection
   ========================================================================== */

.atb-route-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.atb-route-option {
    position: relative;
    cursor: pointer;
}

.atb-route-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.atb-route-card {
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.atb-route-option input[type="radio"]:checked + .atb-route-card {
    border-color: #2196F3;
    background: #E3F2FD;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.15);
}

.atb-route-card:hover {
    border-color: #2196F3;
    transform: translateY(-2px);
}

.atb-route-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.atb-route-name {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.atb-route-details {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* ==========================================================================
   Vehicle Selection
   ========================================================================== */

.atb-vehicle-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.atb-vehicle-option {
    position: relative;
    cursor: pointer;
}

.atb-vehicle-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.atb-vehicle-card {
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    background: #ffffff;
    height: 100%;
}

.atb-vehicle-option input[type="radio"]:checked + .atb-vehicle-card {
    border-color: #4CAF50;
    background: #E8F5E9;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
}

.atb-vehicle-card:hover {
    border-color: #4CAF50;
    transform: translateY(-2px);
}

.atb-vehicle-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.atb-vehicle-name {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.atb-vehicle-capacity {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

.atb-vehicle-price {
    font-size: 20px;
    font-weight: 700;
    color: #4CAF50;
}

.atb-vehicle-price .currency {
    font-size: 14px;
}

/* ==========================================================================
   Booking Summary
   ========================================================================== */

.atb-booking-summary {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
}

.atb-summary-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 15px;
    color: #1a1a1a;
}

.atb-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.atb-summary-item:last-child {
    border-bottom: none;
}

.atb-summary-label {
    font-size: 14px;
    color: #666;
}

.atb-summary-value {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.atb-summary-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #2196F3;
}

.atb-summary-total .atb-summary-label {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}

.atb-summary-total .atb-summary-value {
    font-size: 24px;
    font-weight: 700;
    color: #4CAF50;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.atb-form-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
}

.atb-btn {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.atb-btn-primary {
    background: #2196F3;
    color: #ffffff;
    flex: 1;
}

.atb-btn-primary:hover {
    background: #1976D2;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.atb-btn-secondary {
    background: #e0e0e0;
    color: #666;
}

.atb-btn-secondary:hover {
    background: #bdbdbd;
    color: #333;
}

.atb-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.atb-btn.loading {
    position: relative;
    pointer-events: none;
}

.atb-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    right: 15px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Loading Overlay
   ========================================================================== */

.atb-loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.atb-loading-overlay.active {
    display: flex;
}

.atb-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.8s linear infinite;
}

/* ==========================================================================
   Messages
   ========================================================================== */

.atb-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.atb-message-success {
    background: #E8F5E9;
    border-left: 4px solid #4CAF50;
    color: #2E7D32;
}

.atb-message-error {
    background: #FFEBEE;
    border-left: 4px solid #f44336;
    color: #C62828;
}

.atb-message-warning {
    background: #FFF3E0;
    border-left: 4px solid #FF9800;
    color: #E65100;
}

.atb-message-info {
    background: #E3F2FD;
    border-left: 4px solid #2196F3;
    color: #1565C0;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .atb-booking-form {
        padding: 20px;
    }
    
    .atb-booking-form h2 {
        font-size: 24px;
    }
    
    .atb-form-steps {
        flex-wrap: wrap;
    }
    
    .atb-form-step {
        flex-basis: 33.333%;
    }
    
    .atb-step-label {
        font-size: 12px;
    }
    
    .atb-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .atb-route-options,
    .atb-vehicle-options {
        grid-template-columns: 1fr;
    }
    
    .atb-form-actions {
        flex-direction: column-reverse;
    }
    
    .atb-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .atb-booking-form {
        padding: 15px;
        border-radius: 8px;
    }
    
    .atb-form-step::before {
        display: none;
    }
    
    .atb-step-number {
        width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 14px;
    }
    
    .atb-vehicle-price {
        font-size: 18px;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .atb-form-steps,
    .atb-form-actions {
        display: none;
    }
    
    .atb-booking-form {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}