*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --purple: #2d1b69;
  --purple-mid: #534AB7;
  --purple-light: #7c5cbf;
  --purple-pale: #f0ebff;
  --text: #1a1a1a;
  --text-muted: #666;
  --border: #e0e0e0;
  --bg: #fafafa;
  --white: #ffffff;
  --green-pale: #e8f5e9;
  --green: #2e7d32;
  --amber-pale: #fff8e1;
  --amber: #e65100;
  --red-pale: #fdecea;
  --red: #c62828;
}
html { font-size: 16px; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; -webkit-font-smoothing: antialiased; }

.header { background: var(--purple); padding: 18px 20px; text-align: center; }
.header h1 { color: #fff; font-size: 19px; font-weight: 600; }
.header p { color: #c9b8f5; font-size: 13px; margin-top: 3px; }

.container { max-width: 500px; margin: 0 auto; padding: 20px 16px 60px; }

.step-bar { display: flex; gap: 5px; margin-bottom: 4px; }
.step-dot { flex: 1; height: 3px; border-radius: 2px; background: var(--border); transition: background .3s; }
.step-dot.active { background: var(--purple); }
.step-label { font-size: 12px; color: var(--text-muted); margin-bottom: 18px; }

h2 { font-size: 18px; font-weight: 600; margin-bottom: 5px; }
.subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 18px; line-height: 1.55; }

.card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.question { font-size: 14px; font-weight: 500; margin-bottom: 10px; line-height: 1.4; }
.question small { font-weight: 400; color: var(--text-muted); font-size: 12px; }

.opts { display: grid; gap: 7px; }
.opts.two { grid-template-columns: 1fr 1fr; }
.opt { padding: 10px 13px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; cursor: pointer; background: var(--white); color: var(--text); text-align: left; transition: all .15s; line-height: 1.35; font-family: inherit; }
.opt:hover { border-color: var(--purple-light); background: var(--purple-pale); }
.opt.sel { border-color: var(--purple); background: var(--purple-pale); color: var(--purple); font-weight: 500; }

.btn { width: 100%; padding: 13px; background: var(--purple); color: #fff; border: none; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; margin-top: 8px; font-family: inherit; transition: background .15s; }
.btn:hover { background: #3d2882; }
.btn:disabled { background: #bbb; cursor: not-allowed; }
.btn-wa { background: #25D366; }
.btn-wa:hover { background: #1ebe5d; }

.input-group { margin-bottom: 12px; }
.input-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 4px; color: var(--text-muted); }
.input-group input { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 15px; font-family: inherit; outline: none; background: var(--white); color: var(--text); transition: border-color .15s; }
.input-group input:focus { border-color: var(--purple); }

.alert { padding: 13px 15px; border-radius: 10px; font-size: 14px; line-height: 1.6; margin-bottom: 14px; }
.alert-warn { background: var(--amber-pale); color: #5d3e00; border: 1px solid #ffe082; }
.alert-ok { background: var(--green-pale); color: var(--green); border: 1px solid #a5d6a7; }
.alert-err { background: var(--red-pale); color: var(--red); border: 1px solid #ef9a9a; }
.alert-info { background: var(--purple-pale); color: var(--purple); border: 1px solid #c5b8f0; }

.upload-box { border: 2px dashed var(--border); border-radius: 10px; padding: 22px 16px; text-align: center; cursor: pointer; transition: border-color .15s; margin-bottom: 10px; }
.upload-box:hover { border-color: var(--purple-light); }
.upload-box .icon { font-size: 28px; margin-bottom: 6px; color: var(--purple-mid); }
.upload-box p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.upload-box strong { color: var(--text); }
.thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.thumb { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); }

.consent-scroll { max-height: 220px; overflow-y: auto; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 14px; font-size: 13px; line-height: 1.7; color: var(--text-muted); margin-bottom: 14px; }
.consent-scroll h3 { font-size: 13px; color: var(--text); margin: 12px 0 5px; }
.consent-scroll h3:first-child { margin-top: 0; }
.consent-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; margin-bottom: 14px; color: var(--text); }
.consent-check input { width: 18px; height: 18px; margin-top: 1px; flex-shrink: 0; accent-color: var(--purple); }

.cal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.cal-day { background: var(--white); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.cal-day-name { font-size: 12px; font-weight: 600; text-align: center; padding: 7px; background: var(--bg); color: var(--text-muted); text-transform: uppercase; letter-spacing: .4px; }
.cal-date { font-size: 11px; text-align: center; color: var(--text-muted); padding: 0 6px 5px; }
.cal-slot { font-size: 13px; padding: 9px 6px; text-align: center; cursor: pointer; color: var(--text); border-top: 1px solid var(--border); transition: all .15s; }
.cal-slot:hover { background: var(--purple-pale); color: var(--purple); }
.cal-slot.sel { background: var(--purple); color: #fff; font-weight: 500; }
.cal-slot.ocp { background: var(--bg); color: #ccc; cursor: not-allowed; text-decoration: line-through; }

.summary-row { display: flex; justify-content: space-between; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; gap: 12px; }
.summary-row:last-child { border-bottom: none; }
.summary-row .lbl { color: var(--text-muted); flex-shrink: 0; }
.summary-row .val { text-align: right; }

.deposit-box { background: var(--purple-pale); border-radius: 10px; padding: 16px; text-align: center; margin: 14px 0; }
.deposit-box .amount { font-size: 28px; font-weight: 700; color: var(--purple); }
.deposit-box .lbl { font-size: 13px; color: var(--purple-light); margin-top: 3px; }
.deposit-box .note { font-size: 12px; color: var(--text-muted); margin-top: 5px; }

.screen { display: none; }
.screen.active { display: block; }

.loading { text-align: center; padding: 32px 0; color: var(--text-muted); }
.spinner { width: 30px; height: 30px; border: 3px solid var(--border); border-top-color: var(--purple); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 10px; }
@keyframes spin { to { transform: rotate(360deg); } }

.ok-screen { text-align: center; padding: 28px 0; }
.ok-icon { font-size: 56px; margin-bottom: 14px; }

.diag-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.chip { font-size: 11px; padding: 2px 8px; border-radius: 12px; }
.chip-warn { background: var(--amber-pale); color: var(--amber); }
.chip-ok { background: var(--bg); color: var(--text-muted); border: 1px solid var(--border); }

@media (max-width: 400px) {
  .cal-grid { grid-template-columns: 1fr 1fr; }
  .opts.two { grid-template-columns: 1fr 1fr; }
}
