:root {
  --orange: #ffad1f;
  --ink: #373737;
  --muted: #6d6962;
  --line: #ddd7cd;
  --cream: #fff7e7;
  --display: "Barlow Condensed",sans-serif;
  --sans: "DM Sans",sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f4f2ed;
  color: var(--ink);
  font-family: var(--sans);
}

a {
  color: inherit;
}

.signup-header {
  height: 72px;
  padding: 0 5vw;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e9e5dd;
}

.signup-header img {
  display: block;
  width: 190px;
  height: auto;
}

.login-link {
  font-size: 14px;
  text-decoration: none;
}

.login-link strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.signup-page {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(280px,.82fr) minmax(480px,1.18fr);
}

.signup-story {
  padding: clamp(60px,8vw,110px) clamp(36px,7vw,100px);
  background: linear-gradient(180deg,rgba(16,16,16,.72),rgba(16,16,16,.86)),url(https://d26oxw2p26xsun.cloudfront.net/assets/advisor_portal/support-host-istanbul-ad8b84e9096529f65fe37386d9ff3827ac5ec683392403e0988417b575f03da9.jpg) center/cover;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-position: center;
}

.eyebrow {
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: .13em;
  color: var(--orange);
}

.signup-story h1 {
  margin: 18px 0 22px;
  font: 800 clamp(50px,5.8vw,84px)/.9 var(--display);
  letter-spacing: -.02em;
  line-height: 1.02;
  font-size: clamp(42px,4.5vw,66px);
}

.signup-story>p {
  max-width: 560px;
  margin: 0;
  color: #eee;
  font-size: 17px;
  line-height: 1.65;
}

.signup-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.signup-benefits span {
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
}

.network-note {
  margin-top: 55px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.26);
}

.network-note small {
  display: block;
  margin-bottom: 16px;
  color: #d9d4ca;
  letter-spacing: .12em;
  font-size: 12px;
}

.network-note>div {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.network-note img {
  width: 120px;
  height: 52px;
  object-fit: contain;
  padding: 9px;
  background: rgba(255,255,255,.9);
  border-radius: 7px;
}

.account-card {
  align-self: start;
  width: min(720px,calc(100% - 64px));
  margin: 48px auto;
  background: #fff;
  border: 1px solid #e5dfd5;
  border-radius: 12px;
  box-shadow: 0 12px 40px #372b170a;
  padding: 36px 40px;
  max-width: 700px;
}

.progress {
  height: 5px;
  margin: -4px 0 34px;
  background: #eee9df;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 24px;
}

.progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--orange);
}

.card-heading small {
  font-weight: 800;
  letter-spacing: .12em;
  color: #9a6813;
}

.card-heading h2 {
  margin: 7px 0 10px;
  font: 800 clamp(36px,4vw,50px)/1 var(--display);
  font-family: var(--sans);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.025em;
}

form {
  display: grid;
  gap: 22px;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

legend {
  width: 100%;
  padding: 0 0 15px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font: 700 22px/1 var(--display);
  text-transform: uppercase;
}

.field-grid {
  display: grid;
  gap: 18px;
}

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

.full-field {
  grid-column: 1/-1;
}

label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
}

label>span {
  display: block;
}

.field-grid label span {
  text-transform: uppercase;
  letter-spacing: .04em;
}

.field-grid input,
.agency-combobox input {
  width: 100%;
  font: 500 15px var(--sans);
  outline: none;
  padding: 14px 15px;
  color: #2f2f2f;
  font-size: 16px;
  line-height: 1.35;
  background: #fff;
  min-height: 52px;
  border: 1px solid #9e9991;
  border-radius: 7px;
}

.signature-check,
.terms {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 12px;
  font-weight: 500;
  text-transform: none;
}

.signature-check input,
.terms input {
  width: 17px;
  height: 17px;
  accent-color: #dd8e09;
}

.field-error {
  min-height: 18px;
  margin: 6px 0 0;
  color: #a52d21;
  font-size: 14px;
}

.agency-combobox {
  position: relative;
}

