:root {
    --primary: #0F6E56;
    --primary-light: #1D9E75;
    --dark: #0A0A0A;
    --light: #F9FAFB;
    --border: rgba(0, 0, 0, 0.08);
    --text: #111827;
    --text-muted: #4B5563;
    --white: #ffffff;
    --danger: #B91C1C;
    --success: #0F6E56;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--light);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.sora { font-family: 'Sora', sans-serif; }

.booking-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
}

.back-link {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}
.back-link:hover { text-decoration: underline; }

.booking-logo {
    height: 56px;
    width: auto;
    max-width: min(280px, 85vw);
    object-fit: contain;
}

.booking-main {
    flex: 1;
    max-width: 560px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    width: 100%;
}

.booking-main h1 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

.lead {
    color: var(--text-muted);
    margin-bottom: 28px;
    font-size: 1.05rem;
}

.api-warning {
    background: #FEF3C7;
    border: 1px solid #F59E0B;
    color: #92400E;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 14px;
}
.api-warning code { font-size: 12px; word-break: break-all; }
.hidden { display: none !important; }

.panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.field-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--dark);
}

.optional { font-weight: 400; color: var(--text-muted); }

.date-input, .text-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
}
.text-input:focus, .date-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 110, 86, 0.15);
}

.hint {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.slots-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.slot-btn {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    font-family: inherit;
}
.slot-btn:hover {
    border-color: var(--primary);
    background: rgba(15, 110, 86, 0.06);
}
.slot-btn.selected {
    border-color: var(--primary);
    background: rgba(15, 110, 86, 0.12);
    color: var(--primary);
}

.form-panel .text-input { margin-bottom: 16px; }

.submit-btn {
    width: 100%;
    margin-top: 8px;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    font-family: inherit;
}
.submit-btn:hover { background: var(--primary-light); }
.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-status {
    margin-top: 16px;
    font-size: 14px;
    min-height: 1.5em;
}
.form-status.error { color: var(--danger); }
.form-status.success { color: var(--success); font-weight: 600; }

.confirmation-panel {
    text-align: center;
    padding: 28px 22px 24px;
}
.confirmation-panel:focus { outline: none; }
.confirmation-check {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: rgba(15, 110, 86, 0.12);
    color: var(--primary);
    font-size: 28px;
    line-height: 56px;
    font-weight: 700;
}
.confirmation-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark);
}
.confirmation-lead {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 22px;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}
.confirmation-details {
    text-align: left;
    max-width: 20rem;
    margin: 0 auto 20px;
    padding: 16px 18px;
    background: var(--light);
    border-radius: 12px;
    border: 1px solid var(--border);
}
.confirmation-details > div {
    display: grid;
    grid-template-columns: 5rem 1fr;
    gap: 8px 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
}
.confirmation-details > div:last-child { border-bottom: none; }
.confirmation-details dt {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding-top: 2px;
}
.confirmation-details dd {
    font-weight: 600;
    color: var(--dark);
}
.confirmation-note {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    max-width: 24rem;
    margin-left: auto;
    margin-right: auto;
}
.confirmation-back {
    margin-top: 14px;
}
.confirmation-back .back-link {
    display: inline;
    margin-bottom: 0;
}

.booking-footer {
    padding: 24px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

@media (max-width: 480px) {
    .booking-main { padding: 28px 16px 60px; }
}
