/*
 * Public reservation pages (booking form, confirmation, status) in the look
 * of the restaurant menus: Poppins, cover-photo hero, white rectangular hero
 * buttons, orange→red gradient for the main actions. Mobile first.
 */
:root {
    --rz-grad: linear-gradient(to right, #ff723b, #e54750);
    --rz-accent: #f0603f;
    --rz-ring: rgba(255, 114, 59, .18);
    --rz-text: #222831;
    --rz-soft: #4b5563;
    --rz-muted: #6b7280;
    --rz-faint: #636a75;
    --rz-line: #e3e4e8;
    --rz-bg: #f5f5f6;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body.rz {
    margin: 0;
    font-family: "Poppins", Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: var(--rz-text);
    background: var(--rz-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.rz a { color: #c2410c; }

.rz-skip { position: absolute; left: -9999px; top: 8px; }
.rz-skip:focus { left: 12px; z-index: 20; background: #fff; color: var(--rz-text); padding: 8px 12px; border-radius: 8px; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }
.rz-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.rz-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Hero ---------- */
.rz-hero { position: relative; overflow: hidden; color: #fff; background: #3a3a3a; }
.rz-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rz-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .32) 45%, rgba(0, 0, 0, .72) 100%); }
.rz-hero-in { position: relative; max-width: 720px; margin: 0 auto; padding: 14px 16px 62px; }
.rz-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rz-btn-hero {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 10px 14px; border-radius: 3px;
    background: #fff; color: #444 !important; text-decoration: none;
    font-size: 13.5px; font-weight: 500; line-height: 1;
    box-shadow: 0 0 15px rgba(0, 0, 0, .2);
}
.rz-btn-hero:hover { background: #f7f7f7; }
.rz-lang { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.rz-lang a { padding: 6px 11px; border-radius: 999px; color: #fff !important; text-decoration: none; font-size: 12px; font-weight: 600; letter-spacing: .03em; }
.rz-lang a.is-on { background: #fff; color: var(--rz-text) !important; }
.rz-hero-body { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.rz-avatar { flex: none; width: 60px; height: 60px; border-radius: 50%; object-fit: cover; background: #fff; border: 3px solid #fff; }
.rz-hero-text { min-width: 0; }
.rz-hero-name { margin: 0; font-size: 14px; font-weight: 500; opacity: .92; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rz-hero-title { margin: 2px 0 0; font-size: 26px; font-weight: 700; line-height: 1.2; }

/* ---------- Card ---------- */
.rz-main { position: relative; z-index: 1; max-width: 720px; margin: -44px auto 0; padding: 0 16px 20px; }
.rz-card { background: #fff; border-radius: 16px; padding: 20px 18px 24px; box-shadow: 0 10px 30px rgba(17, 24, 39, .08), 0 1px 3px rgba(17, 24, 39, .06); }

.rz-steps { list-style: none; display: flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 0; font-size: 13.5px; font-weight: 500; color: #636a75; }
.rz-steps li { display: flex; align-items: center; gap: 8px; }
.rz-steps li + li::before { content: "\2192"; color: #c5c8ce; font-size: 16px; margin-right: 2px; }
.rz-step-n { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: #f0f1f3; color: var(--rz-muted); font-size: 13px; font-weight: 600; }
.rz-steps .is-current { color: var(--rz-text); font-weight: 600; }
.rz-steps .is-current .rz-step-n { background: var(--rz-grad); color: #fff; }
.rz-steps .is-done .rz-step-n { background: #e7f7ee; color: #11743f; }

.rz-alert { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.rz-alert-error { background: #fdecec; color: #9b1c1c; border: 1px solid #f8c9c9; }
.rz-alert-ok { background: #e7f7ee; color: #11743f; border: 1px solid #bfe8d0; }

.rz-info { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 6px; padding: 12px 14px; border-radius: 12px; background: #f4f8ff; border: 1px solid #dbe6fb; color: #264b8a; font-size: 14px; }
.rz-info svg { flex: none; margin-top: 2px; }
.rz-info p { margin: 0; white-space: pre-line; }
.rz-info-warn { background: #fff8ec; border-color: #fde3b5; color: #5b4a2b; margin-top: 14px; }

/* ---------- Form ---------- */
.rz-sec { padding: 18px 0 4px; border-top: 1px dashed #e6e7ea; }
.rz-sec:first-of-type { border-top: 0; padding-top: 8px; }
.rz-h { margin: 0 0 14px; font-size: 16.5px; font-weight: 600; color: var(--rz-text); }
.rz-field { margin-bottom: 16px; }
.rz-label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 500; color: #374151; }
.rz-label-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.rz-label-row .rz-label { margin: 0; }
.rz-req { color: #e54750; font-weight: 600; }
.rz-opt { margin-left: 4px; font-size: 12.5px; font-weight: 400; color: var(--rz-faint); }
.rz-hint { margin: 6px 0 0; font-size: 12.5px; color: #636a75; }

.rz-input, .rz-select select {
    display: block; width: 100%; height: 50px; padding: 0 14px;
    border: 1px solid #d9dce1; border-radius: 10px; background: #fff;
    font: 400 16px/1.4 "Poppins", Helvetica, Arial, sans-serif; color: var(--rz-text);
    transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none; appearance: none;
}
.rz-input::placeholder { color: #a6abb3; }
.rz-input:focus, .rz-select select:focus { outline: none; border-color: #ff8a5c; box-shadow: 0 0 0 3px var(--rz-ring); }
.rz-textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
.rz-select { position: relative; }
.rz-select select { padding-right: 40px; cursor: pointer; }
.rz-select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border: solid #6b7280; border-width: 0 2px 2px 0; transform: rotate(45deg); pointer-events: none; }
.rz-grid { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
.rz-form .iti { display: block; width: 100%; }

/* Dates */
.rz-days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -2px; scroll-snap-type: x proximity; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.rz-day { position: relative; flex: 0 0 auto; scroll-snap-align: start; }
.rz-day input, .rz-time input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.rz-day label {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-width: 66px; height: 78px; padding: 0 8px; border: 1px solid var(--rz-line); border-radius: 12px; background: #fff;
    cursor: pointer; user-select: none; transition: border-color .15s, box-shadow .15s, background .15s;
}
.rz-day-dow { font-size: 12px; font-weight: 500; color: var(--rz-muted); white-space: nowrap; }
.rz-day-num { font-size: 21px; font-weight: 700; line-height: 1.15; color: var(--rz-text); }
.rz-day-mon { font-size: 11.5px; font-weight: 500; color: #636a75; }
.rz-day label:hover { border-color: #ffb199; }
.rz-day input:checked + label { background: var(--rz-grad); border-color: transparent; box-shadow: 0 6px 14px rgba(229, 71, 80, .25); }
.rz-day input:checked + label span { color: #fff; }
.rz-day input:focus-visible + label, .rz-time input:focus-visible + label { outline: 3px solid rgba(255, 114, 59, .5); outline-offset: 2px; }
.rz-day-nav { display: none; gap: 6px; }
.rz-arrow { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--rz-line); border-radius: 50%; background: #fff; color: #4b5563; cursor: pointer; }
.rz-arrow:hover { border-color: #ffb199; color: var(--rz-accent); }

/* Times */
.rz-times { min-height: 48px; }
.rz-time-group + .rz-time-group { margin-top: 14px; }
.rz-period { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #636a75; }
.rz-time-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.rz-time { position: relative; }
.rz-time label {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 44px; padding: 4px 6px; border: 1px solid var(--rz-line); border-radius: 999px; background: #fff;
    font-size: 15px; font-weight: 600; color: var(--rz-text); line-height: 1.15; cursor: pointer; user-select: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.rz-time label:hover { border-color: #ffb199; }
.rz-time input:checked + label { background: var(--rz-grad); border-color: transparent; color: #fff; box-shadow: 0 6px 14px rgba(229, 71, 80, .25); }
.rz-time input:disabled + label { background: #f6f6f7; border-color: #ededf0; color: #b3b7be; cursor: not-allowed; }
.rz-full { display: block; font-size: 10.5px; font-weight: 500; color: #b3b7be; }
.rz-loading { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; background: #fafafa; border: 1px solid #f0f1f3; color: var(--rz-muted); font-size: 14px; }
.rz-spin { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid #ffd2c0; border-top-color: #ff723b; animation: rzspin .8s linear infinite; }
@keyframes rzspin { to { transform: rotate(360deg); } }
.rz-times-empty { margin: 0; padding: 14px; border-radius: 12px; background: #fff7f0; border: 1px solid #ffe2cf; color: #9a4b1c; font-size: 14px; }
.rz-link-btn { padding: 0; border: 0; background: none; color: #c2410c; font: 600 14px "Poppins", Helvetica, Arial, sans-serif; text-decoration: underline; cursor: pointer; }

/* Checkboxes */
.rz-check { position: relative; margin: 2px 0 14px; }
.rz-check input { position: absolute; left: 0; top: 0; width: 22px; height: 22px; margin: 0; opacity: 0; cursor: pointer; }
.rz-check label { position: relative; display: block; padding-left: 34px; font-size: 14.5px; line-height: 22px; color: #374151; cursor: pointer; }
.rz-check label::before { content: ""; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border: 1.5px solid #c4c8cf; border-radius: 6px; background: #fff; transition: background .15s, border-color .15s; }
.rz-check input:checked + label::before { background: var(--rz-grad); border-color: transparent; }
.rz-check input:checked + label::after { content: ""; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.rz-check input:focus-visible + label::before { box-shadow: 0 0 0 3px var(--rz-ring); border-color: #ff8a5c; }
.rz-check.is-invalid label::before { border-color: #e5484d; box-shadow: 0 0 0 3px rgba(229, 72, 77, .12); }
.rz-check-privacy { margin-top: 18px; }
.rz-reveal { margin-top: -4px; }

/* Large groups */
.rz-large { margin: 0 0 16px; padding: 16px; border-radius: 12px; background: #fff7f0; border: 1px solid #ffe2cf; }
.rz-large-title { margin: 0 0 4px; font-size: 15px; font-weight: 600; color: #9a3412; }
.rz-large-text { margin: 0 0 12px; font-size: 14px; color: #7c4a2d; }
.rz-form.is-large .rz-when, .rz-form.is-large .rz-rest { display: none; }

/* Submit */
.rz-submit {
    display: block; width: 100%; height: 54px; margin-top: 10px; border: 0; border-radius: 12px;
    background: var(--rz-grad); color: #fff; font: 600 16.5px "Poppins", Helvetica, Arial, sans-serif; cursor: pointer;
    box-shadow: 0 8px 20px rgba(229, 71, 80, .25); transition: filter .15s, transform .15s;
}
.rz-submit:hover { filter: brightness(1.04); }
.rz-submit:active { transform: translateY(1px); }
.rz-submit:focus-visible { outline: 3px solid rgba(255, 114, 59, .5); outline-offset: 2px; }
.rz-submit:disabled { opacity: .75; cursor: progress; }
.rz-after { margin: 10px 0 0; text-align: center; font-size: 13px; color: var(--rz-muted); }
.rz-required-note { margin: 6px 0 0; text-align: center; font-size: 12px; color: var(--rz-faint); }
.rz-err-slot:empty { display: none; }
.rz .sf-err { color: #c53030; } /* form-check.js messages, darker for contrast */

/* ---------- Buttons ---------- */
.rz-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 10px 18px; border: 1px solid transparent; border-radius: 10px;
    font: 600 14.5px/1.2 "Poppins", Helvetica, Arial, sans-serif; text-align: center; text-decoration: none !important; cursor: pointer;
    transition: background .15s, border-color .15s, filter .15s;
}
.rz-btn:focus-visible { outline: 3px solid rgba(255, 114, 59, .45); outline-offset: 2px; }
.rz-btn-light { background: #fff; color: #374151 !important; border-color: #dfe1e6; }
.rz-btn-light:hover { background: #f8f8f9; border-color: #cfd3d9; }
.rz-btn-primary { background: var(--rz-grad); color: #fff !important; box-shadow: 0 6px 16px rgba(229, 71, 80, .22); }
.rz-btn-primary:hover { filter: brightness(1.04); }
.rz-btn-wa { background: #25d366; color: #fff !important; }
.rz-btn-wa:hover { background: #1fbf5b; }
.rz-btn-danger { background: #dc3545; color: #fff !important; }
.rz-btn-danger:hover { background: #c82333; }
.rz-btn-danger-light { background: #fff; color: #c62828 !important; border-color: #f3c4c4; }
.rz-btn-danger-light:hover { background: #fff5f5; }
.rz-contact { display: flex; flex-wrap: wrap; gap: 10px; }
.rz-contact .rz-btn { flex: 1 1 180px; }
.rz-actions { display: grid; gap: 10px; margin-top: 20px; }

/* ---------- Confirmation / status ---------- */
.rz-done { padding: 4px 0 2px; text-align: center; }
.rz-done-icon { display: flex; align-items: center; justify-content: center; width: 68px; height: 68px; margin: 0 auto 12px; border-radius: 50%; }
.rz-done-icon.is-ok { background: #e7f7ee; color: #11743f; }
.rz-done-icon.is-wait { background: #fff4e5; color: #c26a00; }
.rz-done-title { margin: 0 0 6px; font-size: 22px; font-weight: 700; }
.rz-done-text { max-width: 500px; margin: 0 auto; font-size: 15px; line-height: 1.6; color: var(--rz-soft); }
.rz-codebox { display: flex; flex-direction: column; gap: 4px; margin: 20px 0 4px; padding: 14px; border: 1.5px dashed #ffb199; border-radius: 14px; background: #fff8f4; text-align: center; }
.rz-codebox-label { font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: #9a4b1c; }
.rz-codebox-code { font-family: Consolas, "SFMono-Regular", Menlo, monospace; font-size: 28px; font-weight: 700; letter-spacing: .18em; color: var(--rz-text); }
.rz-codebox-hint { font-size: 12.5px; color: #7c6a60; }

.rz-summary { margin: 18px 0 0; border: 1px solid #eceef1; border-radius: 14px; overflow: hidden; }
.rz-sum-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 14px; font-size: 14.5px; }
.rz-sum-row + .rz-sum-row { border-top: 1px solid #f0f1f3; }
.rz-sum-row dt { flex: none; color: var(--rz-muted); }
.rz-sum-row dd { min-width: 0; margin: 0; text-align: right; color: var(--rz-text); }
.rz-break { word-break: break-word; overflow-wrap: anywhere; }

.rz-pill { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.rz-pill-pending { background: #fff4e5; color: #a15c00; }
.rz-pill-confirmed { background: #e7f7ee; color: #11743f; }
.rz-pill-declined { background: #fdecec; color: #b42318; }
.rz-pill-cancelled, .rz-pill-no_show { background: #f1f2f5; color: #4a5468; }
.rz-pill-seated { background: #e8f0fe; color: #0648b3; }

.rz-state { padding: 18px 16px; border-radius: 14px; text-align: center; background: #f1f2f5; color: #4a5468; }
.rz-state-label { display: block; font-size: 20px; font-weight: 700; }
.rz-state-text { margin: 4px 0 8px; font-size: 14.5px; }
.rz-state-code { font-size: 13px; }
.rz-state-code strong { font-family: Consolas, "SFMono-Regular", Menlo, monospace; letter-spacing: .1em; }
.rz-state-pending { background: #fff4e5; color: #8a4d00; }
.rz-state-confirmed { background: #e7f7ee; color: #0f6b3a; }
.rz-state-declined { background: #fdecec; color: #a61b12; }
.rz-state-seated { background: #e8f0fe; color: #0648b3; }

.rz-cancel { margin-top: 12px; }
.rz-cancel > summary { list-style: none; width: 100%; }
.rz-cancel > summary::-webkit-details-marker { display: none; }
.rz-cancel-box { margin-top: 10px; padding: 14px; border-radius: 12px; background: #fff5f5; border: 1px solid #f8d0d0; font-size: 14px; color: #5f1d1d; }
.rz-cancel-box p { margin: 0 0 12px; }
.rz-cancel-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.rz-cancel-actions form { display: contents; }
.rz-cancel-actions .rz-btn { flex: 1 1 150px; }

.rz-empty-state { padding: 6px 0; text-align: center; }
.rz-empty-state .rz-contact { justify-content: center; margin-top: 14px; }
.rz-empty-title { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.rz-small { margin: 14px 0 0; font-size: 12.5px; color: #636a75; text-align: center; }
.rz-center { text-align: center; }

.rz-foot { padding: 6px 16px 28px; text-align: center; font-size: 12.5px; color: #555c68; }
.rz-foot a { color: #374151; text-decoration: none; font-weight: 500; }

/* ---------- Larger screens ---------- */
@media (min-width: 560px) {
    .rz-grid { grid-template-columns: 1fr 1fr; }
    .rz-actions { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
}
@media (min-width: 768px) {
    .rz-hero-in { padding: 18px 24px 76px; }
    .rz-hero-body { margin-top: 40px; gap: 18px; }
    .rz-avatar { width: 72px; height: 72px; }
    .rz-hero-title { font-size: 32px; }
    .rz-main { margin-top: -52px; padding: 0 24px 28px; }
    .rz-card { padding: 30px 36px 32px; border-radius: 18px; }
}
@media (hover: hover) and (min-width: 600px) {
    .rz-day-nav { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) {
    .rz-spin { animation-duration: 2s; }
    * { transition: none !important; }
}
