/* GYG Careers – Ashby application form (embedded on job pages)
   Matches the careers site design: GYG Sans, midnight text, 8px inputs, pill buttons.
   Loaded inside Ashby's iframe via `customCssUrl`. Only uses Ashby's public ashby-* classes
   and attributes (aria-pressed, data-checked), never Ashby's generated class names. */

@font-face {
  font-family: "GYG Sans Text";
  src: url("https://webflow-files-prod.global.ssl.fastly.net/6aca2718627c74e9b3e772ea/fonts/6aca636962673c9d68092759-GYGSansText-VF.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "GYG Sans Headline";
  src: url("https://webflow-files-prod.global.ssl.fastly.net/6aca2718627c74e9b3e772ea/fonts/6aca6368ee3429f0ab66026e-GYGSansHeadline-VF.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --gyg-red: #fa4f2d;
  --gyg-red-dark: #dc3918;
  --gyg-red-20: rgba(250, 79, 45, 0.2);
  --gyg-off-white: #fdfaf5;
  --gyg-midnight: #020226;
  --gyg-midnight-75: rgba(2, 2, 38, 0.75);
  --gyg-midnight-43: rgba(2, 2, 38, 0.43);
  --gyg-midnight-25: rgba(2, 2, 38, 0.25);
  --gyg-midnight-10: rgba(2, 2, 38, 0.1);
  --gyg-lavender-25: rgba(218, 210, 244, 0.25);
  --gyg-error: #c70248;

  /* Ashby theme variables */
  --fontFamily: "GYG Sans Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --colorPrimary900: var(--gyg-red-dark);
  --colorPrimary600: var(--gyg-red);
  --colorNegative600: var(--gyg-error);
  --borderRadiusContainer: 16px;
  --borderRadiusControl: 8px;
  --borderRadiusButton: 1000px;
  --colorAppBackground: transparent;
}

/* Let the job page's lavender card show through */
html,
body,
.ashby-application-form-container {
  background: transparent !important;
}
body,
.ashby-application-form-container {
  font-family: var(--fontFamily);
  color: var(--gyg-midnight);
  -webkit-font-smoothing: antialiased;
}
.ashby-application-form-container {
  /* 1px side padding: the iframe width is often fractional, which clipped the right border of fields */
  padding: 0 1px !important;
  box-shadow: none !important;
  max-width: none !important;
}

/* Sections & fields */
.ashby-application-form-section-container + .ashby-application-form-section-container,
.ashby-survey-form-container {
  margin-top: 3rem;
}
.ashby-application-form-section-header-title {
  font-family: "GYG Sans Text", sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gyg-midnight);
}
.ashby-application-form-section-header-description {
  font-size: 0.875rem;
  color: var(--gyg-midnight-75);
}
.ashby-application-form-field-entry {
  margin-bottom: 1.5rem;
}

/* Question labels. Ashby questions can be long sentences, so these use sentence case
   (the site's short uppercase labels would be hard to read over several lines). */
.ashby-application-form-question-title {
  display: block;
  margin-bottom: 0.5rem;
  font-family: "GYG Sans Text", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--gyg-midnight);
}
.ashby-application-form-question-title::after {
  color: var(--gyg-red);
}
.ashby-application-form-question-description {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--gyg-midnight-75);
}
.ashby-application-form-question-description a,
.ashby-application-form-container a {
  color: var(--gyg-red);
}

