/* Hauptcontainer */
.custom-booking-widget {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    color: #1f2937;
}

/* Formular Felder */
.booking-form-container {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    background-color: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}
.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.form-group label {
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
}
.form-group input {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    outline: none;
    transition: all 0.2s;
}
.form-group input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* NEU: Input Error Styling (Dezent Rot) */
.form-group input.input-error {
    border-color: #ef4444 !important;
    background-color: #fef2f2;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* NEU: Erfolgsmeldung */
.success-message {
    margin-bottom: 25px;
    padding: 15px 20px;
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .booking-form-container {
        flex-direction: column;
    }
    .duration-selector label {
        display: block;
        margin-left: 0 !important;
        margin-bottom: 10px;
    }
}

/* Kalender Layout */
.calendar-container {
    display: flex;
    align-items: flex-start; 
    gap: 15px;
    width: 100%;
}
.calendar-main {
    flex: 1;
}
.calendar-header-row {
    display: flex;
    margin-bottom: 15px;
}
.week-headers, .slots-grid {
    display: flex;
    flex: 1;
    justify-content: space-around;
    text-align: center;
    gap: 5px;
}
.day-header {
    flex: 1;
    min-width: 60px;
    font-size: 14px;
    height: 54px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.4;
}
.day-column {
    flex: 1;
    min-width: 60px;
}

/* Navigation Buttons */
.nav-btn {
    background-color: #3b82f6; 
    border: none;
    border-radius: 6px;
    padding: 0 10px;
    cursor: pointer;
    color: white; 
    height: 54px; 
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.nav-btn svg {
    width: 22px;
    height: 22px;
}
.nav-btn:hover:not(:disabled) {
    background-color: #2563eb; 
}
.nav-btn:disabled {
    opacity: 1; 
    background-color: #e5e7eb; 
    color: #9ca3af; 
    cursor: not-allowed;
}

/* Slots & Leere Einträge */
.slot-btn {
    background-color: #e5e7eb;
    border: none;
    border-radius: 4px;
    width: 90%;
    cursor: pointer;
    font-size: 16px; 
    font-weight: 500;
    color: #1f2937;
    transition: background-color 0.2s;
    box-sizing: border-box;
    height: 42px;
    margin: 0 auto 8px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slot-btn:hover {
    background-color: #d1d5db;
}
.slot-btn.selected {
    background-color: #3b82f6;
    color: white;
}

.empty-slot {
    box-sizing: border-box;
    height: 42px;
    margin: 0 auto 8px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.empty-slot svg {
    width: 14px;
    height: 14px;
    fill: #d1d5db;
}

/* Action Panel & Buttons */
#booking-action-panel {
    margin-top: 20px;
    text-align: left;
    padding: 20px;
    background-color: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}
.selected-info {
    font-size: 16px;
    color: #374151;
}
.radio-label {
    font-size: 15px;
    cursor: pointer;
    color: #1f2937;
}
.radio-label input {
    margin-right: 5px;
}
.book-now-btn {
    background-color: #3b82f6; 
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 18px; 
    font-weight: bold;
    transition: background-color 0.2s ease;
}
.book-now-btn:hover {
    background-color: #2563eb;
}
.book-now-btn:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}