/* Ti'Pô Chouchou order form — official mascot medallion palette, mobile-first, no framework.
   Chouchou green #2d6a32 / #186b5e, straw gold #e5c158 / #c89438, espresso #4a2511,
   cream #faf5ec / #fffdf9, berry/coral #b95d72. */
:root {
  --bg: #faf5ec;
  --card: #fffdf9;
  --border: #ead9b4;
  --text: #4a2511;
  --muted: #6b5340;
  --accent: #2d6a32;
  --accent-dark: #186b5e;
  --accent-soft: #e7f0e6;
  --gold: #c89438;
  --gold-light: #e5c158;
  --gold-ring: #e5c158;
  --espresso: #4a2511;
  --blush: #b95d72;
  --blush-soft: #f8ecee;
  --error: #9b2c2c;
  --ok: #186b5e;
  --radius: 14px;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 16px/1.55 var(--font-sans);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at top, #fffdf9 0%, transparent 58%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(74, 37, 17, 0.016) 3px,
      rgba(74, 37, 17, 0.016) 4px
    );
  min-height: 100vh;
}

.card {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.5rem 1.15rem 2rem;
  background: var(--card);
  min-height: 100vh;
  border: 0;
}

.brand {
  text-align: center;
}

.brand-mark {
  display: flex;
  justify-content: center;
  margin: 0 0 .5rem;
}

.brand-medallion {
  display: block;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(74, 37, 17, 0.18), 0 0 0 1px rgba(200, 148, 56, 0.28);
}

h1 {
  margin: .35rem 0 0;
  color: var(--espresso);
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 5.5vw, 2.35rem);
  font-weight: 600;
  font-optical-sizing: auto;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.lead {
  margin: .7rem auto 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.55;
}

.hairline {
  position: relative;
  height: 1px;
  max-width: 16.5rem;
  margin: 1.15rem auto 1.75rem;
  background: linear-gradient(90deg, transparent, var(--gold-ring) 18%, var(--gold) 50%, var(--gold-ring) 82%, transparent);
}

.hairline::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  background: var(--card);
  border: 1px solid var(--gold);
  transform: translate(-50%, -50%) rotate(45deg);
}

fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .85rem 1rem 0;
  margin: 0 0 1rem;
  background: #fffdf9;
}

legend {
  padding: 0 .4rem;
  font-weight: 600;
  color: var(--accent);
}

.field { margin-bottom: 1rem; flex: 1; }
.row { display: flex; flex-direction: column; gap: 0 1rem; }

label {
  display: block;
  font-weight: 600;
  margin-bottom: .3rem;
}

label span { color: var(--blush); }

input, select, textarea {
  width: 100%;
  padding: .75rem .85rem;
  font: inherit;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}

input::placeholder,
textarea::placeholder {
  color: #a08a72;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold-ring);
  box-shadow: 0 0 0 3px rgba(200, 148, 56, 0.28);
}

input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

[aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(155, 44, 44, 0.15);
}

.hint { margin: .3rem 0 0; font-size: .85rem; color: var(--muted); }
.center { text-align: center; }
.error { margin: .3rem 0 0; font-size: .85rem; color: var(--error); min-height: 0; }
.error:empty { display: none; }

button {
  width: 100%;
  padding: .95rem 1rem;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent-dark);
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: .01em;
  box-shadow: 0 1px 0 rgba(45, 106, 50, 0.28);
}

button:hover { background: var(--accent-dark); }
button:disabled { opacity: .6; cursor: progress; }

#status { margin-top: 1rem; padding: 0; border-radius: var(--radius); }
#status.ok { padding: 1rem; background: var(--accent-soft); color: var(--ok); }
#status.ko { padding: 1rem; background: var(--blush-soft); color: var(--error); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.site-footer {
  margin: 1.5rem 0 0;
  padding: 1rem 0 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 0;
  font-size: .8rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-ring);
}

.site-footer a:hover {
  color: var(--accent-dark);
  border-bottom-color: var(--gold);
}

@media (min-width: 600px) {
  body { padding: 2.25rem 1rem 2.5rem; }
  .card {
    min-height: 0;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.25rem 2.15rem 2.15rem;
    box-shadow: 0 12px 36px rgba(74, 37, 17, .08), 0 1px 0 rgba(200, 148, 56, .16);
  }
  .row { flex-direction: row; }
  .field.small { flex: 0 0 9rem; }
}
