*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --rose: #e8a4b8;
      --rose-light: #f5dce6;
      --rose-pale: #fdf0f5;
      --rose-deep: #c8728e;
      --rose-border: #ecc5d4;
      --white: #ffffff;
      --off-white: #fafafa;
      --gray-100: #f4f4f5;
      --gray-300: #d1d5db;
      --gray-500: #6b7280;
      --gray-700: #374151;
      --gray-900: #111827;
      --radius: 16px;
      --radius-sm: 10px;
      --shadow: 0 1px 3px rgba(200,114,142,0.08), 0 8px 32px rgba(200,114,142,0.10);
      --shadow-card: 0 2px 8px rgba(200,114,142,0.06), 0 16px 48px rgba(200,114,142,0.10);
    }

    html, body {
      height: 100%;
      font-family: 'DM Sans', sans-serif;
      background: var(--white);
      color: var(--gray-900);
      -webkit-font-smoothing: antialiased;
    }

    /* ─── LAYOUT ─── */
    .shell {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      background:
        radial-gradient(ellipse 60% 40% at 80% 10%, rgba(232,164,184,0.18) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 10% 90%, rgba(232,164,184,0.12) 0%, transparent 60%),
        var(--white);
    }

    /* ─── HEADER ─── */
    header {
      text-align: center;
      padding: 48px 24px 0;
    }

    .logo-img {
      width: auto;
      height: 160px;
      object-fit: contain;
      display: block;
      margin: 0 auto 4px;
    }

    .foto-img {
      width: 160px;
      height: 160px;
      object-fit: cover;
      object-position: 50% 12%;
      border-radius: 50%;
      border: 3px solid var(--white);
      box-shadow: 0 0 0 2px var(--rose-border), 0 8px 24px rgba(200,114,142,0.18);
      margin-bottom: 14px;
    }

    header p {
      font-size: 0.78rem;
      color: var(--gray-500);
      letter-spacing: 0.14em;
      text-transform: uppercase;
      margin-top: 2px;
      font-weight: 300;
    }

    /* ─── PROGRESS ─── */
    .progress-wrap {
      padding: 32px 24px 0;
      max-width: 560px;
      margin: 0 auto;
      width: 100%;
    }

    .progress-meta {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 10px;
    }

    .progress-label {
      font-size: 0.72rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--rose-deep);
      font-weight: 500;
    }

    .progress-count {
      font-size: 0.72rem;
      color: var(--gray-500);
      letter-spacing: 0.06em;
    }

    .progress-track {
      width: 100%;
      height: 3px;
      background: var(--rose-light);
      border-radius: 99px;
      overflow: hidden;
    }

    .progress-fill {
      height: 100%;
      background: linear-gradient(90deg, var(--rose), var(--rose-deep));
      border-radius: 99px;
      transition: width 0.5s cubic-bezier(.4,0,.2,1);
    }

    /* ─── CARD ─── */
    main {
      flex: 1;
      display: flex;
      align-items: flex-start;
      justify-content: center;
      padding: 24px 24px 80px;
    }

    .card {
      background: var(--white);
      border: 1px solid var(--rose-border);
      border-radius: 24px;
      box-shadow: var(--shadow-card);
      padding: clamp(32px, 6vw, 52px);
      width: 100%;
      max-width: 560px;
      animation: cardIn 0.4s cubic-bezier(.4,0,.2,1);
    }

    @keyframes cardIn {
      from { opacity: 0; transform: translateY(18px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    .section-tag {
      display: inline-block;
      font-size: 0.68rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--rose-deep);
      font-weight: 500;
      margin-bottom: 12px;
    }

    .card h2 {
      font-family: 'Cormorant Garamond', serif;
      font-weight: 400;
      font-size: clamp(1.45rem, 3.5vw, 1.85rem);
      line-height: 1.25;
      color: var(--gray-900);
      margin-bottom: 32px;
    }

    /* ─── FORM FIELDS ─── */
    .fields { display: flex; flex-direction: column; gap: 22px; }

    .field { display: flex; flex-direction: column; gap: 7px; }

    .field label {
      font-size: 1rem;
      font-weight: 500;
      line-height: 1.4;
      letter-spacing: 0.01em;
      color: var(--gray-700);
    }

    .field label .req { color: var(--rose-deep); margin-left: 2px; font-size: 0.75rem; }

    input[type="text"],
    input[type="number"],
    input[type="tel"],
    textarea {
      width: 100%;
      border: 1.5px solid var(--rose-border);
      border-radius: var(--radius-sm);
      padding: 12px 16px;
      font-family: 'DM Sans', sans-serif;
      font-size: 0.92rem;
      color: var(--gray-900);
      background: var(--off-white);
      outline: none;
      transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
      resize: none;
    }

    input[type="text"]:focus,
    input[type="number"]:focus,
    input[type="tel"]:focus,
    textarea:focus {
      border-color: var(--rose);
      background: var(--white);
      box-shadow: 0 0 0 3px rgba(232,164,184,0.18);
    }

    textarea { min-height: 100px; line-height: 1.55; }

    input::placeholder, textarea::placeholder { color: var(--gray-300); }

    /* ─── RADIO / CHECK PILLS ─── */
    .pills { display: flex; flex-wrap: wrap; gap: 8px; }

    .pill input { display: none; }

    .pill label {
      display: inline-block;
      padding: 9px 18px;
      border: 1.5px solid var(--rose-border);
      border-radius: 99px;
      font-size: 0.92rem;
      font-weight: 400;
      color: var(--gray-700);
      cursor: pointer;
      background: var(--off-white);
      transition: all 0.18s;
      user-select: none;
    }

    .pill input:checked + label {
      background: linear-gradient(135deg, var(--rose-light), rgba(232,164,184,0.35));
      border-color: var(--rose);
      color: var(--rose-deep);
      font-weight: 500;
      box-shadow: 0 2px 8px rgba(200,114,142,0.15);
    }

    .pill label:hover { border-color: var(--rose); background: var(--rose-pale); }

    /* ─── 2-COL FIELD ROW ─── */
    .field-row-2 {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }

    /* ─── IMC RESULT ─── */
    .imc-result {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px 16px;
      background: linear-gradient(135deg, var(--rose-pale), rgba(232,164,184,0.12));
      border: 1.5px solid var(--rose-border);
      border-radius: var(--radius-sm);
      flex-wrap: wrap;
    }

    .imc-label {
      font-size: 0.78rem;
      color: var(--gray-500);
    }

    .imc-value {
      font-size: 0.92rem;
      font-weight: 600;
      color: var(--rose-deep);
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.1rem;
    }

    .imc-class {
      font-size: 0.75rem;
      color: var(--gray-700);
      background: var(--rose-light);
      padding: 3px 10px;
      border-radius: 99px;
    }

    /* ─── PRODUTOS BANNER ─── */
    .produtos-banner {
      display: flex;
      align-items: flex-start;
      gap: 14px;
      padding: 16px 18px;
      background: linear-gradient(135deg, rgba(232,164,184,0.14), rgba(200,114,142,0.08));
      border: 1.5px solid var(--rose-border);
      border-radius: var(--radius-sm);
    }

    .produtos-banner-icon {
      font-size: 1.6rem;
      line-height: 1;
      flex-shrink: 0;
      margin-top: 2px;
    }

    .produtos-banner-text {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .produtos-banner-text strong {
      font-size: 0.84rem;
      font-weight: 500;
      color: var(--gray-900);
      line-height: 1.45;
    }

    .produtos-banner-text span {
      font-size: 0.75rem;
      color: var(--gray-500);
    }

    /* ─── SERVIÇOS ─── */
    header .header-servicos {
      margin-top: 8px;
      font-size: 0.74rem;
      letter-spacing: 0.06em;
      text-transform: none;
      color: var(--rose-deep);
      font-weight: 400;
    }

    .header-servicos:empty { display: none; }

    .step-hint {
      margin: -22px 0 24px;
      font-size: 0.82rem;
      color: var(--gray-500);
    }

    .servicos-grid { display: flex; flex-direction: column; gap: 10px; }

    .servico-card {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 16px 18px;
      border: 1.5px solid var(--rose-border);
      border-radius: var(--radius);
      background: var(--off-white);
      cursor: pointer;
      user-select: none;
      transition: all 0.18s;
    }

    .servico-card:hover { border-color: var(--rose); background: var(--rose-pale); }

    .servico-card input { display: none; }

    .servico-check {
      width: 22px; height: 22px;
      flex-shrink: 0;
      border: 1.5px solid var(--rose-border);
      border-radius: 50%;
      background: var(--white);
      display: flex; align-items: center; justify-content: center;
      transition: all 0.18s;
    }

    .servico-check::after {
      content: '';
      width: 6px; height: 11px;
      border: solid white;
      border-width: 0 2px 2px 0;
      transform: rotate(45deg) translate(-1px, -1px);
      opacity: 0;
    }

    .servico-text { display: flex; flex-direction: column; gap: 2px; }

    .servico-nome {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.2rem;
      font-weight: 500;
      color: var(--gray-900);
      line-height: 1.2;
    }

    .servico-desc { font-size: 0.76rem; color: var(--gray-500); }

    .servico-card.selected {
      background: linear-gradient(135deg, var(--rose-light), rgba(232,164,184,0.30));
      border-color: var(--rose);
      box-shadow: 0 2px 10px rgba(200,114,142,0.15);
    }

    .servico-card.selected .servico-check {
      background: linear-gradient(135deg, var(--rose), var(--rose-deep));
      border-color: var(--rose-deep);
    }

    .servico-card.selected .servico-check::after { opacity: 1; }

    .servico-card.selected .servico-nome { color: var(--rose-deep); }

    .servico-bloco {
      border-top: 1px solid var(--rose-border);
      padding-top: 20px;
    }

    .servico-bloco-title {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.25rem;
      font-style: italic;
      color: var(--rose-deep);
      margin-bottom: 16px;
    }

    /* ─── TERMO DE CONSENTIMENTO ─── */
    .consent {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      padding: 16px 18px;
      background: var(--rose-pale);
      border: 1.5px solid var(--rose-border);
      border-radius: var(--radius-sm);
      font-size: 0.88rem;
      line-height: 1.55;
      color: var(--gray-700);
      cursor: pointer;
    }

    .consent input {
      flex-shrink: 0;
      width: 18px; height: 18px;
      margin-top: 2px;
      accent-color: var(--rose-deep);
      cursor: pointer;
    }

    .consent .req { color: var(--rose-deep); }

    /* ─── CONDITIONAL FIELD ─── */
    .conditional {
      overflow: hidden;
      max-height: 0;
      opacity: 0;
      transition: max-height 0.35s cubic-bezier(.4,0,.2,1), opacity 0.3s ease, margin 0.3s;
      margin-top: 0;
    }

    .conditional.visible {
      max-height: 200px;
      opacity: 1;
      margin-top: 4px;
    }

    .parabens-msg {
      display: inline-block;
      margin-top: 10px;
      padding: 12px 20px;
      background: linear-gradient(135deg, var(--rose-pale), var(--rose-light));
      border: 1.5px solid var(--rose-border);
      border-radius: var(--radius-sm);
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.1rem;
      font-style: italic;
      color: #1a1a1a;
      letter-spacing: 0.02em;
    }

    /* ─── BUTTONS ─── */
    .btn-row {
      display: flex;
      gap: 12px;
      margin-top: 36px;
      align-items: center;
    }

    .btn-back {
      display: flex;
      align-items: center;
      gap: 6px;
      background: none;
      border: none;
      color: var(--gray-500);
      font-family: 'DM Sans', sans-serif;
      font-size: 0.85rem;
      cursor: pointer;
      padding: 8px 0;
      transition: color 0.15s;
    }

    .btn-back:hover { color: var(--rose-deep); }
    .btn-back svg { width: 16px; height: 16px; }

    .btn-next {
      margin-left: auto;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: linear-gradient(135deg, var(--rose), var(--rose-deep));
      color: white;
      border: none;
      border-radius: 99px;
      padding: 14px 32px;
      font-family: 'DM Sans', sans-serif;
      font-size: 0.88rem;
      font-weight: 500;
      letter-spacing: 0.04em;
      cursor: pointer;
      box-shadow: 0 4px 16px rgba(200,114,142,0.30);
      transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
    }

    .btn-next:hover {
      transform: translateY(-1px);
      box-shadow: 0 6px 24px rgba(200,114,142,0.40);
    }

    .btn-next:active { transform: translateY(0); }

    .btn-next svg { width: 16px; height: 16px; }

    .btn-whatsapp {
      margin-left: auto;
      display: inline-flex;
      align-items: center;
      gap: 10px;
      background: #25d366;
      color: white;
      border: none;
      border-radius: 99px;
      padding: 14px 32px;
      font-family: 'DM Sans', sans-serif;
      font-size: 0.88rem;
      font-weight: 500;
      cursor: pointer;
      box-shadow: 0 4px 16px rgba(37,211,102,0.28);
      transition: transform 0.15s, box-shadow 0.15s;
    }

    .btn-whatsapp:hover {
      transform: translateY(-1px);
      box-shadow: 0 6px 24px rgba(37,211,102,0.40);
    }

    .btn-whatsapp svg { width: 18px; height: 18px; fill: white; }

    /* ─── CONFIRMATION SCREEN ─── */
    .confirm-header {
      text-align: center;
      margin-bottom: 32px;
    }

    .confirm-icon {
      width: 64px; height: 64px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--rose-light), var(--rose));
      display: flex; align-items: center; justify-content: center;
      margin: 0 auto 20px;
    }

    .confirm-icon svg { width: 28px; height: 28px; stroke: white; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

    .confirm-header h2 {
      font-family: 'Cormorant Garamond', serif;
      font-weight: 400;
      font-size: 1.7rem;
      color: var(--gray-900);
      margin-bottom: 8px;
    }

    .confirm-header p {
      font-size: 0.85rem;
      color: var(--gray-500);
      line-height: 1.6;
    }

    .summary { display: flex; flex-direction: column; gap: 0; }

    .summary-section {
      border-top: 1px solid var(--rose-border);
      padding: 16px 0;
    }

    .summary-section:last-child { border-bottom: 1px solid var(--rose-border); }

    .summary-section-title {
      font-size: 0.68rem;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--rose-deep);
      font-weight: 500;
      margin-bottom: 10px;
    }

    .summary-row {
      display: flex;
      gap: 12px;
      margin-bottom: 6px;
      align-items: baseline;
    }

    .summary-q {
      font-size: 0.78rem;
      color: var(--gray-500);
      min-width: 160px;
      flex-shrink: 0;
      line-height: 1.45;
    }

    .summary-a {
      font-size: 0.82rem;
      color: var(--gray-800);
      font-weight: 500;
      line-height: 1.45;
    }

    /* ─── TOAST ─── */
    .toast {
      position: fixed;
      bottom: 28px; left: 50%;
      transform: translateX(-50%) translateY(80px);
      background: var(--gray-900);
      color: white;
      font-size: 0.82rem;
      padding: 12px 24px;
      border-radius: 99px;
      letter-spacing: 0.03em;
      opacity: 0;
      transition: transform 0.35s cubic-bezier(.4,0,.2,1), opacity 0.35s;
      z-index: 100;
      pointer-events: none;
      white-space: nowrap;
    }

    .toast.show {
      transform: translateX(-50%) translateY(0);
      opacity: 1;
    }

    /* ─── HIDE/SHOW ─── */
    .step { display: none; }
    .step.active { display: block; }

    /* ─── RESPONSIVE ─── */
    @media (max-width: 480px) {
      .card { padding: 28px 22px; border-radius: 20px; }
      .summary-q { min-width: 110px; font-size: 0.73rem; }
      .btn-row { flex-wrap: wrap; }
      .btn-whatsapp, .btn-next { margin-left: 0; width: 100%; justify-content: center; }
      .btn-back { order: -1; }
    }

    /* ─── PÁGINAS DE 3 EM 3 ─── */
    .pagina { display: none; }
    .pagina.active { display: block; animation: cardIn 0.3s cubic-bezier(.4,0,.2,1); }
    .pagina > .servico-bloco-title { margin-bottom: 20px; }

    /* ─── TEMAS, INCENTIVO E "NENHUMA DAS ANTERIORES" ─── */
    .tema-title {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.3rem;
      font-style: italic;
      color: var(--rose-deep);
      margin-bottom: 20px;
    }

    .incentivo {
      margin: -18px 0 24px;
      font-size: 0.92rem;
      color: var(--gray-700);
    }

    .incentivo:empty { display: none; }

    .btn-nenhuma {
      margin-top: 24px;
      width: 100%;
      padding: 12px 18px;
      border: 1.5px dashed var(--rose);
      border-radius: 99px;
      background: var(--rose-pale);
      color: var(--rose-deep);
      font-family: 'DM Sans', sans-serif;
      font-size: 0.92rem;
      font-weight: 500;
      cursor: pointer;
      transition: background 0.15s, border-style 0.15s;
    }

    .btn-nenhuma:hover { background: var(--rose-light); border-style: solid; }

    .field.em-branco > label::after {
      content: 'Sem resposta';
      margin-left: 8px;
      padding: 2px 8px;
      border-radius: 99px;
      background: var(--rose-light);
      color: var(--rose-deep);
      font-size: 0.7rem;
      font-weight: 500;
      vertical-align: middle;
    }

    .assinatura-field { margin-top: 4px; }

    /* ─── AVISO DE PERGUNTAS EM BRANCO ─── */
    .modal {
      position: fixed; inset: 0;
      display: none;
      align-items: center; justify-content: center;
      padding: 24px;
      background: rgba(17,24,39,0.45);
      z-index: 200;
    }

    .modal.show { display: flex; }

    .modal-box {
      width: 100%; max-width: 400px;
      background: var(--white);
      border-radius: 20px;
      padding: 28px 24px 22px;
      box-shadow: var(--shadow-card);
      animation: cardIn 0.25s cubic-bezier(.4,0,.2,1);
    }

    .modal-box h3 {
      font-family: 'Cormorant Garamond', serif;
      font-weight: 500;
      font-size: 1.45rem;
      margin-bottom: 8px;
    }

    .modal-box p { font-size: 0.92rem; color: var(--gray-700); line-height: 1.55; }

    .modal-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; }
    .modal-actions .btn-next { margin-left: 0; justify-content: center; }
    .modal-actions .btn-back { justify-content: center; }

    /* ─── ATENÇÃO NO RESUMO E BOTÃO PDF ─── */
    .summary-destaque {
      background: var(--rose-pale);
      border: 1.5px solid var(--rose);
      border-radius: var(--radius-sm);
      padding: 14px 16px;
      margin-bottom: 12px;
    }

    .summary-destaque + .summary-section { border-top: none; }

    .btn-next:disabled { opacity: 0.7; cursor: wait; }
