/* Forms and Booking Styles for Sportello di Ascolto Page */

/* Body Background Override for Booking Page */
body.booking-page {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    min-height: 100vh;
}

/* Dark mode body background */
.dark body.booking-page {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

/* Section Cards with Glass Effect */
.section-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* Dark mode section cards */
.dark .section-card {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(51, 65, 85, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.section-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.dark .section-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Icon Lists */
.icon-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 0.75rem;
    transition: background-color 0.3s ease;
}

/* Dark mode icon list items */
.dark .icon-list li {
    background: rgba(51, 65, 85, 0.5);
}

.icon-list li:hover {
    background: rgba(255, 255, 255, 0.8);
}

.dark .icon-list li:hover {
    background: rgba(51, 65, 85, 0.8);
}

.icon-list li svg {
    flex-shrink: 0;
    margin-right: 1rem;
    margin-top: 0.25rem;
}

/* Form Input Styles */
.form-input {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    width: 100%;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: var(--text-primary);
}

/* Dark mode form inputs */
.dark .form-input {
    background: rgba(51, 65, 85, 0.9);
    border: 2px solid var(--border-primary);
    color: var(--text-primary);
}

.form-input:focus {
    outline: none;
    border-color: #5A67D8;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 4px rgba(90, 103, 216, 0.1);
    transform: translateY(-1px);
}

.dark .form-input:focus {
    background: rgba(51, 65, 85, 1);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.input-focused {
    transform: scale(1.02);
}

/* Pricing Badges */
.pricing-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 0.5rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.follow-up-badge {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 0.5rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Hero Pattern Background */
.hero-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(90, 103, 216, 0.15) 1px, transparent 0);
    background-size: 20px 20px;
    position: relative;
}

.hero-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(248, 249, 255, 0.8) 0%, rgba(240, 244, 255, 0.9) 100%);
    pointer-events: none;
    z-index: -1;
}

/* Floating Animation */
.floating-element {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Pulse on Hover */
.pulse-on-hover:hover {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Celebration Container */
.celebration-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.celebration-container:not(.hidden) {
    opacity: 1;
}

.celebration-container .bg-green-500 {
    animation: celebrationPulse 1s ease-in-out;
}

@keyframes celebrationPulse {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* Glass Effect Utility */
.glass-effect {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Schedule Grid */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.schedule-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Button Styles */
button[type="submit"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Form Section Backgrounds */
.form-section-personal {
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
}

.form-section-datetime {
    background: linear-gradient(135deg, #dcfce7 0%, #dbeafe 100%);
}

.form-section-message {
    background: linear-gradient(135deg, #fce7f3 0%, #f3e8ff 100%);
}

.form-section-submit {
    background: linear-gradient(135deg, #f9fafb 0%, #dbeafe 100%);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .section-card {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .schedule-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.5rem;
    }
    
    .schedule-item {
        padding: 0.5rem;
        font-size: 0.875rem;
    }
    
    .form-input {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    .pricing-badge,
    .follow-up-badge {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* Enhanced Animations */
@keyframes gentleFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    25% { 
        transform: translateY(-8px) rotate(0.5deg); 
    }
    50% { 
        transform: translateY(-12px) rotate(0deg); 
    }
    75% { 
        transform: translateY(-8px) rotate(-0.5deg); 
    }
}

@keyframes softPulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1); 
    }
    50% { 
        opacity: 0.9; 
        transform: scale(1.02); 
    }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Enhanced Form Interactions */
.form-input:hover {
    border-color: #a5b4fc;
    transform: translateY(-1px);
}

.dark .form-input:hover {
    border-color: var(--accent-secondary);
}

.form-input:focus:hover {
    transform: translateY(-2px);
}

/* Loading Animation for Submit Button */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success State Animations */
.success-checkmark {
    animation: checkmarkDraw 0.6s ease-in-out;
}

@keyframes checkmarkDraw {
    0% { stroke-dasharray: 0 100; }
    100% { stroke-dasharray: 100 0; }
}

/* Enhanced Section Cards */
.section-card {
    position: relative;
    overflow: hidden;
}

.section-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.section-card:hover::before {
    left: 100%;
}

/* Improved Badge Animations */
.pricing-badge,
.follow-up-badge {
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.pricing-badge::before,
.follow-up-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.3s;
}

.pricing-badge:hover::before,
.follow-up-badge:hover::before {
    left: 100%;
}

/* Enhanced Schedule Items */
.schedule-item {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.schedule-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.schedule-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.schedule-item:hover::after {
    transform: translateX(100%);
}

@media (max-width: 640px) {
    .section-card {
        padding: 1rem;
    }
    
    .icon-list li {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .icon-list li svg {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .floating-element {
        animation-duration: 4s;
    }
    
    .pulse-on-hover:hover {
        animation-duration: 1.5s;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .floating-element,
    .pulse-on-hover:hover,
    .celebration-container .bg-green-500 {
        animation: none;
    }
    
    .section-card:hover,
    .form-input:focus,
    .schedule-item:hover {
        transform: none;
    }
}
