.mosella-setup-notice {
  margin: 20px 0;
  padding: 18px 20px;
  border: 1px solid #e3c45f;
  border-radius: 12px;
  background: #fff8d8;
  color: #493b09;
  font: 500 15px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.mosella-form-app {
  --mosella-blue: #0756c9;
  --mosella-blue-dark: #063b8f;
  --mosella-blue-soft: #eaf2ff;
  --mosella-ink: #111722;
  --mosella-muted: #5c6676;
  --mosella-line: #dce2ea;
  --mosella-page: #f4f6f9;
  --mosella-green: #126c42;
  --mosella-green-soft: #eaf7f1;
  --mosella-red: #b42318;
  --mosella-red-soft: #fff0ef;
  --mosella-yellow: #f2c316;
  width: 100%;
  max-width: 1040px;
  margin: 24px auto 54px;
  color: var(--mosella-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

.mosella-form-app,
.mosella-form-app * {
  box-sizing: border-box;
}

.mosella-form-app button,
.mosella-form-app input,
.mosella-form-app select,
.mosella-form-app textarea {
  font: inherit;
}

.mosella-form-app a {
  color: var(--mosella-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mosella-form-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid #173b83;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(125deg, #020817 0%, #071a3d 55%, #0756c9 135%);
  color: #fff;
  box-shadow: 0 18px 48px rgba(2, 8, 23, .16);
}

.mosella-form-hero::after {
  position: absolute;
  width: 360px;
  height: 360px;
  top: -210px;
  right: -130px;
  border: 66px solid rgba(255, 255, 255, .045);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.mosella-form-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 17px;
}

.mosella-form-brand img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: contain;
  background: #fff;
}

.mosella-form-app .mosella-eyebrow {
  margin: 0 0 6px;
  color: #bed8ff;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.mosella-form-app .mosella-form-hero h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 5vw, 50px);
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -.035em;
}

.mosella-form-hero > p {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 22px 0 0;
  color: #e6efff;
  font-size: 17px;
}

.mosella-form-hero ul {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.mosella-form-hero li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
}

.mosella-form-hero li::before {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  background: var(--mosella-yellow);
  color: #101010;
  content: "✓";
  font-size: 12px;
  font-weight: 900;
}

.mosella-membership-form {
  overflow: hidden;
  border: 1px solid var(--mosella-line);
  border-top: 0;
  border-radius: 0 0 22px 22px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(18, 23, 34, .10);
}

.mosella-progress {
  padding: 24px 30px 21px;
  border-bottom: 1px solid var(--mosella-line);
  background: #fbfcfe;
}

.mosella-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.mosella-progress-top strong {
  font-size: 15px;
}

.mosella-progress-top span {
  color: var(--mosella-muted);
  font-size: 13px;
}

.mosella-progress-bar {
  overflow: hidden;
  height: 7px;
  border-radius: 99px;
  background: #e4e9f0;
}

.mosella-progress-bar span {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mosella-blue-dark), #1681f4);
  transition: width .25s ease;
}

.mosella-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.mosella-steps li {
  color: #778092;
  font-size: 12px;
  font-weight: 750;
  text-align: center;
  white-space: nowrap;
}

.mosella-steps li.active { color: var(--mosella-blue); }
.mosella-steps li.complete { color: var(--mosella-green); }

.mosella-panel {
  display: none;
  padding: clamp(28px, 5vw, 48px);
  animation: mosella-panel-in .2s ease;
}

.mosella-panel.active { display: block; }

@keyframes mosella-panel-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.mosella-form-app .mosella-kicker {
  margin: 0 0 7px;
  color: var(--mosella-blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.mosella-form-app .mosella-panel h3 {
  margin: 0;
  color: var(--mosella-ink);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 830;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.mosella-form-app .mosella-panel h4 {
  margin: 0 0 8px;
  color: var(--mosella-ink);
  font-size: 16px;
  font-weight: 800;
}

.mosella-intro {
  max-width: 760px;
  margin: 10px 0 28px;
  color: var(--mosella-muted);
}

.mosella-form-app fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.mosella-form-app fieldset + fieldset,
.mosella-block {
  margin-top: 32px;
}

.mosella-form-app legend {
  display: block;
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
  color: var(--mosella-ink);
  font-size: 16px;
  font-weight: 800;
}

.mosella-form-app legend span,
.mosella-field label span {
  color: var(--mosella-muted);
  font-size: 12px;
  font-weight: 500;
}

.mosella-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mosella-choice-grid.mosella-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mosella-choice,
.mosella-sport {
  position: relative;
  display: block;
  min-width: 0;
}

.mosella-choice input,
.mosella-sport input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mosella-choice > span {
  display: flex;
  min-height: 78px;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 14px 16px;
  border: 1.5px solid var(--mosella-line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.mosella-choice strong { font-size: 15px; }
.mosella-choice small { color: var(--mosella-muted); font-size: 12px; }

.mosella-choice input:checked + span {
  border-color: var(--mosella-blue);
  background: var(--mosella-blue-soft);
  box-shadow: 0 0 0 1px var(--mosella-blue);
}

.mosella-choice input:focus-visible + span,
.mosella-sport input:focus-visible + span {
  outline: 3px solid rgba(7, 86, 201, .22);
  outline-offset: 2px;
}

.mosella-sports-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.mosella-sport > span {
  display: flex;
  min-height: 80px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px;
  border: 1.5px solid var(--mosella-line);
  border-radius: 12px;
  background: #fff;
  color: #313a49;
  text-align: center;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.mosella-sport strong { font-size: 14px; line-height: 1.25; }
.mosella-sport small { color: var(--mosella-muted); font-size: 11px; line-height: 1.3; }
.mosella-sport small.mosella-price-pending { color: #806000; font-weight: 750; }

.mosella-sport input:checked + span {
  border-color: var(--mosella-blue);
  background: var(--mosella-blue);
  color: #fff;
  box-shadow: 0 7px 18px rgba(7, 86, 201, .18);
}

.mosella-sport input:checked + span small { color: #e3efff; }
.mosella-sport input:checked + span .mosella-price-pending { color: #fff1a9; }

.mosella-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.mosella-field-grid.mosella-address { grid-template-columns: 2fr .8fr; }
.mosella-field-grid.mosella-place { grid-template-columns: .7fr 1.6fr; }

.mosella-field { min-width: 0; margin-top: 18px; }
.mosella-field-grid .mosella-field { margin-top: 0; }
.mosella-field.mosella-full { grid-column: 1 / -1; }

.mosella-field > label {
  display: block;
  margin-bottom: 7px;
  color: #283141;
  font-size: 14px;
  font-weight: 760;
}

.mosella-form-app input[type="text"],
.mosella-form-app input[type="email"],
.mosella-form-app input[type="tel"],
.mosella-form-app input[type="date"],
.mosella-form-app select,
.mosella-form-app textarea {
  width: 100%;
  min-height: 50px;
  padding: 11px 13px;
  border: 1.5px solid #cfd6e0;
  border-radius: 11px;
  outline: none;
  background: #fff;
  color: var(--mosella-ink);
  font-size: 16px;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.mosella-form-app input:focus,
.mosella-form-app select:focus,
.mosella-form-app textarea:focus {
  border-color: var(--mosella-blue);
  box-shadow: 0 0 0 4px rgba(7, 86, 201, .16);
}

.mosella-form-app input:user-invalid,
.mosella-form-app select:user-invalid,
.mosella-form-app textarea:user-invalid {
  border-color: var(--mosella-red);
}

.mosella-field > small,
.mosella-help-large {
  display: block;
  margin: 6px 0 0;
  color: var(--mosella-muted);
  font-size: 12px;
}

.mosella-help-large {
  font-size: 14px;
}

.mosella-conditional {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid #cbdcf8;
  border-radius: 15px;
  background: #f8faff;
}

.mosella-conditional[hidden] { display: none !important; }

.mosella-minor-state {
  display: none;
  margin-bottom: 20px;
  padding: 14px 16px;
  border-left: 4px solid var(--mosella-blue);
  border-radius: 10px;
  background: var(--mosella-blue-soft);
  color: #173e78;
  font-size: 14px;
}

.mosella-minor-state.show { display: block; }

.mosella-note {
  margin: 16px 0 0;
  padding: 14px 16px;
  border: 1px solid #efd26b;
  border-radius: 12px;
  background: #fff8dc;
  color: #4e4105;
  font-size: 13px;
}

.mosella-error-text {
  display: none;
  margin: 9px 0 0;
  color: var(--mosella-red);
  font-size: 13px;
  font-weight: 750;
}

.mosella-error-text.show { display: block; }

.mosella-family-row {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1fr 1.25fr auto;
  gap: 10px;
  align-items: end;
  padding: 14px 0;
  border-top: 1px solid var(--mosella-line);
}

.mosella-family-row:first-child { border-top: 0; }

.mosella-family-row label {
  display: block;
  color: #3a4351;
  font-size: 11px;
  font-weight: 730;
}

.mosella-family-row label input { margin-top: 5px; }

.mosella-remove {
  width: 46px;
  height: 50px;
  border: 1px solid #d6dce5;
  border-radius: 11px;
  background: #fff;
  color: var(--mosella-red);
  font-size: 18px;
  cursor: pointer;
}

.mosella-remove:hover { background: var(--mosella-red-soft); }

.mosella-mandate {
  margin: 22px 0;
  padding: 21px;
  border: 1px solid #cfd7e3;
  border-radius: 15px;
  background: #fbfcfe;
}

.mosella-mandate-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--mosella-line);
}

.mosella-mandate p { margin: 0; color: #313a49; font-size: 14px; }
.mosella-mandate p + p { margin-top: 10px; }
.mosella-mandate-head p + p { margin-top: 0; }
.mosella-mandate-head strong { display: block; color: var(--mosella-muted); font-size: 12px; }
.mosella-mandate-head span { font-weight: 800; }

.mosella-checkline {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 16px;
  cursor: pointer;
}

.mosella-checkline input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--mosella-blue);
}

.mosella-checkline span { font-size: 14px; }

.mosella-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0;
}

.mosella-review-card {
  position: relative;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--mosella-line);
  border-radius: 15px;
  background: #fff;
}

.mosella-form-app .mosella-review-card h4 {
  margin: 0 62px 9px 0;
  font-size: 15px;
}

.mosella-review-card p {
  margin: 0;
  overflow-wrap: anywhere;
  color: #454e5d;
  font-size: 13px;
  white-space: pre-line;
}

.mosella-edit {
  position: absolute;
  top: 13px;
  right: 12px;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: var(--mosella-blue);
  font-size: 12px;
  font-weight: 790;
  cursor: pointer;
}

.mosella-security-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 15px 17px;
  border: 1px solid #b9e1cd;
  border-radius: 13px;
  background: var(--mosella-green-soft);
  color: #164e35;
}

.mosella-security-note span { flex: 0 0 auto; }
.mosella-security-note p { margin: 0; font-size: 13px; }

.mosella-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--mosella-line);
}

.mosella-actions .mosella-right { margin-left: auto; }

.mosella-primary,
.mosella-secondary,
.mosella-ghost {
  min-height: 48px;
  padding: 11px 19px;
  border-radius: 12px;
  font-weight: 790;
  cursor: pointer;
  transition: transform .12s ease, background .16s ease, border-color .16s ease;
}

.mosella-primary {
  border: 1.5px solid var(--mosella-blue);
  background: var(--mosella-blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(7, 86, 201, .18);
}

.mosella-primary:hover { border-color: var(--mosella-blue-dark); background: var(--mosella-blue-dark); }
.mosella-primary:disabled { opacity: .58; cursor: wait; }

.mosella-secondary {
  border: 1.5px solid var(--mosella-blue);
  background: #fff;
  color: var(--mosella-blue);
}

.mosella-secondary:hover { background: var(--mosella-blue-soft); }

.mosella-ghost {
  border: 1.5px solid #cad2dd;
  background: #fff;
  color: #303947;
}

.mosella-ghost:hover { background: #f2f4f7; }
.mosella-primary:active, .mosella-secondary:active, .mosella-ghost:active { transform: translateY(1px); }
.mosella-form-app button:focus-visible { outline: 3px solid rgba(7, 86, 201, .22); outline-offset: 2px; }

.mosella-form-message {
  margin: 20px clamp(18px, 5vw, 48px) 0;
  padding: 15px 17px;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 700;
}

.mosella-form-message[hidden] { display: none; }
.mosella-form-message.mosella-error { border: 1px solid #e6b7b3; background: var(--mosella-red-soft); color: #7e1a13; }
.mosella-form-message.mosella-success { border: 1px solid #a9d9bf; background: var(--mosella-green-soft); color: #0d5735; }

.mosella-final-success {
  padding: clamp(38px, 7vw, 70px) 24px;
  text-align: center;
}

.mosella-final-success > span {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--mosella-green);
  color: #fff;
  font-size: 30px;
  font-weight: 900;
}

.mosella-form-app .mosella-final-success h3 { margin: 0 0 12px; color: var(--mosella-ink); }
.mosella-final-success p { margin: 7px 0; color: #3f4958; }

.mosella-small-print {
  margin: 18px 0 0;
  color: var(--mosella-muted);
  font-size: 12px;
}

.mosella-live-region,
.mosella-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 820px) {
  .mosella-choice-grid { grid-template-columns: 1fr; }
  .mosella-choice-grid.mosella-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosella-sports-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosella-family-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosella-family-row .mosella-remove { grid-column: 2; justify-self: end; }
}

@media (max-width: 620px) {
  .mosella-form-app { margin-top: 12px; }
  .mosella-form-hero { padding: 28px 20px; border-radius: 17px 17px 0 0; }
  .mosella-form-brand { align-items: flex-start; }
  .mosella-form-brand img { width: 58px; height: 58px; }
  .mosella-form-app .mosella-form-hero h2 { font-size: 31px; }
  .mosella-form-hero > p { font-size: 15px; }
  .mosella-form-hero ul { display: grid; gap: 8px; }
  .mosella-membership-form { border-radius: 0 0 17px 17px; }
  .mosella-progress { padding: 20px 18px; }
  .mosella-steps { grid-template-columns: repeat(5, 34px); justify-content: space-between; }
  .mosella-steps li { font-size: 0; }
  .mosella-steps li::before {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid #cdd4de;
    border-radius: 50%;
    background: #fff;
    color: #727b8b;
    content: attr(data-short);
    font-size: 12px;
  }
  .mosella-steps li.active::before { border-color: var(--mosella-blue); background: var(--mosella-blue); color: #fff; }
  .mosella-steps li.complete::before { border-color: var(--mosella-green); background: var(--mosella-green); color: #fff; content: "✓"; }
  .mosella-panel { padding: 28px 18px; }
  .mosella-field-grid,
  .mosella-field-grid.mosella-address,
  .mosella-field-grid.mosella-place,
  .mosella-choice-grid.mosella-two,
  .mosella-review-grid { grid-template-columns: 1fr; }
  .mosella-mandate-head { display: grid; gap: 10px; }
  .mosella-actions { align-items: stretch; }
  .mosella-actions button { flex: 1; padding-inline: 10px; }
  .mosella-actions .mosella-right { margin-left: 0; }
}

@media (max-width: 390px) {
  .mosella-form-brand { display: grid; }
  .mosella-sports-grid { grid-template-columns: 1fr; }
  .mosella-family-row { grid-template-columns: 1fr; }
  .mosella-family-row .mosella-remove { grid-column: 1; }
}

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

@media print {
  .mosella-form-hero,
  .mosella-progress,
  .mosella-actions,
  .mosella-edit,
  .mosella-security-note { display: none !important; }
  .mosella-membership-form { border: 0; box-shadow: none; }
  .mosella-panel { display: none !important; }
  .mosella-panel[data-step="5"] { display: block !important; padding: 0; }
  .mosella-review-card { break-inside: avoid; }
}

