/* Booking Form Styles - Inspired by Chauffeur System */

.dino-booking-form {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

.dino-booking-form *,
.dino-booking-form *:before,
.dino-booking-form *:after {
    box-sizing: border-box;
}

/* Form Steps */
.booking-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.booking-steps:before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.booking-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: bold;
    font-size: 18px;
    color: #999;
    transition: all 0.3s;
}

.booking-step.active .step-circle {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: scale(1.1);
}

.booking-step.completed .step-circle {
    background: var(--success-color);
    border-color: var(--success-color);
    color: #fff;
}

.step-label {
    font-size: 14px;
    font-weight: 600;
    color: #999;
}

.booking-step.active .step-label {
    color: var(--primary-color);
}

/* Form Panels */
.booking-panel {
    display: none;
    animation: fadeInPanel 0.4s ease;
}

.booking-panel.active {
    display: block;
}

@keyframes fadeInPanel {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Layout */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group label .required {
    color: var(--danger-color);
    margin-left: 3px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    background: #fff;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 75, 141, 0.1);
}

.form-control:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.form-control.error {
    border-color: var(--danger-color);
}

.error-message {
    color: var(--danger-color);
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

.form-control.error + .error-message {
    display: block;
}

/* Input Icons */
.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
}

.input-with-icon .form-control {
    padding-left: 50px;
}

/* Select Dropdown */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 45px;
    cursor: pointer;
}

/* Passenger Selector */
.passenger-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
}

.passenger-selector label {
    margin: 0;
    flex: 1;
}

.passenger-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.passenger-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: #fff;
    color: var(--primary-color);
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.passenger-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.passenger-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.passenger-count {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
    min-width: 30px;
    text-align: center;
}

/* Vehicle Selection */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.vehicle-card {
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.vehicle-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(0, 75, 141, 0.15);
    transform: translateY(-5px);
}

.vehicle-card.selected {
    border-color: var(--primary-color);
    background: #f0f7ff;
}

.vehicle-card.selected:after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: var(--success-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.vehicle-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.vehicle-name {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.vehicle-capacity {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.vehicle-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 15px;
}

.vehicle-price span {
    font-size: 14px;
    color: #999;
    font-weight: normal;
}

.vehicle-features {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.vehicle-features li {
    padding: 5px 0;
    font-size: 13px;
    color: #666;
}

.vehicle-features li:before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--success-color);
    margin-right: 8px;
}

/* Price Summary */
.price-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
}

.price-summary-header {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 15px;
}

.price-row .label {
    color: #666;
}

.price-row .value {
    font-weight: 600;
    color: #333;
}

.price-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-total .label {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.price-total .value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Buttons */
.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.btn-form {
    padding: 16px 40px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: inherit;
}

.btn-form-primary {
    background: var(--primary-color);
    color: #fff;
    flex: 1;
}

.btn-form-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 75, 141, 0.3);
}

.btn-form-secondary {
    background: #6c757d;
    color: #fff;
}

.btn-form-secondary:hover {
    background: #5a6268;
}

.btn-form:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Info Box */
.info-box {
    background: #e7f3ff;
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.info-box i {
    color: var(--primary-color);
    margin-right: 10px;
}

.info-box p {
    margin: 0;
    color: #333;
    font-size: 14px;
}

/* Success Message */
.success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 20px;
    color: #155724;
    text-align: center;
}

.success-message i {
    font-size: 48px;
    color: var(--success-color);
    margin-bottom: 15px;
}

.success-message h3 {
    color: var(--success-color);
    margin-bottom: 10px;
}

/* Additional Sections Styles */
.how-it-works-section {
    padding: 80px 0;
    background: #fff;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.step-card {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 20px rgba(0, 75, 141, 0.2);
}

.step-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.step-card p {
    color: #666;
}

.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    text-align: center;
}

.cta-content h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.btn-large {
    padding: 18px 50px;
    font-size: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    .booking-steps {
        flex-direction: column;
        gap: 20px;
    }
    
    .booking-steps:before {
        display: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .vehicle-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column-reverse;
    }
    
    .btn-form {
        width: 100%;
        justify-content: center;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
}
