/* Card form theme: neutral (dark navy, slate grey, white).
   To match a brand, change only the values in the :root block below, plus the font
   @import line if you change the font. Everything else sets layout and spacing.
   Card number, expiry and CVV text is drawn inside the vault's own secure frames, so only
   the boxes around them can be styled here. */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap");

:root {
  --brand: #0b1828;          /* button, focused field outline, checkbox, links, step numbers */
  --brand-hover: #14273e;    /* button on hover */
  --brand-active: #070e18;   /* button while pressed */
  --brand-soft: #eef2f7;     /* very light tint of --brand, behind step numbers */
  --button-text: #fff;       /* text on the button */
  --text: #48566a;           /* body text */
  --label: #0b1828;          /* field labels and typed text */
  --heading: #0b1828;        /* section titles */
  --muted: #64748b;          /* hints and small print */
  --page-background: #fff;   /* behind the form: match the page */
  --radius: 8px;             /* corner rounding of fields and the button */
  --font: "Inter", "Helvetica Neue", Arial, sans-serif;
}

/* -- Page & container ------------------------------------------------------ */

html,
body,
#emf-container-wrap {
  margin: 0;
  background: var(--page-background) !important;
  background-image: none !important;
}

#emf-container-outer,
#emf-container {
  width: 100% !important;
  max-width: none;
  margin: 0;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none !important;
  background: var(--page-background) !important;
  font-family: var(--font) !important;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

#emf-container-outer {
  padding: 0;
}

/* Just enough room for focus rings. The max-width only matters when the form is opened on
   its own, where it stops fields stretching across a whole desktop screen. */
#emf-container {
  max-width: 560px !important;
  margin: 0 auto !important;
  padding: 4px 4px 8px !important;
}

/* Opened on its own at desktop width. */
@media (min-width: 640px) {
  #emf-container {
    padding: 48px 4px 48px !important;
  }
}

#emf-logo,
#emf-form-shadows,
#emf-form-title,
#emf-form-description {
  display: none !important;
}

#emf-form {
  margin: 0 !important;
  padding: 0 !important;
}

#emf-form ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#emf-form li.emf-li-field,
#emf-form li#emf-li-recaptcha,
#emf-form li#emf-li-post-button {
  margin: 0;
  padding: 0 0 20px;
  border: 0;
  background: none !important;
}

#emf-form li.highlight-field {
  background: none !important;
}

/* -- Labels ---------------------------------------------------------------- */

#emf-container label.emf-label-desc {
  display: block;
  margin: 0 0 6px;
  padding: 0;
  font-family: inherit !important;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--label) !important;
}

#emf-container label.emf-label-desc span {
  color: #b42318;
  font-weight: 500;
}

#emf-container div.emf-div-field label.emf-bottom-label,
#emf-container .emf-bottom-label {
  display: block;
  margin: 4px 0 0;
  font-family: inherit !important;
  font-size: 12px;
  font-weight: 400;
  text-align: left;
  color: var(--muted) !important;
}

#emf-container .emf-div-instruction {
  font-size: 12.5px;
  color: var(--muted);
  background: none;
}

/* -- Inputs ---------------------------------------------------------------- */

#emf-container div.emf-div-field input[type="text"],
#emf-container div.emf-div-field input[type="email"],
#emf-container div.emf-div-field input[type="tel"],
#emf-container div.emf-div-field input[type="number"],
#emf-container div.emf-div-field select,
#emf-container div.emf-div-field textarea {
  box-sizing: border-box;
  width: 100% !important;
  height: 40px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid rgba(0, 0, 0, 0.14) !important;
  border-radius: var(--radius);
  background: #fff !important;
  box-shadow: none;
  font-family: inherit !important;
  font-size: 14px;
  color: var(--label) !important;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

#emf-container div.emf-div-field textarea {
  height: auto;
  min-height: 88px;
  padding: 10px 12px;
}

#emf-container div.emf-div-field select {
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2364748b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
}

#emf-container div.emf-div-field input:hover,
#emf-container div.emf-div-field select:hover,
#emf-container .fake--input:hover {
  border-color: rgba(0, 0, 0, 0.28) !important;
}

#emf-container div.emf-div-field input:focus,
#emf-container div.emf-div-field select:focus,
#emf-container div.emf-div-field textarea:focus,
#emf-container .fake--input:focus-within {
  outline: none;
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}

