/* ====================================
   🪒 HENNIE BOOKING FRONTEND CSS
   Voor booking widget en Elementor
   ==================================== */

/* CSS VARIABELEN - Makkelijk aanpasbaar via Elementor */
:root {
    --hennie-primary: #b8941f;
    --hennie-primary-hover: #b8941f;
    --hennie-primary-light: #faf8f0;
    --hennie-secondary: #6b7280;
    --hennie-success: #059669;
    --hennie-warning: #d97706;
    --hennie-danger: #dc2626;
    --hennie-border-radius: 8px;
    --hennie-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --hennie-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --hennie-transition: all 0.3s ease;
    --hennie-border-color: #e5e7eb;
    --hennie-text-primary: #111827;
    --hennie-text-secondary: #6b7280;
    --hennie-bg-primary: #ffffff;
    --hennie-bg-secondary: #f9fafb;
    
    /* Dynamische variabelen voor Elementor */
    --hennie-columns: 2;
    --hennie-gap: 16px;
    --hennie-avatar-size: 80px;
    --hennie-avatar-icon-size: 32px;
    --hennie-price-size: 24px;
    --hennie-hover-lift: -8px;
    --hennie-hover-scale: 1.02;
}

/* RESET - Alleen voor booking widget elementen */
#hennie-booking-widget *,
#hennie-booking-widget *::before,
#hennie-booking-widget *::after {
    box-sizing: border-box;
}

/* ====================================
   HOOFDCONTAINER
   ==================================== */
#hennie-booking-widget {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--hennie-text-primary);
    background: var(--hennie-bg-primary);
    border-radius: var(--hennie-border-radius);
    padding: 2rem;
    box-shadow: var(--hennie-shadow);
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

/* WIDGET TITEL */
#hennie-booking-widget h2 {
    text-align: center;
    margin: 0 0 2rem 0;
    font-size: 2rem;
    font-weight: 700;
    color: var(--hennie-primary);
    background: linear-gradient(135deg, var(--hennie-primary) 0%, var(--hennie-primary-hover) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ====================================
   STAPPEN NAVIGATIE
   ==================================== */
.booking-step {
    margin-bottom: 2rem;
}

/* Initiële stap (stap 1) krijgt direct de animatie. Volgende stappen
   gebruiken `.hennie-step-animate` die door `gotoStep()` wordt toegepast. */
.booking-step:first-child,
.booking-step.hennie-step-animate {
    animation: hennie-step-in 0.35s ease both;
}

@keyframes hennie-step-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .booking-step,
    .booking-step.hennie-step-animate { animation: none; }
}

.booking-step h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--hennie-text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.step-indicator {
    background: var(--hennie-primary);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

/* ====================================
   GRID LAYOUT SYSTEEM
   ==================================== */
.item-grid {
    display: grid;
    gap: var(--hennie-gap);
    margin-bottom: 2rem;
    
    /* Responsive grid met CSS custom properties */
    grid-template-columns: repeat(var(--hennie-columns), 1fr);
    align-items: stretch; /* Zorg dat alle kaarten dezelfde hoogte krijgen */
}

/* Auto-fit variatie */
.item-grid[data-columns="auto"] {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Responsive grid overrides */
@media (max-width: 768px) {
    .item-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem; /* Nog compacter op mobile */
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .item-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ====================================
   KAARTEN (BARBERS & SERVICES)
   ==================================== */
.item-card {
    background: var(--hennie-bg-primary);
    border: 2px solid var(--hennie-border-color);
    border-radius: var(--hennie-border-radius);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--hennie-transition);
    box-shadow: var(--hennie-shadow);
    position: relative;
    overflow: hidden;
    height: 100%; /* Gebruik volledige beschikbare hoogte */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Spreidt content mooi uit */
    align-items: center;
     min-height: 250px;
}

/* Hover effecten - aanpasbaar via Elementor */
.item-card:hover {
    transform: translateY(var(--hennie-hover-lift, -8px)) scale(var(--hennie-hover-scale, 1.02));
    box-shadow: var(--hennie-shadow-hover);
    border-color: var(--hennie-primary);
}

/* Geselecteerde staat */
.item-card.selected {
    border-color: var(--hennie-primary);
    background: var(--hennie-primary-light);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2);
}

/* Active state (touch/click feedback) — voelt direct responsief */
.item-card:active,
.date-button:active,
.time-slot:active {
    transform: scale(0.97);
    transition-duration: 0.05s;
}

/* Focus-states voor toetsenbord-navigatie (a11y) */
.item-card:focus-visible,
.date-button:focus-visible,
.time-slot:focus-visible,
#hennie-booking-widget button:focus-visible {
    outline: 3px solid var(--hennie-primary);
    outline-offset: 3px;
}

/* Gerust uit op coarse pointers (touch): geen hover-lift, wel duidelijk active */
@media (hover: none) and (pointer: coarse) {
    .item-card:hover,
    .date-button:hover,
    .time-slot:hover { transform: none; box-shadow: var(--hennie-shadow); }
}

/* Hover animatie background */
.item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.item-card:hover::before {
    left: 100%;
}

/* Kaart inhoud boven de animatie */
.item-card > * {
    position: relative;
    z-index: 2;
}

/* ====================================
   BARBER AVATAR
   ==================================== */
/* Donker rondje met gouden Rye-monogram — matcht de Barbers-sectie op
   de homepage (radial dark gradient + gouden initial in display-font). */
.barber-avatar {
    width: var(--hennie-avatar-size, 80px);
    height: var(--hennie-avatar-size, 80px);
    background: radial-gradient(circle at 50% 30%, #2a2a2a 0%, #0a0a0a 100%);
    border: 1.5px solid rgba(212, 169, 60, .35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    box-shadow: var(--hennie-shadow), inset 0 1px 0 rgba(255, 255, 255, .04);
    transition: var(--hennie-transition);
    overflow: hidden;
    position: relative;
}
.barber-avatar .barber-mono {
    font-family: 'Rye', 'Playfair Display', Georgia, serif;
    font-size: 40px;
    line-height: 1;
    color: #d4a93c;
    opacity: .9;
    text-shadow: 0 4px 14px rgba(0, 0, 0, .55);
    user-select: none;
}

.item-card:hover .barber-avatar {
    transform: scale(1.06);
    border-color: rgba(212, 169, 60, .7);
    box-shadow: 0 0 0 3px rgba(212, 169, 60, .15),
                0 10px 22px rgba(0, 0, 0, .35),
                inset 0 1px 0 rgba(255, 255, 255, .06);
}
.item-card:hover .barber-avatar .barber-mono {
    opacity: 1;
}
.item-card.selected .barber-avatar {
    border-color: #d4a93c;
    box-shadow: 0 0 0 3px rgba(212, 169, 60, .28),
                0 8px 18px rgba(0, 0, 0, .35),
                inset 0 1px 0 rgba(255, 255, 255, .06);
}
.item-card.selected .barber-avatar .barber-mono {
    opacity: 1;
}

/* ====================================
   TEKST STYLING
   ==================================== */
.item-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--hennie-text-primary);
}

