/* ============================================================
   MOTOR DE AMOSTRA — SKIN BIONEXA (modal escuro)
   Vocabulário idêntico ao formulário da secção 05 do site:
   labels mono 65% branco · inputs underline 28% branco ·
   focus cyan-mist · erros amber-glow · CTA solid-light.
   ============================================================ */

.am-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(10, 22, 40, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 3vw, 2rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out);
}
body.amostra-open .am-overlay { opacity: 1; pointer-events: auto; }
body.amostra-open { overflow: hidden; }

.am-modal {
  background: var(--navy-noir);
  color: var(--white);
  width: 100%;
  max-width: 560px;
  max-height: min(92vh, 92svh);
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  padding: clamp(1.75rem, 5vw, 2.6rem);
  position: relative;
  transform: translateY(14px);
  transition: transform 0.35s var(--ease-out);
}
.am-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 85% 10%, rgba(77, 184, 174, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 10% 95%, rgba(201, 154, 62, 0.07) 0%, transparent 50%);
}
.am-modal > * { position: relative; }
body.amostra-open .am-modal { transform: translateY(0); }

.am-close {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 44px;
  height: 44px;
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s var(--ease-out);
  z-index: 2;
}
.am-close:hover { color: var(--white); }
.am-close:focus-visible { outline: 2px solid var(--teal-glow); outline-offset: 2px; }

/* ===== Progresso ===== */
.am-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 30px 0 8px; }
.am-progress .seg { height: 2px; background: rgba(255, 255, 255, 0.14); transition: background 0.35s var(--ease-out); }
.am-progress .seg.on { background: var(--teal-light); }
.am-progress-labels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 28px; }
.am-progress-labels span {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
}
.am-progress-labels span.on { color: var(--cyan-mist); }

/* ===== Tipografia ===== */
.am-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cyan-mist);
  display: block;
  margin-bottom: 12px;
}
.am-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 3rem);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  color: var(--white);
  margin: 0 0 12px;
}
.am-sub { font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.55; color: rgba(255, 255, 255, 0.7); margin: 0 0 24px; }

/* ===== Campos (vocabulário do form da secção 05) ===== */
.am-field { margin-bottom: 20px; }
.am-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 6px;
}
.am-label .req { color: var(--cyan-mist); }
.am-label .opt { color: rgba(255, 255, 255, 0.35); letter-spacing: 0.08em; }
.am-input {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--white);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0;
  padding: 12px 0;
  outline: none;
  transition: border-color 0.3s var(--ease-out);
}
.am-input::placeholder { color: rgba(255, 255, 255, 0.35); }
.am-input:focus { border-bottom-color: var(--cyan-mist); }
.am-field.error .am-input { border-bottom-color: var(--amber-glow); }
.am-err {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--amber-glow);
  margin: 8px 0 0;
}
.am-hint { font-size: 0.875rem; line-height: 1.5; color: rgba(255, 255, 255, 0.45); margin: 10px 0 0; }

/* ===== Botões — réplica exacta do .btn/.btn-solid-light do site ===== */
.am-btn {
  appearance: none;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1;
  min-height: 52px;
  padding: 0 var(--s-8);
  border: 1px solid var(--white);
  border-radius: 0;
  background: var(--white);
  color: var(--navy-noir);
  box-shadow: 3px 3px 12px rgba(0, 0, 0, 0.25);
  transition: background 0.3s var(--ease-out),
              color 0.3s var(--ease-out),
              border-color 0.3s var(--ease-out),
              box-shadow 0.3s var(--ease-out);
  margin-top: 18px;
}
.am-btn:hover { background: transparent; color: var(--white); border-color: var(--white); box-shadow: 4px 4px 16px rgba(0, 0, 0, 0.3); }
.am-btn:focus-visible { outline: 2px solid var(--teal-glow); outline-offset: 3px; }
.am-btn .arrow { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform 0.35s var(--ease-out); }
.am-btn:hover .arrow { transform: translateX(4px); }

.am-btn-ghost {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-mist);
  padding: 16px 0 0;
  text-align: center;
  transition: color 0.2s var(--ease-out);
}
.am-btn-ghost:hover { color: var(--white); }
.am-btn-ghost:focus-visible { outline: 2px solid var(--teal-glow); outline-offset: 2px; }

.am-back {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-mist);
  padding: 6px 0;
  transition: color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.am-back:hover { color: var(--white); transform: translateX(-2px); }

/* ===== Barra de contexto (CP) ===== */
.am-cpbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--navy-deep);
  padding: 11px 14px;
  margin-bottom: 18px;
}
.am-cpbar span { font-size: 0.9375rem; color: rgba(255, 255, 255, 0.65); }
.am-cpbar strong { color: var(--white); }

