/* ═══════════════════════════════════════════════
   DOMAINE DE MEIKA — adoption.css
   ═══════════════════════════════════════════════ */

/* ── INTRO ────────────────────────────────────── */
.adoption-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}
.adoption-intro .section-tag { margin: 0 auto 1rem; }

.adoption-intro__desc {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-2, #6B5540);
  margin-top: 1rem;
  margin-bottom: 2.5rem;
}

/* ── STEPS INDICATOR ──────────────────────────── */
.adoption-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.adoption-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  position: relative;
}

.adoption-step__num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--sand-2, #EDE4CC);
  color: var(--text-3, #A08870);
  font-family: var(--font-display, 'Cormorant', serif);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}

.adoption-step.active .adoption-step__num {
  background: var(--rust, #C85A2A);
  color: #fff;
  transform: scale(1.1);
}
.adoption-step.done .adoption-step__num {
  background: var(--green-light, #52A852);
  color: #fff;
}
.adoption-step.done .adoption-step__num::after {
  content: '✓';
}
.adoption-step.done .adoption-step__num span { display: none; }

.adoption-step__label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-3, #A08870);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.adoption-step.active .adoption-step__label { color: var(--rust, #C85A2A); }
.adoption-step.done  .adoption-step__label { color: var(--green, #3A6B3A); }

.adoption-step__line {
  width: 60px;
  height: 2px;
  background: var(--sand-3, #E0D3B4);
  margin-bottom: 1.5rem;
  transition: background 0.4s;
}
.adoption-step__line.done {
  background: var(--green-light, #52A852);
}

/* ── FORM PANELS ──────────────────────────────── */
.adoption-form {
  max-width: 760px;
  margin: 0 auto;
}

.adoption-panel {
  display: none;
  animation: panelIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.adoption-panel.active { display: block; }

@keyframes panelIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.adoption-panel__title {
  font-family: var(--font-display, 'Cormorant', serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--brown, #4A2E18);
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--sand-2, #EDE4CC);
}

/* ── FORM GROUPS ──────────────────────────────── */
.aform-group {
  margin-bottom: 1.75rem;
}
.aform-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2, #6B5540);
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}
.req { color: var(--rust, #C85A2A); }

.aform-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.aform-group input[type="text"],
.aform-group input[type="email"],
.aform-group input[type="tel"],
.aform-group textarea,
.aform-group select {
  width: 100%;
  background: var(--cream, #FDFAF3);
  border: 1.5px solid var(--sand-3, #E0D3B4);
  border-radius: var(--radius-md, 16px);
  padding: 0.9rem 1.1rem;
  font-family: var(--font-body, 'Outfit', sans-serif);
  font-size: 0.92rem;
  color: var(--text, #2A1F10);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.aform-group input:focus,
.aform-group textarea:focus,
.aform-group select:focus {
  border-color: var(--rust, #C85A2A);
  box-shadow: 0 0 0 3px rgba(200,90,42,0.1);
}
.aform-group input::placeholder,
.aform-group textarea::placeholder { color: var(--text-3, #A08870); }
.aform-group textarea { resize: vertical; min-height: 120px; }

/* Validation states */
.aform-group input.field--ok   { border-color: var(--green-light, #52A852); }
.aform-group input.field--error { border-color: #DC2626; box-shadow: 0 0 0 3px rgba(220,38,38,0.1); }
.aform-field-msg {
  font-size: 0.72rem;
  color: #DC2626;
  margin-top: 0.3rem;
  display: block;
}

/* ── CHIP SELECTORS ───────────────────────────── */
.aform-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.aform-chip {
  background: var(--cream, #FDFAF3);
  border: 1.5px solid var(--sand-3, #E0D3B4);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-family: var(--font-body, 'Outfit', sans-serif);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2, #6B5540);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}
.aform-chip:hover {
  border-color: var(--rust, #C85A2A);
  color: var(--rust, #C85A2A);
  transform: translateY(-1px);
}
.aform-chip.selected {
  background: var(--rust, #C85A2A);
  border-color: var(--rust, #C85A2A);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(200,90,42,0.25);
}
/* Single = radio behavior */
.aform-chips.single .aform-chip.selected {
  background: var(--brown, #4A2E18);
  border-color: var(--brown, #4A2E18);
}

/* Missing selection error */
.aform-chips.error-state .aform-chip {
  border-color: rgba(220,38,38,0.4);
  background: rgba(220,38,38,0.03);
}

/* ── NAV BUTTONS ──────────────────────────────── */
.aform-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1.5px solid var(--sand-2, #EDE4CC);
}

/* ── SUCCESS ──────────────────────────────────── */
.adoption-success {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 560px;
  margin: 0 auto;
}
.adoption-success__icon {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  animation: bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes bounceIn {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.adoption-success h2 {
  font-family: var(--font-display, 'Cormorant', serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--brown, #4A2E18);
  margin-bottom: 1rem;
}
.adoption-success p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-2, #6B5540);
  margin-bottom: 0.75rem;
}
.adoption-success__sub {
  font-size: 0.9rem !important;
  color: var(--text-3, #A08870) !important;
}
.adoption-success__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 640px) {
  .aform-row { grid-template-columns: 1fr; }
  .adoption-step__line { width: 30px; }
  .adoption-steps { gap: 0; }
}