.item-card p {
    color: var(--hennie-text-secondary);
    margin: 0 0 1rem 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

.item-card small {
    color: var(--hennie-text-secondary);
    font-size: 0.75rem;
    font-style: italic;
}

/* ====================================
   PRIJZEN
   ==================================== */
.price {
    font-size: var(--hennie-price-size, 24px);
    font-weight: 800;
    color: var(--hennie-primary);
    margin: 0.5rem 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ====================================
   DATUM & TIJD SELECTIE
   ==================================== */

/* Datum knoppen */
.date-button {
    background: var(--hennie-bg-primary);
    border: 2px solid var(--hennie-border-color);
    border-radius: var(--hennie-border-radius);
    padding: 1rem;
    cursor: pointer;
    transition: var(--hennie-transition);
    text-align: center;
    margin-bottom: 0.5rem;
}

.date-button:hover {
    border-color: var(--hennie-primary);
    background: var(--hennie-primary-light);
    transform: translateY(-2px);
}

.date-button.selected {
    background: var(--hennie-primary);
    color: white;
    border-color: var(--hennie-primary);
}

.date-text {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.slot-count {
    font-size: 0.75rem;
    color: var(--hennie-text-secondary);
    font-style: italic;
}

.date-button.selected .slot-count {
    color: rgba(255, 255, 255, 0.8);
}

/* ====================================
   TIJD SELECTIE SECTIE
   ==================================== */
#time-selection {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--hennie-bg-secondary);
    border-radius: var(--hennie-border-radius);
    border: 1px solid var(--hennie-border-color);
    scroll-margin-top: 2rem; /* Voor smooth scroll */
}

#time-selection h4 {
    margin: 0 0 1rem 0;
    color: var(--hennie-primary);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Time slots grid */
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.no-times-available {
    text-align: center;
    padding: 2rem;
    color: var(--hennie-text-secondary);
}

.no-times-available p {
    margin-bottom: 0.5rem;
}

/* Tijd slots */
.time-slot {
    background: var(--hennie-bg-primary);
    border: 2px solid var(--hennie-border-color);
    border-radius: var(--hennie-border-radius);
    padding: 0.75rem;
    cursor: pointer;
    transition: var(--hennie-transition);
    text-align: center;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    min-height: 48px; /* WCAG / mobile-friendly tap-target */
    display: flex; align-items: center; justify-content: center;
}

.time-slot::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.5s ease;
}

.time-slot:hover::before {
    left: 100%;
}

.time-slot:hover {
    border-color: var(--hennie-primary);
    background: var(--hennie-primary-light);
    transform: scale(1.05);
    box-shadow: var(--hennie-shadow);
}

.time-slot.selected {
    background: var(--hennie-primary);
    color: white;
    border-color: var(--hennie-primary);
    box-shadow: var(--hennie-shadow-hover);
}

.time-slot > * {
    position: relative;
    z-index: 2;
}

/* ====================================
   BOOKING SUMMARY
   ==================================== */
.booking-summary,
.booking-summary-content {
    background: linear-gradient(135deg, #d4af37 0%, #d4af37 100%);
    color: var(--hennie-text-primary);
    padding: 1.5rem;
    border-radius: var(--hennie-border-radius);
    margin: 1.5rem 0;


}

.booking-summary h4 {
    color: #d4af37;
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.booking-summary p {
    margin: 0.5rem 0;
    font-size: 0.875rem;
}

.booking-summary strong {
    color: var(--hennie-text-primary);
    font-weight: 600;
}

/* ====================================
   KNOPPEN
   ==================================== */
.booking-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.booking-buttons button {
    background: var(--hennie-primary);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: var(--hennie-border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--hennie-transition);
    box-shadow: var(--hennie-shadow);
    min-width: 150px;
    position: relative;
    overflow: hidden;
}

.booking-buttons button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.booking-buttons button:hover::before {
    left: 100%;
}

.booking-buttons button:hover {
    background: var(--hennie-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--hennie-shadow-hover);
}

.booking-buttons button:disabled {
    background: var(--hennie-secondary);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.booking-buttons button:disabled:hover {
    background: var(--hennie-secondary);
    transform: none;
}

/* Terug knoppen */
.booking-buttons button.back-btn {
    background: var(--hennie-bg-secondary);
    color: var(--hennie-text-primary);
    border: 2px solid var(--hennie-border-color);
}

.booking-buttons button.back-btn:hover {
    background: var(--hennie-border-color);
    border-color: var(--hennie-text-secondary);
}

/* ====================================
   FORMULIER STYLING
   ==================================== */
#booking-form {
    background: var(--hennie-bg-secondary);
    padding: 2rem;
    border-radius: var(--hennie-border-radius);
    border: 1px solid var(--hennie-border-color);
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--hennie-text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--hennie-border-color);
    border-radius: var(--hennie-border-radius);
    font-size: 1rem;
    transition: var(--hennie-transition);
    background: var(--hennie-bg-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--hennie-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ====================================
   SUCCESS STATE - MET BEBAS NEUE
   ==================================== */
/* Google Fonts worden geladen via wp_enqueue_style in hennie-booking.php */

#booking-success {
    background: linear-gradient(135deg, var(--hennie-primary) 0%, var(--hennie-primary-hover) 100%);
    color: white;
    padding: 2rem;
    border-radius: var(--hennie-border-radius);
    text-align: center;
    box-shadow: var(--hennie-shadow);
    display: none;
    margin-bottom: 2rem;
    font-family: 'Bebas Neue', cursive;
}

#booking-success h3 {
    margin: 0 0 1rem 0;
    font-size: 2.5rem;
    font-family: 'Bebas Neue', cursive;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

#booking-success p {
    margin: 0.5rem 0;
    opacity: 0.9;
    font-family: 'Bebas Neue', cursive;
    font-size: 1.3rem;
    letter-spacing: 1px;
}

#booking-success strong {
    font-family: 'Bebas Neue', cursive;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Nieuwe afspraak knop buiten het success blok */
#booking-success #new-booking {
    position: relative;
    margin-top: 2rem;
    background: var(--hennie-bg-primary);
    color: var(--hennie-primary);
    border: 2px solid var(--hennie-primary);
    font-family: 'Bebas Neue', cursive;
    letter-spacing: 1px;
    text-transform: uppercase;
}

#booking-success #new-booking:hover {
    background: var(--hennie-primary);
    color: white;
}

/* Alle tekst binnen booking-success in Bebas Neue */
#booking-success * {
    font-family: 'Bebas Neue', cursive !important;
}

/* ====================================
   LOADING STATES
   ==================================== */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    color: var(--hennie-text-secondary);
    font-style: italic;
}

.loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid var(--hennie-border-color);
    border-top: 2px solid var(--hennie-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ====================================
   SKELETON LOADERS
   Gebruik door extra class .hennie-skeleton-grid op een container
   die `.hennie-skel`-blokjes bevat, of gewoon `.hennie-skel` voor
   ad-hoc placeholders.
   ==================================== */
.hennie-skel {
    display: inline-block;
    background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 50%, #f3f4f6 100%);
    background-size: 200% 100%;
    border-radius: 6px;
    animation: hennie-skel 1.4s ease-in-out infinite;
}
@keyframes hennie-skel {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.hennie-skel-card {
    height: 200px; border-radius: var(--hennie-border-radius);
    background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 50%, #f3f4f6 100%);
    background-size: 200% 100%;
    animation: hennie-skel 1.4s ease-in-out infinite;
}

/* Submit/CTA-knop "bezig"-state met spinner */
#booking-form button[type="submit"][disabled],
#hennie-booking-widget button[disabled] {
    opacity: 0.7;
    cursor: progress;
    position: relative;
}
#booking-form button[type="submit"][disabled]::after {
    content: '';
    position: absolute; right: 14px; top: 50%; margin-top: -8px;
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
    .hennie-skel, .hennie-skel-card { animation: none; }
    #booking-form button[type="submit"][disabled]::after { animation: none; }
}

