/**
 * Majestic Tours Professional Booking System
 * Responsive & Mobile-First Design
 * Full-Width Centered Layout
 */

/* WordPress Professional Booking Section */
.booking-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafe 100%);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    padding: 2rem;
    margin: 3rem auto !important;
    width: 100% !important;
    max-width: 1000px !important;
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-top: 4px solid #3b82f6;
    position: relative;
    display: block !important;
    clear: both !important;
}

/* Clean content area integration */
.page-content .booking-section,
.entry-content .booking-section,
.content .booking-section,
.main .booking-section,
article .booking-section,
.post-content .booking-section {
    margin: 3rem 0;
}





/* WordPress Responsive Layout */
@media (max-width: 1240px) {
    .booking-section {
        margin-left: 1rem !important;
        margin-right: 1rem !important;
        max-width: calc(100% - 2rem) !important;
    }
}

@media (max-width: 768px) {
    .booking-section {
        margin-left: 0.5rem !important;
        margin-right: 0.5rem !important;
        max-width: calc(100% - 1rem) !important;
        padding: 1.5rem 1rem !important;
        max-height: none;
    }
    
    .calendar-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 10px;
    }
    
    .calendar-date {
        min-width: 100px;
        max-width: 120px;
        height: 70px;
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .booking-section h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    #tour-dates-container {
        padding: 1rem;
        max-height: 350px;
    }
}

/* Box Model */
.booking-section,
.booking-section * {
    box-sizing: border-box !important;
}

.booking-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4, #10b981);
}

.booking-section h3 {
    color: #1e40af;
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 1.8rem;
    text-align: center;
    position: relative;
    text-shadow: 0 2px 4px rgba(30, 64, 175, 0.1);
}

.booking-section h3::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4, #10b981);
    margin: 1rem auto;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Compact Calendar Container */
#tour-dates-container {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    border: 2px solid rgba(59, 130, 246, 0.1);
    max-height: 500px;
    width: 100%;
}

/* ═══════════════════════════════════════════════════════════
   ENHANCED DATE INPUT - VISUAL UPGRADE
   ═══════════════════════════════════════════════════════════ */

/* Enhanced date picker styling */
.enhanced-date-picker {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafb 100%) !important;
    border: 2px solid #3b82f6 !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15) !important;
    transition: all 0.3s ease !important;
}

.enhanced-date-picker:hover {
    border-color: #2563eb !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25) !important;
}

.enhanced-date-picker:focus {
    border-color: #1d4ed8 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 0 4px 12px rgba(59, 130, 246, 0.25) !important;
    outline: none !important;
}

/* Availability info styling */
#availability-info {
    animation: slideInUp 0.3s ease;
}

#availability-info .badge {
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#availability-info .badge i {
    font-size: 12px;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════════════════════════
   FLATPICKR CALENDAR AVAILABILITY COLORS (wenn geladen)
   ═══════════════════════════════════════════════════════════ */

/* High availability (10+ spots) - Green */
.flatpickr-day.available-date.high-availability {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%) !important;
    border-color: #10b981 !important;
    color: #065f46 !important;
    font-weight: 600;
}

.flatpickr-day.available-date.high-availability:hover {
    background: linear-gradient(135deg, #a7f3d0 0%, #6ee7b7 100%) !important;
    border-color: #059669 !important;
}

/* Medium availability (5-10 spots) - Yellow */
.flatpickr-day.available-date.medium-availability {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
    border-color: #f59e0b !important;
    color: #92400e !important;
    font-weight: 600;
}

.flatpickr-day.available-date.medium-availability:hover {
    background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%) !important;
    border-color: #d97706 !important;
}

/* Low availability (1-5 spots) - Orange */
.flatpickr-day.available-date.low-availability {
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%) !important;
    border-color: #f97316 !important;
    color: #7c2d12 !important;
    font-weight: 600;
}

.flatpickr-day.available-date.low-availability:hover {
    background: linear-gradient(135deg, #fdba74 0%, #fb923c 100%) !important;
    border-color: #ea580c !important;
}

/* Fully booked - Red/Gray */
.flatpickr-day.available-date.full {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
    text-decoration: line-through;
    opacity: 0.5;
}

/* Selected date - Blue highlight */
.flatpickr-day.selected.available-date {
    background: linear-gradient(135deg, #93c5fd 0%, #60a5fa 100%) !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Availability Info should also be contained */
#availability-info {
    width: 100%;
    max-width: none !important;
}

/* Booking Form Container should be contained */
#booking-form-container {
    width: 100%;
    max-width: none !important;
}

/* Horizontal Calendar Grid - Compact & Elegant */
.calendar-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 1.5rem;
    justify-content: center;
    max-height: 400px;
    overflow-y: auto;
}

.calendar-date {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-width: 120px;
    max-width: 140px;
    height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.calendar-date:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
}

.calendar-date.available {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    border-color: #10b981;
    color: #065f46;
}

