@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

/* 
 * Einfalt Booking - Clean Rokta Aesthetic 
 */

:root {
    --eb-primary: #3b302a;
    --eb-primary-hover: #5a4b41;
    --eb-accent: #5a4b41;
    --eb-text-dark: #3b302a;
    --eb-text-light: #6a5e55;
    --eb-bg-light: #faf7f4;
    --eb-border-color: #e8e2dc;
    --eb-radius: 12px;
}

/* Hide default theme page header to make the booking flow standalone */
.page-id-13 .entry-header, 
.page-id-13 header.wp-block-template-part, 
.page-id-13 h1.wp-block-post-title {
    display: none !important;
}

.eb-booking-wrapper {
    position: relative;
    padding: 3rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
}

.eb-glass-container {
    background: #ffffff;
    border: 1px solid var(--eb-border-color);
    border-radius: var(--eb-radius);
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(59, 48, 42, 0.05);
    max-width: 550px;
    width: 100%;
    color: var(--eb-text-dark);
    position: relative;
    z-index: 10;
}

.eb-booking-header h2 {
    margin-top: 0;
    text-align: center;
    font-weight: 600;
    font-size: 1.8rem;
    color: var(--eb-text-dark);
    margin-bottom: 2rem;
    letter-spacing: -0.5px;
}

.eb-progress-bar {
    display: flex;
    justify-content: space-between;
    margin: 0 0 3rem 0;
    position: relative;
}

.eb-progress-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--eb-border-color);
    z-index: 1;
}

.eb-progress-step {
    background: #ffffff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 2;
    border: 1px solid var(--eb-border-color);
    color: var(--eb-text-light);
    transition: all 0.3s ease;
}

.eb-progress-step.active {
    background: var(--eb-primary);
    color: #ffffff;
    border-color: var(--eb-primary);
}

.eb-step-content {
    animation: fadeIn 0.3s ease forwards;
}

.eb-step-content h3 {
    font-weight: 500;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--eb-primary);
}

.eb-step-content p {
    color: var(--eb-text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.eb-input {
    width: 100%;
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
    border: 1px solid var(--eb-border-color);
    border-radius: 8px;
    background: var(--eb-bg-light);
    color: var(--eb-text-dark);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

.eb-input:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--eb-primary);
    box-shadow: 0 0 0 3px rgba(90, 75, 65, 0.1);
}

.eb-input::placeholder {
    color: #8c7e75;
}

.eb-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.eb-btn {
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    text-align: center;
}

.eb-btn-primary {
    background: var(--eb-primary);
    color: #ffffff;
}

.eb-btn-primary:hover {
    background: var(--eb-primary-hover);
}

.eb-btn-secondary {
    background: #ffffff;
    color: var(--eb-text-dark);
    border: 1px solid var(--eb-border-color);
}

.eb-btn-secondary:hover {
    background: var(--eb-bg-light);
    border-color: var(--eb-text-light);
}

.eb-btn-text {
    background: transparent;
    color: var(--eb-text-light);
    box-shadow: none;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.eb-btn-text:hover {
    color: var(--eb-primary);
    background: transparent;
}

/* Loader */
.eb-loader {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    border-radius: var(--eb-radius);
}

.eb-spinner {
    width: 32px;
    height: 32px;
    border: 2px solid var(--eb-border-color);
    border-top-color: var(--eb-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { 
    to { transform: rotate(360deg); } 
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Accordion Styles (Step 2) */
.eb-accordion-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.eb-accordion {
    border: 1px solid var(--eb-border-color);
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}

.eb-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--eb-text-dark);
    user-select: none;
    transition: background 0.2s ease;
}

.eb-accordion-header:hover {
    background: var(--eb-bg-light);
}

.eb-accordion-header.active {
    border-bottom: 1px solid var(--eb-border-color);
}

.eb-accordion-icon {
    transition: transform 0.2s ease;
}

.eb-accordion-header.active .eb-accordion-icon {
    transform: rotate(180deg);
}

.eb-accordion-body {
    background: var(--eb-bg-light);
    padding: 0;
}

.eb-service-row {
    display: block;
    cursor: pointer;
    border-bottom: 1px solid var(--eb-border-color);
}

.eb-service-row:last-child {
    border-bottom: none;
}

.eb-service-row input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.eb-service-row-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    transition: background 0.2s ease;
}

.eb-service-row:hover .eb-service-row-inner {
    background: #f1ede9;
}

.eb-service-title {
    font-weight: 500;
    color: var(--eb-text-dark);
}

.eb-service-meta {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.eb-service-price {
    font-weight: 600;
    color: var(--eb-text-dark);
}

.eb-service-duration {
    font-size: 0.8rem;
    color: var(--eb-text-light);
}

.eb-service-row input[type="radio"]:checked + .eb-service-row-inner {
    background: #e9f2ee;
    border-left: 4px solid #2e7d5c;
}

.eb-service-row input[type="radio"]:checked + .eb-service-row-inner .eb-service-title {
    color: #2e7d5c;
    font-weight: 600;
}

/* Week Navigator */
.eb-week-navigator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--eb-bg-light);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid var(--eb-border-color);
}

.eb-current-week {
    text-align: center;
}

.eb-current-week strong {
    display: block;
    font-size: 1.1rem;
    color: var(--eb-text-dark);
}

.eb-current-week span {
    font-size: 0.85rem;
    color: var(--eb-text-light);
}

.eb-btn-icon {
    background: #ffffff;
    border: 1px solid var(--eb-border-color);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--eb-text-dark);
}

.eb-btn-icon:hover {
    background: var(--eb-primary);
    color: #ffffff;
    border-color: var(--eb-primary);
}

/* Staff Rows */
.eb-staff-row {
    background: #ffffff;
    border: 1px solid var(--eb-border-color);
    border-radius: 12px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.eb-staff-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--eb-border-color);
    background: var(--eb-bg-light);
}

.eb-staff-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
}

.eb-staff-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--eb-border-color);
    margin-right: 1rem;
}

.eb-staff-info h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--eb-text-dark);
}

/* Week Grid */
.eb-week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    min-height: 200px;
}

.eb-day-column {
    border-right: 1px solid var(--eb-border-color);
    display: flex;
    flex-direction: column;
}

.eb-day-column:last-child {
    border-right: none;
}

.eb-day-header {
    text-align: center;
    padding: 0.8rem 0.5rem;
    border-bottom: 1px solid var(--eb-border-color);
    background: #ffffff;
}

.eb-day-header strong {
    display: block;
    font-size: 0.9rem;
    color: var(--eb-text-dark);
}

.eb-day-header span {
    font-size: 0.75rem;
    color: var(--eb-text-light);
}

.eb-time-slots-list {
    padding: 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    background: var(--eb-bg-light);
    flex: 1;
}

.eb-time-pill {
    cursor: pointer;
    display: block;
    width: 100%;
}

.eb-time-pill input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.eb-time-pill span {
    display: block;
    text-align: center;
    padding: 0.4rem 0;
    background: #e9f2ee;
    color: #2e7d5c;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.eb-time-pill:hover span {
    background: #d4e8dd;
}

.eb-time-pill input[type="radio"]:checked + span {
    background: #2e7d5c;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(46, 125, 92, 0.3);
}

.eb-no-slots {
    color: var(--eb-border-color);
    font-size: 1.2rem;
}