/* ====================================
   NO DATES AVAILABLE
   ==================================== */
.no-dates-available {
    text-align: center;
    padding: 3rem 1rem;
    background: var(--hennie-bg-secondary);
    border-radius: var(--hennie-border-radius);
    border: 2px dashed var(--hennie-border-color);
}

.no-dates-available p {
    color: var(--hennie-text-secondary);
    margin-bottom: 0.5rem;
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */
@media (max-width: 768px) {
    #hennie-booking-widget {
        padding: 1rem;
        margin: 0.5rem;
    }
    
    #hennie-booking-widget h2 {
        font-size: 1.5rem;
    }
    
    .booking-step h3 {
        font-size: 1.25rem;
    }
    
    .item-card {
        padding: 1rem;
        min-height: 180px;
    }
    
    .barber-avatar {
        width: 60px;
        height: 60px;
    }
    .barber-avatar .barber-mono { font-size: 30px; }
    
    .booking-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .booking-buttons button {
        width: 100%;
        max-width: 300px;
    }
    
    .time-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.5rem;
    }
    
    .price {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    #hennie-booking-widget {
        padding: 0.75rem;
    }
    
    .item-card {
        padding: 0.75rem;
        min-height: 160px;
    }
    
    .barber-avatar {
        width: 50px;
        height: 50px;
    }
    .barber-avatar .barber-mono { font-size: 26px; }
    
    .time-slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ====================================
   ELEMENTOR SPECIFIEKE AANPASSINGEN
   ==================================== */

/* Elementor widget container reset */
.elementor-widget-hennie_booking {
    /* Reset eventuele Elementor margins/paddings */
}

.elementor-widget-hennie_booking #hennie-booking-widget {
    /* Zorg dat de widget zijn eigen styling behoudt */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* Elementor responsive overwrites voorkomen */
.elementor-widget-hennie_booking .item-grid {
    display: grid !important;
}

/* ====================================
   UTILITY KLASSEN
   ==================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.hidden { display: none !important; }
.visible { display: block !important; }

/* ====================================
   CUSTOM ANIMATIONS
   ==================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.slide-in {
    animation: slideIn 0.5s ease-out;
}

/* ====================================
   PRINT STYLES
   ==================================== */
@media print {
    #hennie-booking-widget {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .booking-buttons {
        display: none;
    }
    
    .item-card:hover {
        transform: none;
        box-shadow: none;
    }
}

/* ====================================
   FORM STYLING - PROPER COLOR STATES
   ==================================== */

/* Form Container */
#booking-form {
    background: var(--hennie-bg-primary);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--hennie-border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

#booking-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--hennie-primary) 0%, var(--hennie-primary-hover) 100%);
    border-radius: 16px 16px 0 0;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.75rem;
    position: relative;
}

.form-group:last-child {
    margin-bottom: 0;
}

/* Labels */
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--hennie-text-primary);
    font-size: 0.95rem;
    letter-spacing: 0.025em;
    transition: color 0.3s ease;
}

/* Input Fields - DEFAULT GRAY STATE */
.form-group input,
.form-group textarea,
#booking-form input,
#booking-form textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #d1d5db; /* Default gray border */
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.5;
    background: #ffffff; /* Clean white background */
    color: var(--hennie-text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
}

/* Opmerkingen veld - TRANSPARENT met grijze rand */
.form-group textarea,
#booking-form textarea,
#customer-notes {
    background: rgba(255, 255, 255, 0.5) !important; /* Semi-transparent */
    border: 2px solid #d1d5db !important; /* Gray border */
    backdrop-filter: blur(5px);
}

/* Placeholder Styling */
.form-group input::placeholder,
.form-group textarea::placeholder,
#booking-form input::placeholder,
#booking-form textarea::placeholder {
    color: #9ca3af; /* Medium gray for placeholders */
    font-weight: 400;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* FOCUS States - Blue/Primary Color */
.form-group input:focus,
.form-group textarea:focus,
#booking-form input:focus,
#booking-form textarea:focus {
    outline: none;
    border-color: var(--hennie-primary) !important; /* Primary color on focus */
    background: #ffffff;
    box-shadow: 
        0 0 0 4px rgba(212, 175, 55, 0.1),
        0 4px 16px rgba(212, 175, 55, 0.15),
        0 1px 3px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

/* Focus state voor textarea - behoud transparantie */
.form-group textarea:focus,
#booking-form textarea:focus,
#customer-notes:focus {
    background: rgba(255, 255, 255, 0.8) !important; /* Slightly more opaque on focus */
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder,
#booking-form input:focus::placeholder,
#booking-form textarea:focus::placeholder {
    opacity: 0.6;
    transform: translateX(4px);
}

/* Hover States - Subtle gray change */
.form-group input:hover:not(:focus),
.form-group textarea:hover:not(:focus),
#booking-form input:hover:not(:focus),
#booking-form textarea:hover:not(:focus) {
    border-color: #9ca3af; /* Darker gray on hover */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* VALID State - GREEN when filled correctly */
.form-group input:valid:not(:placeholder-shown):not(:focus),
.form-group textarea:valid:not(:placeholder-shown):not(:focus),
#booking-form input:valid:not(:placeholder-shown):not(:focus),
#booking-form textarea:valid:not(:placeholder-shown):not(:focus) {
    border-color: #10b981 !important; /* Green border */
    background: #f0fdf4; /* Light green background */
}

/* Valid state voor textarea */
.form-group textarea:valid:not(:placeholder-shown):not(:focus),
#booking-form textarea:valid:not(:placeholder-shown):not(:focus),
#customer-notes:valid:not(:placeholder-shown):not(:focus) {
    background: rgba(240, 253, 244, 0.7) !important; /* Light green with transparency */
}

/* ERROR States - RED for invalid/required */
.form-group input:invalid:not(:focus):not(:placeholder-shown),
.form-group textarea:invalid:not(:focus):not(:placeholder-shown),
#booking-form input:invalid:not(:focus):not(:placeholder-shown),
#booking-form textarea:invalid:not(:focus):not(:placeholder-shown),
.form-group input.error,
.form-group textarea.error,
#booking-form input.error,
#booking-form textarea.error {
    border-color: #ef4444 !important; /* Red border for errors */
    background: #fef2f2; /* Light red background */
}

/* Error state voor textarea */
.form-group textarea:invalid:not(:focus):not(:placeholder-shown),
#booking-form textarea:invalid:not(:focus):not(:placeholder-shown),
#customer-notes:invalid:not(:focus):not(:placeholder-shown),
.form-group textarea.error,
#booking-form textarea.error,
#customer-notes.error {
    background: rgba(254, 242, 242, 0.7) !important; /* Light red with transparency */
}

/* Focus states for error fields */
.form-group input:invalid:focus,
.form-group textarea:invalid:focus,
#booking-form input:invalid:focus,
#booking-form textarea:invalid:focus,
.form-group input.error:focus,
.form-group textarea.error:focus {
    border-color: #ef4444 !important;
    box-shadow: 
        0 0 0 4px rgba(239, 68, 68, 0.1),
        0 4px 16px rgba(239, 68, 68, 0.15);
}

/* Textarea Specific */
.form-group textarea,
#booking-form textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
    font-family: inherit;
}

