/**
 * Booking Wizard Styles
 * Styles for the new booking system
 */

/* Progress Indicator */
.progress-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s ease;
}

.progress-step.active {
    background: #0a5f54;
    color: white;
}

.progress-step.completed {
    background: #28a745;
    color: white;
}

/* Wizard Steps */
.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

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

/* Tour Cards */
.tour-card {
    border: 2px solid #ddd;
    padding: 1.5rem;
    margin: 1rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    background: white;
}

.tour-card:hover {
    border-color: #0a5f54;
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.tour-card.selected {
    border-color: #0a5f54;
    background: #e8f5e9;
    box-shadow: 0 4px 12px rgba(10, 95, 84, 0.2);
}

/* Transport Cards */
.transport-card {
    border: 2px solid #ddd;
    padding: 1.5rem;
    margin: 1rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    background: white;
}

.transport-card:hover {
    border-color: #0a5f54;
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.transport-card.selected {
    border-color: #0a5f54;
    background: #e8f5e9;
    box-shadow: 0 4px 12px rgba(10, 95, 84, 0.2);
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    justify-content: center;
}

.quantity-btn {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    border: none;
    background: #0a5f54;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: #084d44;
    transform: scale(1.05);
}

.quantity-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.quantity-input {
    width: 100px;
    height: 50px;
    font-size: 1.5rem;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    font-weight: bold;
}

/* Price Summary */
.price-summary {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    border: 1px solid #e0e0e0;
}

.price-summary h3 {
    margin-bottom: 1rem;
    color: #0a5f54;
}

/* Payment Methods */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.payment-card {
    border: 2px solid #ddd;
    padding: 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    background: white;
}

.payment-card:hover {
    border-color: #0a5f54;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.payment-card.selected {
    border-color: #0a5f54;
    background: #e8f5e9;
    box-shadow: 0 4px 12px rgba(10, 95, 84, 0.2);
}

.payment-card h3 {
    margin-bottom: 1rem;
    color: #0a5f54;
}

/* Error and Success Messages */
.error-message {
    color: #721c24;
    padding: 1rem;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    margin: 1rem 0;
}

.success-message {
    color: #155724;
    padding: 1rem;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Form Styles */
#contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    margin-bottom: 1rem;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: #0a5f54;
    box-shadow: 0 0 0 3px rgba(10, 95, 84, 0.1);
}

#contact-form input:invalid,
#contact-form textarea:invalid {
    border-color: #dc3545;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .progress-step {
        width: 30px;
        height: 30px;
        font-size: 0.875rem;
    }

    .tour-card,
    .transport-card {
        padding: 1rem;
    }

    .quantity-selector {
        gap: 0.5rem;
    }

    .quantity-btn {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .quantity-input {
        width: 80px;
        height: 40px;
        font-size: 1.25rem;
    }

    .payment-methods {
        grid-template-columns: 1fr;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0a5f54;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Utility Classes */
.text-center {
    text-align: center !important;
}

.mt-2 {
    margin-top: 2rem !important;
}

.mb-2 {
    margin-bottom: 2rem !important;
}

/* Step Validation Styles */
#step-error {
    animation: fadeInError 0.3s ease-in;
}

@keyframes fadeInError {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

#quantity-error {
    animation: fadeInError 0.3s ease-in;
}

#quantity-success {
    animation: fadeInSuccess 0.3s ease-in;
}

@keyframes fadeInSuccess {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Disabled Transport Option */
.transport-card.disabled {
    opacity: 0.5;
    pointer-events: none;
    background: #f8f9fa;
}

.transport-card.disabled::after {
    content: '❌ Not available';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    color: #dc3545;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: 1px solid #dc3545;
}

/* Real-time Validation Indicators */
.field-valid {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.field-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.validation-message {
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
}

.validation-message.show {
    display: block;
}

.validation-message.error {
    color: #dc3545;
}

.validation-message.success {
    color: #155724;
}

/* Progress Step Validation */
.progress-step.valid {
    background: #28a745;
    border: 2px solid #1e7e34;
}

.progress-step.invalid {
    background: #dc3545;
    border: 2px solid #bd2130;
}

/* Step 6 Confirmation Check Mark */
.progress-step[data-step="6"] {
    background: #e0e0e0;
    color: #666;
    font-weight: bold;
}

.progress-step[data-step="6"].active {
    background: #28a745;
    color: white;
}

.progress-step[data-step="6"].completed {
    background: #28a745;
    color: white;
    border: 2px solid #1e7e34;
}

/* Focus visible styles for keyboard navigation */
*:focus-visible {
    outline: 2px solid #0a5f54;
    outline-offset: 2px;
}

/* Focus styles for clickable cards */
.tour-card:focus,
.transport-card:focus,
.payment-card:focus {
    outline: 2px solid #0a5f54;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(10, 95, 84, 0.3);
}

/* Hide focus when using mouse (but not keyboard) */
.tour-card:not(:focus-visible):focus,
.transport-card:not(:focus-visible):focus,
.payment-card:not(:focus-visible):focus {
    outline: none;
    box-shadow: none;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    gap: 1rem;
}

.loading-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.loading-spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-overlay p {
    color: white;
    font-size: 1.1rem;
    margin: 0;
}

/* Disable buttons during loading */
button:disabled,
.button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}