/* Name: first / last side by side */
#emf-container .emf-field-new_name .emf-div-field {
  display: flex;
  gap: 12px;
}
#emf-container .emf-field-new_name .emf-div-field > span {
  flex: 1 1 0;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
}

/* Address: street, then city / state, then postcode / country. Line 2 is optional and hidden. */
#emf-container .emf-field-new_address .emf-div-field > div {
  width: 100% !important;
}
#emf-container .emf-field-new_address-addr2 {
  display: none !important;
}
#emf-container .emf-field-new_address span.emf-full,
#emf-container .emf-field-new_address span.emf-half {
  display: block;
  margin-bottom: 10px;
}
#emf-container .emf-field-new_address span.emf-half {
  width: calc(50% - 6px) !important;
}
#emf-container .emf-field-new_address span.emf-left {
  float: left;
  clear: left;
}
#emf-container .emf-field-new_address span.emf-right {
  float: right;
}

/* -- Section breaks ---------------------------------------------------------
   Keep forms to one page: the Next button submits to the parent window, so a multi-page
   form would leave the host page after page 1. Each section break is drawn as a numbered
   step instead. */

#emf-form {
  counter-reset: emf-step;
}

#emf-form li.emf-field-section_break {
  counter-increment: emf-step;
  padding-bottom: 18px !important;
}

#emf-container .emf-div-field-section {
  padding-top: 12px;
}

#emf-container .emf-section-separator {
  height: 0;
  margin: 0 0 28px;
  border: 0 !important;
  border-top: 1px solid rgba(6, 11, 37, 0.09) !important;
  background: none !important;
}

/* The first step sits right under the page heading, so it needs no rule above it. */
#emf-form li.emf-field-section_break:first-child .emf-section-separator {
  display: none;
}
#emf-form li.emf-field-section_break:first-child .emf-div-field-section {
  padding-top: 0;
}

#emf-container .emf-div-field-section h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  font-family: inherit !important;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--heading) !important;
}

#emf-container .emf-div-field-section h3::before {
  content: counter(emf-step);
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-soft);
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
}

/* Lines the description up with the title, past the step number. */
#emf-container .emf-section-text {
  margin: 4px 0 0 34px;
  font-family: inherit !important;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted) !important;
}

#emf-container li .emf-div-instruction {
  font-family: inherit !important;
  line-height: 1.5;
}

/* -- File uploads ---------------------------------------------------------- */

#emf-container div.emf-div-field input[type="file"] {
  box-sizing: border-box;
  width: 100% !important;
  padding: 10px 12px;
  border: 1px dashed rgba(0, 0, 0, 0.22) !important;
  border-radius: var(--radius);
  background: #fafafc !important;
  font-family: inherit !important;
  font-size: 13px;
  color: var(--muted) !important;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

#emf-container div.emf-div-field input[type="file"]::file-selector-button {
  height: 32px;
  margin: 0 12px 0 0;
  padding: 0 14px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: var(--radius);
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--heading);
  cursor: pointer;
  transition: border-color 0.15s;
}

#emf-container div.emf-div-field input[type="file"]:hover {
  border-color: rgba(0, 0, 0, 0.36) !important;
}
#emf-container div.emf-div-field input[type="file"]:hover::file-selector-button {
  border-color: rgba(0, 0, 0, 0.28);
}

#emf-container div.emf-div-field input[type="file"]:focus-visible {
  outline: none;
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}

#emf-container .emf-field-file .emf-div-instruction {
  margin-top: 6px;
}

/* -- Card (vault) fields --------------------------------------------------- */

#emf-container .emf-field-credit_card {
  display: block !important;
}

#emf-container .widget-form--vault,
#emf-container .widget-form--vault label,
#emf-container .widget-form--vault span,
#emf-container .widget-form--vault a,
#emf-container .vault-protected {
  font-family: var(--font) !important;
}

#emf-container .widget-form--vault .two_column {
  float: none !important;
  width: 100% !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
}

#emf-container .widget-form--vault .two_column label.emf-label-desc {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted) !important;
}

#emf-container .fake--input {
  box-sizing: border-box;
  height: 40px !important;
  padding: 0 12px;
  border: 1px solid rgba(0, 0, 0, 0.14) !important;
  border-radius: var(--radius);
  background: #fff !important;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}

