/* =========================================================
   DECOM Disponibilidad — Estilos base + formulario público
   ========================================================= */
:root {
    --ink: #0f172a;
    --ink-2: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --line-2: #cbd5e1;
    --bg: #f4f5fb;
    --card: #ffffff;
    --primary: #4f46e5;
    --primary-2: #6366f1;
    --primary-soft: #eef2ff;
    --primary-ink: #3730a3;
    --night: #1e1b4b;
    --night-2: #312e81;
    --amber: #f59e0b;
    --amber-soft: #fef3c7;
    --amber-ink: #92400e;
    --red: #ef4444;
    --red-soft: #fee2e2;
    --red-ink: #b91c1c;
    --green: #10b981;
    --green-soft: #d1fae5;
    --green-ink: #047857;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .12);
    --shadow-lg: 0 24px 60px -20px rgba(30, 27, 75, .35);
    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; }
[hidden] { display: none !important; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 44px; padding: .65rem 1.15rem;
    border: 1px solid transparent; border-radius: 12px;
    font-weight: 600; font-size: .95rem; line-height: 1;
    cursor: pointer; text-decoration: none; white-space: nowrap;
    transition: transform .12s ease, background .2s, box-shadow .2s, border-color .2s, color .2s;
    user-select: none;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px -8px rgba(79, 70, 229, .7); }
