/* =========================================================
   Elite Booking System — Frontend Public Styles
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }

.ebs-booking-wrapper {
    max-width: 820px;
    margin: 0 auto;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #1e293b;
}

/* ─── Steps Indicator ────────────────────────────────────── */
.ebs-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 4px;
}
.ebs-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: default;
}
.ebs-step__circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #94a3b8;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .25s;
}
.ebs-step--active   .ebs-step__circle { background: var(--ebs-brand, #2563eb); color: #fff; }
.ebs-step--complete .ebs-step__circle { background: #16a34a; color: #fff; }
.ebs-step__label { font-size: 11px; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; }
.ebs-step--active   .ebs-step__label { color: var(--ebs-brand, #2563eb); }
.ebs-step--complete .ebs-step__label { color: #16a34a; }
.ebs-step__line { flex: 1; height: 2px; background: #e2e8f0; min-width: 20px; max-width: 60px; }

/* ─── Panel ──────────────────────────────────────────────── */
.ebs-step-panel { animation: ebsFadeIn .25s ease; }
@keyframes ebsFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.ebs-panel-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #1e293b;
}
.ebs-panel-subtitle { color: #64748b; font-size: 15px; margin: 0 0 24px; }

/* ─── Service Cards ──────────────────────────────────────── */
.ebs-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}
.ebs-service-card {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all .2s;
    background: #fff;
    position: relative;
}
.ebs-service-card:hover { border-color: var(--ebs-brand, #2563eb); box-shadow: 0 4px 12px rgba(37,99,235,.12); transform: translateY(-2px); }
.ebs-service-card--selected { border-color: var(--ebs-brand, #2563eb); box-shadow: 0 4px 12px rgba(37,99,235,.15); }
.ebs-service-card__color { height: 5px; }
.ebs-service-card__body { padding: 16px; }
.ebs-service-card__name { font-weight: 700; font-size: 15px; margin: 0 0 6px; }
.ebs-service-card__desc { font-size: 13px; color: #64748b; margin: 0 0 10px; line-height: 1.5; }
.ebs-service-card__meta { display: flex; gap: 10px; flex-wrap: wrap; }
.ebs-meta-item { font-size: 12px; color: #64748b; font-weight: 600; }
.ebs-service-card__check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--ebs-brand, #2563eb);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(.7);
    transition: all .2s;
}
.ebs-service-card--selected .ebs-service-card__check { opacity: 1; transform: scale(1); }

/* ─── Date & Time ────────────────────────────────────────── */
.ebs-datetime-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 28px;
}
@media (max-width: 600px) { .ebs-datetime-grid { grid-template-columns: 1fr; } }

.ebs-field-label { display: block; font-size: 13px; font-weight: 700; color: #475569; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .5px; }
.ebs-date-input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    color: #1e293b;
    outline: none;
    transition: border-color .15s;
    background: #fff;
}
.ebs-date-input:focus { border-color: var(--ebs-brand, #2563eb); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.ebs-hint-text { font-size: 12px; color: #94a3b8; margin-top: 8px; }

/* ─── Time Slots ─────────────────────────────────────────── */
.ebs-slots-placeholder { text-align: center; padding: 32px 16px; background: #f8fafc; border-radius: 8px; border: 2px dashed #e2e8f0; }
.ebs-slots-placeholder__icon { font-size: 32px; display: block; margin-bottom: 8px; }
.ebs-slots-placeholder p { color: #94a3b8; font-size: 14px; margin: 0; }
.ebs-slots-loading { text-align: center; padding: 24px; color: #94a3b8; font-size: 14px; }

.ebs-slots-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-height: 300px; overflow-y: auto; padding: 4px; }
.ebs-slot-btn {
    padding: 10px 6px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    cursor: pointer;
    transition: all .15s;
    text-align: center;
}
.ebs-slot-btn:hover { border-color: var(--ebs-brand, #2563eb); color: var(--ebs-brand, #2563eb); }
.ebs-slot-btn--selected { background: var(--ebs-brand, #2563eb); border-color: var(--ebs-brand, #2563eb); color: #fff; }
.ebs-no-slots { text-align: center; padding: 24px; background: #fef2f2; border-radius: 8px; }
.ebs-no-slots p { color: #991b1b; font-size: 14px; margin: 0; font-weight: 600; }

/* ─── Customer Form ──────────────────────────────────────── */
.ebs-customer-form { margin-bottom: 28px; }
.ebs-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 600px) { .ebs-form-row { grid-template-columns: 1fr; } }
.ebs-form-group { display: flex; flex-direction: column; gap: 6px; }
.ebs-form-group--full { grid-column: span 2; }
.ebs-label { font-size: 13px; font-weight: 700; color: #475569; }
.ebs-input {
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    color: #1e293b;
    outline: none;
    transition: border-color .15s;
    background: #fff;
    width: 100%;
}
.ebs-input:focus { border-color: var(--ebs-brand, #2563eb); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.ebs-textarea {
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    color: #1e293b;
    outline: none;
    resize: vertical;
    width: 100%;
    font-family: inherit;
    transition: border-color .15s;
}
.ebs-textarea:focus { border-color: var(--ebs-brand, #2563eb); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }

/* ─── Summary Card ───────────────────────────────────────── */
.ebs-summary-card {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}
.ebs-summary-card__header { background: var(--ebs-brand, #2563eb); padding: 14px 20px; }
.ebs-summary-card__header h4 { color: #fff; margin: 0; font-size: 16px; font-weight: 700; }
.ebs-summary-card__body { padding: 4px 0; }
.ebs-summary-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; border-bottom: 1px solid #e2e8f0; }
.ebs-summary-row:last-child { border-bottom: none; }
.ebs-summary-label { font-size: 13px; color: #64748b; font-weight: 600; }
.ebs-summary-value { font-size: 14px; font-weight: 700; color: #1e293b; text-align: right; max-width: 60%; }
.ebs-summary-divider { height: 6px; background: #f1f5f9; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; }

/* ─── Nav ────────────────────────────────────────────────── */
.ebs-step-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; }
.ebs-privacy-note { font-size: 13px; color: #64748b; text-align: center; margin-bottom: 20px; padding: 10px; background: #f0fdf4; border-radius: 6px; }

/* ─── Buttons (Public) ───────────────────────────────────── */
.ebs-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all .2s;
    text-decoration: none;
    line-height: 1.4;
}
.ebs-btn--primary {
    background: var(--ebs-brand, #2563eb);
    color: #fff;
    border-color: var(--ebs-brand, #2563eb);
}
.ebs-btn--primary:hover { opacity: .9; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,235,.25); color: #fff; }
.ebs-btn--outline {
    background: #fff;
    color: #475569;
    border-color: #e2e8f0;
}
.ebs-btn--outline:hover { border-color: #94a3b8; color: #1e293b; }
.ebs-btn--lg { padding: 14px 32px; font-size: 16px; }
.ebs-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ─── Notice ─────────────────────────────────────────────── */
.ebs-public-notice {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
}
.ebs-public-notice--error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ─── Success Screen ─────────────────────────────────────── */
#ebs-success-screen { animation: ebsFadeIn .4s ease; }
.ebs-success-box {
    text-align: center;
    padding: 56px 32px;
    background: #f0fdf4;
    border-radius: 16px;
    border: 2px solid #bbf7d0;
}
.ebs-success-icon { font-size: 56px; margin-bottom: 16px; }
.ebs-success-box h3 { font-size: 26px; font-weight: 800; color: #166534; margin: 0 0 12px; }
.ebs-success-ref { font-size: 15px; color: #475569; margin: 0 0 10px; }
.ebs-success-ref strong { color: #1e293b; font-size: 18px; }
.ebs-success-msg { font-size: 14px; color: #475569; margin: 0 0 28px; line-height: 1.7; }
.ebs-success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
