.lhrp-portal {
  --lhrp-leaf: #4f6f32;
  --lhrp-leaf-dark: #385126;
  --lhrp-red: #b8322d;
  --lhrp-red-dark: #942722;
  --lhrp-gold: #efef1c;
  --lhrp-paper: #f7f7f4;
  --lhrp-white: #fff;
  --lhrp-ink: #222;
  --lhrp-muted: #5c6459;
  --lhrp-border: #d7d9d2;
  --lhrp-error: #a3211d;
  --lhrp-focus: #176896;
  width: min(1160px, calc(100% - 32px));
  margin: 48px auto 72px;
  color: var(--lhrp-ink);
  font-family: "Libre Franklin", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

.lhrp-portal *, .lhrp-portal *::before, .lhrp-portal *::after { box-sizing: border-box; }
.lhrp-portal [hidden] { display: none !important; }
.lhrp-portal :is(button, input, select, textarea) { font: inherit; }
.lhrp-portal :is(button, input, select, textarea):focus-visible { outline: 3px solid var(--lhrp-focus); outline-offset: 2px; }
.lhrp-portal button { cursor: pointer; }

.lhrp-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 28px;
}
.lhrp-intro > div:first-child { max-width: 760px; }
.lhrp-kicker { margin: 0 0 7px; color: var(--lhrp-red); font-size: 14px; font-weight: 900; }
.lhrp-intro h2 { margin: 0; font-size: 44px; font-weight: 900; line-height: 1.08; letter-spacing: 0; }
.lhrp-intro p:last-child { margin: 14px 0 0; color: var(--lhrp-muted); font-size: 18px; }
.lhrp-language { display: flex; flex: 0 0 auto; padding: 3px; border: 1px solid var(--lhrp-border); border-radius: 6px; background: var(--lhrp-white); }
.lhrp-language button { min-height: 44px; padding: 8px 13px; border: 0; border-radius: 4px; color: var(--lhrp-muted); background: transparent; font-size: 14px; font-weight: 800; }
.lhrp-language button[aria-pressed="true"] { color: var(--lhrp-white); background: var(--lhrp-leaf-dark); }

.lhrp-test-notice {
  display: flex;
  gap: 14px;
  align-items: baseline;
  margin-bottom: 16px;
  padding: 13px 17px;
  border-left: 5px solid #879600;
  color: #343908;
  background: #f8f9d8;
}
.lhrp-test-notice strong { flex: 0 0 auto; }

.lhrp-shell { overflow: hidden; border: 1px solid var(--lhrp-border); border-radius: 8px; background: var(--lhrp-white); box-shadow: 0 18px 42px rgba(34, 34, 34, 0.1); }
.lhrp-steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); background: var(--lhrp-leaf-dark); }
.lhrp-steps button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 74px;
  padding: 12px 14px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.76);
  background: transparent;
  text-align: left;
}
.lhrp-steps button:last-child { border-right: 0; }
.lhrp-steps button:not(:disabled):hover { background: rgba(255, 255, 255, 0.08); }
.lhrp-steps button:disabled { cursor: default; opacity: 0.65; }
.lhrp-steps button[aria-current="step"] { color: var(--lhrp-white); background: rgba(255, 255, 255, 0.13); }
.lhrp-steps button > span { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 50%; font-size: 12px; font-weight: 900; }
.lhrp-steps button[aria-current="step"] > span { border-color: var(--lhrp-gold); color: var(--lhrp-ink); background: var(--lhrp-gold); }
.lhrp-steps button.is-complete > span { border-color: var(--lhrp-white); color: var(--lhrp-leaf-dark); background: var(--lhrp-white); }
.lhrp-steps b { overflow-wrap: anywhere; font-size: 12px; line-height: 1.25; }
.lhrp-mobile-progress { display: none; }

#lhrp-registration-form { margin: 0; }
.lhrp-panel { min-height: 590px; padding: 42px 54px 48px; }
.lhrp-panel-heading { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 32px; padding-bottom: 23px; border-bottom: 1px solid var(--lhrp-border); }
.lhrp-panel-heading > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--lhrp-white); background: var(--lhrp-red); font-size: 13px; font-weight: 900; }
.lhrp-panel-heading h3 { margin: 0; font-size: 28px; font-weight: 900; line-height: 1.2; letter-spacing: 0; }
.lhrp-panel-heading p { max-width: 720px; margin: 7px 0 0; color: var(--lhrp-muted); }
.lhrp-panel h4 { margin: 29px 0 13px; color: var(--lhrp-leaf-dark); font-size: 18px; }

