/* ==========================================================
   MF Lash Studio · Agendamento online (página das clientes)
   Mesma marca da plataforma: bordô e creme, Bodoni Moda + Manrope.
   Base (fontes, cores e reset) copiada de public/css/styles.css.
   ========================================================== */

@font-face {
  font-family: "Bodoni Moda";
  src: url("fonts/bodoni-moda-latin.woff2") format("woff2");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Marca */
  --wine: #5b1626;          /* bordô da logo: ações principais, faixas de marca */
  --wine-strong: #47101d;   /* hover/pressionado */
  --wine-bright: #8c2a3f;   /* foco e bordas ativas sobre fundo claro */
  --wine-tint: #f4e6e6;     /* hover suave */
  --wine-tint-2: #e8cfd2;   /* região preenchida, anel de foco do campo */
  --cream: #f3ece4;         /* creme da logo: fundo da página e texto sobre bordô */
  --cream-muted: #e2cfcb;   /* texto secundário sobre bordô */

  /* Preto quente (apoio) */
  --ink: #1c1316;
  --ink-soft: #2a1e22;
  --ink-line: #3d2f34;
  --ink-muted: #cdbeb8;     /* texto secundário sobre preto */

  /* Neutros quentes */
  --text: #261c1f;
  --text-2: #5a4d50;
  --text-3: #66595b;        /* metadados e dicas: ≥5,7:1 no creme */
  --line: #e3d9cf;          /* separadores */
  --line-strong: #8e7f75;   /* contorno de campos e controles (≥3:1) */
  --well: #f7f1ea;
  --bg: var(--cream);
  --surface: #fffcf8;

  /* Detalhes e estados */
  --green: #2f6b4f;
  --green-strong: #24533d;
  --green-tint: #e3efe8;
  --danger: #a3261e;
  --danger-tint: #f9e7e4;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(40, 14, 22, .06), 0 1px 3px rgba(40, 14, 22, .07);
  --shadow: 0 6px 16px rgba(40, 14, 22, .09), 0 2px 4px rgba(40, 14, 22, .05);
  --shadow-lg: 0 24px 56px rgba(28, 19, 22, .28);

  --font: "Manrope", ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  --font-display: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif;

  /* Papéis tipográficos */
  --fs-display: clamp(1.875rem, 1.4rem + 1.6vw, 2.5rem);
  --fs-title: 1.5rem;
  --fs-section: 1.125rem;
  --fs-label: .9375rem;
  --fs-body: 1rem;
  --fs-control: .9375rem;
  --fs-meta: .8125rem;
  --fs-overline: .6875rem;

  --tap: 44px;
  --gutter: 16px;
  --content: 1200px;

  accent-color: var(--wine);
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--line-strong) transparent; scroll-padding: 72px 0 96px; }

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--wine);
}

::selection { background: var(--wine); color: var(--cream); }

[hidden] { display: none !important; }

h1, h2, h3 { line-height: 1.2; margin: 0; color: var(--ink); }

a { color: var(--wine); text-underline-offset: .2em; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--wine-bright);
  outline-offset: 2px;
}

.wordmark {
  font: 500 var(--fs-overline)/1 var(--font);
  text-transform: uppercase; letter-spacing: .36em; margin-right: -.36em;
}

/* ---------- Topo ---------- */
.hero {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  padding: max(28px, env(safe-area-inset-top)) var(--gutter) 64px;
  background: var(--wine); color: var(--cream);
}
.hero-mark { display: block; width: 56px; height: 56px; }
.hero-name { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; font: 600 1rem/1 var(--font); letter-spacing: .01em; }
.hero-name .wordmark { color: var(--cream-muted); }
.hero-title { margin-top: 10px; color: var(--cream); font: 600 var(--fs-display)/1.1 var(--font-display); }
/* Só o "Agende seu horário" usa a fonte da marca; os demais títulos usam a fonte de leitura */
.hero-title-plain { font: 700 1.75rem/1.2 var(--font); letter-spacing: -.01em; }
.hero :focus-visible { outline-color: var(--cream); }

.app { outline: none; max-width: 640px; margin: -40px auto 0; padding: 0 var(--gutter); scroll-margin-top: 16px; }
.foot { max-width: 640px; margin: 0 auto; padding: 20px var(--gutter) max(32px, env(safe-area-inset-bottom)); text-align: center; color: var(--text-3); font-size: var(--fs-meta); }
.foot p { margin: 0; }
.foot p + p { margin-top: 8px; }
.foot a, .check a { color: var(--wine); font-weight: 600; }

/* ---------- Página de privacidade ---------- */
.hero-small { padding-bottom: 56px; }
.legal { margin-bottom: 8px; }
.legal h2 { margin: 22px 0 6px; font: 700 var(--fs-section)/1.3 var(--font); color: var(--ink); }
.legal p, .legal li { color: var(--text-2); line-height: 1.6; }
.legal p { margin: 0 0 10px; max-width: 62ch; }
.legal ul { margin: 0 0 10px; padding-left: 20px; }
.legal-lead { font-size: 1.0625rem; color: var(--text) !important; }
.legal-back { margin-top: 24px !important; }

.card {
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 22px 20px 20px;
}
.loading { text-align: center; color: var(--text-3); padding: 48px 20px; }
.muted { color: var(--text-3); margin: 8px 0; }