/* ===== Radio-cards farmácias ===== */
.am-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }
.am-card {
  appearance: none;
  cursor: pointer;
  width: 100%;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  text-align: left;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 16px;
  box-sizing: border-box;
  transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.am-card:hover { border-color: rgba(122, 215, 206, 0.6); }
.am-card:focus-visible { outline: 2px solid var(--teal-glow); outline-offset: 2px; }
.am-card.sel { border-color: var(--teal-light); background: rgba(77, 184, 174, 0.1); box-shadow: inset 3px 0 0 var(--teal-light); }
.am-card .dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
  margin-top: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.am-card.sel .dot { border-color: var(--teal-light); }
.am-card .dot i { width: 8px; height: 8px; border-radius: 50%; background: transparent; }
.am-card.sel .dot i { background: var(--teal-light); }
.am-card .nm { font-family: var(--font-body); font-weight: 600; font-size: 1.0625rem; color: var(--white); }
.am-card .ln { display: block; font-size: 0.875rem; line-height: 1.45; color: rgba(255, 255, 255, 0.55); margin-top: 3px; }
.am-badges { display: inline-flex; gap: 6px; margin-left: 8px; vertical-align: 2px; }
.am-badge {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 7px;
  white-space: nowrap;
}
.am-badge.partner { background: var(--teal-light); color: var(--navy-noir); }
.am-badge.near { border: 1px solid rgba(255, 255, 255, 0.35); color: rgba(255, 255, 255, 0.75); }

/* ===== Farmácia escolhida (details) ===== */
.am-chosen {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid rgba(77, 184, 174, 0.5);
  background: rgba(77, 184, 174, 0.1);
  padding: 13px 14px;
  margin-bottom: 20px;
}
.am-chosen svg { width: 20px; height: 20px; stroke: var(--cyan-mist); fill: none; stroke-width: 2; flex-shrink: 0; margin-top: 2px; }
.am-chosen .nm { display: block; font-weight: 600; font-size: 1.0625rem; color: var(--white); }
.am-chosen .ad { display: block; font-size: 0.875rem; color: rgba(255, 255, 255, 0.55); margin-top: 3px; }

/* ===== Checkboxes (padrão .checkbox-item do site) ===== */
.am-check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; margin: 4px 0 16px; }
.am-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--teal-light); flex-shrink: 0; cursor: pointer; }
.am-check span { font-family: var(--font-body); font-size: 0.9375rem; line-height: 1.55; color: rgba(255, 255, 255, 0.75); }
.am-check a { color: var(--cyan-mist); text-decoration: underline; text-underline-offset: 3px; }
.am-check a:hover { color: var(--white); }
.am-check.boxed { border: 1px solid rgba(255, 255, 255, 0.14); background: var(--navy-deep); padding: 12px 14px; align-items: center; }

.am-note {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--cyan-mist);
  border-left: 2px solid var(--teal-light);
  background: rgba(77, 184, 174, 0.08);
  padding: 10px 13px;
  margin: 10px 0 0;
}

.am-microcopy {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin: 16px 0 0;
  text-align: center;
}

/* ===== Sucesso / lista de espera ===== */
.am-done-head { text-align: center; margin-bottom: 22px; }
.am-done-head .ic {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(122, 215, 206, 0.5);
  background: rgba(77, 184, 174, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.am-done-head .ic svg { width: 30px; height: 30px; stroke: var(--cyan-mist); fill: none; stroke-width: 2.4; }
.am-info-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--navy-deep);
  padding: 16px 18px;
}
.am-info-card + .am-info-card { margin-top: 10px; }
.am-info-card svg { width: 22px; height: 22px; stroke: var(--cyan-mist); fill: none; stroke-width: 2; flex-shrink: 0; margin-top: 2px; }
.am-info-card .tt { font-weight: 600; font-size: 1rem; color: var(--white); }
.am-info-card .tx { font-size: 0.9375rem; line-height: 1.55; color: rgba(255, 255, 255, 0.6); margin-top: 4px; }
.am-info-card .tx strong { color: var(--white); }
.am-info-card .logo-b { width: 84px; height: 34px; color: var(--white); flex-shrink: 0; margin-top: 1px; stroke: none; fill: currentColor; }

@media (max-width: 560px) {
  .am-overlay { align-items: flex-end; padding: 0; }
  .am-modal { max-width: none; max-height: 94svh; border-left: 0; border-right: 0; border-bottom: 0; }
  .am-progress-labels span { font-size: 0.5625rem; letter-spacing: 0.06em; }
  .am-title { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .am-overlay, .am-modal, .am-progress .seg { transition: none; }
}