/* Required fields - red asterisk */
.form-group label.required::after {
    content: ' *';
    color: #ef4444;
    font-weight: 600;
}

/* Disabled States */
.form-group input:disabled,
.form-group textarea:disabled,
#booking-form input:disabled,
#booking-form textarea:disabled {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

/* Override any existing red styling that might be applied */
.form-group input,
.form-group textarea,
#customer-name,
#customer-email,
#customer-phone,
#customer-notes {
    border-color: #d1d5db !important; /* Force gray default */
}

/* Specific targeting for customer notes to ensure transparency */
#customer-notes {
    background: rgba(255, 255, 255, 0.5) !important;
    border: 2px solid #d1d5db !important;
    backdrop-filter: blur(5px) !important;
}

/* Form Success State - when form is successfully submitted */
.form-success .form-group input,
.form-success .form-group textarea {
    border-color: #10b981 !important;
    background: #f0fdf4;
}

.form-success .form-group textarea {
    background: rgba(240, 253, 244, 0.7) !important;
}

/* Loading State Animation */
.form-group.loading input,
.form-group.loading textarea {
    background: linear-gradient(90deg, #f8fafc 25%, #e2e8f0 50%, #f8fafc 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive Form Design */
@media (max-width: 768px) {
    #booking-form {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .form-group input,
    .form-group textarea,
    #booking-form input,
    #booking-form textarea {
        padding: 0.875rem 1rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    #booking-form {
        padding: 1.25rem;
    }
    
    .form-group input,
    .form-group textarea,
    #booking-form input,
    #booking-form textarea {
        border-radius: 10px;
    }
}
.appointment-slot .appointment.cancelled {
    display: none !important;
}

/* Alternatief: maak ze semi-transparant en onklikbaar (optioneel) */
.appointment-slot .appointment.cancelled.show-cancelled {
    opacity: 0.3;
    pointer-events: none;
    background-color: #f8f9fa !important;
    color: #6c757d !important;
    text-decoration: line-through;
}

/* ====================================
   WACHTLIJST (publiek boekingsformulier)
   ==================================== */
.no-times-available {
    text-align: center;
    padding: 1.25rem 1rem;
    background: var(--hennie-bg-secondary, #f7f5ee);
    border-radius: var(--hennie-border-radius, 12px);
    border: 1px solid var(--hennie-border-color, #ebe5d2);
}
.no-times-available p {
    margin: 0 0 0.5rem 0;
    color: var(--hennie-text-primary, #1f2937);
}
.no-times-available p small {
    color: var(--hennie-text-secondary, #6b7280);
}
.hennie-waitlist-btn {
    display: inline-block;
    background: transparent;
    color: var(--hennie-gold, #b8941f);
    border: 2px solid var(--hennie-gold, #b8941f);
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: all 0.2s;
    font-family: inherit;
}
.hennie-waitlist-btn:hover {
    background: var(--hennie-gold, #b8941f);
    color: #fff;
}
.hennie-waitlist-btn.primary {
    background: var(--hennie-gold, #b8941f);
    color: #fff;
}
.hennie-waitlist-btn.primary:hover {
    background: var(--hennie-gold-dark, #9a7c19);
    border-color: var(--hennie-gold-dark, #9a7c19);
}
#waitlist-form {
    text-align: left;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--hennie-border-color, #ebe5d2);
}
#waitlist-form input[type="text"],
#waitlist-form input[type="email"],
#waitlist-form input[type="tel"],
#waitlist-form input[type="time"] {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--hennie-border-color, #ebe5d2);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 0.95rem;
}
.hennie-waitlist-msg {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    min-height: 1.2em;
}
.hennie-waitlist-msg.error { color: #b91c1c; }
.hennie-waitlist-msg.success { color: #0f8a4f; }
.hennie-waitlist-success {
    background: #ecfdf5;
    color: #065f46;
    padding: 0.9rem 1rem;
    border-radius: 8px;
    border: 1px solid #a7f3d0;
    margin: 0;
}

/* Klantportaal-aanvraag (kleine link onderaan stap 1) */
.hennie-portal-link {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--hennie-border-color, #ebe5d2);
    text-align: center;
    font-size: 0.9rem;
    color: var(--hennie-text-secondary, #6b7280);
}
.hennie-portal-link a {
    color: var(--hennie-gold, #b8941f);
    font-weight: 600;
    text-decoration: underline;
}
.hennie-portal-link a:hover {
    color: var(--hennie-gold-dark, #9a7c19);
}
#portal-request-form {
    margin-top: 0.6rem;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}
#portal-request-form input[type="email"] {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--hennie-border-color, #ebe5d2);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 0.95rem;
}

/* WhatsApp opt-in checkbox in step 4 */
.hennie-wa-optin {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--hennie-border-radius);
    padding: 0.85rem 1rem;
    margin: 0.6rem 0 1rem;
    cursor: pointer;
    font-size: 0.92rem;
    line-height: 1.4;
    color: #14532d;
    transition: var(--hennie-transition);
}
.hennie-wa-optin:hover {
    border-color: #86efac;
    background: #ecfdf5;
}
/* Override met hogere specificity zodat de generieke
   #booking-form input regel (width:100%, padding:1rem) de checkbox
   niet meer opblaast tot een full-width vakje. */
#booking-form .hennie-wa-optin input[type="checkbox"],
.hennie-wa-optin input[type="checkbox"] {
    width: 18px !important;
    min-width: 18px;
    max-width: 18px;
    height: 18px !important;
    padding: 0 !important;
    margin: 2px 0 0 0 !important;
    flex-shrink: 0;
    accent-color: #16a34a;
    border: 1px solid #86efac !important;
    box-shadow: none !important;
    background: #fff !important;
    border-radius: 4px !important;
    appearance: auto;
}
.hennie-wa-optin span {
    display: block;
    flex: 1;
    min-width: 0;
}

/* ============================================================================
   VINTAGE BARBERSHOP OVERLAY  (alleen actief op de homepage / theme-frontend)
   ============================================================================
   Deze sectie geeft de booking-widget de Peaky-style look — display-font Rye,
   condensed-display Anton (Jukotha), gold/cream accenten — zonder de admin-
   dashboard styling te raken (die heeft eigen CSS in dashboard.css).
   ========================================================================== */

#hennie-booking-widget {
    /* Override de default kleuren met vintage palette zodra deze CSS laadt */
    --hennie-primary: #d4a93c;
    --hennie-primary-hover: #b8941f;
    --hennie-primary-light: #fff8e8;
    --hennie-bg-primary: #fffdf8;
    --hennie-bg-secondary: #f7f1e3;
    --hennie-border-color: #e6dfc8;
    --hennie-text-primary: #1a1a1a;
    --hennie-text-secondary: #6b6354;

    /* Vintage typografie */
    font-family: 'Mukta', 'Open Sans', -apple-system, BlinkMacSystemFont,
                 'Segoe UI', Roboto, sans-serif !important;
    background: #fffdf8 !important;
    border-radius: 14px !important;
    border: 1px solid rgba(212, 169, 60, .25) !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .06) !important;
    padding: 36px 32px !important;
}

/* Hoofdtitel "Maak een afspraak" */
#hennie-booking-widget h2 {
    font-family: 'Rye', 'Playfair Display', Georgia, serif !important;
    font-weight: 400 !important;
    font-size: clamp(28px, 4vw, 44px) !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: #1a1a1a !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    margin-bottom: 28px !important;
    text-shadow: 0 2px 0 rgba(0, 0, 0, .04);
}

/* Stap-koppen ("Stap 1: Kies je barber" enz.) */
#hennie-booking-widget .booking-step h3 {
    font-family: 'Rye', 'Playfair Display', Georgia, serif !important;
    font-weight: 400 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-size: clamp(20px, 2.5vw, 28px) !important;
    color: #1a1a1a !important;
    border-bottom: 1.5px solid rgba(212, 169, 60, .35) !important;
    padding-bottom: 14px !important;
    margin-bottom: 22px !important;
    position: relative;
}
#hennie-booking-widget .booking-step h3::before {
    content: "★";
    color: #d4a93c;
    margin-right: 10px;
    font-size: 0.7em;
    vertical-align: middle;
}

/* Sub-koppen ("Kies een datum", "Beschikbare tijden") */
#hennie-booking-widget #date-selection h4,
#hennie-booking-widget #time-selection h4 {
    font-family: 'Anton', 'Bebas Neue', Impact, 'Arial Narrow', sans-serif !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
    letter-spacing: .25em !important;
    color: #d4a93c !important;
    margin: 0 0 14px !important;
}

/* === BARBER + SERVICE KAARTEN === */
#hennie-booking-widget .barber-card,
#hennie-booking-widget .service-card {
    border: 1.5px solid rgba(0, 0, 0, .08) !important;
    background: #fffdf8 !important;
    border-radius: 12px !important;
    transition: all .25s ease !important;
}
#hennie-booking-widget .barber-card:hover,
#hennie-booking-widget .service-card:hover {
    border-color: #d4a93c !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 24px rgba(212, 169, 60, .18) !important;
}
#hennie-booking-widget .barber-card.selected,
#hennie-booking-widget .service-card.selected {
    background: linear-gradient(135deg, #fffdf8 0%, #fff8e8 100%) !important;
    border-color: #d4a93c !important;
    border-width: 2px !important;
    box-shadow: 0 8px 22px rgba(212, 169, 60, .22) !important;
}

/* Naam en details */
#hennie-booking-widget .barber-card h3,
#hennie-booking-widget .service-card h3 {
    font-family: 'Rye', 'Playfair Display', Georgia, serif !important;
    font-weight: 400 !important;
    color: #1a1a1a !important;
}

/* Prijs */
#hennie-booking-widget .price {
    font-family: 'Rye', 'Playfair Display', Georgia, serif !important;
    color: #d4a93c !important;
    text-shadow: none !important;
}