.btn-primary:hover { background: var(--primary-ink); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--line-2); background: #f8fafc; }
.btn-danger { background: var(--red-soft); color: var(--red-ink); }
.btn-danger:hover { background: #fecaca; }
.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { background: var(--green-ink); }
.btn-lg { min-height: 52px; padding: .85rem 1.5rem; font-size: 1rem; border-radius: 14px; }
.btn-sm { min-height: 34px; padding: .45rem .8rem; font-size: .82rem; border-radius: 9px; }
.btn-wa { background: #25d366; color: #fff; box-shadow: 0 10px 24px -10px rgba(37, 211, 102, .8); }
.btn-wa:hover { background: #1ebe5a; }
.btn.is-loading { pointer-events: none; opacity: .8; }
.btn.is-loading svg { animation: spin .8s linear infinite; }
.link-btn { background: none; border: 0; padding: .25rem; color: var(--primary); font-weight: 600; font-size: .85rem; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* ---------- Campos ---------- */
.field { position: relative; }
.field-ico { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }

input[type=text], input[type=password], input[type=date], input[type=datetime-local], input[type=tel], select, textarea {
    width: 100%; min-height: 48px; padding: .7rem .95rem;
    background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none; appearance: none;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; background-size: 18px; padding-right: 2.4rem; }
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--primary-2); box-shadow: 0 0 0 4px rgba(99, 102, 241, .15); }
.field input { padding-left: 44px; }
.is-invalid input, input.is-invalid { border-color: var(--red); box-shadow: 0 0 0 4px rgba(239, 68, 68, .12); }
.error { margin-top: .6rem; color: var(--red-ink); font-size: .87rem; font-weight: 500; display: flex; gap: .4rem; align-items: center; }
.error::before { content: "!"; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--red); color: #fff; font-size: .72rem; font-weight: 800; flex: none; }
.hint { color: var(--muted); font-size: .88rem; margin-top: .2rem; }
.req { color: var(--red); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ---------- Chips (checkbox/radio visual) ---------- */
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .6rem; }
.chip { position: relative; display: block; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
    display: flex; align-items: center; gap: .6rem; min-height: 48px; padding: .65rem .85rem;
    border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff;
    font-weight: 500; font-size: .93rem; color: var(--ink-2);
    transition: border-color .15s, background .15s, color .15s, box-shadow .15s;
}
.chip span::before {
    content: ""; flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-2); background: #fff center/14px no-repeat;
    transition: background-color .15s, border-color .15s;
}
.chip:hover span { border-color: var(--line-2); }
.chip input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-ink); font-weight: 600; }
.chip input:checked + span::before { background-color: var(--primary); border-color: var(--primary); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.chip input:focus-visible + span { box-shadow: 0 0 0 4px rgba(99, 102, 241, .2); }

/* ---------- Toast ---------- */
.toast {
    position: fixed; left: 50%; bottom: calc(24px + var(--safe-b)); z-index: 200;
    transform: translate(-50%, 140%); opacity: 0;
    max-width: min(92vw, 440px); padding: .85rem 1.1rem; border-radius: 14px;
    background: var(--ink); color: #fff; font-size: .92rem; font-weight: 500;
    box-shadow: var(--shadow-lg); transition: transform .3s cubic-bezier(.2, .9, .3, 1.2), opacity .3s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.is-error { background: var(--red-ink); }
.toast.is-success { background: var(--green-ink); }

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

/* =========================================================
   FORMULARIO PÚBLICO
   ========================================================= */
.page-form { min-height: 100vh; min-height: 100dvh; }
.bg-deco {
    position: absolute; inset: 0 0 auto 0; height: 420px; z-index: -1; overflow: hidden;
    background:
        radial-gradient(600px 300px at 85% -10%, rgba(245, 158, 11, .35), transparent 60%),
        radial-gradient(700px 360px at 0% 0%, rgba(99, 102, 241, .55), transparent 60%),
        linear-gradient(160deg, var(--night) 0%, #241f5c 55%, var(--night-2) 100%);
}
.bg-deco::after {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(#000, transparent 85%);
    -webkit-mask-image: linear-gradient(#000, transparent 85%);
}

.hero { color: #fff; padding: 28px 18px 92px; }
.hero-inner { max-width: 760px; margin: 0 auto; animation: rise .5s ease both; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; letter-spacing: .08em; font-size: .95rem; }
.brand img { width: 36px; height: 36px; border-radius: 10px; background: #fff; padding: 3px; }
.period-chip {
    display: inline-flex; align-items: center; gap: .45rem; margin-top: 26px;
    padding: .4rem .8rem; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
    font-size: .85rem; font-weight: 600; backdrop-filter: blur(6px);
}
.period-chip svg { width: 16px; height: 16px; }
.hero h1 { margin-top: 14px; font-size: clamp(1.75rem, 5.5vw, 2.6rem); font-weight: 800; }
.hero p { margin-top: 10px; max-width: 560px; color: rgba(255,255,255,.82); font-size: clamp(.95rem, 2.4vw, 1.05rem); }

.wrap { max-width: 760px; margin: -64px auto 0; padding: 0 14px calc(120px + var(--safe-b)); }
.survey { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.survey > *, .calendar, .cal-quick { min-width: 0; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid rgba(226, 232, 240, .7); }
.step { padding: 20px; animation: rise .45s ease both; }
.step:nth-of-type(2) { animation-delay: .05s; } .step:nth-of-type(3) { animation-delay: .1s; } .step:nth-of-type(4) { animation-delay: .15s; }
.step-head { display: flex; gap: .85rem; align-items: flex-start; margin-bottom: 16px; }
.step-head h2 { font-size: 1.08rem; font-weight: 700; }
.step-num {
    flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px;
    background: var(--primary-soft); color: var(--primary); font-weight: 800; font-size: .95rem; transition: background .25s, color .25s;
}
.step.is-done .step-num { background: var(--green-soft); color: var(--green-ink); box-shadow: inset 0 0 0 1.5px var(--green); }

/* Segmentado Sí / No */
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.segmented label { cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
    display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: .6rem;
    border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-weight: 600; font-size: .93rem; color: var(--ink-2);
    transition: all .15s;
}
.segmented label:hover span { border-color: var(--line-2); }
.segmented input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-ink); }
.segmented input:focus-visible + span { box-shadow: 0 0 0 4px rgba(99, 102, 241, .2); }

/* ---------- Calendario ---------- */
.calendar { border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: linear-gradient(180deg, #fafbff, #fff); }
.cal-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: 10px; }
.cal-top h3 { font-size: 1.15rem; font-weight: 800; text-transform: capitalize; }
.cal-count { padding: .3rem .7rem; border-radius: 999px; background: var(--primary-soft); color: var(--primary-ink); font-weight: 700; font-size: .8rem; transition: transform .2s; }
.cal-count.bump { transform: scale(1.12); }
.cal-quick { display: flex; flex-wrap: wrap; gap: .35rem; padding-bottom: 10px; margin-bottom: 4px; }
.cal-quick::-webkit-scrollbar { display: none; }
.cal-quick button {
    flex: none; padding: .38rem .7rem; border-radius: 999px; border: 1px solid var(--line); background: #fff;
    font-size: .78rem; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: all .15s;
}
.cal-quick button:hover { border-color: var(--primary-2); color: var(--primary); }
.cal-quick button.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.cal-quick .lbl { flex: none; align-self: center; font-size: .78rem; color: var(--muted); font-weight: 600; margin-right: .15rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-weekdays span { text-align: center; font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 4px 0 6px; }
.cal-weekdays span:first-child { color: var(--red-ink); }

.day {
    position: relative; aspect-ratio: 1 / 1; min-height: 40px;
    display: grid; place-items: center; border-radius: 12px; border: 1.5px solid transparent;
    background: #fff; font-weight: 600; font-size: clamp(.85rem, 2.6vw, 1rem); color: var(--ink);
    cursor: pointer; user-select: none; touch-action: manipulation;
    box-shadow: inset 0 0 0 1px var(--line);
    transition: background .15s, color .15s, transform .12s, box-shadow .15s;
}
.day:hover { box-shadow: inset 0 0 0 1.5px var(--primary-2); }
.day:active { transform: scale(.94); }
.day:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(99, 102, 241, .35); }
.day.empty { visibility: hidden; pointer-events: none; }
.day.past { color: #b8c0cc; background: #f8fafc; box-shadow: none; cursor: not-allowed; text-decoration: line-through; text-decoration-color: rgba(148,163,184,.5); }
.day.holiday { color: var(--red-ink); background: var(--red-soft); box-shadow: inset 0 0 0 1px #fecaca; }
.day.event { background: var(--amber-soft); color: var(--amber-ink); box-shadow: inset 0 0 0 1px #fde68a; }
.day.event::after { content: ""; position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 2px #fff; }
.day.today { box-shadow: inset 0 0 0 2px var(--green); }
.day.today::before { content: "Hoy"; position: absolute; bottom: 3px; font-size: .52rem; font-weight: 800; color: var(--green-ink); text-transform: uppercase; letter-spacing: .04em; }
.day.selected { background: var(--primary); color: #fff; box-shadow: 0 6px 14px -6px rgba(79, 70, 229, .8); }
.day.selected.holiday { background: linear-gradient(135deg, var(--primary) 60%, var(--red) 60%); }
.day.selected.event { background: linear-gradient(135deg, var(--primary) 0%, #b45309 100%); }
.day.selected.today::before { color: #fff; }
.day.past.event, .day.past.holiday { opacity: .55; }

.legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .78rem; color: var(--muted); font-weight: 500; }
.legend span { display: inline-flex; align-items: center; gap: .4rem; }
.lg { width: 14px; height: 14px; border-radius: 5px; display: inline-block; }
.lg-sel { background: var(--primary); }
.lg-today { box-shadow: inset 0 0 0 2px var(--green); background: #fff; }
.lg-event { background: var(--amber-soft); box-shadow: inset 0 0 0 1px #fcd34d; position: relative; }
.lg-holiday { background: var(--red-soft); box-shadow: inset 0 0 0 1px #fca5a5; }

.extra, .picked { margin-top: 14px; padding: 14px; border-radius: 14px; background: #f8fafc; border: 1px solid var(--line); }
.extra h4, .picked h4 { font-size: .95rem; }
.extra .chips { margin-top: 10px; }
.picked-head { display: flex; justify-content: space-between; align-items: center; }
.picked-list { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 10px; }
.tag {
    display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .4rem .35rem .7rem; border-radius: 999px;
    background: #fff; border: 1px solid #c7d2fe; color: var(--primary-ink); font-size: .82rem; font-weight: 600; text-transform: capitalize;
    animation: rise .25s ease both;
}
.tag button { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--primary-soft); color: var(--primary); cursor: pointer; font-size: .9rem; line-height: 1; }
.tag button:hover { background: var(--primary); color: #fff; }
.tag.is-extra { border-color: #fcd34d; color: var(--amber-ink); }
.tag.is-extra button { background: var(--amber-soft); color: var(--amber-ink); }

#availabilityArea { transition: opacity .25s, filter .25s; }
#availabilityArea.is-off { opacity: .35; filter: grayscale(1); pointer-events: none; }

.unavailable {
    display: flex; align-items: center; gap: .85rem; margin-top: 14px; padding: 14px; cursor: pointer;
    border: 1.5px dashed var(--line-2); border-radius: 14px; transition: all .2s;
}
.unavailable input { position: absolute; opacity: 0; pointer-events: none; }
.unavailable .switch { flex: none; position: relative; width: 46px; height: 28px; border-radius: 999px; background: var(--line-2); transition: background .2s; }
.unavailable .switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .2s; }
.unavailable input:checked ~ .switch { background: var(--red); }
.unavailable input:checked ~ .switch::after { transform: translateX(18px); }
.unavailable input:focus-visible ~ .switch { box-shadow: 0 0 0 4px rgba(239, 68, 68, .2); }
.unavailable:has(input:checked) { border-style: solid; border-color: #fca5a5; background: var(--red-soft); }
.unavailable-text { display: grid; }
.unavailable-text strong { font-size: .95rem; }
.unavailable-text small { color: var(--muted); font-size: .82rem; }
.unavailable.is-disabled { opacity: .5; cursor: not-allowed; }

/* Barra de envío */
.submit-bar {
    position: sticky; bottom: calc(12px + var(--safe-b)); z-index: 20;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 12px 12px 12px 18px; border-radius: 18px;
    background: rgba(255,255,255,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.submit-summary { font-size: .88rem; color: var(--muted); font-weight: 500; }
.submit-summary b { color: var(--ink); }

/* Éxito */
.success { padding: 40px 22px; text-align: center; animation: rise .45s ease both; }
.success h2 { margin-top: 18px; font-size: 1.6rem; font-weight: 800; }
.success p { margin-top: 8px; color: var(--muted); }
.success .btn { margin-top: 22px; }
.success-check { width: 84px; height: 84px; margin: 0 auto; border-radius: 50%; background: var(--green-soft); display: grid; place-items: center; }
.success-check svg { width: 60px; height: 60px; }
.success-check circle { stroke: var(--green); stroke-width: 3; stroke-dasharray: 152; stroke-dashoffset: 152; animation: draw .6s ease forwards; }
.success-check path { stroke: var(--green-ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .4s .45s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success-summary { margin: 22px auto 0; max-width: 460px; text-align: left; display: grid; gap: .5rem; }
.success-summary .row { display: flex; gap: .75rem; padding: .7rem .9rem; border-radius: 12px; background: #f8fafc; border: 1px solid var(--line); font-size: .9rem; }
.success-summary .row b { flex: none; width: 92px; color: var(--muted); font-weight: 600; }
.success-summary .row span { text-transform: none; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); backdrop-filter: blur(3px); animation: fade .2s ease; }
.modal-card { position: relative; width: min(100%, 400px); padding: 24px; border-radius: 22px; background: #fff; box-shadow: var(--shadow-lg); animation: pop .25s cubic-bezier(.2, .9, .3, 1.2); }
.modal-badge { display: inline-block; padding: .3rem .65rem; border-radius: 999px; background: var(--amber-soft); color: var(--amber-ink); font-size: .78rem; font-weight: 700; }
.modal-card h3 { margin-top: 12px; font-size: 1.2rem; }
.modal-card p { margin-top: 8px; color: var(--ink-2); }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 20px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.92) translateY(10px); } }

/* Tooltip escritorio */
.tip { position: absolute; z-index: 90; max-width: 240px; padding: .5rem .7rem; border-radius: 10px; background: var(--ink); color: #fff; font-size: .8rem; font-weight: 500; pointer-events: none; box-shadow: var(--shadow-lg); animation: fade .15s ease; }

/* Bloqueado */
.blocked { min-height: 100vh; min-height: 100dvh; display: grid; place-content: center; padding: 24px 16px; }
.blocked-card { width: min(100%, 460px); padding: 36px 26px 30px; border-radius: 26px; background: #fff; text-align: center; box-shadow: var(--shadow-lg); animation: rise .5s ease both; }
.blocked-icon { width: 76px; height: 76px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 22px; background: linear-gradient(135deg, var(--primary-soft), #fae8ff); color: var(--primary); }
.blocked-icon svg { width: 40px; height: 40px; }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); }
.blocked h1 { margin-top: 8px; font-size: 1.7rem; font-weight: 800; }
.blocked-msg { margin: 14px 0 24px; padding: 14px 16px; border-radius: 14px; background: #f8fafc; border: 1px solid var(--line); color: var(--ink-2); font-size: .95rem; }
.blocked .btn-wa { width: 100%; }
.foot-note { margin-top: 26px; text-align: center; color: var(--muted); font-size: .8rem; }
.blocked .foot-note { color: rgba(255,255,255,.6); }
.is-blocked .bg-deco { position: fixed; height: 100%; }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
    .hero { padding: 40px 24px 110px; }
    .wrap { padding: 0 20px 60px; margin-top: -76px; }
    .step { padding: 26px 28px; }
    .calendar { padding: 18px; }
    .cal-grid { gap: 8px; }
    .day { border-radius: 14px; }
}
@media (max-width: 639px) {
    .submit-bar { flex-direction: column; align-items: stretch; gap: .5rem; padding: 10px; }
    .submit-summary { text-align: center; font-size: .82rem; }
    .submit-bar .btn { width: 100%; }
    .chips { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
@media (max-width: 380px) {
    .wrap { padding-left: 10px; padding-right: 10px; }
    .step { padding: 16px; }
    .calendar { padding: 10px; }
    .cal-grid { gap: 4px; }
    .day { border-radius: 9px; min-height: 34px; }
    .day.today::before { display: none; }
    .chips { grid-template-columns: 1fr; }
    .segmented { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
