/* Inscription — formulaire de suivi médical, fidèle aux maquettes fournies. */
body.pinks-page-inscription {
  --signup-navy: #071b3d;
  --signup-muted: #60719a;
  --signup-border: #dce2ee;
  --signup-soft: #f1f3f8;
  --signup-pink: #c82d74;
  --signup-pink-soft: #fcecf4;
  --signup-green: #0b9465;
  background: #fff;
  color: var(--signup-navy);
}
.pinks-page-inscription .site-header,
.pinks-page-inscription .main-nav,
.pinks-page-inscription .site-footer { display: none; }
.pinks-page-inscription .app-shell { max-width: none; min-height: 100vh; padding: 0; margin: 0; display: block; }
.pinks-page-inscription .main-content { padding: 0; }
.pinks-page-inscription .editor-content { display: none; }

.medical-signup {
  width: min(540px, calc(100vw - clamp(54px, 8vw, 86px) - 24px));
  margin-left: clamp(54px, 8vw, 86px);
  padding: 20px 0 54px;
}
.medical-signup__form { margin: 0; }
.signup-step { margin: 0; }
.signup-heading { margin-bottom: 17px; }
.signup-heading--compact { margin-bottom: 18px; }
.pinks .signup-heading h1 {
  margin: 0 0 6px;
  color: var(--signup-navy);
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -.035em;
  font-weight: 850;
}
.signup-subtitle {
  margin: 0;
  color: var(--signup-muted);
  font-size: 16px;
  line-height: 1.5;
}
.signup-intro {
  margin: 23px 0 0;
  max-width: 525px;
  color: var(--signup-muted);
  font-size: 13px;
  line-height: 1.65;
}