/* === KALENDER === */
/* Update kalenderkleuren naar vintage palette */
#hennie-booking-widget .hh-cal {
    background: #fffdf8 !important;
    border: 1px solid rgba(212, 169, 60, .2) !important;
    border-radius: 14px !important;
}
#hennie-booking-widget .hh-cal-title {
    font-family: 'Rye', 'Playfair Display', Georgia, serif !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: #1a1a1a !important;
}
#hennie-booking-widget .hh-cal-wd {
    font-family: 'Anton', 'Bebas Neue', Impact, 'Arial Narrow', sans-serif !important;
    font-weight: 400 !important;
    color: #6b6354 !important;
}
#hennie-booking-widget .hh-cal-nav {
    border-color: rgba(212, 169, 60, .3) !important;
    background: #fffdf8 !important;
    color: #1a1a1a !important;
}
#hennie-booking-widget .hh-cal-nav:hover:not(:disabled) {
    background: #d4a93c !important;
    border-color: #d4a93c !important;
    color: #fffdf8 !important;
}
#hennie-booking-widget .hh-cal-available {
    background: #f7f1e3 !important;
    color: #1a1a1a !important;
}
#hennie-booking-widget .hh-cal-available:hover {
    background: #fff !important;
    border-color: #d4a93c !important;
    box-shadow: 0 4px 10px rgba(212, 169, 60, .22) !important;
}
#hennie-booking-widget .hh-cal-available.selected {
    background: linear-gradient(135deg, #d4a93c 0%, #b8941f 100%) !important;
    box-shadow: 0 6px 16px rgba(212, 169, 60, .42) !important;
}
#hennie-booking-widget .hh-cal-today { border-color: #d4a93c !important; }
#hennie-booking-widget .hh-cal-dot { background: #d4a93c !important; }
#hennie-booking-widget .hh-cal-dot--off { background: #cbd5e1 !important; }
#hennie-booking-widget .hh-cal-legend {
    border-top-color: rgba(212, 169, 60, .25) !important;
    color: #6b6354 !important;
}

/* === TIJDSLOTS === */
#hennie-booking-widget .time-slot {
    background: #fffdf8 !important;
    border: 1.5px solid rgba(0, 0, 0, .08) !important;
    color: #1a1a1a !important;
    border-radius: 10px !important;
    font-family: 'Anton', 'Bebas Neue', Impact, 'Arial Narrow', sans-serif !important;
    letter-spacing: .05em !important;
}
#hennie-booking-widget .time-slot:hover {
    border-color: #d4a93c !important;
    background: #fff8e8 !important;
}
#hennie-booking-widget .time-slot.selected {
    background: linear-gradient(135deg, #d4a93c 0%, #b8941f 100%) !important;
    border-color: #d4a93c !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(212, 169, 60, .35) !important;
}
#hennie-booking-widget #time-selection {
    background: rgba(247, 241, 227, .5) !important;
    border-color: rgba(212, 169, 60, .2) !important;
}

/* === BOOKING SUMMARY === */
#hennie-booking-widget .booking-summary {
    background: linear-gradient(135deg, #fff8e8 0%, #f7f1e3 100%) !important;
    border: 1px solid rgba(212, 169, 60, .35) !important;
    border-left: 4px solid #d4a93c !important;
    border-radius: 12px !important;
}
#hennie-booking-widget .booking-summary h4 {
    font-family: 'Anton', 'Bebas Neue', Impact, 'Arial Narrow', sans-serif !important;
    color: #d4a93c !important;
    text-transform: uppercase !important;
    letter-spacing: .25em !important;
    font-weight: 400 !important;
}
#hennie-booking-widget .booking-summary p,
#hennie-booking-widget .booking-summary strong {
    color: #1a1a1a !important;
}
#hennie-booking-widget .booking-summary strong { color: #6b6354 !important; }

/* === FORMULIER (stap 4) === */
#hennie-booking-widget input[type="text"],
#hennie-booking-widget input[type="email"],
#hennie-booking-widget input[type="tel"],
#hennie-booking-widget textarea {
    border-radius: 10px !important;
    border: 1.5px solid rgba(0, 0, 0, .12) !important;
    background: #fffdf8 !important;
    font-family: 'Mukta', 'Open Sans', sans-serif !important;
    font-size: 15px !important;
    padding: 13px 16px !important;
    transition: all .2s ease !important;
}
#hennie-booking-widget input[type="text"]:focus,
#hennie-booking-widget input[type="email"]:focus,
#hennie-booking-widget input[type="tel"]:focus,
#hennie-booking-widget textarea:focus {
    border-color: #d4a93c !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(212, 169, 60, .15) !important;
    background: #fff !important;
}

