/* UK sign-up (signup.asp, signup-personal-info.asp, signup-profile-info.asp), from
   includes/signup-uk.inc. Builds on css/subjects.css (tokens, breadcrumb) and
   css/login.css (page layout, boxes, buttons, messages). The site's own form
   styles reach every input, select, label and fieldset, so rules are under .sj.

   Each step opens with a brand blue band (heading, intro and the step list). The
   form below it sits straight on the tint, with no card, like the login page. */

/* The band. It must stay a plain block: the shared menu's items hang below the
   blue bar, and a new formatting context here would be squeezed beside them.
   z-index keeps it under the menu's dropdowns. */
.su-hero
{
  position: relative;
  z-index: 0;
  padding: 18px 0 26px;
  background:
    radial-gradient(900px 420px at 88% -12%, rgba(160, 195, 245, .45), transparent 62%),
    radial-gradient(700px 360px at -5% 112%, rgba(169, 214, 34, .12), transparent 60%),
    linear-gradient(180deg, #3a68ae, #4170b8);
  color: #f3f7fc;
}

.su-hero .sj-crumbs a, .su-hero .sj-crumbs span
{
  color: #f3f7fc;
}

.su-hero .sj-crumbs a:hover
{
  color: #fff;
}

.su-hero .sj-crumbs a + span:before
{
  color: rgba(255, 255, 255, .6);
}

.sj .su-hero h1
{
  color: #fff;
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.08;
  letter-spacing: -.026em;
}

/* The lime stroke under a word of the heading. It is drawn behind the word and
   takes up no room. */
.su-mark
{
  position: relative;
  z-index: 0;
  white-space: nowrap;
}

.su-mark:before
{
  content: "";
  position: absolute;
  top: 80%;
  right: -.04em;
  bottom: 1%;
  left: -.04em;
  z-index: -1;
  border-radius: 999px;
  background: var(--sj-lime);
  transform: rotate(-1deg);
}

/* One underline style on the whole site (2026-11-27): just under the letters, tilted 1 degree. Here it does
   not move: the stroke is drawn in only on the home page (owner: "i think homepage only"). */

.su-hero__intro
{
  max-width: 540px;
  margin-top: 12px;
  color: #f3f7fc;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.5;
}

.su-hero__steps
{
  margin-top: 22px;
}

/* The form's section: plain tint under the band, and the first thing in the column
   starts at its top. */
.su .lg-wrap
{
  padding-top: 28px;
  background: var(--sj-tint);
}

.su .lg-box
{
  margin-top: 0;
}

.su .lg-main > :first-child
{
  margin-top: 0;
}

/* A wider form column than the login page. On phones the single column must be
   allowed to shrink below its content (the step list), or the page scrolls sideways. */
.su .lg-box
{
  grid-template-columns: minmax(0, 1fr);
}

.su .lg-intro, .su .lg-note, .su .lg-form
{
  max-width: 640px;
}

/* Step x of 3 */
.su-stepof
{
  margin-bottom: 12px;
  color: #f3f7fc;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.su-steps
{
  display: flex;
  max-width: 640px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.su-steps li
{
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #f3f7fc;
  font-size: 14.5px;
  font-weight: 600;
}

.su-steps li:last-child
{
  flex: 0 1 auto;
}

/* The line joining each step to the next */
.su-steps li:not(:last-child):after
{
  content: "";
  flex: 1 1 auto;
  min-width: 12px;
  height: 2px;
  margin: 0 10px 0 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .32);
}

.su-steps li.is-done:after
{
  background: var(--sj-lime);
}

.su-num
{
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 2px solid rgba(255, 255, 255, .6);
  border-radius: 50%;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.su-num svg
{
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Done and current are lime, as the numbered steps are elsewhere on the site. */
.su-steps .is-done .su-num
{
  border-color: var(--sj-lime);
  background: var(--sj-lime);
  color: var(--sj-navy);
}

.su-steps .is-current
{
  color: #fff;
}

.su-steps .is-current .su-num
{
  border-color: var(--sj-lime);
  background: var(--sj-lime);
  box-shadow: 0 0 0 4px rgba(169, 214, 34, .3);
  color: var(--sj-navy);
}

.su-name
{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Hidden but read out */
.su-sr
{
  position: absolute;
  overflow: hidden;
  clip: rect(0 0 0 0);
  width: 1px;
  height: 1px;
  margin: -1px;
  white-space: nowrap;
}

/* Two boxes side by side from 600px */
.su-grid
{
  display: grid;
  gap: 18px 20px;
}

.su-form > * + *
{
  margin-top: 20px;
}

.su-form > input[type="hidden"] + *
{
  margin-top: 0;
}

.sj .su-grid > .lg-field
{
  margin-top: 0;
}

.su-form > .lg-field + .lg-field
{
  margin-top: 22px;
}

/* Selects and text boxes like the login boxes */
.sj .su-form select, .sj .su-form textarea
{
  display: block;
  width: 100%;
  margin: 0;
  border: 1px solid #c6d3e5;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: none;
  color: var(--sj-ink);
  font-family: inherit;
  font-size: 17px;
  line-height: 1.4;
  transition: border-color .15s, box-shadow .15s;
}

.sj .su-form select
{
  height: 54px;
  padding: 0 44px 0 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f3350' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-repeat: no-repeat;
  background-size: 20px;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.sj .su-form textarea
{
  height: auto;
  min-height: 150px;
  padding: 14px 16px;
  resize: vertical;
}

.sj .su-form select:hover, .sj .su-form textarea:hover
{
  border-color: #9fb3cf;
}

.sj .su-form select:focus, .sj .su-form textarea:focus
{
  border-color: var(--sj-blue);
  outline: none;
  box-shadow: 0 0 0 4px rgba(58, 104, 174, .16);
}

.sj .su-form [aria-invalid="true"]
{
  border-color: #c4372c;
}

.sj .su-form .lg-field input:disabled, .sj .su-form select:disabled
{
  opacity: .6;
}

.su-opt
{
  color: var(--sj-slate);
  font-weight: 400;
}

.su-hint
{
  margin: -2px 0 8px;
  color: var(--sj-slate);
  font-size: 14px;
  line-height: 1.45;
}

input + .su-hint, .lg-pass + .su-hint
{
  margin: 7px 0 0;
}

.su-err
{
  margin-top: 7px;
  color: #b42318;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.su-ok
{
  margin-top: 7px;
  color: #4d7a00;
  font-size: 14px;
  font-weight: 600;
}

.su-count
{
  margin-top: 6px;
  color: var(--sj-slate);
  font-size: 13px;
  text-align: right;
}

.su-count:empty
{
  display: none;
}

/* Groups: account type and date of birth */
.sj .su-group
{
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.sj .su-form > * + .su-group
{
  margin-top: 22px;
}

.sj .su-form > input[type="hidden"] + .su-group
{
  margin-top: 0;
}

.sj .su-group legend
{
  float: none;
  width: auto;
  margin: 0 0 9px;
  padding: 0;
  border: 0;
  color: var(--sj-navy);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.su-types
{
  display: grid;
  gap: 10px;
}

.sj .su-type
{
  position: relative;
  display: block;
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
  cursor: pointer;
  font-weight: 400;
  text-transform: none;
}

/* The radio button itself is unseen but still there for the keyboard and screen
   readers; .su-type-box:after draws it. */
.sj .su-type input
{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 24px;
  height: 24px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.su-type-box
{
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  column-gap: 12px;
  height: 100%;
  padding: 14px 48px 14px 14px;
  border: 1px solid #c6d3e5;
  border-radius: 16px;
  background: #fff;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}

.su-type-box:after
{
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 24px;
  height: 24px;
  border: 2px solid #b4c3d9;
  border-radius: 50%;
  background: #fff center / 14px 14px no-repeat;
  transition: border-color .15s, background-color .15s;
}

.su-type-box svg
{
  grid-row: span 2;
  width: 44px;
  height: 44px;
  padding: 9px;
  border-radius: 12px;
  background: var(--sj-tint);
  fill: none;
  stroke: var(--sj-blue);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: background-color .15s, stroke .15s;
}

.su-type-box strong
{
  color: var(--sj-navy);
  font-size: 17px;
  line-height: 1.25;
}

.su-type-box span
{
  color: var(--sj-slate);
  font-size: 14px;
  line-height: 1.35;
}

.su-type:hover .su-type-box
{
  border-color: #9fb3cf;
}

.su-type input:checked + .su-type-box
{
  border-color: var(--sj-blue);
  background: #f5f8fd;
  box-shadow: 0 0 0 1px var(--sj-blue), 0 10px 24px rgba(31, 51, 80, .1);
}

.su-type input:checked + .su-type-box svg
{
  background: var(--sj-blue);
  stroke: #fff;
}

.su-type input:checked + .su-type-box:after
{
  border-color: var(--sj-blue);
  background-color: var(--sj-blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='m3 7.4 2.6 2.6L11 4.4' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.su-type input:focus-visible + .su-type-box
{
  box-shadow: 0 0 0 4px rgba(58, 104, 174, .3);
}

.su-type input:checked:focus-visible + .su-type-box
{
  box-shadow: 0 0 0 1px var(--sj-blue), 0 0 0 5px rgba(58, 104, 174, .3);
}

.su-type input[aria-invalid="true"] + .su-type-box
{
  border-color: #c4372c;
}

.su-dob-row
{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1.2fr);
  gap: 12px;
  max-width: 420px;
}

/* Terms checkbox */
.sj .su-check
{
  display: flex;
  float: none;
  align-items: flex-start;
  gap: 12px;
  width: auto;
  margin: 0;
  padding: 0;
  color: var(--sj-ink);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  text-transform: none;
  cursor: pointer;
}

.sj .su-check input
{
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--sj-blue);
  cursor: pointer;
}

.sj .su-check a
{
  font-weight: 600;
}

.sj .su-go
{
  max-width: 640px;
}

.sj .su-go:after
{
  content: "\2192";
  display: inline-block;
  margin-left: 10px;
}

.sj .su-go[disabled]:after
{
  content: none;
}

.sj .su-go[disabled]
{
  opacity: .7;
  cursor: wait;
}

/* Side column lists */
.su-next
{
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: su;
}

.sj .su-next li
{
  position: relative;
  display: block;
  padding-left: 42px;
  counter-increment: su;
}

.su-next li + li
{
  margin-top: 18px;
}

.su-next li:before
{
  content: counter(su);
  position: absolute;
  top: -3px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #dfe8f6;
  color: var(--sj-navy);
  font-size: 14px;
  font-weight: 800;
}

/* This list is on step 1 only, so its first step is the one being done. */
.su-next li:first-child:before
{
  background: var(--sj-lime);
}

/* A dashed path from each number down to the next. */
.su-next li:not(:last-child):after
{
  content: "";
  position: absolute;
  top: 32px;
  bottom: -14px;
  left: 14px;
  border-left: 2px dashed #b9c9e2;
}

.su-next strong
{
  display: block;
  color: var(--sj-navy);
}

.su-next span
{
  display: block;
  margin-top: 2px;
  color: var(--sj-slate);
  font-size: 15px;
  line-height: 1.45;
}

.su-tips
{
  margin: 16px 0 0;
  padding-left: 20px;
  list-style: disc;
  color: var(--sj-ink);
}

.sj .su-tips li
{
  display: list-item;
  font-size: 15px;
  line-height: 1.5;
  list-style: disc;
}

.su-tips li + li
{
  margin-top: 6px;
}

.su-side p + p:not(.lg-new)
{
  margin-top: 12px;
}

@media (min-width: 600px)
{
  .su-grid
  {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .su-grid--short
  {
    max-width: 420px;
  }

  .su-types
  {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .su-type-box
  {
    grid-template-columns: 1fr;
    align-content: start;
    row-gap: 6px;
    padding: 18px 18px 20px;
  }

  .su-type-box svg
  {
    grid-row: auto;
    margin-bottom: 6px;
  }
}

@media (min-width: 768px)
{
  .su .lg-box
  {
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  }

  .su .lg-side
  {
    justify-content: flex-start;
    padding-top: 4px;
  }

  .su-hero
  {
    padding: 22px 0 34px;
  }

  .su .lg-wrap
  {
    padding-top: 36px;
  }
}

/* From 992px the step list sits beside the heading, level with its last line. */
@media (min-width: 992px)
{
  .su-hero
  {
    padding-bottom: 40px;
  }

  .su-hero__grid
  {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    align-items: end;
    gap: 40px;
    margin-top: 14px;
  }

  .su-hero__steps
  {
    margin-top: 0;
    padding-bottom: 4px;
  }
}

@media (min-width: 1200px)
{
  .su-hero__grid
  {
    grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
    gap: 56px;
  }
}

@media (max-width: 420px)
{
  /* Only the current step is named; "Step x of 3" sits above */
  .su-steps li:not(.is-current) .su-name
  {
    position: absolute;
    overflow: hidden;
    clip: rect(0 0 0 0);
    width: 1px;
    height: 1px;
    margin: -1px;
    white-space: nowrap;
  }

  .su-steps li:not(:last-child):after
  {
    min-width: 8px;
    margin: 0 6px 0 2px;
  }
}