/* Text inputs, autocomplete and textareas */
.ashby-application-form-input-text,
.ashby-application-form-input-autocomplete,
.ashby-application-form-container input[type="text"],
.ashby-application-form-container input[type="email"],
.ashby-application-form-container input[type="tel"],
.ashby-application-form-container input[type="url"],
.ashby-application-form-container input[type="number"],
.ashby-application-form-container input[type="date"],
.ashby-application-form-container select,
.ashby-application-form-container textarea {
  min-height: 3rem;
  padding: 0 1rem;
  border: 1px solid var(--gyg-midnight-25) !important;
  border-radius: 8px !important;
  background-color: #fff !important;
  box-shadow: none !important;
  font-family: "GYG Sans Text", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gyg-midnight);
  transition: border-color 200ms ease;
}
.ashby-application-form-container textarea {
  min-height: 7.5rem;
  padding: 0.875rem 1rem;
  line-height: 1.5;
}
.ashby-application-form-container input::placeholder,
.ashby-application-form-container textarea::placeholder {
  color: var(--gyg-midnight-43);
  opacity: 1;
}
.ashby-application-form-container input:hover,
.ashby-application-form-container textarea:hover,
.ashby-application-form-container select:hover {
  border-color: var(--gyg-midnight-43) !important;
}
.ashby-application-form-container input:focus,
.ashby-application-form-container textarea:focus,
.ashby-application-form-container select:focus {
  border-color: var(--gyg-midnight-75) !important;
  outline: none !important;
  box-shadow: none !important;
}

/* "Autofill from resume" pane above the form: drop Ashby's white wrapper and space it like a field */
.ashby-application-form-autofill-uploader {
  background: transparent !important;
  padding: 0 1px !important;
  margin: 0 0 1.5rem !important;
  box-shadow: none !important;
}

