/*
  Global input fields.
  Field group instructions live in assets/js/input_fields_controller.js.
*/

@font-face {
  font-family: "Input Gotham Light";
  src:
    url("../fonts/Gotham-Light.woff2") format("woff2"),
    url("../fonts/Gotham-Light.woff") format("woff"),
    url("../fonts/Gotham-Light.ttf") format("truetype"),
    url("../fonts/Gotham-Light.otf") format("opentype");
  font-display: swap;
  font-style: normal;
  font-weight: 300;
}

@font-face {
  font-family: "Input Gotham Bold";
  src:
    url("../fonts/gotham_bold.woff2") format("woff2"),
    url("../fonts/gotham_bold.woff") format("woff"),
    url("../fonts/gotham_bold.ttf") format("truetype"),
    url("../fonts/gotham_bold.otf") format("opentype");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

.input-fields-group {
  width: 100%;
  max-width: var(--input-fields-max-width, 600px);
}

.input-fields-form {
  width: 100%;
  margin: 0;
}

.input-fields-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.input-fields-intro {
  width: 100%;
  margin-bottom: var(--input-fields-intro-bottom, 35px);
}

.input-fields-intro-line {
  width: 100%;
  max-width: var(--input-fields-intro-line-width, 500px);
  height: 1px;
  background: var(--input-fields-intro-line-color, #4d4d4d);
}

.input-fields-intro-text {
  margin-top: var(--input-fields-intro-text-top, 20px);
  color: var(--site-text);
  font-family: "Input Gotham Light", var(--site-font-body);
  font-size: 15px;
  font-style: normal;
  font-weight: 300;
  line-height: 18px;
  letter-spacing: 0;
  text-align: left;
  text-transform: uppercase;
}

.input-fields-locations {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  margin-top: var(--input-fields-locations-top, 38px);
}

.input-fields-location-cell {
  position: relative;
  display: flex;
  align-items: flex-start;
  width: 106px;
  height: 19px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.input-fields-location-control {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.input-fields-location-marker {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  background-image: url("../images/checkbox_default.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 19px 19px;
}

.input-fields-location-control:checked + .input-fields-location-marker {
  background-image: url("../images/checkbox_selected.svg");
}

.input-fields-location-name {
  display: block;
  margin: 3px 0 0 8px;
  color: #9e9e9e;
  font-family: "Input Gotham Light", var(--site-font-body);
  font-size: 12px;
  font-style: normal;
  font-weight: 300;
  line-height: 14px;
  letter-spacing: 0;
  text-align: left;
  text-transform: uppercase;
}

.input-fields-location-control:focus-visible + .input-fields-location-marker {
  outline: 1px solid var(--site-gold);
  outline-offset: 3px;
}

.input-field {
  --input-field-height: 33px;
  width: 100%;
}

.input-field__body {
  position: relative;
  box-sizing: border-box;
  min-height: var(--input-field-height);
  border-bottom: 1px solid var(--site-gold);
}

.input-field__label {
  color: #9e9e9e;
  font-family: "Input Gotham Light", var(--site-font-body);
  font-size: 12px;
  font-style: normal;
  font-weight: 300;
  line-height: 14px;
  letter-spacing: 0;
  text-align: left;
  text-transform: uppercase;
}

.input-field__label {
  position: absolute;
  top: 10px;
  left: 0;
  pointer-events: none;
  transition: opacity 0.16s ease-out;
}

.input-field__body:focus-within .input-field__label,
.input-field.has-value .input-field__label {
  opacity: 0;
}

.input-field.is-invalid .input-field__label {
  color: var(--site-gold);
  opacity: 1;
}

.input-field__control {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: var(--input-field-height);
  padding: 10px 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--site-text);
  font-family: "Input Gotham Light", var(--site-font-body);
  font-size: 12px;
  font-style: normal;
  font-weight: 300;
  line-height: 14px;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  resize: none;
}

.input-field__control:-webkit-autofill,
.input-field__control:-webkit-autofill:hover,
.input-field__control:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--site-text);
  box-shadow: 0 0 0 1000px var(--site-bg) inset;
}

.input-fields-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 27px;
}

.input-fields-actions--left {
  justify-content: flex-start;
}

.input-fields-actions--right {
  justify-content: flex-end;
}

.input-fields-actions--split {
  justify-content: space-between;
}

.input-fields-button {
  display: inline-block;
  min-height: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--site-text);
  font-family: "Input Gotham Bold", var(--site-font-body);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 14px;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease-out;
  -webkit-tap-highlight-color: transparent;
}

.input-fields-button:hover,
.input-fields-button:focus-visible {
  color: var(--site-gold);
}

.input-fields-button:disabled {
  cursor: wait;
  opacity: 0.5;
}

.input-fields-button:focus-visible {
  outline: 1px solid var(--site-gold);
  outline-offset: 6px;
}

.input-fields-button-separator {
  display: block;
  flex: 0 0 auto;
  width: auto;
  height: 10px;
}

.input-fields-status {
  min-height: 14px;
  margin-top: 18px;
  color: #9e9e9e;
  font-family: "Input Gotham Light", var(--site-font-body);
  font-size: 12px;
  font-style: normal;
  font-weight: 300;
  line-height: 14px;
  letter-spacing: 0;
  text-align: left;
  text-transform: uppercase;
}

.input-fields-status:empty {
  display: none;
}

.input-fields-status--success {
  color: var(--site-text);
}

.input-fields-status--error {
  color: var(--site-gold);
}

@media (prefers-reduced-motion: reduce) {
  .input-field__label,
  .input-fields-button {
    transition: none;
  }
}