/* ---------- Passos ---------- */
.progress { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.progress-text { font-size: var(--fs-meta); font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; }
.progress-bar { display: flex; gap: 6px; }
.progress-dot { width: 22px; height: 4px; border-radius: 4px; background: var(--line); }
.progress-dot.is-done { background: var(--wine); }
.step-title { font: 700 1.375rem/1.25 var(--font); letter-spacing: -.01em; margin-bottom: 14px; }
.step-hint { margin: -6px 0 14px; color: var(--text-3); font-size: .875rem; }
.step-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.summary {
  margin: -4px 0 16px; padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--well); color: var(--text-2); font-size: .875rem; font-weight: 600;
}
.notice {
  margin: 0 0 14px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--wine-tint); color: var(--wine-strong); font-weight: 600; font-size: .9375rem;
}
.notice p { margin: 0; }
.notice p + p { margin-top: 6px; font-weight: 500; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 1.5px solid transparent; border-radius: var(--radius-pill);
  font-weight: 700; font-size: var(--fs-control); line-height: 1.2; cursor: pointer; text-decoration: none;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--wine); color: var(--cream); box-shadow: var(--shadow-sm); }
.btn-primary:hover:not(:disabled) { background: var(--wine-strong); }
.btn-ghost { background: transparent; color: var(--wine); padding: 0 12px 0 6px; }
.btn-ghost:hover { background: var(--wine-tint); }

/* ---------- Serviços ---------- */
.options { display: grid; gap: 10px; }
.option {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: 12px;
  width: 100%; min-height: 64px; padding: 12px 14px 12px 18px; text-align: left;
  border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: border-color .15s, background-color .15s;
}
.option svg { grid-row: 1 / 3; grid-column: 2; width: 20px; height: 20px; color: var(--wine); }
.option-name { font-weight: 700; color: var(--ink); font-size: 1.0625rem; }
.option-meta { color: var(--text-3); font-size: var(--fs-meta); }
.option:hover { border-color: var(--wine); }
.option.is-selected { border-color: var(--wine); background: var(--wine-tint); }
.option-quiet { margin-top: 12px; background: var(--well); border-style: dashed; border-color: var(--line-strong); }

/* ---------- Modelos ---------- */
.models { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.model {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0;
  padding: 14px 14px 16px; text-align: left;
  border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: border-color .15s, background-color .15s;
}
.model:hover { border-color: var(--wine); }
.model.is-selected { border-color: var(--wine); background: var(--wine-tint); }
.model-name { font-weight: 700; color: var(--ink); }
.model-desc { color: var(--text-3); font-size: var(--fs-meta); line-height: 1.4; }
@media (max-width: 359px) { .models { grid-template-columns: 1fr; } }

/* ---------- Calendário ---------- */
.cals { display: grid; gap: 18px; }
.cal-month { margin: 0 0 8px; font-weight: 700; color: var(--ink); text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-wd { text-align: center; font-size: .75rem; font-weight: 600; color: var(--text-3); padding-bottom: 2px; }
.cal-day {
  aspect-ratio: 1; min-height: 40px; display: grid; place-items: center; padding: 0;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface);
  font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.cal-day:hover:not(:disabled) { border-color: var(--wine); }
.cal-day.is-selected { background: var(--wine); border-color: var(--wine); color: var(--cream); }
.cal-day.is-full, .cal-day.is-out { border-color: transparent; background: transparent; color: #a0928b; font-weight: 500; cursor: default; }
.cal-day.is-full { text-decoration: line-through; text-decoration-color: #cdbfb8; }

.slots { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); scroll-margin: 16px; }
.slots-title { margin: 0 0 6px; font-weight: 700; color: var(--ink); }
.slots-group { margin: 10px 0 6px; font-size: var(--fs-meta); font-weight: 600; color: var(--text-3); }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.slot {
  min-height: 44px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-pill);
  background: var(--surface); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.slot:hover { border-color: var(--wine); color: var(--wine); }
.slot.is-selected { background: var(--wine); border-color: var(--wine); color: var(--cream); }

/* ---------- Formulário ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > label { font-weight: 600; font-size: var(--fs-label); color: var(--text); }
.field-hint { font-size: var(--fs-meta); color: var(--text-3); }
.input {
  width: 100%; min-height: 48px; padding: 11px 14px;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font-size: 1rem;
}
textarea.input { resize: vertical; line-height: 1.5; }
.input::placeholder { color: var(--text-3); opacity: 1; }
.input:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 3px var(--wine-tint-2); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .875rem; color: var(--text-2); cursor: pointer; line-height: 1.45; }
.check input { flex: none; width: 22px; height: 22px; margin: 0; }
.field.has-error .input { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: var(--fs-meta); font-weight: 600; }
.form-error {
  margin: 0; padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--danger-tint); color: var(--danger); font-weight: 600; font-size: .9375rem;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Pedido enviado ---------- */
.done { text-align: center; padding-top: 28px; }
.done-icon {
  display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 12px;
  border-radius: 50%; background: var(--green-tint); color: var(--green);
}
.done-icon svg { width: 28px; height: 28px; }
.done > p { color: var(--text-2); max-width: 42ch; margin: 0 auto 18px; }
.done-list {
  display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; text-align: left;
  margin: 0 0 20px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--well);
}
.done-list dt { color: var(--text-3); font-size: .875rem; font-weight: 600; }
.done-list dd { margin: 0; color: var(--ink); font-weight: 700; }

@media (min-width: 600px) {
  .card { padding: 28px 30px 26px; }
  .models { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (hover: none) {
  .option:hover, .model:hover { border-color: var(--line); }
  .option.is-selected:hover, .model.is-selected:hover { border-color: var(--wine); }
  .cal-day:hover:not(:disabled) { border-color: var(--line); }
  .slot:hover { border-color: var(--line-strong); color: var(--ink); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
