/* UK contact page (contact.asp), from includes/contact-uk.inc. Builds on
   css/subjects.css (the .sj tokens and sections). The site's own form styles reach
   inputs, labels and buttons, so the rules here are scoped under .sj. */

/* A brand blue band for the breadcrumb, heading and lead, as on the sign-up and
   login pages. 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. The bottom padding leaves room
   for the cards that rise over it (.ct-rise). */
.ct-hero
{
  position: relative;
  z-index: 0;
  padding: 18px 0 64px;
  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;
}

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

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

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

.sj .ct-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. */
.ct-mark
{
  position: relative;
  z-index: 0;
  white-space: nowrap;
}

.ct-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(-.8deg);
}

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

/* The section under the band is the pale tint, and its cards rise over the band's
   lower edge. The cards are moved, not given a negative top margin: that margin
   would pass through to the section and pull its tint over the band. */
.sj .ct-body
{
  padding-top: 0;
  background: var(--sj-tint);
}

.ct-rise
{
  position: relative;
  top: -38px;
  z-index: 1;
  margin-bottom: -38px;
}

.ct-grid
{
  display: grid;
  gap: 20px;
}

.ct-card
{
  padding: 24px 20px;
  border: 1px solid var(--sj-line);
  border-radius: 20px;
  background: #fff;
}

.ct-card--form
{
  box-shadow: var(--sj-shadow);
}

.ct-card--ways
{
  box-shadow: 0 10px 26px rgba(31, 51, 80, .08);
}

.ct-intro
{
  margin-top: 8px;
  color: var(--sj-slate);
}

/* Form. Name and email sit side by side when the form itself is wide enough for
   two comfortable boxes (a container query, so it follows the card, not the window). */
.ct-form
{
  container-type: inline-size;
}

.ct-field
{
  margin-top: 20px;
}

@container (min-width: 540px)
{
  .ct-row
  {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 20px;
    align-items: start;
  }
}

.sj .ct-field label
{
  display: block;
  float: none;
  width: auto;
  margin: 0 0 7px;
  padding: 0;
  color: var(--sj-navy);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-transform: none;
}

.sj .ct-field input, .sj .ct-field textarea
{
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 13px 16px;
  border: 1px solid #c6d3e5;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  color: var(--sj-ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.45;
  transition: border-color .15s, box-shadow .15s;
}

.sj .ct-field textarea
{
  min-height: 190px;
  resize: vertical;
}

.sj .ct-field input:hover, .sj .ct-field textarea:hover
{
  border-color: #9fb3cf;
}

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

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

.sj .ct-field [aria-invalid="true"]:focus
{
  box-shadow: 0 0 0 4px rgba(196, 55, 44, .14);
}

.ct-error
{
  margin-top: 7px;
  color: #b42318;
  font-size: 14px;
  line-height: 1.4;
}

.ct-hint
{
  margin-top: 7px;
  color: var(--sj-slate);
  font-size: 13px;
  text-align: right;
}

.ct-actions
{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 22px;
}

.sj .ct-submit
{
  display: inline-block;
  min-width: 0;
  height: auto;
  margin: 0;
  padding: 14px 34px;
  border: 0;
  border-radius: 999px;
  background: var(--sj-lime);
  box-shadow: none;
  color: var(--sj-navy);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: none;
  cursor: pointer;
  transition: background-color .15s;
}

.sj .ct-submit:hover, .sj .ct-submit:focus
{
  background: var(--sj-lime-dark);
}

.sj .ct-submit:focus-visible
{
  outline: 3px solid var(--sj-blue);
  outline-offset: 2px;
}

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

.sj .ct-submit[disabled]
{
  background: var(--sj-lime-dark);
  cursor: progress;
}

.sj .ct-submit[disabled]:after
{
  content: none;
}

.ct-status
{
  color: var(--sj-slate);
  font-size: 15px;
}

/* Other ways to reach us */
.ct-list
{
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.ct-list li
{
  display: flex;
  gap: 14px;
}

.ct-list li + li
{
  padding-top: 20px;
  border-top: 1px solid var(--sj-line);
}

.ct-ico
{
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--sj-tint);
}

.ct-ico svg
{
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--sj-blue);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sj .ct-list h3
{
  margin-top: 1px;
  font-size: 16px;
}

/* The address is an image of text, in the same type, so crawlers cannot read it. */
.ct-office
{
  display: block;
  max-width: 100%;
  height: auto;
  margin-top: 3px;
}

.ct-list p
{
  margin: 3px 0 0;
  color: var(--sj-ink);
  font-style: normal;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.sj a.ct-phone
{
  color: var(--sj-navy);
  font-size: 20px;
  font-weight: 700;
}

.sj a.ct-phone:hover
{
  color: var(--sj-blue);
}

.ct-list .ct-note
{
  color: var(--sj-slate);
  font-size: 14px;
}

/* After sending */
.ct-done
{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 760px;
  box-shadow: var(--sj-shadow);
}

.ct-done .ct-ico
{
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #eef8d6;
}

.ct-done .ct-ico svg
{
  width: 30px;
  height: 30px;
  stroke: #5f8a00;
}

.ct-done p
{
  margin-top: 8px;
}

.ct-done .ct-done__links
{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 20px;
}

.sj .ct-done__links a:not(.sj-btn)
{
  font-weight: 600;
}

@media (min-width: 768px)
{
  .ct-hero
  {
    padding: 22px 0 80px;
  }

  .ct-rise
  {
    top: -46px;
    margin-bottom: -46px;
  }

  .ct-card
  {
    padding: 32px;
  }

  .ct-done
  {
    flex-direction: row;
    gap: 22px;
    padding: 36px;
  }
}

@media (min-width: 992px)
{
  .ct-grid
  {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 28px;
    align-items: start;
  }

  .ct-card--form
  {
    padding: 36px 40px 40px;
  }

  .ct-card--ways
  {
    padding: 36px 32px;
  }
}
