/* ===== TRAVEL BOOKING FORM STYLES ===== */

/* Main Container */
.booking-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Form Sections */
.booking-section {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.booking-section:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Section Headers */
.section-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 2rem;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    position: relative;
}

.section-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background: rgba(255, 255, 255, 0.3);
}

.section-header.trip-info { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.section-header.customer-info { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.section-header.participant-info { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.section-header.booking-info { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); color: #333; }
.section-header.payment-info { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); color: #333; }

/* Section Content */
.section-content {
    padding: 2rem;
}

/* Form Controls Enhancement */
.form-control, .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.form-control:focus, .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
    background: #ffffff;
    outline: none;
}

.form-control:hover:not(:focus) {
    border-color: #ced4da;
    background: #ffffff;
}

/* Labels */
.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.required::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}

/* Trip Info Display */
.trip-info-display {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.trip-info-item {
    margin-bottom: 0.5rem;
}

.trip-info-item strong {
    display: inline-block;
    width: 120px;
    opacity: 0.9;
}

/* Participant Table Enhancement */
.participant-table-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    margin-top: 1.5rem;
}

.participant-table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.participant-table thead th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 0.75rem;
    font-weight: 600;
    text-align: center;
    font-size: 0.9rem;
    position: relative;
}

.participant-table thead th:first-child {
    border-top-left-radius: 0;
}

.participant-table thead th:last-child {
    border-top-right-radius: 0;
}

.participant-table tbody td {
    padding: 1rem 0.75rem;
    border-color: #e9ecef;
    vertical-align: middle;
    background: #fafbfc;
    transition: background-color 0.3s ease;
}

.participant-table tbody tr:hover td {
    background: #f1f3f4;
}

.participant-table tbody tr:nth-child(even) td {
    background: #f8f9fa;
}

.participant-table tbody tr:nth-child(even):hover td {
    background: #e9ecef;
}

/* Form Controls in Table */
.participant-table .form-control,
.participant-table .form-select {
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 0.5rem;
    font-size: 0.85rem;
    background: white;
}

.participant-table .form-control:focus,
.participant-table .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.15rem rgba(102, 126, 234, 0.1);
}

/* Price Display */
.price-display {
    font-weight: bold;
    color: #28a745;
    font-size: 0.95rem;
}

.total-price {
    font-size: 1.1rem;
    color: #dc3545;
}

/* Booking Summary */
.booking-summary {
    background: linear-gradient(135deg, #e3ffe7 0%, #d9e7ff 100%);
    border: 2px solid #b8daff;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.booking-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.booking-summary-item:last-child {
    border-bottom: none;
    font-weight: bold;
    font-size: 1.1rem;
    color: #dc3545;
}

/* Payment Method Selection */
.payment-methods {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

.payment-option {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.payment-option:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
}

.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.payment-option.selected {
    border-color: #667eea;
    background: #f0f4ff;
}

.payment-option .payment-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 1rem;
    float: left;
}

/* Manual Payment Section */
.manual-payment-section {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border: 2px dashed #fc8181;
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    display: none;
}

.bank-info {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.bank-info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.bank-info-item:last-child {
    border-bottom: none;
}

.amount-highlight {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: bold;
    margin: 1rem 0;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, #a0aec0 0%, #718096 100%);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(160, 174, 192, 0.3);
}

/* Loading States */
.loading-overlay {
    position: relative;
}

.loading-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 10px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 11;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alert Messages */
.alert-custom {
    border: none;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 5px solid #28a745;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 5px solid #dc3545;
}

.alert-info {
    background: linear-gradient(135deg, #cce7ff 0%, #b8daff 100%);
    color: #0c5460;
    border-left: 5px solid #17a2b8;
}

/* Checkbox and Radio Enhancements */
.custom-checkbox, .custom-radio {
    position: relative;
    margin: 0.5rem 0;
}

.custom-checkbox input[type="checkbox"],
.custom-radio input[type="radio"] {
    opacity: 0;
    position: absolute;
}

.custom-checkbox label,
.custom-radio label {
    padding-left: 2rem;
    cursor: pointer;
    line-height: 1.6;
}

.custom-checkbox label::before,
.custom-radio label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    border: 2px solid #ced4da;
    border-radius: 4px;
    background: white;
    transition: all 0.3s ease;
}

.custom-radio label::before {
    border-radius: 50%;
}

.custom-checkbox input:checked + label::before,
.custom-radio input:checked + label::before {
    border-color: #667eea;
    background: #667eea;
}

.custom-checkbox input:checked + label::after,
.custom-radio input:checked + label::after {
    content: '✓';
    position: absolute;
    left: 4px;
    top: 0;
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/* File Upload Styling */
.custom-file-upload {
    border: 2px dashed #ced4da;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.custom-file-upload:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.custom-file-upload input[type="file"] {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .booking-container {
        padding: 1rem;
    }
    
    .section-content {
        padding: 1.5rem;
    }
    
    .participant-table-container {
        overflow-x: auto;
    }
    
    .payment-methods {
        grid-template-columns: 1fr;
    }
    
    .trip-info-item strong {
        width: auto;
        display: block;
        margin-bottom: 0.25rem;
    }
}

@media (max-width: 576px) {
    .section-header {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .section-content {
        padding: 1rem;
    }
    
    .participant-table {
        font-size: 0.85rem;
    }
    
    .participant-table thead th,
    .participant-table tbody td {
        padding: 0.5rem 0.25rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.booking-section {
    animation: fadeInUp 0.6s ease-out;
}

.booking-section:nth-child(2) { animation-delay: 0.1s; }
.booking-section:nth-child(3) { animation-delay: 0.2s; }
.booking-section:nth-child(4) { animation-delay: 0.3s; }
.booking-section:nth-child(5) { animation-delay: 0.4s; }