/* Yogarazuma Booking Form — clean CSS, no framework */

[x-cloak] { display: none !important; }

/* ── Container ──────────────────────────────────────────────────────────── */
.yr-booking-form {
    max-width: 480px;
    margin: 0 auto;
    font-family: inherit;
    color: inherit;
    line-height: 1.5;
}

/* ── Steps ──────────────────────────────────────────────────────────────── */
.yr-step {
    animation: yr-fadeIn 0.25s ease;
}

@keyframes yr-fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.yr-step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.yr-step-title {
    margin: 0 0 16px;
    font-size: 1.2rem;
    font-weight: 600;
}

.yr-step-header .yr-step-title {
    margin-bottom: 0;
}

/* ── Back button ────────────────────────────────────────────────────────── */
.yr-back {
    background: none;
    border: none;
    padding: 6px 0;
    cursor: pointer;
    font-size: 0.9rem;
    color: #555;
    white-space: nowrap;
    flex-shrink: 0;
}

.yr-back:hover { color: #000; }

/* ── Services grid ──────────────────────────────────────────────────────── */
.yr-services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.yr-service-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s, background 0.15s;
    gap: 4px;
}

.yr-service-card:hover { border-color: #999; }
.yr-service-card.yr-active { border-color: #2563eb; background: #eff6ff; }

.yr-service-name { font-weight: 600; font-size: 1rem; }
.yr-service-meta { display: flex; gap: 12px; font-size: 0.85rem; color: #555; }

/* ── Calendar ───────────────────────────────────────────────────────────── */
.yr-calendar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.yr-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 52px;
    padding: 8px 6px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    flex-shrink: 0;
}

.yr-day:hover:not(.yr-disabled) { border-color: #999; }
.yr-day.yr-active  { border-color: #2563eb; background: #eff6ff; }
.yr-day.yr-disabled { opacity: 0.35; cursor: not-allowed; }

.yr-weekday { font-size: 0.72rem; text-transform: uppercase; color: #666; }
.yr-day-num { font-size: 1.1rem; font-weight: 700; line-height: 1.2; }
.yr-month   { font-size: 0.72rem; color: #666; }

/* ── Slots ──────────────────────────────────────────────────────────────── */
.yr-slots { margin-top: 16px; }

.yr-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.yr-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 8px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: border-color 0.15s, background 0.15s;
}

.yr-slot:hover { border-color: #999; }
.yr-slot.yr-active { border-color: #2563eb; background: #eff6ff; }

.yr-spots-left {
    font-size: 0.7rem;
    color: #dc2626;
    font-weight: 400;
    margin-top: 2px;
}

/* ── Next / primary button ──────────────────────────────────────────────── */
.yr-next-btn {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 14px 20px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
}

.yr-next-btn:hover   { background: #1d4ed8; }
.yr-next-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Loading / empty states ─────────────────────────────────────────────── */
.yr-loading,
.yr-empty {
    text-align: center;
    padding: 20px;
    color: #888;
    font-size: 0.9rem;
}

/* ── Telegram auth ──────────────────────────────────────────────────────── */
.yr-tg-auth {
    text-align: center;
    padding: 24px 0;
}

.yr-tg-prompt {
    margin-bottom: 16px;
    color: #555;
}

/* ── Client form ────────────────────────────────────────────────────────── */
.yr-client-form { display: flex; flex-direction: column; gap: 14px; }

.yr-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.yr-field { display: flex; flex-direction: column; gap: 4px; }

.yr-field label,
.yr-field-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
}

.yr-field input[type="text"],
.yr-field input[type="tel"],
.yr-field textarea {
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.15s;
    width: 100%;
    box-sizing: border-box;
}

.yr-field input:focus,
.yr-field textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.yr-radio-group { display: flex; flex-wrap: wrap; gap: 12px; }
.yr-radio-group label { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 0.9rem; }

/* ── Discount options ───────────────────────────────────────────────────── */
.yr-discount-options { display: flex; flex-direction: column; gap: 10px; }

.yr-radio-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s;
}

.yr-radio-card:has(input:checked) { border-color: #2563eb; background: #eff6ff; }

.yr-radio-card > input[type="radio"] { margin-right: 8px; }

.yr-promo-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
}

.yr-promo-input {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}

.yr-promo-ok  { color: #16a34a; font-size: 0.85rem; }
.yr-promo-err { color: #dc2626; font-size: 0.85rem; }

/* ── Total ──────────────────────────────────────────────────────────────── */
.yr-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 12px 0;
    border-top: 1px solid #e0e0e0;
    font-size: 1rem;
}

.yr-total-label  { color: #555; }
.yr-total-price  { font-size: 1.3rem; font-weight: 700; }

/* ── Payment step ───────────────────────────────────────────────────────── */
.yr-payment-widget { padding: 8px 0; }

.yr-payment-note {
    font-size: 0.85rem;
    color: #777;
    text-align: center;
    margin-top: 12px;
}

/* ── Success ────────────────────────────────────────────────────────────── */
.yr-success {
    text-align: center;
    padding: 24px 16px;
}

.yr-success-icon { font-size: 2.5rem; margin-bottom: 12px; }

.yr-success h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
}

.yr-success p {
    margin: 6px 0;
    color: #444;
}

.yr-success-note { font-size: 0.85rem; color: #777; }

.yr-cabinet-link {
    display: inline-block;
    margin-top: 16px;
    padding: 12px 24px;
    background: #2563eb;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.15s;
}

.yr-cabinet-link:hover { background: #1d4ed8; }

/* ── Error toast ────────────────────────────────────────────────────────── */
.yr-error-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #dc2626;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    max-width: 380px;
    width: calc(100% - 40px);
    text-align: center;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* ── Lock timer ─────────────────────────────────────────────────────────── */
.yr-lock-timer {
    margin-top: 12px;
    padding: 8px 12px;
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #92400e;
    text-align: center;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .yr-booking-form { padding: 0 4px; }

    .yr-service-card { padding: 12px; }

    .yr-next-btn { padding: 13px 16px; font-size: 0.95rem; }

    .yr-slots-grid { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
}

/* ── Slot groups (morning / afternoon / evening) ─────────────────────── */
.yr-slot-group { margin-bottom: 16px; }
.yr-slot-group-label {
    font-size: 14px;
    color: #9C7B4A;
    font-weight: 500;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #f0e8d8;
}

/* ── Auth landing ──────────────────────────────────────────────────────── */
.yr-auth-landing {
    max-width: 480px;
    margin: 40px auto;
    padding: 32px 24px;
    text-align: center;
    font-family: inherit;
}
.yr-auth-landing h2 { margin-bottom: 12px; }
.yr-auth-error  { color: #a00; padding: 16px; background: #fff5f5; border-radius: 8px; }
.yr-auth-prompt { padding: 16px; }
.yr-auth-success { padding: 24px; background: #f0fff4; border-radius: 8px; }
.yr-success-icon { font-size: 48px; margin-bottom: 12px; }
.yr-cabinet-link {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 20px;
    background: #9C7B4A;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
}