/* === KNOPPEN (Doorgaan / Terug / Bevestigen) === */
#hennie-booking-widget button,
#hennie-booking-widget .booking-buttons button {
    font-family: 'Anton', 'Bebas Neue', Impact, 'Arial Narrow', sans-serif !important;
    text-transform: uppercase !important;
    letter-spacing: .2em !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    border-radius: 6px !important;
    padding: 14px 28px !important;
    transition: all .25s ease !important;
}
#hennie-booking-widget button:not(.secondary):not([disabled]) {
    background: #d4a93c !important;
    color: #1a1a1a !important;
    border: 1.5px solid #d4a93c !important;
}
#hennie-booking-widget button:not(.secondary):not([disabled]):hover {
    background: #b8941f !important;
    border-color: #b8941f !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(212, 169, 60, .35) !important;
}
#hennie-booking-widget button.secondary {
    background: transparent !important;
    color: #1a1a1a !important;
    border: 1.5px solid rgba(0, 0, 0, .25) !important;
}
#hennie-booking-widget button.secondary:hover {
    background: #1a1a1a !important;
    color: #fffdf8 !important;
    border-color: #1a1a1a !important;
}

/* === BOOKING SUCCESS === */
#hennie-booking-widget #booking-success {
    text-align: center;
    padding: 30px;
}
#hennie-booking-widget #booking-success h3 {
    font-family: 'Rye', 'Playfair Display', Georgia, serif !important;
    color: #d4a93c !important;
    font-size: 32px !important;
}

/* === PORTAL-LINK === */
#hennie-booking-widget .hennie-portal-link a,
#hennie-booking-widget #open-portal-request {
    color: #d4a93c !important;
    border-bottom: 1px dashed rgba(212, 169, 60, .5) !important;
    text-decoration: none !important;
}

/* === MOBILE OPTIMIZATIONS === */
@media (max-width: 720px) {
    #hennie-booking-widget {
        padding: 22px 16px !important;
        border-radius: 12px !important;
    }
    #hennie-booking-widget h2 {
        font-size: 26px !important;
        margin-bottom: 16px !important;
    }
    #hennie-booking-widget .booking-step h3 {
        font-size: 19px !important;
        padding-bottom: 10px !important;
        margin-bottom: 16px !important;
    }
    /* Knoppen full-width op mobile zodat ze met dikke vingers raakbaar zijn */
    #hennie-booking-widget .booking-buttons {
        flex-direction: column;
        gap: 10px !important;
    }
    #hennie-booking-widget .booking-buttons button {
        width: 100%;
        padding: 14px 18px !important;
        font-size: 12px !important;
        letter-spacing: .15em !important;
    }
    /* Inputs grotere tap-targets */
    #hennie-booking-widget input[type="text"],
    #hennie-booking-widget input[type="email"],
    #hennie-booking-widget input[type="tel"],
    #hennie-booking-widget textarea {
        font-size: 16px !important;        /* voorkomt iOS-zoom bij focus */
        padding: 14px 14px !important;
    }
    /* Kalender: iets compacter */
    #hennie-booking-widget .hh-cal { padding: 12px 8px !important; }
    #hennie-booking-widget .hh-cal-num { font-size: 13px !important; }
    /* Time-slots minimaal 44px hoog */
    #hennie-booking-widget .time-slot {
        min-height: 50px !important;
        font-size: 14px !important;
    }
    #hennie-booking-widget .booking-summary {
        padding: 14px 16px !important;
    }
    #hennie-booking-widget .booking-summary p { font-size: 13px !important; }
}

@media (max-width: 480px) {
    #hennie-booking-widget {
        padding: 18px 12px !important;
    }
    #hennie-booking-widget h2 {
        font-size: 22px !important;
    }
    #hennie-booking-widget .booking-step h3 {
        font-size: 17px !important;
    }
    #hennie-booking-widget #date-selection h4,
    #hennie-booking-widget #time-selection h4 {
        font-size: 11px !important;
        letter-spacing: .15em !important;
    }
}

/* ============================================================
   KALENDER (stap 3 — datum selectie)
   ============================================================ */
