/* Custom CSS for Travel Bus Tickets */
:root {
    --primary: #0d6efd;
    --secondary: #6c757d;
    --success: #198754;
    --light: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1544620347-c4fd4a3d5957?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1200&q=80') no-repeat center center;
    background-size: cover;
    padding: 100px 0;
}

.cta-box {
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-radius: 10px;
}

/* Feature Icons */
.feature-icon {
    width: 80px;
    height: 80px;
}

/* Card Hover Effects */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Navigation */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Footer */
footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #fff !important;
}

.social-links a {
    display: inline-block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    text-align: center;
    line-height: 36px;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: rgba(255,255,255,0.2);
}

/* Policy Pages */
.policy-content h3 {
    color: #0d6efd;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.policy-content ul {
    padding-left: 20px;
}

.policy-content li {
    margin-bottom: 8px;
}

/* Form Styles */
.form-control:focus, .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 60px 0;
        text-align: center;
    }
    
    .cta-box {
        margin-top: 2rem;
    }
}

/* Button Styles */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Booking Form */
.passenger-group {
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    padding: 1.25rem;
    background-color: #f8f9fa;
}

/* Page Headers */
.page-header {
    padding: 80px 0 40px;
}

/* Destination Cards */
.destination-card {
    height: 100%;
}

.destination-img {
    height: 200px;
    object-fit: cover;
}

/* Bus Provider Badges */
.bus-providers .badge {
    font-size: 0.9rem;
}

/* Quick Booking Section */
.quick-booking {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Quick Booking Form Styles */
.booking-form {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    border: none;
}

.booking-form .form-control:focus,
.booking-form .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.booking-form .form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.booking-form .form-check-label {
    font-weight: 500;
}

.booking-form .form-check {
    margin-bottom: 0.5rem;
}

/* Form Validation Styles */
.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important;
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Loading States */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-right-color: transparent;
    animation: spin 0.75s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Success States */
.alert-success {
    border-radius: 10px;
    border: 1px solid #d1e7dd;
}

/* Phone CTA Styles */
.phone-cta {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.phone-cta h3 {
    margin-bottom: 15px;
}

.phone-cta h4 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.phone-cta .btn-light {
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 600;
}

/* Responsive adjustments for quick booking */
@media (max-width: 768px) {
    .booking-form {
        padding: 20px !important;
    }
    
    .booking-form .btn-lg {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .phone-cta {
        padding: 20px;
    }
    
    .phone-cta h4 {
        font-size: 1.5rem;
    }
    
    .form-check {
        margin-bottom: 0.75rem;
    }
}

/* Animation for form elements */
.form-control, .form-select, .form-check-input {
    transition: all 0.3s ease;
}

/* Custom radio button styles */
.form-check-input[type="radio"] {
    width: 1.2em;
    height: 1.2em;
    margin-top: 0.15em;
}

.form-check-input[type="radio"]:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Focus states for accessibility */
.form-control:focus-visible,
.form-select:focus-visible,
.form-check-input:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .booking-form {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .btn {
        display: none;
    }
}