.calendar-date.available:hover {
    background: linear-gradient(135deg, #d1fae5 0%, #dcfce7 100%);
    border-color: #059669;
}

.calendar-date.selected {
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    border-color: #3b82f6;
    color: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.calendar-date.unavailable {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #64748b;
    cursor: not-allowed;
    opacity: 0.6;
}

.date-day {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1px;
}

.date-number {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1px;
}

.date-spots {
    font-size: 0.65rem;
    font-weight: 500;
}

.date-availability {
    font-size: 0.6rem;
    opacity: 0.7;
    margin-top: 1px;
}

/* Compact Booking Form Container */
#booking-form-container {
    display: none;
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
    border: 2px solid rgba(59, 130, 246, 0.1);
    animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    max-height: 400px;
    overflow-y: auto;
}

#booking-form-container.visible {
    display: block;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Compact Step Indicator */
.booking-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.booking-steps::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 25%;
    right: 25%;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    background: #ffffff;
    padding: 0 0.5rem;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #3b82f6;
    color: white;
}

.step.completed .step-number {
    background: #10b981;
    color: white;
}

.step-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: #64748b;
    text-align: center;
    white-space: nowrap;
}

.step.active .step-label {
    color: #3b82f6;
    font-weight: 600;
}

/* Modern Date Selector */
.date-selector-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.date-selector-header h4 {
    color: #1e40af;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.date-selector-header p {
    color: #64748b;
    font-size: 0.9rem;
}