.hh-cal {
    background: var(--hennie-bg-primary, #fff);
    border: 1px solid var(--hennie-border-color, #e5e7eb);
    border-radius: 14px;
    padding: 18px 14px 14px;
    box-shadow: 0 2px 10px rgba(17, 24, 39, .04);
}

/* Header met maandtitel + nav */
.hh-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 0 4px;
}
.hh-cal-title {
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--hennie-text-primary, #111827);
}
.hh-cal-nav {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--hennie-border-color, #e5e7eb);
    border-radius: 10px;
    background: var(--hennie-bg-primary, #fff);
    color: var(--hennie-text-primary, #111827);
    cursor: pointer;
    transition: all .2s ease;
    padding: 0;
}
.hh-cal-nav:hover:not(:disabled) {
    background: var(--hennie-primary, #b8941f);
    color: #fff;
    border-color: var(--hennie-primary, #b8941f);
    transform: translateY(-1px);
}
.hh-cal-nav:disabled,
.hh-cal-nav[aria-disabled="true"] {
    opacity: .35;
    cursor: not-allowed;
}
.hh-cal-nav svg { width: 18px; height: 18px; }

/* Weekdag-rij */
.hh-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 6px;
    padding: 0 2px;
}
.hh-cal-wd {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--hennie-text-secondary, #6b7280);
    padding: 6px 0;
}

/* Dag-grid */
.hh-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.hh-cal-cell {
    position: relative;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-radius: 10px;
    border: 1.5px solid transparent;
    background: transparent;
    color: var(--hennie-text-secondary, #6b7280);
    font-weight: 600;
    font-size: 14px;
    user-select: none;
    transition: all .18s ease;
}
.hh-cal-num {
    font-size: 15px;
    line-height: 1;
}

/* Lege cellen (vorige/volgende maand padding) */
.hh-cal-empty {
    background: transparent;
    pointer-events: none;
}

/* Verleden dagen */
.hh-cal-past {
    color: #cbd5e1;
    pointer-events: none;
    text-decoration: line-through;
}

/* Niet beschikbaar (gesloten / vol) */
.hh-cal-unavailable {
    color: #cbd5e1;
    background: transparent;
    pointer-events: none;
}

/* Beschikbare dagen */
.hh-cal-available {
    background: var(--hennie-bg-secondary, #f9fafb);
    color: var(--hennie-text-primary, #111827);
    cursor: pointer;
    border-color: transparent;
}
.hh-cal-available:hover {
    background: #fff;
    border-color: var(--hennie-primary, #b8941f);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(184, 148, 31, .18);
}

/* Markering "vandaag" */
.hh-cal-today {
    border-color: var(--hennie-primary, #b8941f);
}
.hh-cal-today.hh-cal-available::after {
    content: "Vandaag";
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translate(-50%, 100%);
    font-size: 9px;
    color: var(--hennie-primary, #b8941f);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    pointer-events: none;
    opacity: 0;
}

/* Geselecteerd */
.hh-cal-available.selected {
    background: linear-gradient(135deg,
        var(--hennie-primary, #b8941f) 0%,
        #9a7c19 100%);
    color: #fff !important;
    border-color: var(--hennie-primary, #b8941f);
    box-shadow: 0 6px 16px rgba(184, 148, 31, .35);
    transform: none;
}
.hh-cal-available.selected .hh-cal-dot { background: #fff; }

/* Punt-indicator onder dagnummer voor "beschikbaar" visuele cue */
.hh-cal-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--hennie-primary, #b8941f);
    flex-shrink: 0;
}
.hh-cal-dot--off {
    background: #cbd5e1;
}

/* Focus-ring voor toetsenbord */
.hh-cal-available:focus-visible {
    outline: 2px solid var(--hennie-primary, #b8941f);
    outline-offset: 2px;
}

/* Legenda onder kalender */
.hh-cal-legend {
    display: flex;
    justify-content: center;
    gap: 18px;
    padding: 14px 4px 4px;
    margin-top: 10px;
    border-top: 1px solid var(--hennie-border-color, #e5e7eb);
    font-size: 12px;
    color: var(--hennie-text-secondary, #6b7280);
}
.hh-cal-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.hh-cal-legend .hh-cal-dot {
    width: 8px;
    height: 8px;
}

/* Mobile: kleinere kalender, blijft 7-koloms */
@media (max-width: 540px) {
    .hh-cal { padding: 14px 8px 10px; }
    .hh-cal-title { font-size: 16px; }
    .hh-cal-nav  { width: 34px; height: 34px; }
    .hh-cal-num  { font-size: 13px; }
    .hh-cal-cell { gap: 2px; }
    .hh-cal-wd   { font-size: 10px; }
    .hh-cal-legend { gap: 12px; font-size: 11px; }
}

/* ============================================================
   BOOKING WIDGET POLISH (stap-headers, summary, time slots)
   ============================================================ */
#hennie-booking-widget {
    /* Strakkere padding + nettere schaduw */
    box-shadow: 0 4px 24px rgba(17, 24, 39, .05);
    border-radius: 16px;
}

#hennie-booking-widget h2 {
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.booking-step h3 {
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: .03em;
    font-size: 18px !important;
    color: var(--hennie-text-primary, #111827) !important;
    border-bottom: 1px solid var(--hennie-border-color, #e5e7eb);
    padding-bottom: 12px;
    margin-bottom: 18px !important;
}

/* h4-koppen ("Selecteer een datum", "Beschikbare tijden", "Kies een tijd") */
#date-selection h4,
#time-selection h4 {
    font-size: 13px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--hennie-text-secondary, #6b7280) !important;
    margin: 0 0 12px !important;
}

/* Time-slots: strakker, uniformer, met goud-accent rij */
.time-slots-grid {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)) !important;
    gap: 8px !important;
}
.time-slot {
    border-radius: 10px !important;
    border-width: 1.5px !important;
    padding: 12px 8px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: .02em;
    min-height: 50px !important;
}
.time-slot:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 14px rgba(184, 148, 31, .18) !important;
}
.time-slot.selected {
    background: linear-gradient(135deg, var(--hennie-primary, #b8941f) 0%, #9a7c19 100%) !important;
    border-color: var(--hennie-primary, #b8941f) !important;
    box-shadow: 0 6px 16px rgba(184, 148, 31, .35) !important;
}

/* Booking summary cleaner */
.booking-summary {
    background: linear-gradient(135deg, #fdfbf4 0%, #faf6e8 100%) !important;
    color: var(--hennie-text-primary, #111827) !important;
    border: 1px solid #e8dfb8 !important;
    border-left: 4px solid var(--hennie-primary, #b8941f) !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
}
.booking-summary h4 {
    color: var(--hennie-primary, #b8941f) !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: .15em !important;
    margin: 0 0 10px !important;
    text-shadow: none !important;
}
.booking-summary p {
    font-size: 14px !important;
    margin: 4px 0 !important;
    color: var(--hennie-text-primary, #111827) !important;
}
.booking-summary strong {
    color: var(--hennie-text-secondary, #6b7280) !important;
    font-weight: 600 !important;
    margin-right: 4px;
}

/* Loading-states wat netter */
#hennie-booking-widget .loading {
    text-align: center;
    padding: 24px 14px;
    color: var(--hennie-text-secondary, #6b7280);
    font-size: 14px;
    font-weight: 500;
}

/* Booking buttons (Doorgaan / Terug) iets strakker */
.booking-buttons {
    margin-top: 22px !important;
    gap: 10px !important;
}
.booking-buttons button {
    border-radius: 10px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 12px 22px !important;
    font-size: 14px !important;
}

/* ============================================================================
   WEEK-AGENDA (stap 3 — kies een tijd, vintage stijl)
   ============================================================================
   7 kolommen op desktop (één per dag), valt automatisch terug naar verticale
   dag-lijst op tablet/mobile zodat het altijd leesbaar blijft.
   ========================================================================== */
#hennie-booking-widget .hh-week {
    background: #fffdf8;
    border: 1px solid rgba(212, 169, 60, .25);
    border-radius: 14px;
    padding: 20px 16px 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
}

/* === Bevestigingsbalk: 'Geselecteerd: ...' === */
#hennie-booking-widget .hh-week-selection {
    display: none;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #fff8e8 0%, #fef0d4 100%);
    border: 1.5px solid #d4a93c;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 14px;
    color: #1a1a1a;
    font-family: 'Anton', 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
    font-size: 14px;
    letter-spacing: .03em;
    box-shadow: 0 4px 12px rgba(212, 169, 60, .18);
    animation: hh-week-sel-pop .3s ease-out;
}
#hennie-booking-widget .hh-week-selection.is-active {
    display: flex;
}
#hennie-booking-widget .hh-week-selection-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #d4a93c 0%, #b8941f 100%);
    color: #fff;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(212, 169, 60, .4);
}
#hennie-booking-widget .hh-week-selection-label {
    color: #6b6354;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: .15em;
    flex-shrink: 0;
}
#hennie-booking-widget .hh-week-selection-value {
    color: #1a1a1a;
    font-weight: 700;
    font-size: 15px;
    flex: 1;
    min-width: 0;
}
@keyframes hh-week-sel-pop {
    0%   { opacity: 0; transform: translateY(-4px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Header */
#hennie-booking-widget .hh-week-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding: 0 4px;
}
#hennie-booking-widget .hh-week-title {
    font-family: 'Rye', 'Playfair Display', Georgia, serif !important;
    font-size: clamp(15px, 2vw, 22px) !important;
    color: #1a1a1a !important;
    text-align: center;
    flex: 1;
    min-width: 0;
    line-height: 1.15;
    text-transform: none !important;
    letter-spacing: 0 !important;
}
#hennie-booking-widget .hh-week-nav {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(212, 169, 60, .35);
    border-radius: 10px;
    background: #fffdf8;
    color: #1a1a1a;
    cursor: pointer;
    transition: all .2s ease;
    padding: 0;
    flex-shrink: 0;
}
#hennie-booking-widget .hh-week-nav:hover:not(:disabled):not([aria-disabled="true"]) {
    background: #d4a93c;
    color: #fff;
    border-color: #d4a93c;
    transform: translateY(-1px);
}
#hennie-booking-widget .hh-week-nav:disabled,
#hennie-booking-widget .hh-week-nav[aria-disabled="true"] {
    opacity: .35;
    cursor: not-allowed;
}
#hennie-booking-widget .hh-week-nav-arrow {
    display: inline-block;
    font-family: 'Rye', 'Playfair Display', Georgia, serif;
    font-size: 28px;
    line-height: 1;
    font-weight: 400;
    color: inherit;
    margin-top: -3px;
    pointer-events: none;
}

/* Dagen-grid */
#hennie-booking-widget .hh-week-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
}

/* Eén dag-kolom */
#hennie-booking-widget .hh-day {
    background: #f7f1e3;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 12px 8px 12px;
    display: flex;
    flex-direction: column;
    min-height: 240px;
    transition: border-color .2s ease;
}
#hennie-booking-widget .hh-day--today {
    background: linear-gradient(180deg, #fff8e8 0%, #f7f1e3 100%);
    border-color: #d4a93c;
}
#hennie-booking-widget .hh-day--closed {
    opacity: .6;
}
#hennie-booking-widget .hh-day--past {
    opacity: .35;
}
/* Geselecteerde dag: hele kolom oplichten */
#hennie-booking-widget .hh-day--selected {
    background: linear-gradient(180deg, #fff5d8 0%, #fef0d4 100%);
    border-color: #d4a93c;
    border-width: 2px;
    box-shadow: 0 6px 18px rgba(212, 169, 60, .25);
    transform: translateY(-1px);
}
#hennie-booking-widget .hh-day--selected .hh-day-num {
    color: #b8941f !important;
}
#hennie-booking-widget .hh-day--selected .hh-day-name,
#hennie-booking-widget .hh-day--selected .hh-day-mon {
    color: #b8941f !important;
}
#hennie-booking-widget .hh-day--selected .hh-day-head {
    border-bottom-color: rgba(212, 169, 60, .4);
}

/* Dag-header */
#hennie-booking-widget .hh-day-head {
    text-align: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    flex-shrink: 0;
}
#hennie-booking-widget .hh-day-name {
    font-family: 'Anton', 'Bebas Neue', Impact, 'Arial Narrow', sans-serif !important;
    font-size: 11px !important;
    letter-spacing: .18em !important;
    text-transform: uppercase !important;
    color: #6b6354 !important;
    margin-bottom: 4px;
    font-weight: 400 !important;
}
#hennie-booking-widget .hh-day-num {
    font-family: 'Rye', 'Playfair Display', Georgia, serif !important;
    font-size: 24px !important;
    color: #1a1a1a !important;
    line-height: 1;
    font-weight: 400 !important;
}
#hennie-booking-widget .hh-day-mon {
    font-family: 'Anton', 'Bebas Neue', Impact, 'Arial Narrow', sans-serif !important;
    font-size: 9px !important;
    letter-spacing: .2em !important;
    text-transform: uppercase !important;
    color: #6b6354 !important;
    margin-top: 4px;
    font-weight: 400 !important;
}
#hennie-booking-widget .hh-day--today .hh-day-num {
    color: #d4a93c !important;
}

/* Slot-stack */
#hennie-booking-widget .hh-day-slots {
    display: flex;
    flex-direction: column;
    gap: 5px;
    overflow-y: auto;
    max-height: 320px;
    padding-right: 2px;
    scrollbar-width: thin;
    scrollbar-color: #d4a93c transparent;
}
#hennie-booking-widget .hh-day-slots::-webkit-scrollbar { width: 4px; }
#hennie-booking-widget .hh-day-slots::-webkit-scrollbar-thumb { background: #d4a93c; border-radius: 2px; }

