

/* Custom animations */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.animate-shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

/* Form step transitions */
.form-step {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-step.hidden {
    display: none;
}

/* Progress indicator styles */
.progress-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.progress-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #e5e7eb;
    transform: translateY(-50%);
    z-index: 1;
}

.progress-item:first-child::before {
    left: 50%;
}

.progress-item:last-child::before {
    right: 50%;
}

.progress-item .step-indicator {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #e5e7eb;
    color: #6b7280;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.progress-item.active .step-indicator {
    background-color: #fb7185;
    color: white;
}

.progress-item.completed .step-indicator {
    background-color: #10b981;
    color: white;
}

.progress-item.completed::before {
    background-color: #10b981;
}

/* Loading animation for form submission */
.form-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.form-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.5rem;
    height: 1.5rem;
    margin: -0.75rem 0 0 -0.75rem;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-right-color: transparent;
    animation: spinner 0.75s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* Enhanced focus styles for accessibility */
input:focus, select:focus, textarea:focus {
    outline: 2px solid #fb7185;
    outline-offset: 2px;
}

/* Print styles for reservation confirmation */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        color: black;
        background: white;
    }
    
    .bg-rose-50, .bg-white, .bg-rose-100 {
        background: white !important;
    }
    
    .text-rose-600, .text-rose-800 {
        color: black !important;
    }
}

/* Custom animations for Tailwind */
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slide-in-left {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slide-in-right {
    from { transform: translateX(20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fade-in-up {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.animate-fade-in {
    animation: fade-in 0.5s ease-out;
}

.animate-fade-in-delay {
    animation: fade-in 0.8s ease-out 0.3s both;
}

.animate-slide-in-left {
    animation: slide-in-left 0.5s ease-out;
}

.animate-slide-in-right {
    animation: slide-in-right 0.5s ease-out;
}

.animate-fade-in-up {
    animation: fade-in-up 0.5s ease-out;
}

/* Custom styles for form elements */
input:focus, select:focus, textarea:focus {
    outline: none;
    ring: 2px;
}