/* RESERVATION FORM */
/* ============================================
   BASE CONTAINERS       tk-block-reservation
   ============================================ */
.ter-kal-block-reservation {
    container-type: inline-size;
    width: 100%;
    display: flex;
    /* ter-kal: enable flexbox */
    justify-content: center;
    /* ter-kal: center horizontally */
}

/* ============================================
   CONTENT LAYOUTS
   ============================================ */

/* Full width blocks (reservation, todo, kalender) */
.ter-kal-block-reservation .ter-kal-reservation-content {
    width: 100%;
    /*    display: flex;
    flex-direction: column;
    gap: 1rem;*/
}



/* ter_kal_: Custom styling for booked dates */
.ter_kal_flatpickr_booked {
    background: #ECEEF1 !important;
    color: #CCCCCC !important;
    position: relative;
    /*text-decoration: line-through;*/
}

/* ter_kal_: Add strikethrough or icon */
.ter_kal_flatpickr_booked::after {
    /*content: '🔒';  or '×' */
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 10px;
}

/* ============================================
   ============================================ */

/*.ter-kal-hidden {
    opacity: 0 !important;
    pointer-events: none !important;  Disable clicks on hidden events 
    transition: opacity 0.3s;
}*/







.ter-kal-reservation-kategorie_title {
    /*    display: flex;
    align-items: center;*/
    font-size: 2rem;
    line-height: 3rem;
    font-weight: 800;
    border-radius: 0.5rem;
    padding: 0.5rem;
}

.ter-kal-reservation-kategorie_title_dashicon {
    font-size: 3rem;
    width: 1.2em;
    /* Give the span actual width */
}



.ter-kal-reservation-content {
    position: relative;
    border-radius: 1.5rem;
    background-color: #9ecdff;
    padding: 2rem;
    box-shadow: 0 1rem 1.5rem rgba(0, 0, 0, 0.7);
    max-width: 800px;
    min-width: 280px;
}

.ter-kal-reservation-content .reservation_form_text,
.ter-kal-reservation-content h3 {
    padding-top: 1rem;
    color: #ffffff;
}


.ter-kal-reservation-content label,
.ter-kal-reservation-content button,
.ter-kal-reservation-content h3 {
    font-weight: 700;
    font-size: 1rem;
}

.ter-kal-reservation-content input,
.ter-kal-reservation-content textarea,
.ter-kal-reservation-content select,
.ter-kal-reservation-content button {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    border-radius: 0.5rem;

}

.ter-kal-reservation-content input:focus,
.ter-kal-reservation-content textarea:focus,
.ter-kal-reservation-content select:focus {
    background-color: #fff;
    color: #000;
}


.ter-kal-reservation-content .reservation-form .form_entry {
    margin-top: 0.6rem;
}

.regenschirm {
    height: 0.001em;
    overflow: hidden;
    border: none;
}

.reservation-form .reservation_form_event_dates {
    max-width: 100%;
    display: flex;
    justify-content: center;
}



/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@container (max-width: 500px) {
    .ter-kal-reservation-content {
        /*box-shadow: none !important;*/
        box-shadow: 0 0.5rem 0.5rem rgba(0, 0, 0, 0.5);
    }

    /* Reservation Form */
    .ter-kal-reservation-content h3 {
        font-size: 0.84rem;
    }

    .ter-kal-reservation-content .form_entry :is(input:not([type='hidden']), textarea, select) {
        font-size: 0.7rem !important;
        line-height: 1.2;
        padding: 6px 8px;
        height: auto;
    }

    .ter-kal-reservation-content :is(p, label, .reservation_form_text) {
        font-size: 0.7rem !important;
    }

}

@container (min-width: 501px) and (max-width: 768px) {
    /*    .ter-kal-reservation-content {
        box-shadow: 0 1rem 1.5rem rgba(0, 0, 0, 0.7);
    }*/
}

/* ============================================
   ============================================ */


/* ============================================
   NEW UTILITY CLASSES (replacing inline styles)
   ============================================ */
.termin-kalender-hidden {
    display: none;
}

.termin-kalender-flex-col-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.termin-kalender-time-slots-container {
    margin-top: 15px;
    max-width: 315px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.termin-kalender-end-time-container {
    margin-bottom: 15px;
}

.termin-kalender-duration-label {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 5px;
    display: block;
}

.termin-kalender-duration-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
}

.termin-kalender-booked-times-container {
    font-size: 0.85em;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #eee;
    box-sizing: border-box;
}

.termin-kalender-booked-times-title {
    color: #444;
}

.termin-kalender-booked-times-list {
    margin-top: 8px;
    margin-bottom: 0;
    padding-left: 20px;
    color: #555;
}

.termin-kalender-multiselect {
    height: auto;
    max-height: 8em;
}

.termin-kalender-submit-container {
    margin-top: 1rem;
}

/* ============================================
   STYLE VARIATION: MODERN MINIMAL
   ============================================ */
.is-style-modern-minimal .ter-kal-reservation-content {
    background-color: transparent;
    padding: 1.5rem;
    box-shadow: none;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
}

.is-style-modern-minimal .ter-kal-reservation-content .reservation_form_text,
.is-style-modern-minimal .ter-kal-reservation-content h3 {
    color: #1a202c;
}

