/* ==========================================
   Buchungssystem - FemNaturBalance
   ========================================== */

/* ==========================================
   AUSWAHL-MODAL
   ========================================== */

.booking-selection-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.booking-selection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 36, 22, 0.7);
    backdrop-filter: blur(8px);
}

.booking-selection-container {
    position: relative;
    background: #FCF4EE;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(44, 36, 22, 0.25);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 3rem 2.5rem;
    z-index: 10001;
    animation: bookingModalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes bookingModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.booking-selection-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(184, 153, 138, 0.1);
    border: none;
    border-radius: 50%;
    font-size: 1.75rem;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.booking-selection-close:hover {
    background: rgba(184, 153, 138, 0.2);
    transform: rotate(90deg);
}

.booking-selection-title {
    font-family: var(--font-primary);
    font-size: 2rem;
    color: var(--color-text);
    margin-bottom: 0.75rem;
    text-align: center;
}

.booking-selection-subtitle {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    color: rgba(44, 36, 22, 0.7);
    text-align: center;
    margin-bottom: 2.5rem;
}

.booking-options {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.booking-option {
    background: white;
    border: 2px solid rgba(184, 153, 138, 0.2);
    border-radius: 16px;
    padding: 1.75rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.booking-option:hover {
    border-color: var(--color-primary);
    background: rgba(184, 153, 138, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(184, 153, 138, 0.15);
}

.booking-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.booking-option-title {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--color-text);
    margin: 0;
}

.booking-option-price {
    font-family: var(--font-body);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--color-primary);
}

.booking-option-duration {
    font-size: 0.9375rem;
    color: rgba(44, 36, 22, 0.6);
    margin-left: 0.5rem;
}

.booking-option-description {
    font-family: var(--font-body);
    font-size: 1rem;
    color: rgba(44, 36, 22, 0.75);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================
   KONTAKTFORMULAR-MODALS
   ========================================== */

.booking-form-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.booking-form-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 36, 22, 0.7);
    backdrop-filter: blur(8px);
}

.booking-form-container {
    position: relative;
    background: #FCF4EE;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(44, 36, 22, 0.25);
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 3rem 2.5rem;
    z-index: 10001;
    animation: bookingModalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.booking-form-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(184, 153, 138, 0.1);
    border: none;
    border-radius: 50%;
    font-size: 1.75rem;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.booking-form-close:hover {
    background: rgba(184, 153, 138, 0.2);
    transform: rotate(90deg);
}

.booking-form-title {
    font-family: var(--font-primary);
    font-size: 2rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    text-align: center;
}

.booking-form-price {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 2rem;
}

.booking-form-group {
    margin-bottom: 1.5rem;
}

.booking-form-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.booking-form-label.required::after {
    content: ' *';
    color: #e74c3c;
}

.booking-form-input,
.booking-form-textarea,
.booking-form-select {
    width: 100%;
    padding: 0.875rem 1.125rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    background: white;
    border: 2px solid rgba(184, 153, 138, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.booking-form-input:focus,
.booking-form-textarea:focus,
.booking-form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(184, 153, 138, 0.1);
}

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

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

.booking-form-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.booking-form-checkbox {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.booking-form-checkbox-label {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: rgba(44, 36, 22, 0.85);
    line-height: 1.6;
}

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

.booking-form-submit {
    width: 100%;
    padding: 1.125rem 2rem;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 600;
    color: white;
    background: var(--color-primary);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.booking-form-submit:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(184, 153, 138, 0.3);
}

.booking-form-submit:disabled {
    background: rgba(184, 153, 138, 0.4);
    cursor: not-allowed;
    transform: none;
}

/* ==========================================
   ZAHLUNGSAUSWAHL
   ========================================== */

.payment-selection {
    display: none;
    margin-top: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    border: 2px solid rgba(184, 153, 138, 0.2);
}

.payment-selection.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

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

.payment-title {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--color-text);
    margin-bottom: 1rem;
    text-align: center;
}

.payment-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    color: rgba(44, 36, 22, 0.7);
    text-align: center;
    margin-bottom: 2rem;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-button {
    width: 100%;
    padding: 1.25rem 2rem;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 600;
    background: white;
    border: 2px solid rgba(184, 153, 138, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.payment-button:hover {
    border-color: var(--color-primary);
    background: rgba(184, 153, 138, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(184, 153, 138, 0.15);
}

.payment-button.paypal {
    color: #0070ba;
}

.payment-button.bank {
    color: var(--color-primary);
}

.payment-icon {
    width: 24px;
    height: 24px;
}

.bank-details {
    display: none;
    margin-top: 1.5rem;
    padding: 1.75rem;
    background: rgba(184, 153, 138, 0.08);
    border-radius: 12px;
}

.bank-details.active {
    display: block;
    animation: fadeInUp 0.3s ease;
}

.bank-details-title {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    color: var(--color-text);
    margin-bottom: 1.25rem;
}

.bank-details-item {
    margin-bottom: 1rem;
    font-family: var(--font-body);
}

.bank-details-label {
    font-size: 0.875rem;
    color: rgba(44, 36, 22, 0.7);
    margin-bottom: 0.25rem;
}

.bank-details-value {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--color-text);
    font-family: 'Courier New', monospace;
}

/* ==========================================
   ERFOLGS-NACHRICHT
   ========================================== */

.booking-success {
    display: none;
    text-align: center;
    padding: 2rem;
}

.booking-success.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

.booking-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    color: #27ae60;
}

.booking-success-title {
    font-family: var(--font-primary);
    font-size: 1.75rem;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.booking-success-message {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    color: rgba(44, 36, 22, 0.75);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.booking-success-button {
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: var(--color-primary);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.booking-success-button:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(184, 153, 138, 0.3);
}

/* ==========================================
   ERROR & VALIDATION
   ========================================== */

.booking-form-input.error,
.booking-form-textarea.error,
.booking-form-select.error {
    border-color: #e74c3c;
}

.booking-error-message {
    display: none;
    margin-top: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: #e74c3c;
}

.booking-error-message.active {
    display: block;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 768px) {
    .booking-selection-container,
    .booking-form-container {
        width: 95%;
        padding: 2rem 1.5rem;
        max-height: 95vh;
    }

    .booking-selection-title,
    .booking-form-title {
        font-size: 1.625rem;
    }

    .booking-option {
        padding: 1.5rem 1.25rem;
    }

    .booking-option-title {
        font-size: 1.25rem;
    }

    .booking-option-price {
        font-size: 1.125rem;
    }

    .booking-form-row {
        grid-template-columns: 1fr;
    }

    .payment-button {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .booking-selection-close,
    .booking-form-close {
        width: 36px;
        height: 36px;
        top: 1rem;
        right: 1rem;
    }
}

@media (max-width: 480px) {
    .booking-selection-container,
    .booking-form-container {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .booking-option-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* ==========================================
   LOADING STATE
   ========================================== */

.booking-loading {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(252, 244, 238, 0.95);
    border-radius: 24px;
    z-index: 10002;
    align-items: center;
    justify-content: center;
}

.booking-loading.active {
    display: flex;
}

.booking-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(184, 153, 138, 0.2);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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