/* Modern Booking Styles */

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Loading animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner-border {
    animation: spin 1s linear infinite;
}

/* Alert animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert {
    animation: slideIn 0.3s ease-out;
}

/* Card hover effects */
.booking-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.booking-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Button hover effects */
.btn-modern {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-modern:hover::before {
    left: 100%;
}

/* Form focus effects */
.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
    transform: scale(1.02);
    transition: all 0.2s ease;
}

/* Step indicator styles */
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.step.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.2);
}

.step.completed {
    background-color: #28a745;
    color: white;
    border-color: #28a745;
}

.step-line {
    width: 60px;
    height: 2px;
    background-color: #dee2e6;
    margin: 0 10px;
    position: relative;
    z-index: 1;
}

.step-line.active {
    background-color: #007bff;
}

/* OTP input styles */
.otp-section {
    margin-top: 20px;
}

.otp-input {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    margin: 0 5px;
    transition: all 0.3s ease;
    background-color: white;
}

.otp-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    transform: scale(1.05);
}

.otp-input.filled {
    border-color: #28a745;
    background-color: #f8fff9;
}

/* Phone verification section */
.phone-verification {
    margin-top: 20px;
}

.phone-verified-indicator {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
}

.phone-verified-indicator i {
    margin-right: 8px;
}

/* Booking steps */
.booking-step {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.booking-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Summary cards */
.step-summary {
    margin-bottom: 20px;
}

.summary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.summary-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.summary-header i {
    margin-right: 10px;
    font-size: 20px;
}

.summary-title {
    font-weight: bold;
    margin: 0;
}

.summary-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.summary-item {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.summary-item i {
    margin-right: 8px;
    width: 16px;
}

/* Activity selection */
.activity-selection-container {
    min-height: 200px;
}

.activity-option {
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.activity-option:hover {
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.activity-option.selected {
    border-color: #28a745;
    background-color: #f8fff9;
}

/* Discount/Offer card styles */
.activity-card.offer-card {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    animation: pulse-offer 2s infinite;
    color: white;
    border: none;
}

.activity-card.offer-card .card-title {
    color: white;
}

.activity-card.offer-card .card-text {
    color: rgba(255, 255, 255, 0.9);
}

.activity-card.offer-card .text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.activity-card.offer-card .price-badge {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.activity-card.offer-card .btn-light {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #dc3545;
    font-weight: bold;
}

.activity-card.offer-card .btn-light:hover {
    background: white;
    color: #dc3545;
    transform: scale(1.05);
}

@keyframes pulse-offer {
    0% {
        box-shadow: 0 0 20px rgba(255, 107, 107, 0.4);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 107, 107, 0.6);
    }
    100% {
        box-shadow: 0 0 20px rgba(255, 107, 107, 0.4);
    }
}

/* Availability status */
.availability-status {
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    font-weight: 500;
}

.availability-status.available {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.availability-status.unavailable {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Pricing cards */
.pricing-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.price-breakdown {
    font-size: 14px;
}

.price-breakdown .d-flex {
    margin-bottom: 8px;
}

.total-price {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

/* Combined summary card */
.combined-summary-card {
    margin-bottom: 20px;
}

.booking-details-section,
.pricing-section {
    margin-bottom: 20px;
}

.detail-item {
    margin-bottom: 10px;
}

/* Coupon section */
.coupon-section .card {
    border-left: 4px solid #ffc107;
}

/* Payment options */
.payment-options .card {
    border-left: 4px solid #28a745;
}

.payment-option-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.payment-option-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.payment-option-card.selected {
    border: 2px solid #28a745;
    background-color: #f8fff9;
}

/* Booking summary */
.booking-summary {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Loading spinner */
.loading-spinner {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: rgba(255,255,255,0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* Alert animations */
.alert {
    animation: slideIn 0.3s ease-out;
}

/* Button enhancements */
.btn-modern {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-modern:hover::before {
    left: 100%;
}

/* Form enhancements */
.form-floating > label {
    padding: 1rem 0.75rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
    transform: scale(1.02);
    transition: all 0.2s ease;
}

/* Date input specific styles */
.date-input {
    cursor: pointer;
    background-color: white !important;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    height: calc(3.5rem + 2px);
}

.date-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
    transform: scale(1.02);
}

.date-input:hover {
    border-color: #007bff;
    box-shadow: 0 0 0 0.1rem rgba(0, 123, 255, 0.1);
}

/* Ensure date input is always visible */
.form-floating .date-input {
    position: relative;
    z-index: 10;
}

/* Date picker calendar icon */
.date-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.8;
    filter: invert(0.5);
}

.date-input::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
    filter: invert(0.3);
}

/* Firefox date input styling */
.date-input::-moz-focus-inner {
    border: 0;
}

/* Mobile date input improvements */
@media (max-width: 768px) {
    .date-input {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 1rem;
        height: calc(4rem + 2px);
    }
}

/* Card hover effects */
.activity-card,
.booking-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.activity-card:hover,
.booking-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .step-indicator {
        flex-wrap: wrap;
        gap: 10px;
    }

    .step-line {
        display: none;
    }

    .otp-input {
        width: 40px;
        height: 40px;
        font-size: 20px;
        margin: 0 2px;
    }

    .activity-card,
    .booking-card {
        margin: 10px;
    }

    .summary-card {
        padding: 15px;
    }
}

.activity-card:hover {
    transform: translateY(-5px) scale(1.02);
}

/* OTP input focus */
.otp-input:focus {
    transform: scale(1.1);
    z-index: 10;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .booking-card {
        margin: 10px;
    }

    .step-indicator {
        flex-wrap: wrap;
        gap: 10px;
    }

    .step-line {
        display: none;
    }

    .activity-card {
        margin-bottom: 15px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .bg-light {
        background-color: #1a1a1a !important;
        color: #ffffff;
    }

    .card {
        background-color: #2d2d2d;
        border-color: #404040;
        color: #ffffff;
    }

    .form-control,
    .form-select {
        background-color: #3d3d3d;
        border-color: #404040;
        color: #ffffff;
    }

    .form-control:focus,
    .form-select:focus {
        background-color: #3d3d3d;
        color: #ffffff;
    }

    .text-muted {
        color: #b0b0b0 !important;
    }

    .border {
        border-color: #404040 !important;
    }
}

/* Print styles */
@media print {
    .btn,
    .navbar,
    .footer,
    .step-indicator {
        display: none !important;
    }

    .booking-card {
        box-shadow: none;
        border: 1px solid #000;
    }
}