/* Availability Info */
.availability-info {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    border: 1px solid #d1fae5;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}

.availability-info.limited {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fed7aa;
}

.availability-info.full {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #fecaca;
}

.available-spots {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #065f46;
}

.availability-info.limited .available-spots {
    color: #92400e;
}

.availability-info.full .available-spots {
    color: #991b1b;
}

/* Modern Progress Bar */
.progress-container {
    margin: 1rem 0;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background-color: #f1f5f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.progress-fill {
    height: 100%;
    border-radius: 8px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-fill.high {
    background: linear-gradient(90deg, #10b981 0%, #34d399 50%, #6ee7b7 100%);
}

.progress-fill.medium {
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 50%, #fcd34d 100%);
}

.progress-fill.low {
    background: linear-gradient(90deg, #ef4444 0%, #f87171 50%, #fca5a5 100%);
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Modern Booking Form */
.booking-form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.booking-form-header h4 {
    color: #1e40af;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.booking-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group label.required:after {
    content: ' *';
    color: #ef4444;
    font-weight: 700;
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.form-control:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 0 4px 12px rgba(0,0,0,0.05);
    transform: translateY(-1px);
}

.form-control:hover {
    border-color: #9ca3af;
}

.form-control.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-control.is-valid {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1rem;
    padding-right: 3rem;
    appearance: none;
}

/* Modern Price Display */
#price-display {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #bfdbfe;
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#price-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
}

.price-breakdown {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 0.5rem;
}

.price-breakdown .participants-count {
    font-weight: 600;
    color: #1e40af;
}

.price-breakdown .price-per-person {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.total-price {
    font-size: 2rem;
    font-weight: 800;
    color: #1e40af;
    margin: 0.5rem 0;
    text-shadow: 0 2px 4px rgba(30, 64, 175, 0.1);
}

.price-currency {
    font-size: 1.2rem;
    vertical-align: top;
    margin-right: 0.25rem;
}

.price-note {
    font-size: 0.8rem;
    color: #64748b;
    font-style: italic;
    margin-top: 0.5rem;
}

/* Availability Warning */
#availability-warning {
    display: none;
    margin: 15px 0;
}

.alternative-dates-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.alternative-date-btn {
    padding: 8px 12px;
    border: 1px solid #3182ce;
    background: transparent;
    color: #3182ce;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.3;
    transition: all 0.3s ease;
    cursor: pointer;
}

.alternative-date-btn:hover {
    background: #3182ce;
    color: white;
    transform: translateY(-2px);
}

/* Modern Submit Button */
#submit-booking {
    width: 100%;
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #1e40af 100%);
    color: white;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 50%, #1e3a8a 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.4);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    color: white;
    cursor: not-allowed;
    box-shadow: 0 4px 16px rgba(156, 163, 175, 0.2);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: 0 4px 16px rgba(156, 163, 175, 0.2) !important;
}

/* Button Loading State */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Success Button State */
.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

.btn-success:after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: none;
}

.alert-success {
    background: #f0fff4;
    color: #22543d;
    border-left: 4px solid #38a169;
}

.alert-danger {
    background: #fed7d7;
    color: #742a2a;
    border-left: 4px solid #e53e3e;
}

.alert-warning {
    background: #fffaf0;
    color: #744210;
    border-left: 4px solid #d69e2e;
}

/* Loading Spinner */
.spinner-border {
    width: 2rem;
    height: 2rem;
    border: 3px solid rgba(49, 130, 206, 0.3);
    border-top: 3px solid #3182ce;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal Styles */
.booking-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    padding: 20px;
}

.modal-content {
    background: white;
    max-width: 600px;
    margin: 50px auto;
    border-radius: 15px;
    padding: 30px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.modal-header h4 {
    color: #2c5282;
    margin: 0;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #a0aec0;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

.modal-close:hover {
    color: #2d3748;
}

/* Alternative Tours Grid */
.alternative-tours {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.alternative-tour-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.alternative-tour-card:hover {
    border-color: #3182ce;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.alternative-tour-card h5 {
    color: #2c5282;
    margin-bottom: 10px;
}

.alternative-tour-card .date {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
}

.alternative-tour-card .spots {
    color: #38a169;
    font-size: 14px;
}

/* Professional Responsive Design */
@media (max-width: 1024px) {
    .booking-section {
        margin: 1rem;
        padding: 2rem;
    }
    
    .calendar-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 8px;
    }
    
    .booking-form-grid {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .booking-section {
        padding: 1.5rem;
        margin: 0.5rem;
        border-radius: 16px;
    }
    
    .booking-section h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .booking-steps {
        margin-bottom: 1.5rem;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .step-label {
        font-size: 0.7rem;
    }
    
    .calendar-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    
    .calendar-date {
        min-height: 70px;
        padding: 8px 4px;
    }
    
    .date-number {
        font-size: 1rem;
    }
    
    .date-spots {
        font-size: 0.65rem;
    }
    
    .booking-form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    #tour-dates-container,
    #booking-form-container {
        padding: 1.25rem;
    }
    
    .total-price {
        font-size: 1.75rem;
    }
    
    .modal-content {
        margin: 10px;
        padding: 1.5rem;
        max-height: 95vh;
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .booking-section {
        padding: 1.25rem;
        margin: 0.25rem;
    }
    
    .booking-section h3 {
        font-size: 1.3rem;
    }
    
    .booking-steps::before {
        left: 20%;
        right: 20%;
    }
    
    .calendar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .calendar-date {
        min-height: 80px;
        padding: 10px 6px;
    }
    
    .form-control {
        font-size: 16px; /* Verhindert Zoom auf iOS */
        padding: 0.875rem 1rem;
    }
    
    #submit-booking {
        font-size: 1rem;
        padding: 1rem 1.5rem;
    }
    
    .total-price {
        font-size: 1.5rem;
    }
    
    #tour-dates-container,
    #booking-form-container {
        padding: 1rem;
    }
    
    .progress-bar {
        height: 10px;
    }
}

@media (max-width: 360px) {
    .booking-section {
        padding: 1rem;
    }
    
    .calendar-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    
    .calendar-date {
        min-height: 75px;
        font-size: 0.85rem;
    }
    
    .date-number {
        font-size: 0.95rem;
    }
}

/* Animation für Form erscheinen */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#booking-form-container {
    animation: slideDown 0.5s ease when shown;
}

/* Custom Select Arrow */
#tour-date-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
}

/* Focus States für bessere Zugänglichkeit */
.form-control:focus,
.alternative-date-btn:focus,
#submit-booking:focus {
    outline: 2px solid #3182ce;
    outline-offset: 2px;
}

/* Hover Effekte */
.booking-section {
    transition: all 0.3s ease;
}

.booking-section:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

/* Professional Enhancements */
.booking-mode-info {
    text-align: center;
    padding: 0.75rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #475569;
}

.date-availability {
    font-size: 0.65rem;
    color: #64748b;
    margin-top: 2px;
}

/* Enhanced Focus States */
.calendar-date:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Smooth Transitions */
* {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading States */
.loading-calendar {
    text-align: center;
    padding: 2rem;
    color: #64748b;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-available {
    background: #c6f6d5;
    color: #22543d;
}

.status-limited {
    background: #fed7aa;
    color: #9c4221;
}

.status-full {
    background: #fed7d7;
    color: #742a2a;
}

/* Professional Touch */
.booking-section {
    backdrop-filter: blur(10px);
}

/* Better Form Feedback */
.form-control.is-valid {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='m2.3 6.73.71-.71L4.25 4.78l1.24-1.24.71.71L4.25 6.25z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 3rem;
}

.form-control.is-invalid {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='M5.8 4.6L6.2 7.4M6 8.8h.01'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 3rem;
}



/* Large Display Optimization */
@media (min-width: 1200px) {
    .booking-section {
        max-width: 1400px !important;
        padding: 4rem 3rem !important;
    }
    
    .calendar-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
        gap: 24px !important;
    }
    
    .calendar-date {
        min-height: 140px !important;
        padding: 24px 16px !important;
        font-size: 1.1rem !important;
    }
    
    .booking-section h3 {
        font-size: 2.5rem !important;
    }
}

/* Ultra-Responsive Calendar */
@media (max-width: 320px) {
    .booking-section {
        padding: 0.75rem !important;
        margin: 0.5rem auto !important;
        width: calc(100% - 1rem) !important;
    }
    
    .calendar-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 4px !important;
    }
    
    .calendar-date {
        min-height: 65px !important;
        padding: 6px 4px !important;
        font-size: 0.8rem !important;
    }
    
    .booking-section h3 {
        font-size: 1.2rem !important;
    }
    
    .step-number {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.8rem !important;
    }
}