* { box-sizing: border-box; margin: 0; padding: 0; }
  :root {
    --accent: #904828;
    --accent-2: #ae5f3e;
    --gold: #755b00;
    --bg: #fdfcf9;
    --surface: #f5f2ed;
    --card: #ffffff;
    --border: #f0ede8;
    --border-mid: #e0d9d0;
    --text: #1b1c1a;
    --muted: #6f625a;
    --shadow: rgba(0,0,0,0.04);
  }
  body { background: var(--bg); color: var(--text); font-family: 'Work Sans', sans-serif; min-height: 100vh; -webkit-font-smoothing: antialiased; }
  .rlp-wrap { width: 100%; min-height: 100vh; }
  .rlp-container { max-width: 860px; margin: 0 auto; width: 100%; padding: 0 24px; }
  .rlp-hero { padding: 52px 0 28px; text-align: center; }
  .rlp-category-label { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.2em; color: var(--accent); text-transform: uppercase; opacity: 0.65; display: block; margin-bottom: 16px; }
  .rlp-title { font-family: 'Noto Serif', serif; font-size: clamp(2rem, 6vw, 3.5rem); font-style: italic; font-weight: 700; color: var(--accent-2); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 20px; }
  .rlp-intro { font-size: 16px; color: #54433d; line-height: 1.7; font-weight: 300; max-width: 620px; margin: 0 auto; }
  .identity-card, .hormone-section, .results-section {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 4px 40px var(--shadow);
  }
  .identity-card { padding: 28px; margin-bottom: 18px; }
  .field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .field { display: flex; flex-direction: column; gap: 7px; }
  label.field-label { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); opacity: 0.7; }
  input[type=text], input[type=email] {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border-mid);
    border-radius: 7px;
    padding: 12px 14px;
    color: var(--text);
    font-family: 'Work Sans', sans-serif;
    font-size: 15px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
  }
  input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(144,72,40,0.12); }
  .progress-bar-wrap {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(253,252,249,0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 14px 0 0;
    margin-bottom: 20px;
  }
  .progress-stats { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; color: var(--muted); font-family: 'Plus Jakarta Sans', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
  .progress-track { height: 5px; background: var(--border); border-radius: 999px; overflow: hidden; margin-bottom: 14px; }
  .progress-fill { height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width 0.35s ease; }
  .hormone-section { margin-bottom: 14px; overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s; }
  .hormone-section.has-checked { border-color: rgba(144,72,40,0.4); box-shadow: 0 8px 34px rgba(144,72,40,0.08); }
  .hormone-header {
    width: 100%;
    border: none;
    background: transparent;
    padding: 20px 22px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    text-align: left;
    color: inherit;
  }
  .hormone-name { flex: 1; min-width: 0; }
  .hormone-name h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
  .hormone-count { font-size: 11px; color: var(--muted); font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600; letter-spacing: 0.04em; }
  .hormone-count span { color: var(--accent); }
  .collapse-arrow { color: var(--accent); font-size: 12px; transform: rotate(0); transition: transform 0.25s ease; }
  .hormone-section.collapsed .collapse-arrow { transform: rotate(-90deg); }
  .symptoms-list { padding: 0 22px 20px; display: flex; flex-direction: column; gap: 4px; overflow: hidden; transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.25s ease; }
  .hormone-section.collapsed .symptoms-list { max-height: 0 !important; opacity: 0; padding-bottom: 0; }
  .symptom-item { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 8px; cursor: pointer; transition: background 0.15s ease; }
  .symptom-item:hover, .symptom-item.checked { background: #f8f1ed; }
  .symptom-check { display: none; }
  .custom-check { width: 20px; height: 20px; border: 1.5px solid var(--border-mid); border-radius: 5px; flex-shrink: 0; margin-top: 1px; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; background: white; }
  .custom-check::after { content: ''; width: 5px; height: 9px; border-right: 2px solid white; border-bottom: 2px solid white; transform: rotate(45deg) scale(0) translateY(-1px); transition: transform 0.15s ease; }
  .symptom-check:checked ~ .custom-check { background: var(--accent); border-color: var(--accent); }
  .symptom-check:checked ~ .custom-check::after { transform: rotate(45deg) scale(1) translateY(-1px); }
  .symptom-text { flex: 1; color: var(--muted); font-size: 14px; line-height: 1.5; }
  .symptom-check:checked ~ .symptom-text { color: var(--text); font-weight: 500; }
  .results-section { display: none; padding: 28px; margin: 20px 0 100px; }
  .results-section.visible { display: block; }
  .results-title { font-family: 'Noto Serif', serif; font-size: 28px; font-style: italic; font-weight: 700; color: var(--text); margin-bottom: 8px; }
  .results-subtitle { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 20px; }
  .result-hormone-card { border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 10px 10px 0; padding: 14px 16px; margin-bottom: 10px; }
  .result-hormone-name { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--accent); margin-bottom: 7px; }
  .result-count-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
  .result-bar { flex: 1; height: 5px; border-radius: 999px; overflow: hidden; background: var(--border-mid); }
  .result-bar-fill { height: 100%; background: var(--accent); border-radius: 999px; }
  .result-count-text { font-family: 'Plus Jakarta Sans', sans-serif; color: var(--gold); font-size: 11px; font-weight: 700; white-space: nowrap; }
  .result-symptoms-list { font-size: 13px; line-height: 1.7; color: var(--muted); }
  .rlp-cta { position: relative; background-color: var(--accent-2); overflow: hidden; padding: 54px 24px; text-align: center; border-radius: 16px; margin: 18px 0 120px; color: #fff; }
  .rlp-cta::before { content: ''; position: absolute; inset: 0; background-image: url('https://www.transparenttextures.com/patterns/natural-paper.png'); opacity: 0.18; pointer-events: none; }
  .rlp-cta-eyebrow, .rlp-cta-title, .rlp-cta-body { position: relative; z-index: 1; }
  .rlp-cta-eyebrow { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.3em; color: rgba(255,251,255,0.72); text-transform: uppercase; display: block; margin-bottom: 18px; }
  .rlp-cta-title { font-family: 'Noto Serif', serif; font-size: clamp(1.5rem, 4vw, 2.3rem); font-style: italic; font-weight: 700; margin-bottom: 16px; }
  .rlp-cta-body { font-size: 15px; color: rgba(255,251,255,0.82); font-weight: 300; max-width: 520px; margin: 0 auto; line-height: 1.6; }
  .thank-you-section { display: none; margin-bottom: 22px; }
  .thank-you-section.visible { display: block; }
  .sticky-footer { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(253,252,249,0.95); backdrop-filter: blur(12px); border-top: 1px solid var(--border); z-index: 30; padding: 14px 20px; }
  .sticky-footer.submitted { display: none; }
  .footer-inner { max-width: 860px; margin: 0 auto; display: flex; align-items: center; gap: 10px; }
  .footer-summary { flex: 1; color: var(--muted); font-family: 'Plus Jakarta Sans', sans-serif; font-size: 12px; font-weight: 700; }
  .footer-summary span { color: var(--accent); font-size: 18px; }
  .btn-primary, .btn-secondary { border: none; border-radius: 6px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; transition: background 0.2s, opacity 0.2s, transform 0.1s; }
  .btn-primary { background: var(--accent); color: white; padding: 14px 28px; }
  .btn-primary:hover { background: #c4714e; }
  .btn-primary:active, .btn-secondary:active { transform: scale(0.98); }
  .btn-primary:disabled { background: var(--border-mid); color: var(--muted); cursor: not-allowed; }
  .btn-secondary { background: transparent; color: var(--muted); border: 1px solid var(--border-mid); padding: 12px 18px; }
  .btn-secondary:hover { background: var(--surface); color: var(--text); }
  .status-msg { min-height: 20px; margin-top: 12px; font-size: 13px; color: var(--muted); line-height: 1.5; }
  .status-msg.error { color: #b93a2b; }
  .status-msg.ok { color: #2d6a4f; }
  .consent-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.5;
  }
  .consent-row input {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 1px;
    accent-color: var(--accent);
  }
  .consent-row a { color: var(--accent); font-weight: 600; }
  .hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
  @media (max-width: 640px) {
    .rlp-container { padding: 0 18px; }
    .field-grid { grid-template-columns: 1fr; }
    .identity-card, .results-section { padding: 22px 18px; }
    .hormone-header { padding: 18px 18px 14px; }
    .symptoms-list { padding-left: 18px; padding-right: 18px; }
    .footer-inner { align-items: stretch; }
    .btn-primary { padding: 13px 20px; }
  }

/* Extracted declarations retain precedence over component defaults. */
#public-form [hidden] { display:none !important; }