/* File uploads (resume, cover letter) */
.ashby-application-form-input-file,
.ashby-application-form-autofill-input-root {
  border: 1px dashed var(--gyg-midnight-25) !important;
  border-radius: 16px !important;
  background-color: #fff !important;
}
.ashby-application-form-input-file {
  padding: 1.75rem 1.5rem !important;
}
.ashby-application-form-input-file-dropzone {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
.ashby-application-form-input-file-dropzone-instructions,
.ashby-application-form-autofill-input-description {
  font-size: 0.875rem;
  color: var(--gyg-midnight-75);
}
.ashby-application-form-autofill-input-title {
  font-weight: 600;
  color: var(--gyg-midnight);
}
.ashby-application-form-autofill-input-icon {
  color: var(--gyg-red);
}

/* Secondary buttons inside the form (Upload file, Yes/No) */
html body button:not(.ashby-application-form-submit-button) {
  border: 1px solid var(--gyg-midnight-25) !important;
  border-radius: 1000px !important;
  background-color: #fff !important;
  color: var(--gyg-midnight) !important;
  font-family: "GYG Sans Text", sans-serif;
  font-weight: 500;
  box-shadow: none !important;
  transition: background-color 200ms ease, border-color 200ms ease;
}
html body button:not(.ashby-application-form-submit-button):hover {
  background-color: var(--gyg-lavender-25) !important;
  border-color: var(--gyg-midnight-43) !important;
}
html body button:not(.ashby-application-form-submit-button) svg {
  color: var(--gyg-midnight);
  fill: currentColor;
}

/* Yes / No: same size as the site's small buttons, with a gap between them */
.ashby-application-form-input-yesno {
  display: inline-flex !important;
  gap: 0.5rem !important;
}
html body button.ashby-application-form-input-yesno-option {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  white-space: nowrap;
  margin: 0 !important;
  padding: 0.75rem 1.5rem !important;
  font-size: 1rem !important;
  line-height: 1 !important;
}
html body button.ashby-application-form-input-yesno-option[aria-pressed="true"] {
  background-color: var(--gyg-midnight) !important;
  border-color: var(--gyg-midnight) !important;
  color: #fff !important;
}

/* Checkboxes */
.ashby-application-form-input-checkbox-group-option {
  margin-bottom: 0.75rem;
}
.ashby-application-form-input-checkbox-group-option-checkbox {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  width: 1.5rem !important;
  height: 1.5rem !important;
  flex: 0 0 auto;
  border: 1px solid var(--gyg-midnight-25) !important;
  border-radius: 6px !important;
  background-color: #fff !important;
  color: transparent;
  outline: none !important;
  box-shadow: none !important;
  transition: background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
/* Ashby nudges the tick and the hidden input by -2px to suit its own 2px border, and the input
   sits in the same grid cell as the tick, which pushes it off-centre. Reset the tick and lay the
   (invisible) input over the whole box so the tick is centred exactly and the box stays clickable. */
.ashby-application-form-input-checkbox-group-option-checkbox > svg {
  margin: 0 !important;
  width: 0.75rem;
  height: 0.75rem;
  fill: transparent !important;
}
.ashby-application-form-input-checkbox-group-option-checkbox > input {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
}
.ashby-application-form-input-checkbox-group-option:hover .ashby-application-form-input-checkbox-group-option-checkbox {
  border-color: var(--gyg-midnight-43) !important;
}
/* Checked: guiding red box with an off-white tick */
.ashby-application-form-input-checkbox-group-option-checkbox[data-checked] {
  background-color: var(--gyg-red) !important;
  border-color: var(--gyg-red) !important;
}
.ashby-application-form-input-checkbox-group-option:hover .ashby-application-form-input-checkbox-group-option-checkbox[data-checked] {
  background-color: var(--gyg-red-dark) !important;
  border-color: var(--gyg-red-dark) !important;
}
.ashby-application-form-input-checkbox-group-option-checkbox[data-checked] > svg {
  fill: var(--gyg-off-white) !important;
}
/* Focus ring for keyboard users only (replaces Ashby's offset blue outline), following the rounded corners */
.ashby-application-form-input-checkbox-group-option-checkbox:has(> input:focus-visible) {
  box-shadow: 0 0 0 3px var(--gyg-red-20) !important;
}
.ashby-application-form-input-checkbox-group-option-label {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--gyg-midnight);
}

/* Submit */
.ashby-application-form-submit-button {
  width: auto !important;
  min-width: 0 !important;
  padding: 0.75rem 1.5rem !important;
  border: 1px solid var(--gyg-red) !important;
  border-radius: 1000px !important;
  background-color: var(--gyg-red) !important;
  color: #fff !important;
  font-family: "GYG Sans Text", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: none !important;
  transition: background-color 200ms ease, border-color 200ms ease;
}
.ashby-application-form-submit-button:hover {
  background-color: var(--gyg-red-dark) !important;
  border-color: var(--gyg-red-dark) !important;
}

/* Messages */
.ashby-application-form-success-container,
.ashby-application-form-failure-container {
  padding: 2rem;
  border-radius: 16px;
  background-color: #fff;
  font-family: "GYG Sans Text", sans-serif;
  color: var(--gyg-midnight);
}

/* Dropdown arrow inside the salary/location pickers: inset so its hover circle has breathing room */
.ashby-application-form-input-autocomplete {
  padding-right: 3.25rem !important;
}
html body .ashby-application-form-input-autocomplete ~ button {
  top: 0.375rem !important;
  right: 0.375rem !important;
  width: 2.25rem !important;
  height: 2.25rem !important;
  min-width: 0 !important;
  padding: 0 !important;
  border-color: transparent !important;
  background: transparent !important;
}
html body .ashby-application-form-input-autocomplete ~ button:hover {
  border-color: transparent !important;
  background-color: var(--gyg-lavender-25) !important;
}

/* Dropdown list: our border, shadow and midnight hover/selected instead of the board's dark red */
.ashby-application-form-input-autocomplete-popup {
  border: 1px solid var(--gyg-midnight-25) !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 8px rgba(2, 2, 38, 0.1), 0 2px 4px rgba(2, 2, 38, 0.06) !important;
  overflow: hidden;
}
.ashby-application-form-input-autocomplete-popup-result {
  font-family: "GYG Sans Text", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gyg-midnight);
}
.ashby-application-form-input-autocomplete-popup-result:hover,
.ashby-application-form-input-autocomplete-popup-result[aria-selected="true"] {
  background-color: var(--gyg-midnight) !important;
  color: #fff !important;
}

/* "Recruiting Privacy Policy" footer bar */
html body div:has(> [class*="recruitingPrivacyPolicyContainer"]) {
  background: transparent !important;
  border-color: var(--gyg-midnight-10) !important;
}