.lhrp-grid { display: grid; gap: 21px 22px; }
.lhrp-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lhrp-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lhrp-grid--address { grid-template-columns: minmax(0, 1fr) 96px 130px; }
.lhrp-span-2 { grid-column: 1 / -1; }
.lhrp-field { display: grid; align-content: start; gap: 7px; min-width: 0; margin: 0; color: var(--lhrp-ink); font-weight: 800; }
.lhrp-field > span { font-size: 14px; line-height: 1.35; }
.lhrp-field :is(input, select, textarea) {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #aeb3aa;
  border-radius: 4px;
  color: var(--lhrp-ink);
  background: var(--lhrp-white);
  box-shadow: none;
  font-weight: 500;
}
.lhrp-field textarea { min-height: 112px; resize: vertical; }
.lhrp-field :is(input, select, textarea):hover { border-color: #737b70; }
.lhrp-field :is(input, select, textarea)[aria-invalid="true"] { border: 2px solid var(--lhrp-error); }

.lhrp-choice-group, .lhrp-address { margin: 28px 0 0; padding: 0; border: 0; }
.lhrp-choice-group legend, .lhrp-address legend, .lhrp-policy-list legend { margin-bottom: 8px; font-size: 16px; font-weight: 900; }
.lhrp-choice-group > p { margin: -3px 0 12px; color: var(--lhrp-muted); font-size: 13px; }
.lhrp-choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.lhrp-choice-row label, .lhrp-check-grid label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 48px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--lhrp-border);
  border-radius: 5px;
  background: var(--lhrp-paper);
  font-size: 14px;
  font-weight: 700;
}
.lhrp-choice-row label { flex: 1 1 220px; }
.lhrp-choice-row input, .lhrp-check-grid input, .lhrp-toggle input, .lhrp-policy-list input, .lhrp-payment-options input, .lhrp-final-confirmation input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--lhrp-leaf); }
.lhrp-check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lhrp-choice-row label:has(input:checked), .lhrp-check-grid label:has(input:checked) { border-color: var(--lhrp-leaf); background: #edf3e7; }

.lhrp-conditional { margin-top: 18px; padding: 20px; border-left: 4px solid var(--lhrp-leaf); background: #f3f6ef; }
.lhrp-toggle { display: flex; align-items: flex-start; gap: 11px; margin: 28px 0 0; font-size: 14px; font-weight: 800; }
.lhrp-address + .lhrp-toggle { padding-top: 24px; border-top: 1px solid var(--lhrp-border); }
.lhrp-text-button { min-height: 44px; margin-top: 14px; padding: 8px 0; border: 0; color: var(--lhrp-red); background: transparent; font-weight: 900; text-decoration: underline; text-underline-offset: 4px; }

.lhrp-policy-list { display: grid; gap: 13px; }
.lhrp-policy-list > label, .lhrp-policy-list > fieldset, .lhrp-payment-options > label {
  display: flex;
  gap: 13px;
  margin: 0;
  padding: 17px 18px;
  border: 1px solid var(--lhrp-border);
  border-radius: 5px;
  background: var(--lhrp-paper);
}
.lhrp-policy-list > fieldset { display: block; }
.lhrp-policy-list b, .lhrp-payment-options b { display: block; font-size: 15px; }
.lhrp-policy-list small, .lhrp-payment-options small { display: block; margin-top: 4px; color: var(--lhrp-muted); font-size: 13px; font-weight: 500; line-height: 1.45; }
.lhrp-policy-list > label:has(input:checked), .lhrp-payment-options > label:has(input:checked) { border-color: var(--lhrp-leaf); background: #edf3e7; }
.lhrp-signature { max-width: 620px; margin-top: 26px; }

.lhrp-payment-options { display: grid; gap: 13px; max-width: 800px; }
.lhrp-payment-options > label { align-items: flex-start; cursor: pointer; }
.lhrp-payment-options input { margin-top: 3px; }

.lhrp-error-summary { margin: 30px 54px 0; padding: 14px 17px; border-left: 5px solid var(--lhrp-error); color: #681612; background: #fff1f0; }
.lhrp-error-summary strong, .lhrp-error-summary span { display: block; }
.lhrp-error-summary span { margin-top: 2px; font-size: 13px; }
.lhrp-field-error { display: block; margin-top: 5px; color: var(--lhrp-error); font-size: 13px; font-weight: 800; }
.is-invalid { border-color: var(--lhrp-error) !important; }

.lhrp-review-section { margin-bottom: 16px; border: 1px solid var(--lhrp-border); border-radius: 5px; }
.lhrp-review-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 18px; border-bottom: 1px solid var(--lhrp-border); background: #eef3e9; }
.lhrp-review-heading h4 { margin: 0; color: var(--lhrp-ink); font-size: 16px; }
.lhrp-review-heading button { min-height: 44px; padding: 7px 9px; border: 0; color: var(--lhrp-red); background: transparent; font-weight: 900; text-decoration: underline; text-underline-offset: 3px; }
.lhrp-review-section dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin: 0; padding: 18px; }
.lhrp-review-section dt { color: var(--lhrp-muted); font-size: 11px; font-weight: 800; }
.lhrp-review-section dd { margin: 3px 0 0; overflow-wrap: anywhere; font-weight: 700; }
.lhrp-final-confirmation { display: flex; align-items: flex-start; gap: 12px; margin: 24px 0 0; padding: 16px 18px; border: 2px solid var(--lhrp-leaf); border-radius: 5px; background: #edf3e7; font-weight: 800; }

.lhrp-actions { display: flex; justify-content: space-between; gap: 12px; padding: 20px 54px 26px; border-top: 1px solid var(--lhrp-border); background: var(--lhrp-paper); }
.lhrp-primary-button, .lhrp-secondary-button { min-height: 48px; padding: 11px 20px; border-radius: 5px; font-weight: 900; }
.lhrp-primary-button { margin-left: auto; border: 2px solid var(--lhrp-red); color: var(--lhrp-white); background: var(--lhrp-red); }
.lhrp-primary-button:hover { border-color: var(--lhrp-red-dark); background: var(--lhrp-red-dark); }
.lhrp-primary-button:disabled { cursor: wait; opacity: 0.7; }
.lhrp-secondary-button { border: 2px solid var(--lhrp-leaf-dark); color: var(--lhrp-leaf-dark); background: transparent; }
.lhrp-secondary-button:hover { color: var(--lhrp-white); background: var(--lhrp-leaf-dark); }

.lhrp-confirmation { max-width: 700px; min-height: 520px; margin: 0 auto; padding: 70px 36px; text-align: center; }
.lhrp-confirmation-mark { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; color: var(--lhrp-white); background: var(--lhrp-leaf); font-size: 30px; font-weight: 900; }
.lhrp-confirmation h3 { margin: 8px 0 30px; font-size: 30px; }
.lhrp-confirmation > strong { display: inline-block; padding: 12px 18px; border: 2px solid var(--lhrp-leaf); background: #edf3e7; font-size: 22px; letter-spacing: 0; }
.lhrp-confirmation > p:not(.lhrp-kicker) { color: var(--lhrp-muted); }
.lhrp-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.lhrp-closed { width: min(900px, calc(100% - 32px)); margin: 48px auto; padding: 30px; border-left: 6px solid #4f6f32; background: #f3f6ef; }

@media (max-width: 900px) {
  .lhrp-portal { margin-top: 32px; }
  .lhrp-intro { align-items: flex-start; flex-direction: column; gap: 18px; }
  .lhrp-intro h2 { font-size: 36px; }
  .lhrp-steps { display: none; }
  .lhrp-mobile-progress { display: grid; gap: 8px; padding: 16px 24px; color: var(--lhrp-white); background: var(--lhrp-leaf-dark); font-size: 13px; font-weight: 800; }
  .lhrp-progress-track { display: block; height: 5px; overflow: hidden; background: rgba(255, 255, 255, 0.22); }
  .lhrp-progress-track i { display: block; width: 16.66%; height: 100%; background: var(--lhrp-gold); transition: width 180ms ease; }
  .lhrp-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .lhrp-portal { width: min(100% - 20px, 1160px); margin: 24px auto 48px; font-size: 16px; }
  .lhrp-intro h2 { font-size: 31px; }
  .lhrp-intro p:last-child { font-size: 16px; }
  .lhrp-language { width: 100%; }
  .lhrp-language button { flex: 1 1 50%; }
  .lhrp-test-notice { align-items: flex-start; flex-direction: column; gap: 2px; }
  .lhrp-panel { min-height: 0; padding: 28px 20px 34px; }
  .lhrp-panel-heading { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
  .lhrp-panel-heading > span { width: 38px; height: 38px; }
  .lhrp-panel-heading h3 { font-size: 23px; }
  .lhrp-grid--2, .lhrp-grid--3, .lhrp-grid--address, .lhrp-check-grid, .lhrp-review-section dl { grid-template-columns: 1fr; }
  .lhrp-span-2 { grid-column: auto; }
  .lhrp-choice-row { display: grid; }
  .lhrp-choice-row label { width: 100%; }
  .lhrp-conditional { padding: 17px; }
  .lhrp-error-summary { margin: 20px 20px 0; }
  .lhrp-actions { position: sticky; bottom: 0; z-index: 2; padding: 14px 20px; box-shadow: 0 -8px 18px rgba(34, 34, 34, 0.08); }
  .lhrp-actions button { flex: 1 1 50%; }
  .lhrp-confirmation { min-height: 470px; padding: 54px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .lhrp-portal *, .lhrp-portal *::before, .lhrp-portal *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
  .lhrp-intro, .lhrp-test-notice, .lhrp-steps, .lhrp-mobile-progress, #lhrp-registration-form, .lhrp-confirmation button { display: none !important; }
  .lhrp-portal, .lhrp-shell { width: 100%; margin: 0; border: 0; box-shadow: none; }
  .lhrp-confirmation { display: block !important; }
}
