/* Free or paid choice shown on every public form, plus the "what is included" pop-up.
   Scoped here so the shared site stylesheet is untouched. */

/* Radio rows inside .field (also the sign-up "I am joining as" choice). */
.form-card fieldset.field { border: 0; padding: 0; margin-inline: 0; min-width: 0; }
.form-card fieldset.field > legend.field-label { padding: 0; margin-bottom: var(--sp-2); }
.form-card .field label.radio {
  display: flex; gap: .7rem; align-items: flex-start; margin: 0;
  padding: .8rem .95rem; font-weight: 400; cursor: pointer;
  border: 1px solid var(--line); border-radius: 12px; background: var(--cloud);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.form-card .field label.radio + label.radio { margin-top: .5rem; }
.form-card .field label.radio span { font-weight: 600; color: var(--ink); }
.form-card .field label.radio span small { font-weight: 400; line-height: 1.5; }
.form-card .field label.radio:has(input:checked) { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.form-card .field.has-error label.radio { border-color: var(--danger); }

/* Colour palette for the service choice (local to this component). */
.service-choice, .sc-dialog {
  --sc-teal: #007b72;   --sc-teal-bg: #e3f4f1;
  --sc-amber: #a65f00;  --sc-amber-bg: #fdf0dc;
  --sc-coral: #c0432f;  --sc-coral-bg: #fde8e3;
  --sc-indigo: #3b4fb0; --sc-indigo-bg: #e8ebfb;
  --sc-plum: #8a3b8c;   --sc-plum-bg: #f6e6f6;
  --sc-green: #2a7a4b;  --sc-green-bg: #e3f3e9;
  --sc-gradient: linear-gradient(120deg, #007b72 0%, #235a9f 55%, #8a3b8c 100%);
}
.sc-hue-teal { --hue: var(--sc-teal); --hue-bg: var(--sc-teal-bg); }
.sc-hue-amber { --hue: var(--sc-amber); --hue-bg: var(--sc-amber-bg); }
.sc-hue-coral { --hue: var(--sc-coral); --hue-bg: var(--sc-coral-bg); }
.sc-hue-indigo { --hue: var(--sc-indigo); --hue-bg: var(--sc-indigo-bg); }
.sc-hue-plum { --hue: var(--sc-plum); --hue-bg: var(--sc-plum-bg); }
.sc-hue-green { --hue: var(--sc-green); --hue-bg: var(--sc-green-bg); }

/* Highlighted panel */
.service-choice {
  position: relative;
  padding: var(--sp-5) !important;
  border-radius: 20px;
  border: 0 !important;
  background:
    radial-gradient(80% 90% at 100% 0%, rgba(138, 59, 140, .14), transparent 60%),
    radial-gradient(80% 90% at 0% 100%, rgba(199, 119, 0, .14), transparent 60%),
    linear-gradient(140deg, #e3f4f1 0%, #eef0fb 55%, #fdf3e6 100%);
  box-shadow: 0 22px 44px -32px rgba(35, 90, 159, .6);
}
.service-choice::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px;
  background: var(--sc-gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.service-choice > legend.field-label {
  float: left; width: 100%; margin: 0 0 .35rem;
  font-family: var(--font-display); font-size: 1.3rem; line-height: 1.25; color: var(--ink);
}
.service-choice > legend + * { clear: both; }
.service-choice .sc-lead { margin: 0 0 var(--sp-4); color: var(--stone); font-size: var(--text-small); }
.service-choice .sc-options { display: grid; gap: .65rem; }
.service-choice .sc-option-wrap {
  position: relative; border-radius: 14px; background: var(--cloud);
  border: 1px solid var(--line); overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.service-choice .sc-option-wrap::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--sc-gradient);
}
.service-choice .sc-option-wrap:has(input:checked) { border-color: #235a9f; box-shadow: 0 0 0 1px #235a9f, 0 16px 34px -22px rgba(35, 90, 159, .85); }
.service-choice .sc-option-wrap label.radio { border: 0 !important; box-shadow: none !important; border-radius: 0; background: transparent; }
.service-choice.has-error .sc-option-wrap { border-color: var(--danger); }
.service-choice .sc-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  margin: .8rem .95rem 0 2.8rem; padding: .3rem .65rem; border-radius: 999px;
  background: var(--sc-gradient); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .02em;
}
.service-choice .sc-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ffd27a; box-shadow: 0 0 0 3px rgba(255, 210, 122, .35); }
.service-choice .sc-badge + label.radio { padding-top: .45rem; }
.service-choice .sc-chips {
  list-style: none; display: flex; flex-wrap: wrap; gap: .35rem;
  margin: 0; padding: 0 .95rem .2rem 2.8rem;
}
.service-choice .sc-chips li {
  font-size: .75rem; line-height: 1; padding: .42rem .62rem; border-radius: 999px;
  background: var(--hue-bg, var(--teal-quiet)); color: var(--hue, var(--teal-hover)); font-weight: 700;
}
.service-choice .sc-chips li.sc-chip-portal { background: var(--sc-gradient); color: #fff; }
.service-choice .sc-more {
  display: inline-flex; align-items: center; gap: .35rem;
  margin: .6rem .95rem .9rem 2.8rem; padding: .5rem .95rem; min-height: 42px;
  border: 0; border-radius: 999px; background: var(--sc-gradient); color: #fff;
  font: inherit; font-size: var(--text-small); font-weight: 700; cursor: pointer;
  box-shadow: 0 10px 22px -12px rgba(35, 90, 159, .9);
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-choice .sc-more:hover, .service-choice .sc-more:focus-visible { transform: translateY(-1px); box-shadow: 0 14px 26px -12px rgba(35, 90, 159, 1); }
.service-choice .sc-more:focus-visible { outline: 3px solid #ffd27a; outline-offset: 2px; }
.service-choice .sc-more span { transition: transform .2s ease; }
.service-choice .sc-more:hover span { transform: translateX(3px); }
.service-choice .field-error { margin-top: .6rem; }

.service-choice.sc-pop { animation: sc-pop .9s cubic-bezier(.2, .8, .2, 1) 1; }
@keyframes sc-pop {
  0% { transform: scale(.985); box-shadow: 0 0 0 0 rgba(35, 90, 159, .35); }
  45% { transform: scale(1.01); box-shadow: 0 0 0 10px rgba(35, 90, 159, .12); }
  100% { transform: scale(1); box-shadow: 0 22px 44px -32px rgba(35, 90, 159, .6); }
}

/* Pop-up */
.sc-dialog {
  width: min(720px, calc(100vw - 1.5rem)); max-height: calc(100dvh - 1.5rem);
  padding: 0; border: 0; border-radius: 22px; background: var(--cloud); color: var(--slate);
  box-shadow: 0 40px 80px -30px rgba(10, 28, 36, .6);
}
.sc-dialog::backdrop { background: rgba(10, 28, 36, .55); backdrop-filter: blur(3px); }
.sc-dialog[open] { animation: sc-in .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes sc-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.sc-dialog-hero {
  position: relative; color: #fff; overflow: hidden;
  padding: clamp(1.25rem, 4vw, 2.1rem) clamp(1.25rem, 4vw, 2.25rem) clamp(1.1rem, 3vw, 1.6rem);
  background:
    radial-gradient(40% 70% at 95% 10%, rgba(255, 210, 122, .45), transparent 70%),
    radial-gradient(35% 60% at 10% 110%, rgba(253, 232, 227, .35), transparent 70%),
    var(--sc-gradient);
}
.sc-dialog-inner { padding: clamp(1.1rem, 4vw, 2rem) clamp(1.25rem, 4vw, 2.25rem) clamp(1.25rem, 4vw, 2.25rem); }
.sc-close {
  position: absolute; top: .75rem; right: .75rem; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .18); color: #fff;
  font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.sc-close:hover, .sc-close:focus-visible { background: rgba(255, 255, 255, .32); }
.sc-close:focus-visible { outline: 3px solid #ffd27a; outline-offset: 2px; }
.sc-eyebrow { display: inline-block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: #ffe3a6; }
.sc-dialog h2 {
  margin: .4rem 2.75rem .6rem 0; font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.4vw, 2.05rem); line-height: 1.15; color: #fff;
}
.sc-dialog-lead { margin: 0; color: rgba(255, 255, 255, .9); font-size: var(--text-small); line-height: 1.6; max-width: 58ch; }
.sc-tiles { list-style: none; margin: 0 0 var(--sp-5); padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.sc-tiles li {
  display: flex; flex-direction: column; gap: .5rem; padding: .85rem .9rem;
  border-radius: 14px; background: var(--hue-bg); border: 1px solid transparent;
  border-top: 3px solid var(--hue);
  opacity: 0; transform: translateY(8px);
  animation: sc-tile .4s cubic-bezier(.2, .8, .2, 1) forwards;
}
.sc-tiles li:nth-child(2) { animation-delay: .05s; } .sc-tiles li:nth-child(3) { animation-delay: .1s; }
.sc-tiles li:nth-child(4) { animation-delay: .15s; } .sc-tiles li:nth-child(5) { animation-delay: .2s; }
.sc-tiles li:nth-child(6) { animation-delay: .25s; }
@keyframes sc-tile { to { opacity: 1; transform: none; } }
.sc-tiles svg {
  width: 36px; height: 36px; padding: 7px; border-radius: 10px;
  background: var(--hue); fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.sc-tiles span { font-size: var(--text-small); color: var(--slate); line-height: 1.35; }
.sc-tiles strong { display: block; color: var(--hue); font-size: .95rem; margin-bottom: .1rem; }

/* Portal showcase */
.sc-portal {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--sp-4); align-items: center;
  margin: 0 0 var(--sp-5); padding: clamp(1rem, 3vw, 1.4rem); border-radius: 18px; color: #fff;
  background:
    radial-gradient(50% 80% at 100% 0%, rgba(255, 210, 122, .35), transparent 70%),
    linear-gradient(135deg, #0a1c24 0%, #102a35 40%, #1b3b6f 100%);
  box-shadow: 0 24px 40px -28px rgba(16, 42, 53, .9);
}
.sc-portal-tag {
  display: inline-block; padding: .28rem .6rem; border-radius: 999px; font-size: .7rem; font-weight: 700;
  letter-spacing: .04em; background: #ffd27a; color: #3a2600;
}
.sc-portal h3 { margin: .55rem 0 .35rem; font-family: var(--font-display); font-size: 1.3rem; line-height: 1.2; color: #fff; }
.sc-portal p { margin: 0 0 .7rem; font-size: var(--text-small); line-height: 1.55; color: rgba(255, 255, 255, .86); }
.sc-portal-list { list-style: none; margin: 0 0 .8rem; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.sc-portal-list li { font-size: .72rem; font-weight: 600; padding: .32rem .55rem; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .18); }
.sc-portal-link { color: #ffd27a; font-weight: 700; font-size: var(--text-small); text-decoration: none; }
.sc-portal-link:hover { text-decoration: underline; color: #ffe3a6; }
.sc-portal-mock {
  border-radius: 14px; background: #fff; color: var(--ink); padding: .6rem; font-size: .7rem;
  box-shadow: 0 18px 34px -16px rgba(0, 0, 0, .6); transform: rotate(1.5deg);
}
.sc-mock-bar { display: flex; align-items: center; gap: 4px; padding-bottom: .45rem; border-bottom: 1px solid var(--line); margin-bottom: .5rem; }
.sc-mock-bar i { width: 7px; height: 7px; border-radius: 50%; background: #f26b5b; }
.sc-mock-bar i:nth-child(2) { background: #f5b83d; } .sc-mock-bar i:nth-child(3) { background: #3cbf73; }
.sc-mock-bar b { margin-left: auto; font-size: .65rem; color: var(--stone); font-weight: 600; }
.sc-mock-today { padding: .5rem .55rem; border-radius: 10px; background: var(--sc-teal-bg); margin-bottom: .45rem; }
.sc-mock-today small { display: block; color: var(--sc-teal); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .58rem; }
.sc-mock-today strong { display: block; font-size: .72rem; line-height: 1.3; margin: .15rem 0 .35rem; }
.sc-mock-progress { display: block; height: 5px; border-radius: 5px; background: rgba(0, 123, 114, .18); overflow: hidden; }
.sc-mock-progress em { display: block; width: 62%; height: 100%; background: var(--sc-gradient); }
.sc-mock-pipe { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; margin-bottom: .45rem; }
.sc-mock-pipe span { text-align: center; padding: .3rem 0; border-radius: 6px; font-weight: 700; font-size: .6rem; }
.sc-mock-pipe .p1 { background: var(--sc-amber-bg); color: var(--sc-amber); }
.sc-mock-pipe .p2 { background: var(--sc-indigo-bg); color: var(--sc-indigo); }
.sc-mock-pipe .p3 { background: var(--sc-plum-bg); color: var(--sc-plum); }
.sc-mock-pipe .p4 { background: var(--sc-green-bg); color: var(--sc-green); }
.sc-mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.sc-mock-cards span { padding: .45rem .3rem; border-radius: 8px; font-weight: 600; font-size: .58rem; line-height: 1.2; text-align: center; color: #fff; }
.sc-mock-cards .c1 { background: var(--sc-coral); } .sc-mock-cards .c2 { background: var(--sc-indigo); } .sc-mock-cards .c3 { background: var(--sc-teal); }

.sc-steps { list-style: none; margin: 0 0 var(--sp-4); padding: 0; display: flex; gap: .5rem; }
.sc-steps li {
  flex: 1 1 0; min-width: 0; display: flex; gap: .5rem; align-items: center;
  font-size: var(--text-small); font-weight: 600; color: var(--ink);
  padding: .55rem .7rem; border-radius: 12px; background: var(--linen);
}
.sc-steps li span {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-size: .8rem; background: var(--sc-teal);
}
.sc-steps li:nth-child(2) span { background: #235a9f; } .sc-steps li:nth-child(3) span { background: var(--sc-plum); }
.sc-note { margin: 0 0 var(--sp-5); font-size: var(--text-micro); color: var(--stone); line-height: 1.6; }
.sc-note a { color: #235a9f; font-weight: 700; }
.sc-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.sc-actions .btn { flex: 1 1 220px; justify-content: center; }
.sc-actions .btn-primary { background: var(--sc-gradient); border-color: transparent; }
.sc-actions .btn-primary:hover { filter: brightness(1.08); }

@media (max-width: 640px) {
  .sc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .sc-tiles li { padding: .7rem; gap: .4rem; }
  .sc-tiles svg { width: 32px; height: 32px; padding: 6px; }
  .sc-tiles strong { font-size: .88rem; }
  .sc-tiles span { font-size: .8rem; }
  .sc-portal { grid-template-columns: 1fr; }
  .sc-portal-mock { transform: none; }
  .sc-steps { gap: .35rem; }
  .sc-steps li { flex-direction: column; align-items: flex-start; gap: .35rem; font-size: .78rem; line-height: 1.3; padding: .5rem; }
}
@media (max-width: 560px) {
  .service-choice { padding: var(--sp-4) !important; }
  .service-choice .sc-chips, .service-choice .sc-more, .service-choice .sc-badge { margin-left: .95rem; }
  .service-choice .sc-chips { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .service-choice.sc-pop, .sc-dialog[open], .sc-tiles li { animation: none; opacity: 1; transform: none; }
  .sc-portal-mock { transform: none; }
}

/* ==== dark-twins: generated by scripts/dark_twins.py, do not edit ==== */
:where([data-portal-theme="dark"]) .form-card .field label.radio{background:#13272c}
:where([data-portal-theme="dark"]) .service-choice,:where([data-portal-theme="dark"]) .sc-dialog{--sc-teal-bg:#1f4c44;--sc-amber:#f0c894;--sc-amber-bg:#4c3a1f;--sc-coral-bg:#4c281f;--sc-indigo-bg:#1f264c;--sc-plum-bg:#4c1f4c;--sc-green:#a4e0bd;--sc-green-bg:#204b30}
:where([data-portal-theme="dark"]) .service-choice{background:radial-gradient(80% 90% at 100% 0%, rgba(138, 59, 140, .14), transparent 60%),
    radial-gradient(80% 90% at 0% 100%, rgba(199, 119, 0, .14), transparent 60%),
    linear-gradient(140deg, #1f4c44 0%, #1f264c 55%, #4c381f 100%)}
:where([data-portal-theme="dark"]) .service-choice .sc-option-wrap{background:#13272c}
:where([data-portal-theme="dark"]) .service-choice .sc-badge::before{background:#644d21}
:where([data-portal-theme="dark"]) .sc-dialog{background:#13272c}
:where([data-portal-theme="dark"]) .sc-dialog-hero{background:radial-gradient(40% 70% at 95% 10%, rgba(100,77,33,0.45), transparent 70%),
    radial-gradient(35% 60% at 10% 110%, rgba(76,40,31,0.35), transparent 70%),
    var(--sc-gradient)}
:where([data-portal-theme="dark"]) .sc-portal{background:radial-gradient(50% 80% at 100% 0%, rgba(100,77,33,0.35), transparent 70%),
    linear-gradient(135deg, #0a1c24 0%, #102a35 40%, #1b3b6f 100%)}
:where([data-portal-theme="dark"]) .sc-portal-tag{background:#644d21;color:#eaf1f3}
:where([data-portal-theme="dark"]) .sc-portal-mock{background:#1b2b34}
:where([data-portal-theme="dark"]) .sc-mock-bar i{background:#6f2d25}
:where([data-portal-theme="dark"]) .sc-mock-bar i:nth-child(2){background:#775c28}
:where([data-portal-theme="dark"]) .sc-note a{color:#9bbde9}
