/* Wonderly Booking Form Styles */

.wonderly-booking-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.wonderly-booking-header {
    text-align: center;
    margin-bottom: 40px;
}

.wonderly-booking-header h2 {
    font-size: 32px;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.wonderly-booking-header p {
    font-size: 16px;
    color: #666;
}

/* Flight Summary */
.wonderly-flight-summary {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.wonderly-flight-summary h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.flight-summary-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.summary-route {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.route-segment {
    text-align: center;
}

.airport-code {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.route-segment .time {
    font-size: 18px;
    color: #666;
    margin: 5px 0;
}

.route-segment .date {
    font-size: 14px;
    color: #999;
}

.route-arrow {
    font-size: 28px;
    color: #667eea;
    margin: 0 20px;
}

.summary-details {
    display: flex;
    gap: 20px;
    justify-content: center;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    font-size: 14px;
    color: #666;
}

/* Form Sections */
.form-section {
    margin-bottom: 35px;
    padding-bottom: 35px;
    border-bottom: 1px solid #e0e0e0;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
}

.form-section h3 .optional {
    font-size: 14px;
    font-weight: 400;
    color: #999;
}

/* Form Rows */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group small {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

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

/* Passenger Forms */
.passenger-form {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.passenger-form h4 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #667eea;
    font-size: 18px;
}

/* Price Summary */
.wonderly-price-summary {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 16px;
}

.price-row.total {
    border-top: 2px solid #667eea;
    padding-top: 15px;
    margin-top: 10px;
    font-weight: 700;
    font-size: 20px;
}

.price-value {
    color: #667eea;
    font-weight: 600;
}

.price-row.total .price-value {
    font-size: 24px;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: space-between;
}

.btn {
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #e9ecef;
}

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

.wonderly-loading-overlay .spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.wonderly-loading-overlay p {
    color: white;
    font-size: 18px;
}

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

/* Confirmation Page */
.wonderly-confirmation-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    text-align: center;
}

.confirmation-success {
    background: #d4edda;
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
}

.confirmation-success .icon {
    font-size: 64px;
    color: #28a745;
    margin-bottom: 20px;
}

.confirmation-success h2 {
    color: #155724;
    margin-bottom: 10px;
}

.booking-reference {
    font-size: 32px;
    font-weight: 700;
    color: #667eea;
    margin: 20px 0;
}

.confirmation-details {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: left;
    margin-bottom: 30px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.detail-label {
    font-weight: 600;
    color: #666;
}

.detail-value {
    color: #333;
}

/* My Bookings Page */
.wonderly-bookings-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.booking-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.booking-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.booking-ref {
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
}

.booking-status {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-confirmed {
    background: #d4edda;
    color: #155724;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.booking-flight-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.booking-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-small {
    padding: 8px 20px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .wonderly-booking-container {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .summary-route {
        flex-direction: column;
        gap: 20px;
    }
    
    .route-arrow {
        transform: rotate(90deg);
    }
    
    .summary-details {
        flex-direction: column;
        gap: 10px;
    }
    
    .booking-header {
        flex-direction: column;
        gap: 10px;
    }
}