.signup-progress { display: flex; align-items: center; gap: 9px; margin: 16px 0 19px; min-width: 0; }
.step-list { display: flex; align-items: center; flex: 1; min-width: 0; list-style: none; padding: 0; margin: 0; }
.step-list li { display: flex; align-items: center; min-width: 0; color: var(--signup-muted); font-size: 12px; font-weight: 800; white-space: nowrap; }
.step-list li:not(:last-child) { flex: 1; }
.step-list li:not(:last-child)::after { content: ""; height: 1px; flex: 1; min-width: 14px; margin: 0 9px; background: var(--signup-border); }
.step-dot { width: 23px; height: 23px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; background: #eef1f7; color: #7180a3; font-size: 12px; font-weight: 850; }
.step-name { display: none; margin-left: 7px; color: var(--signup-navy); }
.step-list li[aria-current="step"] .step-dot { background: var(--signup-pink); color: #fff; }
.step-list li[aria-current="step"] .step-name { display: inline; }
.step-list li.is-complete .step-dot { background: #e5f5ee; color: var(--signup-green); font-size: 0; }
.step-list li.is-complete .step-dot::before { content: "✓"; font-size: 14px; font-weight: 900; }
.step-count { color: var(--signup-muted); font-size: 12px; white-space: nowrap; }

.signup-fields { border-top: 1px solid var(--signup-border); padding-top: 18px; }
.medical-signup .field { margin: 0 0 17px; }
.medical-signup .field label,
.field-section-title,
.today-label {
  display: block;
  margin: 0 0 7px;
  color: var(--signup-navy);
  font-size: 14px;
  font-weight: 800;
}
.medical-signup .field input,
.medical-signup .field textarea,
.conditional-field input,
.today-question textarea {
  width: 100%;
  min-height: 57px;
  padding: 13px 14px;
  border: 1px solid var(--signup-border);
  border-radius: 11px;
  background: #fff;
  color: var(--signup-navy);
  box-shadow: none;
  font-size: 16px;
  line-height: 1.35;
}
.medical-signup input::placeholder,
.medical-signup textarea::placeholder { color: #a7b1c8; opacity: 1; }
.medical-signup .field textarea,
.today-question textarea { min-height: 114px; resize: vertical; }
.field-help { margin: 7px 0 0; color: var(--signup-muted); font-size: 12px; line-height: 1.55; }
.field-section-title { margin: 3px 0 12px; color: var(--signup-muted); font-size: 12px; }

.history-question,
.today-question { border-top: 1px solid var(--signup-border); padding: 17px 0 16px; }
.pinks .history-question h2,
.pinks .today-question h2 { margin: 0 0 5px; color: var(--signup-navy); font-size: 15px; line-height: 1.35; letter-spacing: -.01em; font-weight: 850; }
.history-question > p { margin: 0 0 9px; color: var(--signup-muted); font-size: 12px; line-height: 1.5; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.choice-pill { position: relative; margin: 0; cursor: pointer; }
.choice-pill input { position: absolute; opacity: 0; pointer-events: none; }
.choice-pill span {
  min-height: 42px;
  padding: 9px 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--signup-border);
  border-radius: 999px;
  background: #fff;
  color: #667596;
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
  transition: border-color .12s ease, background-color .12s ease, color .12s ease;
}
.choice-pill input:focus-visible + span { outline: 3px solid var(--signup-pink); outline-offset: 3px; }
.choice-pill input:checked + span { border-color: #f03a8a; background: #fff2f7; color: var(--signup-navy); }
.choice-row--small .choice-pill span { min-height: 34px; padding: 7px 13px; font-size: 12px; }
.choice-row--practitioner { gap: 7px; }
.choice-row--practitioner .choice-pill span { min-height: 42px; padding-inline: 15px; }

.history-editor {
  margin: 12px 0 1px;
  padding: 14px 13px 12px;
  border: 1px dashed #e1e5ee;
  border-radius: 12px;
  background: #fff;
}
.history-editor .field { margin-bottom: 12px; }
.history-editor .field label,
.history-editor fieldset legend { margin-bottom: 6px; font-size: 12px; font-weight: 800; }
.history-editor fieldset { min-width: 0; margin: 0 0 12px; padding: 0; border: 0; }
.history-editor .field input { min-height: 43px; padding: 9px 12px; font-size: 14px; }
.history-editor .field label span { font-weight: 700; }
.entry-actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 10px; }
.entry-add {
  min-height: 43px;
  border: 1px solid var(--signup-border);
  border-radius: 10px;
  background: #fff;
  color: var(--signup-navy);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.entry-add { border-color: var(--signup-pink); background: var(--signup-pink); color: #fff; }
.entry-add:disabled { border-color: #e1e5ee; background: #e1e5ee; color: #9da7c0; cursor: not-allowed; }
.history-list { display: grid; gap: 7px; margin-top: 9px; }
.history-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 9px; background: #f7f8fb; color: var(--signup-muted); font-size: 12px; }
.history-item strong { color: var(--signup-navy); }
.history-item button { border: 0; background: transparent; color: var(--signup-pink); font-weight: 800; cursor: pointer; padding: 0; }

.conditional-field { margin-top: 12px; }
.conditional-field input { min-height: 57px; }
.today-question textarea { margin-top: 7px; }
.today-question--last { padding-bottom: 7px; }

.consent-table { overflow: hidden; margin-top: 2px; border: 1px solid var(--signup-border); border-radius: 14px; }
.consent-row { display: grid; grid-template-columns: 128px 1fr; border-bottom: 1px solid var(--signup-border); }
.consent-row:last-child { border-bottom: 0; }
.consent-row > div { padding: 13px 0; font-size: 18px; line-height: 1.45; }
.consent-row > div:last-child { padding-right: 14px; }
.consent-key { padding-left: 0 !important; color: var(--signup-muted); font-size: 17px !important; }
.consent-check { display: flex; gap: 10px; align-items: flex-start; margin: 21px 0 18px; padding: 10px 12px; border-radius: 11px; background: var(--signup-pink-soft); color: var(--signup-navy); font-size: 15px; line-height: 1.45; font-weight: 800; }
.consent-check input { width: 21px; height: 21px; margin: 0; flex: 0 0 auto; accent-color: var(--signup-pink); }

.wizard-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 19px; }
.wizard-actions > button { min-height: 62px; border-radius: 12px; font-size: 17px; line-height: 1; font-weight: 850; cursor: pointer; }
.wizard-back { border: 1px solid var(--signup-border); background: #fff; color: var(--signup-navy); }
.wizard-next,
.wizard-finish { border: 1px solid var(--signup-pink); background: var(--signup-pink); color: #fff; }
.wizard-actions > button:disabled { border-color: #dde1eb; background: #dde1eb; color: #9da7c0; cursor: not-allowed; }
.wizard-actions > button[hidden] { display: none; }
.wizard-actions:has(.wizard-back[hidden]) { grid-template-columns: 1fr; }

@media (max-width: 640px) {
  .medical-signup { width: calc(100% - 36px); margin: 0 18px; padding-top: 18px; }
  .signup-progress { gap: 6px; }
  .step-list li:not(:last-child)::after { margin-inline: 6px; min-width: 8px; }
  .step-name { font-size: 11px; }
  .choice-row--practitioner .choice-pill span { padding-inline: 12px; }
  .consent-row { grid-template-columns: 112px 1fr; }
  .consent-row > div { font-size: 16px; }
  .consent-key { font-size: 14px !important; }
}
@media (max-width: 420px) {
  .medical-signup { width: calc(100% - 28px); margin-inline: 14px; }
  .pinks .signup-heading h1 { font-size: 24px; }
  .step-list li:not(:last-child)::after { margin-inline: 4px; }
  .step-dot { width: 22px; height: 22px; }
  .step-count { font-size: 11px; }
  .choice-pill span { padding-inline: 18px; }
  .consent-row { grid-template-columns: 1fr; padding: 11px 13px; }
  .consent-row > div { padding: 0 !important; }
  .consent-row > div:last-child { margin-top: 4px; }
  .wizard-actions > button { min-height: 58px; font-size: 16px; }
}
.minor-consent { margin: 8px 0 4px; padding: 14px; border: 1px solid var(--signup-border); border-radius: 12px; background: #fafbfe; }
.minor-consent .consent-check { margin-bottom: 2px; }
.signup-complete { padding-top: 26px; max-width: 540px; }
.signup-complete-link { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 22px; border-radius: 12px; text-decoration: none; font-weight: 850; }
.pinks-page-inscription .app-notice { margin: 18px 0 0; }
