* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: transparent !important;
}

body {
  color: #153b3d;
  font-family: Arial, Helvetica, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

#flow-root {
  width: 100%;
}

.flow-shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 40px 24px;
}

.flow-progress {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce8e7;
}

.flow-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #0d7d75;
  transition: width 220ms ease;
}

.flow-step {
  margin: 22px 0 8px;
  color: #0d7d75;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flow-header h1 {
  margin: 0;
  color: #123b3d;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.08;
}

.flow-header p {
  max-width: 600px;
  margin: 12px 0 28px;
  color: #587072;
  font-size: 17px;
  line-height: 1.55;
}

.flow-form {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.flow-field {
  margin: 0 0 22px;
}

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

.flow-field label:not(.flow-option):not(.flow-check) {
  display: block;
  margin-bottom: 8px;
  color: #183e40;
  font-size: 14px;
  font-weight: 700;
}

.flow-optional {
  color: #718587;
  font-size: 12px;
  font-weight: 400;
}

.flow-field input:not([type="checkbox"]),
.flow-field select,
.flow-field textarea {
  width: 100%;
  border: 1px solid #b8ccca;
  border-radius: 6px;
  background: #ffffff;
  color: #183e40;
  padding: 13px 14px;
  outline: none;
}

.flow-field textarea {
  min-height: 146px;
  resize: vertical;
}

.flow-field input:focus,
.flow-field select:focus,
.flow-field textarea:focus {
  border-color: #0d7d75;
  box-shadow: 0 0 0 3px rgba(13, 125, 117, 0.14);
}

.flow-note,
.flow-privacy {
  margin: 7px 0 0;
  color: #647a7b;
  font-size: 13px;
  line-height: 1.45;
}

.flow-options {
  display: grid;
  gap: 9px;
}

.flow-option,
.flow-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 13px;
  border: 1px solid #cfdddb;
  border-radius: 6px;
  color: #284e4f;
  background: transparent;
  cursor: pointer;
}

.flow-option input,
.flow-check input {
  margin: 3px 0 0;
  accent-color: #0d7d75;
}

.flow-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.flow-next,
.flow-back {
  min-height: 46px;
  border-radius: 6px;
  padding: 0 20px;
  font-weight: 700;
  cursor: pointer;
}

.flow-next {
  border: 1px solid #0d7d75;
  background: #0d7d75;
  color: #ffffff;
}

.flow-next:hover {
  background: #09645e;
}

.flow-next:disabled {
  cursor: wait;
  opacity: 0.7;
}

.flow-back {
  border: 1px solid #b8ccca;
  background: #ffffff;
  color: #315b5d;
}

.flow-field-error,
.flow-submit-error {
  margin: 7px 0 0;
  color: #b42318;
  font-size: 13px;
}

.has-error input,
.has-error select,
.has-error textarea {
  border-color: #b42318 !important;
}

.flow-submit-error {
  margin-bottom: 14px;
}

.flow-success {
  padding-top: 72px;
  padding-bottom: 72px;
  text-align: center;
}

.flow-success h1 {
  margin: 0;
  color: #123b3d;
  font-size: 38px;
}

.flow-success p:last-child {
  max-width: 520px;
  margin: 16px auto 0;
  color: #587072;
  line-height: 1.6;
}

.flow-error {
  padding-top: 64px;
  text-align: center;
}

/* BFS Incubator Programme Application only */

body.flow-bfs-incubator {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  background: #FDF3EB !important;
  color: #083828;
}

body.flow-bfs-incubator #flow-root {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  background: #FDF3EB !important;
}

body.flow-bfs-incubator .flow-shell {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #FDF3EB !important;
  box-sizing: border-box;
}

body.flow-bfs-incubator .flow-progress {
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 18px;
  background: rgba(8, 56, 40, 0.14);
}

body.flow-bfs-incubator .flow-progress span {
  background: #083828;
}

body.flow-bfs-incubator .flow-step {
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 10px;
  color: #083828;
  font-size: 12px;
  letter-spacing: 0.08em;
}

body.flow-bfs-incubator .flow-header {
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 18px;
}

body.flow-bfs-incubator .flow-header h1 {
  margin: 0;
  color: #083828;
  font-size: clamp(30px, 4vw, 52px) !important;
  line-height: 0.95;
}

body.flow-bfs-incubator .flow-header p {
  width: 100% !important;
  max-width: none !important;
  margin: 12px 0 0;
  color: rgba(8, 56, 40, 0.76);
  font-size: 15px;
  line-height: 1.45;
}

body.flow-bfs-incubator .flow-form {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  box-sizing: border-box;
}

body.flow-bfs-incubator .flow-field {
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 13px;
  box-sizing: border-box;
}

body.flow-bfs-incubator .flow-field-row {
  width: 100% !important;
  max-width: none !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  box-sizing: border-box;
}

body.flow-bfs-incubator .flow-field label:not(.flow-option):not(.flow-check) {
  color: #083828;
  font-size: 13px;
  margin-bottom: 6px;
}

