/* ============================================
   TRANSFER BOOKING SYSTEM - FRONTEND STYLES
   Modern, Clean & Responsive Design
============================================ */

/* ========== RESET & BASE STYLES ========== */
.transfer-booking-wrapper * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.transfer-booking-wrapper {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background: #f8f9fa;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ========== LAST MINUTE WARNING ========== */
.last-minute-warning {
    background: linear-gradient(135deg, #ff9a00 0%, #ff6a00 100%);
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    box-shadow: 0 6px 20px rgba(255, 106, 0, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 6px 20px rgba(255, 106, 0, 0.2); }
    50% { box-shadow: 0 6px 25px rgba(255, 106, 0, 0.3); }
    100% { box-shadow: 0 6px 20px rgba(255, 106, 0, 0.2); }
}

.last-minute-warning i {
    font-size: 28px;
    flex-shrink: 0;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.last-minute-warning p {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

.last-minute-warning a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-left: 5px;
    transition: all 0.3s ease;
}

.last-minute-warning a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ========== MAIN CONTAINER ========== */
.transfer-booking-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

/* ========== PRICE DISPLAY ========== */
.price-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 25px 30px;
    margin-bottom: 40px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
}

.price-display::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
}

.price-display h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
    opacity: 0.9;
}

.price-amount {
    font-size: 42px;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

/* ========== STEP INDICATOR ========== */
.booking-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    position: relative;
    padding: 0 20px;
}

.booking-steps::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 15%;
    right: 15%;
    height: 4px;
    background: #e9ecef;
    z-index: 1;
    border-radius: 2px;
}

