:root {
  --crema: #E7E0CE;
  --mint: #B8C9BF;
  --rosa: #D6C5CB;
  --malva: #BCA9B8;
  --ink: #2B2620;
  --ink-soft: #6b6355;
  --white: #FFFDF8;
  --radius: 20px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--crema);
  color: var(--ink);
  font-family: 'Manrope', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 18px 40px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}
.brand-mark span {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 21px;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.app {
  width: 100%;
  max-width: 400px;
  flex: 1;
}

.foot {
  margin-top: 32px;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
}
.foot p { margin: 0; }

/* Loading */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 60px 0;
  color: var(--ink-soft);
}
.spinner {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 3px solid var(--rosa);
  border-top-color: var(--malva);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Card */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 2px 0 rgba(43,38,32,0.04);
  border: 1px solid rgba(43,38,32,0.06);
}

.card + .card { margin-top: 14px; }

.eyebrow-pill {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 100px;
  background: var(--mint);
  color: var(--ink);
  margin-bottom: 14px;
}
.eyebrow-pill.pill-warm { background: var(--rosa); }

h1 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 30px;
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}
h2 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.subtitle {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0 0 20px;
  line-height: 1.6;
}

.field-row {
  display: flex;
  gap: 18px;
  margin: 18px 0;
  flex-wrap: wrap;
}
.field {
  flex: 1;
  min-width: 120px;
}
.field-label {
  display: block;
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-bottom: 4px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
.field-value {
  font-size: 16px;
  font-weight: 500;
  overflow-wrap: anywhere;
  word-break: break-word;
}

textarea, input, select {
  width: 100%;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1.5px solid rgba(43,38,32,0.15);
  background: var(--crema);
  color: var(--ink);
  margin-bottom: 14px;
}
textarea:focus, input:focus, select:focus {
  outline: none;
  border-color: var(--malva);
  background: var(--white);
}
label.form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--ink);
}

button {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 15.5px;
  border: none;
  border-radius: 14px;
  padding: 14px 20px;
  cursor: pointer;
  width: 100%;
  transition: transform 0.08s ease;
}
button:active { transform: scale(0.98); }
button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover { background: #3a3327; }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(43,38,32,0.2);
}

.btn-found {
  background: var(--malva);
  color: var(--white);
}
.btn-found:hover { background: #a9899b; }

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.notes-box {
  background: var(--crema);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14.5px;
  line-height: 1.5;
  margin-top: 6px;
}

.divider {
  height: 1px;
  background: rgba(43,38,32,0.08);
  margin: 20px 0;
  border: none;
}

.thanks-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--mint);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

.error-text {
  color: #a5432f;
  font-size: 14px;
  margin: -6px 0 14px;
}

.link-quiet {
  color: var(--ink-soft);
  font-size: 13.5px;
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
  width: auto;
  cursor: pointer;
}

.center-text { text-align: center; }
