/* ============================================
   SIMO Booking Form - Glassmorphism Dark Theme
   ============================================ */

.booking-form-native {
    padding: 1.5rem;
}

/* Steps */
.booking-step {
    margin-bottom: 1.5rem;
}

.booking-step-title {
    font-family: 'UniNeue Regular', sans-serif;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.booking-step-title .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* Labels & Inputs */
.booking-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    font-family: 'Inter', sans-serif;
}

.booking-select,
.booking-input,
.booking-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

.booking-select:focus,
.booking-input:focus,
.booking-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(94, 191, 191, 0.15);
}

.booking-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239ca3af' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.booking-select option {
    background: #1a1a2e;
    color: var(--text-primary);
}

.booking-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Calendar Widget */
.booking-calendar {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-title {
    font-family: 'UniNeue Regular', sans-serif;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 400;
}

.calendar-nav-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav-btn:hover {
    background: rgba(94, 191, 191, 0.15);
    border-color: var(--primary-color);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-day-header {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    padding: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-day {
    text-align: center;
    padding: 0.6rem;
    border-radius: 8px;
    cursor: default;
    color: var(--text-secondary);
    opacity: 0.3;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.calendar-day.empty {
    opacity: 0;
    pointer-events: none;
}

.calendar-day.available {
    opacity: 1;
    cursor: pointer;
    background: rgba(94, 191, 191, 0.1);
    color: var(--text-primary);
}

.calendar-day.available:hover {
    background: rgba(94, 191, 191, 0.2);
    transform: translateY(-1px);
}

.calendar-day.selected {
    background: var(--primary-gradient);
    color: white;
    opacity: 1;
    box-shadow: 0 4px 12px rgba(94, 191, 191, 0.3);
}

.calendar-day.today {
    border: 1px solid var(--primary-color);
    opacity: 0.5;
}

.calendar-day.today.available {
    opacity: 1;
}

/* Staff Checkboxes */
.staff-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.staff-checkbox-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.staff-checkbox-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.staff-checkbox-card:has(input:checked) {
    border-color: var(--primary-color);
    background: rgba(94, 191, 191, 0.1);
}

.staff-checkbox-card input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    flex-shrink: 0;
    cursor: pointer;
}

.staff-checkbox-card .staff-name {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.staff-checkbox-card .staff-check-icon {
    margin-left: auto;
    opacity: 0;
    transition: opacity 0.2s ease;
    color: var(--primary-color);
}

.staff-checkbox-card:has(input:checked) .staff-check-icon {
    opacity: 1;
}

/* DSGVO Scrollable Text */
.booking-dsgvo-section {
    margin: 1.25rem 0;
}

.dsgvo-text-scroll {
    max-height: 120px;
    overflow-y: auto;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.dsgvo-text-scroll p {
    margin: 0;
}

.dsgvo-text-scroll a {
    color: var(--primary-color);
    text-decoration: underline;
}

.dsgvo-text-scroll::-webkit-scrollbar {
    width: 4px;
}

.dsgvo-text-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.dsgvo-text-scroll::-webkit-scrollbar-thumb {
    background: rgba(94, 191, 191, 0.3);
    border-radius: 2px;
}

/* Time Slots Grid */
.time-slots-container {
    min-height: 60px;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.5rem;
}

.time-slot {
    padding: 0.6rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.time-slot:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(94, 191, 191, 0.15);
}

.time-slot.selected {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(94, 191, 191, 0.3);
}

.time-slot.unavailable {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* No slots message */
.no-slots-message {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 1rem;
}

/* Loading spinner */
.booking-loading {
    text-align: center;
    color: var(--text-secondary);
    padding: 1rem;
    font-size: 0.9rem;
}

.booking-loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(94, 191, 191, 0.3);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: booking-spin 0.6s linear infinite;
    margin-left: 0.5rem;
    vertical-align: middle;
}

@keyframes booking-spin {
    to { transform: rotate(360deg); }
}

/* Service info */
.service-info {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.service-info span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.service-info i {
    color: var(--primary-color);
}

/* Consent Checkbox */
.booking-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.booking-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

.booking-consent label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    cursor: pointer;
}

.booking-consent label a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Submit Button */
.btn-booking {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'UniNeue', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-booking:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(94, 191, 191, 0.3);
}

.btn-booking:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Success Message */
.booking-success-message {
    text-align: center;
    padding: 2rem 1.5rem;
}

.booking-success-message .success-icon {
    font-size: 3rem;
    color: #4CAF50;
    margin-bottom: 1rem;
}

.booking-success-message h3 {
    color: var(--text-primary);
    font-family: 'UniNeue Regular', sans-serif;
    margin-bottom: 0.75rem;
}

.booking-success-message p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Error Toast */
.booking-error-toast {
    position: fixed;
    top: 100px;
    right: 20px;
    background: rgba(244, 67, 54, 0.95);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-size: 0.9rem;
    z-index: 10000;
    animation: slideInRight 0.3s ease;
    max-width: 400px;
    backdrop-filter: blur(10px);
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Date hint */
.date-hint {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.date-hint i {
    color: var(--primary-color);
}

/* Form row */
.booking-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Booking Success Page */
.booking-success-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.booking-success-card {
    max-width: 600px;
    width: 100%;
    text-align: center;
    padding: 3rem;
}

.booking-success-card .success-icon-large {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 1.5rem;
}

.booking-success-card h1 {
    font-family: 'UniNeue Regular', sans-serif;
    color: var(--text-primary);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.booking-success-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.booking-success-card .btn-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-family: 'UniNeue', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.booking-success-card .btn-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(94, 191, 191, 0.3);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
    .booking-form-native {
        padding: 1.25rem;
    }
}

@media (max-width: 768px) {
    .booking-form-native {
        padding: 1rem;
    }

    .booking-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .time-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    }

    .booking-success-card {
        padding: 2rem 1.5rem;
    }

    .booking-success-card h1 {
        font-size: 1.6rem;
    }

    .booking-error-toast {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .booking-step-title {
        font-size: 0.95rem;
    }

    .time-slots-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .booking-success-page {
        padding: 2rem 1rem;
    }
}
