/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
   
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Main Container */
.booking-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}

.booking-form-container {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
}

/* Header */
.booking-title {
    background: linear-gradient(135deg, #e60000 0%, #cc0000 100%);
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Steps Indicator */
.steps-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    flex-wrap: wrap;
    gap: 10px;
}

.step {
    padding: 12px 24px;
    background: #e9ecef;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
    position: relative;
    min-width: 120px;
    text-align: center;
}

.step.active {
    background: linear-gradient(135deg, #e60000 0%, #cc0000 100%);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(230, 0, 0, 0.4);
}

.step::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid #e9ecef;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.step.active::after {
    border-left-color: #e60000;
}

.step:last-child::after {
    display: none;
}

/* Step Content */
.step-content {
    padding: 40px;
    min-height: 500px;
}

.hidden {
    display: none;
}

/* Form Sections */
.form-section {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    padding: 30px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.form-section:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 3px solid #e60000;
}

.subtitle {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 400;
    margin-left: 10px;
}

/* Boarding Stations */
.boarding-stations {
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 2px solid #e9ecef;
}

.boarding-stations h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
}

.station-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.station-option {
/*     padding: 15px; */
    border: 2px solid #dee2e6;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    overflow: hidden;
}

.station-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.station-option:hover::before {
    left: 100%;
}

.station-option input[type="radio"] {
    display: none;
}

.station-option span {
    display: block;
    padding: 15px;
    font-weight: 600;
    color: #495057;
    transition: all 0.3s ease;
}

.station-option:hover {
    border-color: #e60000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 0, 0, 0.2);
}

.station-option input[type="radio"]:checked + span {
    background: linear-gradient(135deg, #e60000 0%, #cc0000 100%);
    color: white;
    border-radius: 8px;
}

.station-option input[type="radio"]:checked {
    border-color: #e60000;
    box-shadow: 0 0 0 3px rgba(230, 0, 0, 0.2);
}

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

input, select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
    color: #495057;
}

input:focus, select:focus {
    outline: none;
    border-color: #e60000;
    box-shadow: 0 0 0 3px rgba(230, 0, 0, 0.1);
    transform: translateY(-1px);
}

input::placeholder {
    color: #adb5bd;
    font-style: italic;
}

/* Room Selection */
.room-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.room-btn {
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.room-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.room-btn:hover::before {
    left: 100%;
}

.room-btn:hover {
    border-color: #e60000;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(230, 0, 0, 0.2);
}

.room-btn.selected {
    background: linear-gradient(135deg, #e60000 0%, #cc0000 100%);
    color: white;
    border-color: #e60000;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(230, 0, 0, 0.3);
}

/* Payment Details */
.bill-details {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
    border: 2px solid #e9ecef;
}

.bill-details p {
    margin: 15px 0;
    font-size: 1.1rem;
    color: #495057;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
}

.bill-details p:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.3rem;
    color: #2c3e50;
}

.amount-text {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #e60000 !important;
    background: linear-gradient(135deg, #e60000 0%, #cc0000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.amount-note {
    font-size: 0.9rem !important;
    color: #6c757d !important;
    font-style: italic;
    font-weight: 400 !important;
}

/* Buttons */
.nav-btn, .action-btn, #rzp-button {
    padding: 15px 30px;
    background: linear-gradient(135deg, #e60000 0%, #cc0000 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.nav-btn:hover, .action-btn:hover, #rzp-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(230, 0, 0, 0.4);
}

.nav-btn:active, .action-btn:active, #rzp-button:active {
    transform: translateY(0);
}

.nav-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Form Navigation */
.form-navigation {
    margin-top: 40px;
    padding: 30px;
    text-align: center;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Ticket Actions */
.ticket-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 40px 0;
    flex-wrap: wrap;
}

/* ID Card */
.id-card-form {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    margin: 20px 0;
}

.photo-upload {
    margin: 30px 0;
    padding: 20px;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    background: white;
    transition: all 0.3s ease;
}

.photo-upload:hover {
    border-color: #e60000;
    background: #fff5f5;
}

#photoPreview {
    margin: 20px 0;
    width: 150px;
    height: 180px;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    margin: 20px auto;
}

/* ID Card Preview */


.id-card-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

.org-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 10px;
}



.id-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.id-card-details p {
    margin: 5px 0;
    font-size: 1rem;
    color: #EC1D24;
    background-color: #fff;
    padding: 5px 20px;
    border-radius: 40px;
    border: 1px solid #EC1D24;
}

/* Loading States */
.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: button-loading-spinner 1s linear infinite;
}

@keyframes button-loading-spinner {
    from {
        transform: translate(-50%, -50%) rotate(0turn);
    }
    to {
        transform: translate(-50%, -50%) rotate(1turn);
    }
}

/* Add Traveler Button */
.add-traveler-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-traveler-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
}

.traveler-limit-note {
    font-size: 0.9rem;
    color: #6c757d;
    font-style: italic;
    margin: 10px 0;
}
.remove-traveler-wrapper{
	display:flex;
	justify-content:flex-end;
	margin-bottom:20px;
}
.remove-traveler {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.remove-traveler:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .booking-container {
        margin: 10px auto;
        padding: 0 10px;
    }
    
    .booking-title {
        font-size: 2rem;
        padding: 20px 15px;
    }
    
    .step-content {
        padding: 20px;
    }
    
    .form-section {
        padding: 20px;
        margin-bottom: 20px;
		margin-top:20px;
    }
    
    .section-title {
        font-size: 1.3rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .input-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .station-options {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .room-options {
        grid-template-columns: 1fr;
    }
    
    .steps-indicator {
        flex-direction: column;
        gap: 15px;
    }
    
    .step {
        min-width: 100%;
    }
    
    .step::after {
        display: none;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .ticket-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .bill-details {
        padding: 20px;
    }
    
    .bill-details p {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .booking-title {
        font-size: 1.5rem;
        padding: 15px 10px;
    }
    
    .step-content {
        padding: 0px;
    }
    
    .form-section {
        padding: 15px;
    }
    
    .nav-btn, .action-btn, #rzp-button {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .room-btn {
        padding: 20px 15px;
        font-size: 1rem;
    }
    
    .station-option {
        padding: 12px;
    }
}

/* Animation for step transitions */
.step-content {
    animation: fadeInUp 0.5s ease-out;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #e60000 0%, #cc0000 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #cc0000 0%, #b30000 100%);
}