.is-style-modern-minimal .ter-kal-reservation-content label,
.is-style-modern-minimal .ter-kal-reservation-content .termin-kalender-duration-label {
    font-weight: 500;
    color: #4a5568;
}

.is-style-modern-minimal .ter-kal-reservation-content input:not(.flatpickr-calendar *),
.is-style-modern-minimal .ter-kal-reservation-content textarea,
.is-style-modern-minimal .ter-kal-reservation-content select:not(.flatpickr-calendar *) {
    border: 1px solid #cbd5e0;
    border-radius: 0.25rem;
    padding: 0.75rem;
    background-color: #fff;
    color: #2d3748;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    height: auto !important;
    box-sizing: border-box;
}

.is-style-modern-minimal .ter-kal-reservation-content input:not(.flatpickr-calendar *):focus,
.is-style-modern-minimal .ter-kal-reservation-content textarea:focus,
.is-style-modern-minimal .ter-kal-reservation-content select:not(.flatpickr-calendar *):focus {
    border-color: #4299e1;
    outline: none;
    /*box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5);*/
}

.is-style-modern-minimal .ter-kal-reservation-content button.bootstrap_primary {
    background-color: #2b6cb0;
    border-color: #2b6cb0;
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s ease;
}

.is-style-modern-minimal .ter-kal-reservation-content button.bootstrap_primary:hover {
    background-color: #2c5282;
}

/* ============================================
   STYLE VARIATION: MATERIAL UNDERLINE
   ============================================ */
.is-style-material-underline .ter-kal-reservation-content {
    background-color: transparent;
    padding: 1.5rem;
    box-shadow: none;
    border: none;
}

.is-style-material-underline .ter-kal-reservation-content .reservation_form_text,
.is-style-material-underline .ter-kal-reservation-content h3 {
    color: #2c3e50;
}

.is-style-material-underline .ter-kal-reservation-content label,
.is-style-material-underline .ter-kal-reservation-content .termin-kalender-duration-label {
    font-weight: 500;
    color: #34495e;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.is-style-material-underline .ter-kal-reservation-content input:not(.flatpickr-calendar *),
.is-style-material-underline .ter-kal-reservation-content textarea,
.is-style-material-underline .ter-kal-reservation-content select:not(.flatpickr-calendar *) {
    border: none;
    border-bottom: 2px solid #bdc3c7;
    border-radius: 0;
    padding: 0.5rem 0.25rem;
    background-color: transparent;
    color: #34495e;
    box-shadow: none;
    transition: border-bottom-color 0.3s ease;
    height: auto !important;
    box-sizing: border-box;
}

.is-style-material-underline .ter-kal-reservation-content input:not(.flatpickr-calendar *):focus,
.is-style-material-underline .ter-kal-reservation-content textarea:focus,
.is-style-material-underline .ter-kal-reservation-content select:not(.flatpickr-calendar *):focus {
    border-bottom-color: #3498db;
    outline: none;
}

.is-style-material-underline .ter-kal-reservation-content button.bootstrap_primary {
    background-color: #34495e;
    border: none;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.85rem 2rem;
    border-radius: 2px;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.is-style-material-underline .ter-kal-reservation-content button.bootstrap_primary:hover {
    background-color: #2c3e50;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ============================================
   STYLE VARIATION: SOFT ROUNDED
   ============================================ */
.is-style-soft-rounded .ter-kal-reservation-content {
    background-color: transparent;
    padding: 1.5rem;
    box-shadow: none;
    border: none;
}

.is-style-soft-rounded .ter-kal-reservation-content .reservation_form_text,
.is-style-soft-rounded .ter-kal-reservation-content h3 {
    color: #4b5563;
}

.is-style-soft-rounded .ter-kal-reservation-content label,
.is-style-soft-rounded .ter-kal-reservation-content .termin-kalender-duration-label {
    font-weight: 600;
    color: #6b7280;
    margin-left: 0.5rem;
}

.is-style-soft-rounded .ter-kal-reservation-content input:not(.flatpickr-calendar *),
.is-style-soft-rounded .ter-kal-reservation-content textarea,
.is-style-soft-rounded .ter-kal-reservation-content select:not(.flatpickr-calendar *) {
    border: 1px solid transparent;
    border-radius: 2rem;
    padding: 0.85rem 1.25rem;
    background-color: #f3f4f6;
    color: #374151;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    height: auto !important;
    box-sizing: border-box;
}

.is-style-soft-rounded .ter-kal-reservation-content textarea {
    border-radius: 1.25rem;
    /* Textareas look weird with 2rem */
}

.is-style-soft-rounded .ter-kal-reservation-content input:not(.flatpickr-calendar *):focus,
.is-style-soft-rounded .ter-kal-reservation-content textarea:focus,
.is-style-soft-rounded .ter-kal-reservation-content select:not(.flatpickr-calendar *):focus {
    background-color: #fff;
    border-color: #9ca3af;
    outline: none;
    box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.3);
}

.is-style-soft-rounded .ter-kal-reservation-content button.bootstrap_primary {
    background-color: #10b981;
    border: none;
    color: #fff;
    font-weight: 700;
    padding: 0.85rem 2rem;
    border-radius: 2rem;
    transition: all 0.2s ease;
}

.is-style-soft-rounded .ter-kal-reservation-content button.bootstrap_primary:hover {
    background-color: #059669;
    transform: scale(1.02);
}