.ham-reg-root {
  --ham-navy: #022249;
  --ham-orange: #f58220;
  --ham-ink: #152b43;
  --ham-muted: #6f7c8b;
  --ham-border: #e5eaf0;
  --ham-paper: #ffffff;
  font-family: inherit;
  color: var(--ham-ink);
}
.ham-reg-root * { box-sizing: border-box; }
.ham-reg-launcher {
  display: inline-flex; align-items: center; justify-content: center; gap: 18px;
  border: 0; border-radius: 4px; padding: 15px 22px; cursor: pointer;
  background: var(--ham-orange); color: #fff; font: inherit; font-weight: 700;
  transition: transform .2s ease, background .2s ease; box-shadow: 0 8px 20px rgba(2,34,73,.12);
}
.ham-reg-launcher:hover { background: #df6d10; color: #fff; transform: translateY(-2px); }
.ham-reg-launcher-arrow { font-size: 19px; line-height: 1; }
.ham-reg-modal { display: none; position: fixed; inset: 0; z-index: 999999; align-items: center; justify-content: center; padding: 24px; }
.ham-reg-modal.is-open { display: flex; animation: hamRegFadeIn .22s ease both; }
.ham-reg-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: rgba(1,19,41,.76); backdrop-filter: blur(5px); cursor: default; }
.ham-reg-panel {
  position: relative; z-index: 1; width: min(100%, 980px); max-height: calc(100vh - 48px);
  overflow: auto; background: var(--ham-paper); border-radius: 12px;
  box-shadow: 0 28px 100px rgba(0,0,0,.3); animation: hamRegRise .28s ease both;
}
.ham-reg-close {
  position: absolute; top: 13px; right: 15px; z-index: 4; width: 38px; height: 38px; padding: 0;
  display: grid; place-items: center; border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%; background: rgba(2,34,73,.55); color: #fff; font-size: 27px; line-height: 1; cursor: pointer;
}
.ham-reg-close:hover { background: var(--ham-orange); border-color: var(--ham-orange); }
.ham-reg-layout { display: grid; grid-template-columns: 34% 66%; min-height: 620px; }
.ham-reg-aside { display: flex; flex-direction: column; padding: 34px 30px; background: var(--ham-navy); color: #fff; position: relative; overflow: hidden; }
.ham-reg-aside:after { content: ""; position: absolute; width: 260px; height: 260px; border: 1px solid rgba(245,130,32,.25); border-radius: 50%; right: -150px; bottom: 55px; box-shadow: 0 0 0 35px rgba(245,130,32,.035), 0 0 0 70px rgba(245,130,32,.025); pointer-events: none; }
.ham-reg-brand { display: flex; align-items: center; gap: 10px; font-size: 10px; font-weight: 800; letter-spacing: 1.4px; }
.ham-reg-brand-mark { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid var(--ham-orange); color: var(--ham-orange); font-family: Georgia,serif; font-size: 21px; }
.ham-reg-eyebrow { margin: 0 0 10px; color: var(--ham-orange); font-size: 10px; font-weight: 800; letter-spacing: 1.8px; }
.ham-reg-aside > .ham-reg-eyebrow { margin-top: 85px; }
.ham-reg-aside h2 { margin: 0 0 17px; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: clamp(28px,3vw,38px); line-height: 1.13; font-weight: 500; letter-spacing: -.5px; }
.ham-reg-aside-copy { color: rgba(255,255,255,.75); font-size: 14px; line-height: 1.8; margin: 0; }
.ham-reg-aside-bottom { margin-top: auto; position: relative; z-index: 1; }
.ham-reg-orange-line { display: block; width: 42px; height: 3px; margin-bottom: 15px; background: var(--ham-orange); }
.ham-reg-aside-bottom p { max-width: 220px; margin: 0; color: rgba(255,255,255,.68); font-size: 12px; line-height: 1.7; }
.ham-reg-main { padding: 42px 46px 24px; }
.ham-reg-heading h3, .ham-reg-success h3 { margin: 0 0 8px; color: var(--ham-navy); font-family: Georgia, "Times New Roman", serif; font-size: 30px; font-weight: 500; line-height: 1.2; }
.ham-reg-heading > p:last-child { margin: 0; color: var(--ham-muted); font-size: 13px; line-height: 1.6; }
.ham-reg-progress { display: flex; align-items: center; gap: 9px; margin: 28px 0; }
.ham-reg-progress-step { display: flex; align-items: center; gap: 7px; color: #a0aab6; white-space: nowrap; font-size: 10px; }
.ham-reg-progress-step span { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid #d9e0e7; border-radius: 50%; font-size: 9px; font-weight: 700; }
.ham-reg-progress-step b { font-weight: 600; }
.ham-reg-progress-step.is-active { color: var(--ham-navy); }
.ham-reg-progress-step.is-active span, .ham-reg-progress-step.is-complete span { color: #fff; background: var(--ham-navy); border-color: var(--ham-navy); }
.ham-reg-progress-step.is-complete span { background: var(--ham-orange); border-color: var(--ham-orange); }
.ham-reg-progress-track { height: 1px; min-width: 12px; flex: 1; background: #e5eaf0; }
.ham-reg-progress-track span { display: block; height: 100%; width: 0; background: var(--ham-orange); transition: width .25s ease; }
.ham-reg-progress-track.is-complete span { width: 100%; }
.ham-reg-step { display: none; animation: hamRegStepIn .22s ease both; }
.ham-reg-step.is-active { display: block; }
.ham-reg-field { margin-bottom: 17px; }
.ham-reg-field > label { display: block; margin-bottom: 7px; color: var(--ham-navy); font-size: 12px; font-weight: 700; }
.ham-reg-field > label span { color: var(--ham-orange); }
.ham-reg-field > label em { color: #9aa4af; font-style: normal; font-size: 10px; font-weight: 500; margin-left: 5px; }
.ham-reg-field input:not([type=radio]):not([type=checkbox]), .ham-reg-field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #d5dde6; border-radius: 6px;
  background: #fff; color: var(--ham-ink); font: inherit; font-size: 14px; line-height: 1.4;
  box-shadow: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.ham-reg-field textarea { resize: vertical; min-height: 84px; }
.ham-reg-field input:focus, .ham-reg-field textarea:focus { outline: 0; border-color: var(--ham-orange); box-shadow: 0 0 0 3px rgba(245,130,32,.18); }
.ham-reg-field.has-error input, .ham-reg-field.has-error textarea { border-color: #c0392b; }
.ham-reg-error, .ham-reg-consent-error { display: block; min-height: 0; margin-top: 5px; color: #c0392b; font-size: 11px; }
.ham-reg-error:empty, .ham-reg-consent-error:empty { display: none; }
.ham-reg-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ham-reg-choice { position: relative; display: block; margin: 0 !important; cursor: pointer; }
.ham-reg-choice input { position: absolute; opacity: 0; pointer-events: none; }
.ham-reg-choice > span { display: block; padding: 12px 14px; border: 1px solid #d5dde6; border-radius: 6px; transition: all .15s ease; }
.ham-reg-choice b { display: block; color: var(--ham-navy); font-size: 13px; }
.ham-reg-choice small { color: var(--ham-muted); font-size: 11px; font-weight: 400; }
.ham-reg-choice input:checked + span { border-color: var(--ham-orange); background: #fff7ef; box-shadow: 0 0 0 1px var(--ham-orange) inset; }
.ham-reg-choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(245,130,32,.3); }
.ham-reg-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; }
.ham-reg-actions-split { justify-content: space-between; }
.ham-reg-required-note { color: #9aa4af; font-size: 11px; }
.ham-reg-next, .ham-reg-submit, .ham-reg-success-close {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; border: 0; border-radius: 4px;
  background: var(--ham-orange); color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .2s ease, transform .2s ease;
}
.ham-reg-next:hover, .ham-reg-submit:hover, .ham-reg-success-close:hover { background: #df6d10; transform: translateY(-1px); }
.ham-reg-submit[disabled] { opacity: .6; cursor: wait; transform: none; }
.ham-reg-back-button { padding: 13px 4px; border: 0; background: transparent; color: var(--ham-navy); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.ham-reg-back-button:hover { color: var(--ham-orange); }
.ham-reg-review-intro { margin: 0 0 14px; color: var(--ham-muted); font-size: 13px; }
.ham-reg-review { border: 1px solid var(--ham-border); border-radius: 8px; overflow: hidden; }
.ham-reg-review-row { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 11px 15px; font-size: 13px; }
.ham-reg-review-row:nth-child(odd) { background: #f8fafc; }
.ham-reg-review-row dt { margin: 0; color: var(--ham-muted); font-weight: 600; }
.ham-reg-review-row dd { margin: 0; color: var(--ham-navy); word-break: break-word; white-space: pre-wrap; }
.ham-reg-consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; color: var(--ham-ink); font-size: 13px; line-height: 1.5; cursor: pointer; }
.ham-reg-consent input { margin-top: 3px; accent-color: var(--ham-orange); }
.ham-reg-privacy-note { margin: 16px 0 0; color: #9aa4af; font-size: 11px; line-height: 1.5; }
.ham-reg-message { margin-top: 14px; font-size: 13px; }
.ham-reg-message.is-error { padding: 10px 14px; border-radius: 6px; background: #fdecea; color: #a02618; }
.ham-reg-success { padding: 30px 0 20px; text-align: center; }
.ham-reg-success[hidden] { display: none; }
.ham-reg-success-icon { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 50%; background: var(--ham-orange); color: #fff; font-size: 30px; }
.ham-reg-success p:not(.ham-reg-eyebrow) { max-width: 380px; margin: 0 auto 22px; color: var(--ham-muted); font-size: 14px; line-height: 1.7; }
.ham-reg-footer { margin: 26px 0 0; padding-top: 16px; border-top: 1px solid var(--ham-border); color: #9aa4af; font-size: 9px; letter-spacing: 1.2px; text-align: center; }
.ham-reg-footer span { color: var(--ham-orange); margin: 0 6px; }
.ham-reg-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
body.ham-reg-locked { overflow: hidden; }

@keyframes hamRegFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes hamRegRise { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes hamRegStepIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 820px) {
  .ham-reg-modal { padding: 0; align-items: flex-end; }
  .ham-reg-panel { max-height: 94vh; border-radius: 14px 14px 0 0; }
  .ham-reg-layout { grid-template-columns: 1fr; min-height: 0; }
  .ham-reg-aside { padding: 22px 22px 20px; }
  .ham-reg-aside > .ham-reg-eyebrow, .ham-reg-aside-copy, .ham-reg-aside-bottom { display: none; }
  .ham-reg-aside h2 { margin: 14px 38px 0 0; font-size: 21px; }
  .ham-reg-main { padding: 26px 22px 18px; }
  .ham-reg-heading h3 { font-size: 24px; }
  .ham-reg-progress-step b { display: none; }
  .ham-reg-choice-grid { grid-template-columns: 1fr; }
  .ham-reg-review-row { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .ham-reg-modal.is-open, .ham-reg-panel, .ham-reg-step { animation: none; }
}

/* ------------------------------------------------------------------
   Floating alert (bottom-right)
------------------------------------------------------------------- */
.ham-reg-alert {
  --ham-navy: #022249; --ham-orange: #f58220;
  position: fixed; right: 24px; bottom: 24px; z-index: 999990;
  width: 372px; max-width: calc(100vw - 32px); padding: 18px 18px 18px;
  border: 1px solid rgba(255,255,255,.09); border-radius: 16px;
  background: linear-gradient(160deg, #04305f 0%, #022249 55%, #011a38 100%);
  color: #fff; font-family: inherit;
  box-shadow: 0 24px 60px rgba(1,19,41,.45), 0 2px 0 rgba(245,130,32,.9) inset;
  opacity: 0; transform: translateY(26px) scale(.98); pointer-events: none;
  transition: opacity .35s ease, transform .35s cubic-bezier(.2,.8,.2,1);
}
.ham-reg-alert * { box-sizing: border-box; }
.ham-reg-alert[hidden] { display: none; }
.ham-reg-alert.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.ham-reg-alert-close {
  position: absolute; top: 10px; right: 12px; width: 28px; height: 28px; padding: 0;
  border: 0; background: transparent; color: rgba(255,255,255,.6); font-size: 24px; line-height: 1; cursor: pointer; border-radius: 50%;
}
.ham-reg-alert-close:hover { color: #fff; background: rgba(255,255,255,.1); }
.ham-reg-alert-top { display: flex; gap: 14px; align-items: flex-start; padding-right: 22px; }
.ham-reg-alert-icon {
  position: relative; flex: 0 0 52px; width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 12px; background: rgba(245,130,32,.13); color: var(--ham-orange);
}
.ham-reg-alert-dot {
  position: absolute; top: -5px; right: -5px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--ham-orange); border: 2px solid #022249;
}
.ham-reg-alert-dot:after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--ham-orange);
  animation: hamRegPulse 1.8s ease-out infinite;
}
.ham-reg-alert-title { margin: 2px 0 5px; color: #fff; font-size: 16px; font-weight: 700; line-height: 1.3; }
.ham-reg-alert-text { margin: 0; color: rgba(255,255,255,.72); font-size: 13.5px; line-height: 1.6; }
.ham-reg-alert-cta {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 16px; padding: 13px 18px;
  border: 0; border-radius: 10px; background: var(--ham-orange); color: var(--ham-navy);
  font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; transition: background .2s ease, transform .2s ease;
}
.ham-reg-alert-cta:hover { background: #ff9238; transform: translateY(-1px); }
.ham-reg-alert-close:focus-visible, .ham-reg-alert-cta:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@keyframes hamRegPulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
@media (max-width: 520px) {
  .ham-reg-alert { right: 12px; left: 12px; bottom: 12px; width: auto; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ham-reg-alert { transition: opacity .2s ease; transform: none; }
  .ham-reg-alert-dot:after { animation: none; }
}