.agency-combobox>label {
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* searchable-select pins its list with position:fixed, inline, so it escapes
   the clipping of an admin dialog. Nothing clips it here, and a fixed list under
   a field near the bottom of the window hangs off-screen instead of letting the
   page scroll to it. */
.agency-results {
  right: 0;
  background: #fff;
  border: 1px solid #c9c3b9;
  overflow: hidden auto;
  border-radius: 8px;
  box-shadow: 0 6px 18px #00000012;
  max-height: min(450px,60vh);
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  width: 100% !important;
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  z-index: 10;
}

.inline-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.inline-heading h3 {
  margin: 0;
  font: 700 21px var(--display);
  text-transform: uppercase;
}

.inline-heading button {
  border: 0;
  background: transparent;
  text-decoration: underline;
  cursor: pointer;
  color: #655f58;
}

.terms {
  margin: 0;
  color: #625e57;
  gap: 13px;
  font-size: 14px;
  margin-top: 0;
  line-height: 1.6;
}

.terms a {
  color: #9e6508;
}

.create-account {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 16px 24px;
  background: var(--orange);
  color: #16120b;
  font: 800 13px var(--sans);
  text-transform: uppercase;
  letter-spacing: .03em;
  cursor: pointer;
  min-height: 52px;
}

.create-account:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.form-login {
  text-align: center;
  color: #625e57;
  font-size: 13px;
  margin: 0;
}

.form-login a {
  font-weight: 700;
  text-underline-offset: 3px;
}

@media (max-width: 1000px) {
  .signup-story {
    padding: 55px 7vw;
  }

  .network-note {
    margin-top: 35px;
  }

  .account-card {
    margin: 34px auto;
  }
}

@media (max-width: 650px) {
  .signup-header {
    height: 62px;
    padding: 0 5vw;
  }

  .signup-header img {
    width: 135px;
  }

  .login-link {
    font-size: 11px;
  }

  .signup-page {
    min-height: calc(100vh - 62px);
  }

  .network-note img {
    width: 100px;
  }

  .account-card {
    width: calc(100% - 24px);
    margin: 12px auto 28px;
  }

  .two-columns {
    grid-template-columns: 1fr;
  }

  .full-field {
    grid-column: auto;
  }
}

.network-note .coastline-mark {
  filter: none;
  background: linear-gradient(135deg, #174f5e, #286f7d);
}

.password-field {
  display: grid;
  gap: 7px;
}

.password-field > label {
  display: block;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.field-grid label,
.password-field > label,
.agency-combobox > label {
  color: #34312d;
  font-size: 14px;
  font-weight: 800;
}

.agency-combobox input {
  padding-left: 43px;
}

.field-grid input::placeholder,
.agency-combobox input::placeholder {
  color: #77736d;
  opacity: 1;
}

.field-grid input:focus,
.agency-combobox input:focus {
  border-color: #d88600;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 173, 31, .2);
}

.terms input {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin: 0;
  flex-shrink: 0;
}

[hidden] {
  display: none !important;
}

.validated-input {
  position: relative;
}

.validated-input input {
  padding-right: 42px;
}

.valid-check {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #22743e;
  font-size: 22px;
  font-weight: 800;
}

.valid-status {
  font-size: 12px;
  color: #22743e;
  min-height: 0;
}

.valid-status:empty {
  display: none;
}

.field-grid input.is-valid {
  border-color: #22743e;
}

.field-grid input:valid:not(:placeholder-shown) {
  border-color: #8f8a82;
}

.field-grid input.is-valid:valid {
  border-color: #22743e;
}

.field-grid input:focus {
  border-color: #d88600;
}

.agency-search-row {
  align-items: stretch;
  gap: 10px;
  position: relative;
  display: block;
}

.agency-search-row input {
  min-width: 0;
  padding-left: 42px;
  padding-right: 44px;
}

.new-agency-fields {
  margin-top: 16px;
  background: #faf9f6;
  border: 1px solid #e5e1d9;
  padding: 20px;
  border-radius: 8px;
}

.new-agency-fields .inline-heading button {
  min-height: 40px;
  font-size: 14px;
}

.create-account:disabled {
  opacity: .6;
}

button,
a,
input {
  touch-action: manipulation;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid #125a7b;
  outline-offset: 3px;
}

@media (max-width: 950px) {
  .signup-page {
    grid-template-columns: 1fr;
  }

  .signup-story {
    padding: 36px 6vw;
  }

  .signup-benefits,
  .network-note {
    display: none;
  }

  .account-card {
    margin: 28px auto;
    width: calc(100% - 32px);
  }

  .signup-header {
    gap: 20px;
  }

  .signup-header img {
    width: 150px;
  }
}

@media (max-width: 500px) {
  .two-columns {
    grid-template-columns: 1fr;
  }

  .signup-header {
    height: auto;
    min-height: 76px;
    padding: 15px 5vw;
  }

  .signup-header .login-link {
    max-width: 130px;
    font-size: 14px;
  }

  .agency-search-row {
    flex-wrap: wrap;
  }

  .agency-search-row input {
    flex-basis: 100%;
  }

  .signup-story>p {
    font-size: 16px;
  }
}

.sr-only {
  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;
}

.card-heading {
  margin-bottom: 22px;
}

#passwordHelp {
  margin: 8px 0 22px;
}

/* The length line appears with the meter once typing starts; until then the
   field's placeholder states it. Keeps the submit button in view on a
   13-inch laptop. */
#passwordHelp .ts-password-strength:not([data-reading]) .ts-password-rules {
  display: none;
}

.field-grid label,
.password-field>label,
.agency-combobox>label {
  font-weight: 600;
  font-size: 14px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 25px;
  color: #777;
}

.field-error:empty {
  display: none;
}

@media (max-width: 600px) {
  .account-card {
    padding: 26px 22px;
  }

  .card-heading h2 {
    font-size: 26px;
  }

  .new-agency-fields {
    padding: 16px;
  }

  .signup-story {
    padding: 28px 6vw;
  }

  .signup-story h1 {
    font-size: 38px;
  }
}

.verification {
  display: grid;
  gap: 8px;
  justify-items: start;
}

#gdpr-banner {
  display: none;
  background: #242424;
  color: white;
  padding: 16px 5vw;
  font: 14px/1.5 var(--sans);
}

.show-gdpr-banner #gdpr-banner {
  display: block;
}

#gdpr-banner a {
  color: inherit;
  text-decoration: underline;
}

#gdpr-button {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 16px;
  border: 1px solid currentColor;
  border-radius: 6px;
}

/* Agency combobox rows, built by searchable-select. */
.agency-results.hidden {
  display: none;
}

.agency-results .sg-combobox-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  padding: 14px 16px;
  border-bottom: 1px solid #eee9e1;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.agency-results .sg-combobox-option:hover,
.agency-results .sg-combobox-option[data-active] {
  background: #fff5e1;
}

.agency-results [data-create]::after {
  content: "ADD AGENCY";
  flex-shrink: 0;
  color: #715013;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .025em;
}

.agency-results li:not(.sg-combobox-option) {
  padding: 10px 16px;
  color: var(--muted);
  font-size: 12px;
  font-style: italic;
}

@media (max-width: 600px) {
  .agency-results .sg-combobox-option {
    gap: 10px;
    padding: 12px;
  }
}