.step {
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.step:hover:not(.active) .step-number {
    background: #dee2e6;
    transform: scale(1.05);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 12px;
    transition: all 0.4s ease;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.step.active .step-number {
    background: #4361ee;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
}

.step-title {
    display: block;
    font-size: 15px;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.step.active .step-title {
    color: #4361ee;
    font-weight: 700;
}

.step.completed .step-number {
    background: #2ecc71;
    color: white;
}

.step.completed .step-number::after {
    content: '✓';
    font-size: 20px;
}

/* ========== FORM STYLES ========== */
.booking-step {
    display: none;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.booking-step.active {
    display: block;
}

/* Form Groups */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    color: #333;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #4361ee;
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
}

.form-control::placeholder {
    color: #95a5a6;
}

/* Form Rows */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

/* Select Styles */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333' 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 20px center;
    background-size: 20px;
    padding-right: 50px;
}

/* ========== VEHICLE INFO ========== */
.vehicle-info {
    margin-top: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #4361ee;
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.vehicle-info i {
    color: #4361ee;
    font-size: 18px;
}

/* ========== TRIP TYPE SELECTOR ========== */
.trip-type-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.trip-option {
    text-align: center;
    padding: 25px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    overflow: hidden;
}

.trip-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: transparent;
    transition: all 0.3s ease;
}

.trip-option:hover {
    border-color: #4361ee;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.trip-option:hover::before {
    background: #4361ee;
}

.trip-option.active {
    border-color: #4361ee;
    background: rgba(67, 97, 238, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(67, 97, 238, 0.15);
}

.trip-option.active::before {
    background: #4361ee;
}

.trip-option i {
    font-size: 32px;
    margin-bottom: 15px;
    color: #6c757d;
    transition: all 0.3s ease;
}

.trip-option.active i,
.trip-option:hover i {
    color: #4361ee;
}

.trip-option span {
    font-weight: 600;
    font-size: 16px;
    color: #2c3e50;
    display: block;
}

/* ========== SIM CARD OPTIONS ========== */
.sim-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.sim-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.sim-option:hover {
    border-color: #4361ee;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.sim-option input[type="radio"] {
    margin-right: 15px;
    transform: scale(1.2);
}

.sim-title {
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
    flex-grow: 1;
}

.sim-price {
    color: #2ecc71;
    font-weight: 700;
    font-size: 18px;
    background: rgba(46, 204, 113, 0.1);
    padding: 8px 16px;
    border-radius: 8px;
}

/* ========== SPECIAL REQUEST ========== */
.special-request-section {
    margin-bottom: 30px;
}

.special-request-section label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.special-request-section textarea {
    width: 100%;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    min-height: 120px;
    resize: vertical;
    transition: all 0.3s ease;
    font-family: inherit;
}

.special-request-section textarea:focus {
    outline: none;
    border-color: #4361ee;
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
}

/* ========== CUSTOMER DETAILS ========== */
.customer-details {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
}

.customer-details h4 {
    margin: 0 0 25px 0;
    color: #2c3e50;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.customer-details h4 i {
    color: #4361ee;
}

/* ========== STEP BUTTONS ========== */
.step-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.btn-prev, .btn-next, .btn-submit {
    padding: 16px 35px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: inherit;
}

.btn-prev {
    background: #6c757d;
    color: white;
    opacity: 0.8;
}

.btn-prev:hover {
    background: #5a6268;
    opacity: 1;
    transform: translateX(-3px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

.btn-next {
    background: linear-gradient(135deg, #4361ee 0%, #3a56d4 100%);
    color: white;
}

.btn-next:hover {
    background: linear-gradient(135deg, #3a56d4 0%, #2f46b9 100%);
    transform: translateX(3px);
    box-shadow: 0 5px 20px rgba(67, 97, 238, 0.4);
}

.btn-submit {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #27ae60 0%, #219653 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.3);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ========== RETURN DETAILS ========== */
.return-details {
    margin-top: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 16px;
    border-left: 4px solid #4361ee;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.return-details h4 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.return-details h4 i {
    color: #4361ee;
}

/* ========== MESSAGES ========== */
.message {
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-weight: 500;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

.message.warning {
    background: #fff3cd;
    color: #856404;
    border: 2px solid #ffeaa7;
}

/* ========== LOADING ========== */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid #4361ee;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== CONFIRMATION SCREEN ========== */
.confirmation-screen {
    text-align: center;
    padding: 40px 20px;
    animation: fadeIn 0.5s ease;
}

.confirmation-icon {
    font-size: 100px;
    color: #2ecc71;
    margin-bottom: 30px;
    animation: bounceIn 1s ease;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

.confirmation-screen h3 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.confirmation-screen p {
    font-size: 18px;
    color: #666;
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.booking-number {
    font-size: 36px;
    font-weight: 800;
    color: #4361ee;
    margin: 25px 0;
    padding: 15px 30px;
    background: rgba(67, 97, 238, 0.1);
    border-radius: 12px;
    display: inline-block;
    letter-spacing: 2px;
}

.btn-new-booking {
    padding: 18px 40px;
    background: linear-gradient(135deg, #4361ee 0%, #3a56d4 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-new-booking:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(67, 97, 238, 0.3);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 992px) {
    .transfer-booking-wrapper {
        padding: 15px;
    }
    
    .transfer-booking-container {
        padding: 30px;
    }
    
    .price-display {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .price-amount {
        font-size: 36px;
    }
    
    .booking-steps {
        flex-direction: column;
        gap: 25px;
        margin-bottom: 40px;
    }
    
    .booking-steps::before {
        display: none;
    }
    
    .step {
        display: flex;
        align-items: center;
        gap: 20px;
        text-align: left;
    }
    
    .step-number {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .trip-type-selector {
        grid-template-columns: 1fr;
    }
    
    .sim-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .transfer-booking-container {
        padding: 25px;
    }
    
    .price-display {
        padding: 20px;
    }
    
    .price-amount {
        font-size: 32px;
    }
    
    .step-number {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
    
    .step-title {
        font-size: 14px;
    }
    
    .form-control {
        padding: 14px 18px;
        font-size: 15px;
    }
    
    .trip-option {
        padding: 20px 15px;
    }
    
    .sim-option {
        padding: 18px 20px;
    }
    
    .customer-details {
        padding: 25px;
    }
    
    .step-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-prev, .btn-next, .btn-submit {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .transfer-booking-wrapper {
        padding: 10px;
    }
    
    .transfer-booking-container {
        padding: 20px;
        border-radius: 16px;
    }
    
    .price-display {
        padding: 18px;
        border-radius: 12px;
    }
    
    .price-display h3 {
        font-size: 18px;
    }
    
    .price-amount {
        font-size: 28px;
    }
    
    .step {
        gap: 15px;
    }
    
    .step-number {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
    
    .last-minute-warning {
        padding: 15px 20px;
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .last-minute-warning i {
        font-size: 24px;
    }
    
    .last-minute-warning p {
        font-size: 14px;
    }
    
    .booking-number {
        font-size: 28px;
        padding: 12px 20px;
    }
}

/* ========== PRINT STYLES ========== */
@media print {
    .last-minute-warning,
    .step-buttons,
    .btn-new-booking {
        display: none !important;
    }
    
    .transfer-booking-container {
        box-shadow: none !important;
        border: 2px solid #ddd !important;
        page-break-inside: avoid;
    }
    
    .price-display {
        background: #f8f9fa !important;
        color: #333 !important;
        box-shadow: none !important;
    }
}

/* ========== ACCESSIBILITY ========== */
.form-control:focus,
.btn-prev:focus,
.btn-next:focus,
.btn-submit:focus,
.trip-option:focus,
.sim-option:focus {
    outline: 3px solid rgba(67, 97, 238, 0.5);
    outline-offset: 2px;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== UTILITY CLASSES ========== */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mt-30 { margin-top: 30px; }
.mb-30 { margin-bottom: 30px; }
.hidden { display: none !important; }
.visible { display: block !important; }

/* ========== CUSTOM SCROLLBAR ========== */
.transfer-booking-wrapper ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.transfer-booking-wrapper ::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.transfer-booking-wrapper ::-webkit-scrollbar-thumb {
    background: #4361ee;
    border-radius: 4px;
}

.transfer-booking-wrapper ::-webkit-scrollbar-thumb:hover {
    background: #3a56d4;
}