#emf-container .fake--input.number,
#emf-container .hf--md {
  width: 100% !important;
  max-width: none;
  padding-right: 50px;
}

#emf-container .fake--input .creditcard--logo {
  top: 8px;
  right: 10px;
  height: 22px;
}

#emf-container .widget-form--vault .exp-block,
#emf-container .widget-form--vault .cvv-block {
  display: inline-block;
  vertical-align: top;
}
#emf-container .widget-form--vault .exp-block {
  margin-right: 20px;
}
#emf-container .widget-form--vault .exp-month,
#emf-container .widget-form--vault .exp-year {
  width: 60px !important;
}
#emf-container .widget-form--vault .cvv {
  width: 80px !important;
}
#emf-container .widget-form--vault .emf-sep {
  display: inline-block;
  padding: 0 6px;
  line-height: 40px;
  vertical-align: top;
  color: var(--muted);
}
#emf-container .widget-form--vault .emf-field-datetime-month,
#emf-container .widget-form--vault .emf-field-datetime-year {
  display: inline-block;
  vertical-align: top;
}

#emf-container .link--wtf {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--brand) !important;
  text-decoration: none;
}

#emf-container .vault-protected {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
#emf-container .vault-protected svg path {
  fill: var(--muted);
}

/* -- Authorisation checkbox (consent panel) -------------------------------- */

#emf-container .emf-div-terms-field {
  padding: 14px 16px;
  border: 1px solid rgba(6, 11, 37, 0.09);
  border-radius: 10px;
  background: var(--page-background);
}

#emf-container .emf-div-terms-field label.emf-label-desc {
  gap: 10px;
  align-items: center !important;
  margin-bottom: 4px;
}

#emf-container .emf-terms-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--brand);
  cursor: pointer;
}

#emf-container .emf-div-terms-field .emf-div-field {
  padding-left: 26px;
}

#emf-container .emf-terms-agreement {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* -- Submit button (the theme's Button Type must be "Text") ---------------- */

#emf-container #emf-li-post-button input[type="submit"],
#emf-container #emf-li-post-button button {
  display: inline-block;
  width: auto;
  height: 40px;
  margin: 0;
  padding: 0 20px;
  border: 0 !important;
  border-radius: var(--radius);
  background: var(--brand) !important;
  background-image: none !important;
  box-shadow: none;
  font-family: var(--font) !important;
  font-size: 14px;
  font-weight: 500;
  text-shadow: none;
  color: var(--button-text) !important;
  cursor: pointer;
  transition: background-color 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

#emf-container #emf-li-post-button input[type="submit"]:hover,
#emf-container #emf-li-post-button button:hover {
  background: var(--brand-hover) !important;
}

#emf-container #emf-li-post-button input[type="submit"]:active,
#emf-container #emf-li-post-button button:active {
  background: var(--brand-active) !important;
}

#emf-container #emf-li-post-button input[type="submit"]:focus-visible,
#emf-container #emf-li-post-button button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 35%, transparent);
}

/* -- Turnstile & errors ---------------------------------------------------- */

#emf-container .turnstile-container {
  margin: 0;
}

.formError .formErrorContent {
  padding: 6px 10px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: #b42318 !important;
  box-shadow: 0 4px 12px rgba(6, 11, 37, 0.12) !important;
  font-family: var(--font) !important;
  font-size: 12px !important;
  color: #fff !important;
}
.formError .formErrorArrow div {
  border: 0 !important;
  background: #b42318 !important;
  box-shadow: none !important;
}

#emf-container .emf-error-message {
  padding: 12px 14px;
  border-radius: 10px;
  background: #fef3f2;
  color: #b42318;
  font-size: 13px;
}

/* -- Phones ---------------------------------------------------------------- */

@media (max-width: 480px) {
  /* 16px text stops iPhones zooming in when a field is tapped. */
  #emf-container div.emf-div-field input[type="text"],
  #emf-container div.emf-div-field select {
    height: 44px;
    font-size: 16px;
  }
  #emf-container .fake--input {
    height: 44px !important;
  }
  #emf-container #emf-li-post-button input[type="submit"],
  #emf-container #emf-li-post-button button {
    width: 100%;
    height: 44px;
  }
}

@media (max-width: 420px) {
  #emf-container .emf-field-new_address span.emf-half {
    float: none !important;
    width: 100% !important;
  }
}
