:root {
  /* Palette dal logo La Mulata: marrone scuro · oro · verde · crema */
  --bg: #f6efe1;
  --card: #ffffff;
  --ink: #3f2e20;          /* marrone testo del logo */
  --muted: #7a6a58;
  --accent: #55402d;       /* marrone scuro per i pulsanti (ottimo contrasto) */
  --accent-dark: #3f2e20;
  --gold: #d9a521;         /* oro del turbante/fiori */
  --gold-soft: rgba(217, 165, 33, 0.18);
  --green: #4f7d33;        /* verde delle foglie */
  --border: #e2d6c2;
  --ok-bg: #eaf3e2;
  --ok-ink: #3a5e22;
  --err-bg: #f6e9dd;
  --err-ink: #97431b;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

.card {
  width: 100%;
  max-width: 460px;
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 10px 30px rgba(63, 46, 32, 0.10);
}

.card__head {
  margin-bottom: 22px;
  text-align: center;
}

.logo {
  display: block;
  width: 200px;
  max-width: 70%;
  height: auto;
  margin: 0 auto 14px;
}

h1 {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.subtitle {
  margin: 4px 0 0;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field { margin-bottom: 16px; }

.row {
  display: flex;
  gap: 12px;
}
.row .field { flex: 1; }

label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

.req { color: var(--gold); }
.opt { color: var(--muted); font-weight: 400; font-size: 0.82rem; }

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

select:disabled {
  background: #f2efe9;
  color: var(--muted);
  cursor: not-allowed;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

textarea { resize: vertical; }

.hint {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
}

button {
  width: 100%;
  margin-top: 4px;
  padding: 13px 16px;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s, opacity .15s;
}

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

.feedback {
  margin-top: 16px;
  padding: 0;
  font-size: 0.92rem;
  border-radius: 10px;
}
.feedback.show {
  padding: 12px 14px;
}
.feedback.ok  { background: var(--ok-bg);  color: var(--ok-ink); }
.feedback.err { background: var(--err-bg); color: var(--err-ink); }

input:invalid.touched, textarea:invalid.touched {
  border-color: var(--accent);
}