#hennie-booking-widget .hh-day-empty {
    text-align: center;
    font-family: 'Anton', 'Bebas Neue', Impact, 'Arial Narrow', sans-serif !important;
    font-size: 11px;
    color: rgba(0, 0, 0, .45);
    margin-top: 30px;
    letter-spacing: .15em;
    text-transform: uppercase;
}

/* Slot-knop */
#hennie-booking-widget .hh-slot {
    background: #fffdf8;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 6px;
    padding: 8px 4px;
    font-family: 'Anton', 'Bebas Neue', Impact, 'Arial Narrow', sans-serif !important;
    font-size: 13px !important;
    letter-spacing: .04em !important;
    color: #1a1a1a !important;
    cursor: pointer;
    transition: all .15s ease;
    width: 100%;
    text-align: center;
    line-height: 1.2;
    min-height: 34px;
    text-transform: none !important;
    font-weight: 400 !important;
}
#hennie-booking-widget .hh-slot:hover {
    background: #fff8e8;
    border-color: #d4a93c;
    transform: none !important;
    box-shadow: 0 2px 6px rgba(212, 169, 60, .2);
}
#hennie-booking-widget .hh-slot.selected {
    background: linear-gradient(135deg, #d4a93c 0%, #b8941f 100%) !important;
    color: #fff !important;
    border: 2px solid #b8941f !important;
    box-shadow: 0 6px 18px rgba(212, 169, 60, .55),
                0 0 0 3px rgba(212, 169, 60, .15) !important;
    font-weight: 700 !important;
    letter-spacing: .06em !important;
    transform: scale(1.05);
    z-index: 2;
    position: relative;
    animation: hh-slot-pulse 1.6s ease-in-out infinite;
}
/* Vinkje vóór de tijd in een geselecteerd slot */
#hennie-booking-widget .hh-slot.selected::before {
    content: '\2713';
    margin-right: 6px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
@keyframes hh-slot-pulse {
    0%, 100% {
        box-shadow: 0 6px 18px rgba(212, 169, 60, .55),
                    0 0 0 3px rgba(212, 169, 60, .15);
    }
    50% {
        box-shadow: 0 6px 22px rgba(212, 169, 60, .7),
                    0 0 0 6px rgba(212, 169, 60, .12);
    }
}
#hennie-booking-widget .hh-slot:focus-visible {
    outline: 2px solid #d4a93c;
    outline-offset: 2px;
}

/* Footer-info */
#hennie-booking-widget .hh-week-foot {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(212, 169, 60, .2);
    text-align: center;
}
#hennie-booking-widget .hh-week-foot-info {
    font-family: 'Anton', 'Bebas Neue', Impact, 'Arial Narrow', sans-serif !important;
    font-size: 11px;
    color: #6b6354;
    letter-spacing: .1em;
    text-transform: uppercase;
}

/* === MOBILE: schakel naar verticale dag-lijst === */
@media (max-width: 860px) {
    #hennie-booking-widget .hh-week-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    #hennie-booking-widget .hh-day {
        flex-direction: row;
        align-items: stretch;
        min-height: 0;
        padding: 12px 14px;
    }
    #hennie-booking-widget .hh-day-head {
        flex-shrink: 0;
        width: 72px;
        text-align: left;
        margin: 0;
        padding: 0 14px 0 0;
        border-bottom: 0;
        border-right: 1px solid rgba(0, 0, 0, .08);
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    #hennie-booking-widget .hh-day-num {
        font-size: 22px !important;
    }
    #hennie-booking-widget .hh-day-name,
    #hennie-booking-widget .hh-day-mon {
        text-align: left;
    }
    #hennie-booking-widget .hh-day-slots {
        flex-direction: row;
        flex-wrap: wrap;
        max-height: none;
        overflow: visible;
        gap: 6px;
        flex: 1;
        padding-left: 14px;
        padding-right: 0;
    }
    #hennie-booking-widget .hh-slot {
        width: auto;
        min-width: 64px;
        padding: 9px 12px;
        font-size: 13px !important;
    }
    #hennie-booking-widget .hh-day-empty {
        margin: 0;
        align-self: center;
        padding-left: 14px;
        flex: 1;
        text-align: left;
    }
}

@media (max-width: 480px) {
    #hennie-booking-widget .hh-week { padding: 14px 10px 12px; }
    #hennie-booking-widget .hh-week-header { gap: 8px; margin-bottom: 12px; }
    #hennie-booking-widget .hh-week-nav { width: 36px; height: 36px; }
    #hennie-booking-widget .hh-day-head { width: 60px; padding-right: 10px; }
    #hennie-booking-widget .hh-day-slots { padding-left: 10px; gap: 5px; }
    #hennie-booking-widget .hh-slot { min-width: 56px; padding: 8px 10px; font-size: 12px !important; }
}