body.flow-bfs-incubator .flow-field input:not([type="checkbox"]),
body.flow-bfs-incubator .flow-field select,
body.flow-bfs-incubator .flow-field textarea {
  width: 100% !important;
  max-width: none !important;
  min-height: 42px;
  padding: 10px 12px;
  border-color: rgba(8, 56, 40, 0.24);
  background: #ffffff;
  color: #083828;
  font-size: 14px;
  box-sizing: border-box;
}

body.flow-bfs-incubator .flow-field textarea {
  min-height: 120px;
}

body.flow-bfs-incubator .flow-field input:focus,
body.flow-bfs-incubator .flow-field select:focus,
body.flow-bfs-incubator .flow-field textarea:focus {
  border-color: #083828;
  box-shadow: 0 0 0 3px rgba(8, 56, 40, 0.14);
}

body.flow-bfs-incubator .flow-note,
body.flow-bfs-incubator .flow-privacy {
  color: rgba(8, 56, 40, 0.68);
}

body.flow-bfs-incubator .flow-options {
  width: 100% !important;
  max-width: none !important;
}

body.flow-bfs-incubator .flow-option,
body.flow-bfs-incubator .flow-check {
  width: 100% !important;
  max-width: none !important;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-color: rgba(8, 56, 40, 0.18);
  background: rgba(255, 255, 255, 0.55);
  color: #083828;
  font-size: 13px;
  line-height: 1.4;
  box-sizing: border-box;
}

body.flow-bfs-incubator .flow-option input,
body.flow-bfs-incubator .flow-check input {
  margin-top: 3px;
  accent-color: #083828;
}

body.flow-bfs-incubator .flow-actions {
  width: 100% !important;
  max-width: none !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px;
  margin-top: 18px;
}

body.flow-bfs-incubator .flow-actions span {
  display: none;
}

body.flow-bfs-incubator .flow-next {
  width: 100% !important;
  max-width: none !important;
  min-height: 44px;
  border-color: #083828;
  background: #083828;
  color: #ffffff;
}

body.flow-bfs-incubator .flow-next:hover {
  background: #062b1f;
}

body.flow-bfs-incubator .flow-back {
  width: 100% !important;
  max-width: none !important;
  min-height: 44px;
  border-color: rgba(8, 56, 40, 0.28);
  background: transparent;
  color: #083828;
}

body.flow-bfs-incubator .flow-success {
  width: 100% !important;
  max-width: none !important;
  padding: 40px 0;
  background: #FDF3EB;
  color: #083828;
}

body.flow-bfs-incubator .flow-success h1 {
  color: #083828;
}

body.flow-bfs-incubator .flow-success p:last-child {
  color: rgba(8, 56, 40, 0.76);
}

body.flow-bfs-incubator a {
  color: #083828;
}

/* File upload fields */

.flow-file {
  width: 100%;
}

.flow-file input[type="file"] {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid #b8ccca;
  border-radius: 6px;
  background: #ffffff;
  color: #183e40;
  cursor: pointer;
}

.flow-file input[type="file"]::file-selector-button {
  margin-right: 12px;
  border: 1px solid #0d7d75;
  border-radius: 5px;
  background: #0d7d75;
  color: #ffffff;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}

.flow-file input[type="file"]:focus {
  border-color: #0d7d75;
  box-shadow: 0 0 0 3px rgba(13, 125, 117, 0.14);
  outline: none;
}

.flow-file-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-top: 8px;
  color: #647a7b;
  font-size: 13px;
  line-height: 1.45;
}

.flow-file-status a {
  color: #0d7d75;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.flow-file-name {
  word-break: break-word;
}

.flow-file-uploading {
  margin: 8px 0 0;
  color: #0d7d75;
  font-size: 13px;
  font-weight: 700;
}

/* BFS file upload colours */

body.flow-bfs-incubator .flow-file input[type="file"] {
  border-color: rgba(8, 56, 40, 0.24);
  color: #083828;
}

body.flow-bfs-incubator .flow-file input[type="file"]::file-selector-button {
  border-color: #083828;
  background: #083828;
  color: #ffffff;
}

body.flow-bfs-incubator .flow-file input[type="file"]:focus {
  border-color: #083828;
  box-shadow: 0 0 0 3px rgba(8, 56, 40, 0.14);
}

body.flow-bfs-incubator .flow-file-status {
  color: rgba(8, 56, 40, 0.68);
}

body.flow-bfs-incubator .flow-file-status a {
  color: #083828;
}

body.flow-bfs-incubator .flow-file-uploading {
  color: #083828;
}

/* BFS checkbox policy link */

body.flow-bfs-incubator .flow-check a {
  color: #083828;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.flow-bfs-incubator .flow-check a:hover {
  color: #062b1f;
}

/* Default mobile layout for Livance forms only */

@media (max-width: 620px) {
  body:not(.flow-bfs-incubator) .flow-shell {
    padding: 26px 16px;
  }

  body:not(.flow-bfs-incubator) .flow-field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  body:not(.flow-bfs-incubator) .flow-header h1 {
    font-size: 32px;
  }
}

/* BFS only goes true mobile on very narrow iframe widths */

@media (max-width: 430px) {
  body.flow-bfs-incubator .flow-field-row {
    display: block !important;
  }

  body.flow-bfs-incubator .flow-header h1 {
    font-size: 32px !important;
  }
}