/* HR Forms — default look = hotelrunner.com/en/ai-access-program/ form (white 42px inputs, pill button; the wrapper has no background or padding, the page builder provides those).
   Every form shares this file. A form only gets extra CSS when its own "Custom CSS" is filled in (scoped inline, see templates/form.php). */

.hrf-form-wrap {
  --hrf-font: "Poppins", sans-serif;
  --hrf-primary: #f15f22; /* main color; a form can override it with its Accent color */
  --hrf-border: #e3e3e3;
  --hrf-text: #333333;
  --hrf-label: #6a6a6a;
  --hrf-placeholder: #757575;
  --hrf-error: #e3342f;
  --hrf-error-icon: #d32f2f;
  --hrf-success: #38c172;
  --hrf-bg: #ffffff;
  --hrf-input-color: #000000;
  --hrf-input-height: 42px;
  --hrf-radius: 3px;
  --hrf-field-gap: 12px;
  --hrf-error-slot: 20px; /* reserved: 4px gap + 16px line — prevents layout jump */
  width: 100%;
  max-width: none;
  font-family: var(--hrf-font);
  box-sizing: border-box;
  color: var(--hrf-text);
}

.hrf-form-wrap *,
.hrf-form-wrap *::before,
.hrf-form-wrap *::after {
  box-sizing: border-box;
}

/* `hidden` must win over the display rules below (.hrf-fields flex, .hrf-actions block…), e.g. the calculator
   gate after a successful submit. Error slots are the exception: they stay in flow and hide via visibility. */
.hrf-form-wrap [hidden]:not(.hrf-error) {
  display: none !important;
}

/* Screen-reader-only live region (one per form) */
.hrf-form-wrap .hrf-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;
}

.hrf-form {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.hrf-fields {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
  width: calc(100% + 20px);
  padding: 20px 0 0;
}

@media screen and (max-width: 767px) {
  .hrf-fields {
    margin: 0;
    width: 100%;
  }
}

.hrf-field {
  flex: 0 0 100%;
  max-width: 100%;
  width: 100%;
  position: relative;
  padding: 0 10px;
  margin-bottom: var(--hrf-field-gap);
}

.hrf-field.hrf-half {
  flex: 0 0 50%;
  max-width: 50%;
  width: 50%;
}

@media screen and (max-width: 767px) {
  .hrf-field,
  .hrf-field.hrf-half {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
    padding: 0;
  }
}

/* Stacked label (default — same as get-a-demo) */
.hrf-control {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}

.hrf-label {
  display: block;
  font-family: var(--hrf-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 30px;
  color: var(--hrf-label);
  margin: 0 0 2px;
}

.hrf-label .hrf-req {
  color: var(--hrf-label);
}

.hrf-control > input,
.hrf-control > textarea,
.hrf-control > select,
.hrf-control .iti input,
.hrf-floating > input,
.hrf-floating > textarea,
.hrf-floating > select,
.hrf-floating .iti input {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 10px;
  font-family: var(--hrf-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5em;
  color: var(--hrf-input-color);
  background-color: var(--hrf-bg);
  border: 1px solid var(--hrf-border);
  border-radius: var(--hrf-radius);
  padding: 8px;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  transition: all 0.3s ease;
  margin: 0;
}

.hrf-control > input,
.hrf-control > select,
.hrf-control .iti input {
  min-height: var(--hrf-input-height);
  height: var(--hrf-input-height);
  padding-right: 35px;
}

.hrf-control > textarea {
  min-height: 100px;
  height: auto;
  resize: vertical;
  padding-right: 35px;
}

.hrf-control > input::placeholder,
.hrf-control > textarea::placeholder,
.hrf-control .iti input::placeholder {
  color: var(--hrf-placeholder);
  opacity: 1;
}

.hrf-control > select:invalid {
  color: var(--hrf-placeholder) !important;
}

.hrf-control > select:valid {
  color: var(--hrf-text);
  font-style: normal;
}

.hrf-control > select:not([multiple]) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8.825L1.175 4 2.238 2.938 6 6.7l3.763-3.763L10.825 4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
}

.hrf-control > select:hover:not([multiple]) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8.825L1.175 4 2.238 2.938 6 6.7l3.763-3.763L10.825 4z'/%3E%3C/svg%3E");
}

.hrf-control > select:focus:not([multiple]) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23000' d='M6 8.825L1.175 4 2.238 2.938 6 6.7l3.763-3.763L10.825 4z'/%3E%3C/svg%3E");
}

.hrf-control > input:focus,
.hrf-control > textarea:focus,
.hrf-control > select:focus,
.hrf-control .iti input:focus,
.hrf-floating > input:focus,
.hrf-floating > textarea:focus,
.hrf-floating > select:focus,
.hrf-floating .iti input:focus {
  border-color: var(--hrf-border);
  box-shadow: none;
  outline: none;
}

/* No focus ring or focus border on any field (requested 2026-11-18): inputs, textareas, selects, phone (input + flag),
   checkboxes, button groups. Buttons and links keep their keyboard focus ring (below). */
.hrf-form-wrap .hrf-control > input:focus,
.hrf-form-wrap .hrf-control > input:focus-visible,
.hrf-form-wrap .hrf-control > textarea:focus,
.hrf-form-wrap .hrf-control > textarea:focus-visible,
.hrf-form-wrap .hrf-control > select:focus,
.hrf-form-wrap .hrf-control > select:focus-visible,
.hrf-form-wrap .hrf-control .iti input:focus,
.hrf-form-wrap .hrf-control .iti input:focus-visible,
.hrf-form-wrap .hrf-floating > input:focus,
.hrf-form-wrap .hrf-floating > input:focus-visible,
.hrf-form-wrap .hrf-floating > textarea:focus,
.hrf-form-wrap .hrf-floating > textarea:focus-visible,
.hrf-form-wrap .hrf-floating > select:focus,
.hrf-form-wrap .hrf-floating > select:focus-visible,
.hrf-form-wrap .hrf-floating .iti input:focus,
.hrf-form-wrap .hrf-floating .iti input:focus-visible,
.hrf-form-wrap .hrf-calc-currency select:focus,
.hrf-form-wrap .hrf-calc-currency select:focus-visible,
.hrf-form-wrap .iti__selected-flag:focus,
.hrf-form-wrap .iti__selected-flag:focus-visible,
.hrf-form-wrap .iti__selected-country:focus,
.hrf-form-wrap .iti__selected-country:focus-visible,
.hrf-form-wrap .iti__country-container:focus-within,
.hrf-form-wrap .hrf-check input[type="checkbox"]:focus,
.hrf-form-wrap .hrf-check input[type="checkbox"]:focus-visible,
.hrf-form-wrap .hrf-choice-btn input:focus + span,
.hrf-form-wrap .hrf-choice-btn input:focus-visible + span {
  outline: none !important;
  box-shadow: none !important;
}

/* Tom Select (dropdowns): no focus ring/border on the box or on the search field (requested 2026-11-18). */
.hrf-form-wrap .ts-wrapper,
.hrf-form-wrap .ts-wrapper:focus,
.hrf-form-wrap .ts-wrapper:focus-within,
.hrf-form-wrap .ts-wrapper .ts-control,
.hrf-form-wrap .ts-wrapper .ts-control:focus,
.hrf-form-wrap .ts-wrapper .ts-control:focus-visible,
.hrf-form-wrap .ts-wrapper.focus .ts-control,
.hrf-form-wrap .ts-dropdown .dropdown-input,
.hrf-form-wrap .ts-dropdown .dropdown-input:focus,
.hrf-form-wrap .ts-dropdown .dropdown-input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.hrf-form-wrap .ts-dropdown .dropdown-input:focus,
.hrf-form-wrap .ts-dropdown .dropdown-input:focus-visible {
  border-color: transparent !important;
}

.hrf-form-wrap .hrf-btn:focus-visible,
.hrf-form-wrap .hrf-check-label a:focus-visible {
  outline: 2px solid var(--hrf-primary) !important;
  outline-offset: 3px;
}

.hrf-control > input:-webkit-autofill,
.hrf-control > input:-webkit-autofill:hover,
.hrf-control > input:-webkit-autofill:focus,
.hrf-control > textarea:-webkit-autofill,
.hrf-control .iti input:-webkit-autofill,
.hrf-control .iti input:-webkit-autofill:hover,
.hrf-control .iti input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  box-shadow: 0 0 0 1000px #ffffff inset !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Valid / error — Figma: green tick only + red border/error text */
.hrf-control,
.hrf-floating {
  position: relative;
}

.hrf-field.is-valid .hrf-control::after,
.hrf-field.is-valid .hrf-floating::after {
  content: "";
  position: absolute;
  right: 10px;
  width: 15px;
  height: 15px;
  background-image: url("../img/icon-tick-circle.svg");
  background-repeat: no-repeat;
  background-size: 15px 15px;
  background-position: center;
  pointer-events: none;
  z-index: 3;
}

/* Align tick with the input box: anchored to the bottom, so a hint (or no label) above it doesn't shift it */
.hrf-form--stacked .hrf-field.is-valid .hrf-control::after {
  top: auto;
  bottom: var(--hrf-tick-bottom, calc((var(--hrf-input-height) - 15px) / 2)); /* runtime: measured from the real input */
}

/* No tick on button groups, and none over a unit suffix (e.g. %) */
.hrf-field.is-valid .hrf-control:has(.hrf-choice)::after,
.hrf-field.hrf-has-suffix.is-valid .hrf-control::after {
  display: none;
}

.hrf-form--stacked .hrf-field.is-valid .hrf-control:has(textarea)::after {
  bottom: 22px; /* clear of the resize handle */
}

/* With a character counter under the textarea (24px line), keep the tick inside the box, clear of the resize handle */
.hrf-form--stacked .hrf-field.is-valid .hrf-control:has(textarea):has(.hrf-char-counter)::after {
  bottom: 46px;
}

.hrf-form--floating .hrf-field.is-valid .hrf-floating::after {
  top: 50%;
  transform: translateY(-50%);
}

/* Valid = green border (old HR Advanced Form / hotelrunner.com: 1px #38c172, also while focused) and only the tick on
   the right: dropdowns hide their arrow while valid, the tick takes its place. The ids raise the rule above per-form
   custom CSS (migrated forms carry high-specificity border/arrow rules). */
.hrf-form-wrap:not(#hrf-v1):not(#hrf-v2):not(#hrf-v3):not(#hrf-v4):not(#hrf-v5):not(#hrf-v6) .hrf-field.is-valid .hrf-control > input,
.hrf-form-wrap:not(#hrf-v1):not(#hrf-v2):not(#hrf-v3):not(#hrf-v4):not(#hrf-v5):not(#hrf-v6) .hrf-field.is-valid .hrf-control > textarea,
.hrf-form-wrap:not(#hrf-v1):not(#hrf-v2):not(#hrf-v3):not(#hrf-v4):not(#hrf-v5):not(#hrf-v6) .hrf-field.is-valid .hrf-control > select,
.hrf-form-wrap:not(#hrf-v1):not(#hrf-v2):not(#hrf-v3):not(#hrf-v4):not(#hrf-v5):not(#hrf-v6) .hrf-field.is-valid .iti input,
.hrf-form-wrap:not(#hrf-v1):not(#hrf-v2):not(#hrf-v3):not(#hrf-v4):not(#hrf-v5):not(#hrf-v6) .hrf-field.is-valid .ts-wrapper .ts-control,
.hrf-form-wrap:not(#hrf-v1):not(#hrf-v2):not(#hrf-v3):not(#hrf-v4):not(#hrf-v5):not(#hrf-v6) .hrf-field.is-valid .hrf-floating > input,
.hrf-form-wrap:not(#hrf-v1):not(#hrf-v2):not(#hrf-v3):not(#hrf-v4):not(#hrf-v5):not(#hrf-v6) .hrf-field.is-valid .hrf-floating > textarea,
.hrf-form-wrap:not(#hrf-v1):not(#hrf-v2):not(#hrf-v3):not(#hrf-v4):not(#hrf-v5):not(#hrf-v6) .hrf-field.is-valid .hrf-floating > select {
  border-color: #38c172 !important;
  background-image: none !important;
  padding-right: 36px !important;
}

.hrf-field.has-error .hrf-control > input,
.hrf-field.has-error .hrf-control > textarea,
.hrf-field.has-error .hrf-control > select,
.hrf-field.has-error .hrf-control .iti input,
.hrf-field.has-error .ts-control {
  border-color: #ef5350 !important;
  background-image: none !important;
}

.hrf-field.has-error .hrf-control > select:not([multiple]) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8.825L1.175 4 2.238 2.938 6 6.7l3.763-3.763L10.825 4z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 12px !important;
}

/* Valid selects (native + Tom Select): the arrow is hidden (rule above), the tick sits where it was */

.hrf-field.has-error .ts-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8.825L1.175 4 2.238 2.938 6 6.7l3.763-3.763L10.825 4z'/%3E%3C/svg%3E") !important;
}

/* Tom Select ≈ Select2 look from get-a-demo */
.hrf-control .ts-wrapper,
.hrf-floating .ts-wrapper {
  width: 100% !important;
}

.hrf-control .ts-control {
  padding: 8px 35px 8px 8px !important;
  border-radius: var(--hrf-radius) !important;
  border: 1px solid var(--hrf-border) !important;
  min-height: var(--hrf-input-height) !important;
  font-family: var(--hrf-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--hrf-text);
  background-color: var(--hrf-bg) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8.825L1.175 4 2.238 2.938 6 6.7l3.763-3.763L10.825 4z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 12px !important;
  box-shadow: none !important;
}

.hrf-control .ts-wrapper.focus .ts-control {
  border-color: var(--hrf-border) !important;
  box-shadow: none !important;
}

.hrf-control .ts-control input {
  font-family: var(--hrf-font);
  font-size: 16px;
  color: var(--hrf-text);
}

.hrf-control .ts-control .item {
  font-weight: 400;
}

/* Placeholder ("Select a country") = native select placeholder look. The input is read-only:
   clicks must reach .ts-control, which opens the list. */
.hrf-control .ts-control .items-placeholder {
  pointer-events: none;
}

.hrf-control .ts-control .items-placeholder::placeholder {
  color: var(--hrf-placeholder);
  opacity: 1;
}

/* Keep the wrapper exactly as wide as the native select it replaces */
.hrf-control > .ts-wrapper,
.hrf-floating > .ts-wrapper {
  display: block;
  align-self: stretch;
  min-width: 0;
  max-width: 100%;
}

/* Single select: same box as text inputs (no jump after init) */
.hrf-control .ts-wrapper.single .ts-control {
  height: var(--hrf-input-height) !important;
  min-height: var(--hrf-input-height) !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  flex-wrap: nowrap;
  align-items: center;
  cursor: pointer;
}

.hrf-control .ts-wrapper.single .ts-control .item {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* One caret only — ours is the background SVG */
.hrf-form .ts-wrapper.single .ts-control::after {
  display: none !important;
}

.hrf-form .plugin-dropdown_input.focus.dropdown-active .ts-control {
  border: 1px solid var(--hrf-border) !important;
}

/* Search row looks like a choice row: full width, same type size and padding */
.hrf-form .ts-dropdown .dropdown-input-wrap {
  padding: 0;
  border-bottom: 1px solid var(--hrf-border);
}

.hrf-form .ts-dropdown .dropdown-input,
.hrf-form .ts-dropdown .dropdown-input:focus {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 5px 8px 5px 28px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  outline: none;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: var(--hrf-text);
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23757575' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 8px center;
  background-size: 13px;
}

/* Touch devices: iOS zooms the page when focusing inputs under 16px */
@media (hover: none) and (pointer: coarse) {
  .hrf-form .ts-dropdown .dropdown-input {
    font-size: 16px;
  }
}

.hrf-form .ts-dropdown .dropdown-input::placeholder {
  color: var(--hrf-placeholder);
}

/* Phone (intl-tel-input) — same box as text inputs */
.hrf-control .iti,
.hrf-floating .iti {
  width: 100% !important;
  display: block !important;
  position: relative;
}

.hrf-control .iti__flag-container {
  z-index: 10;
}

/* An open list (Tom Select or the phone country list) must cover the fields below it,
   including the phone flag box (z-index 10) of a later field. Kept low (11) so a sticky site header (theme: 20) and
   floating buttons (12) stay above it while the page scrolls. */
.hrf-form .hrf-field:has(.ts-wrapper.dropdown-active),
.hrf-form .hrf-field:has(.iti__dropdown-content:not(.iti__hide)),
.hrf-form .hrf-field:has(.iti__country-list:not(.iti__hide)) {
  z-index: 11;
}

.hrf-form .ts-dropdown {
  z-index: 11;
}

.hrf-form:not(.hrf-form--floating) .hrf-control .iti input[type="tel"] {
  /* Fallback; iti sets exact padding-left inline per country */
  padding: 8px 35px 8px 90px !important;
  height: var(--hrf-input-height) !important;
  min-height: var(--hrf-input-height) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.5em !important;
  font-family: var(--hrf-font) !important;
  color: var(--hrf-text) !important;
  background-color: var(--hrf-bg) !important;
  /* Width/style only: colour comes from the base, focus, error and valid rules. */
  border-width: 1px !important;
  border-style: solid !important;
  border-radius: var(--hrf-radius) !important;
  box-sizing: border-box !important;
}

.hrf-control .iti__selected-flag {
  padding: 0 8px 0 12px !important;
  background-color: transparent !important;
  height: 100%;
}

.hrf-control .iti__selected-dial-code {
  color: var(--hrf-text);
  font-weight: 500;
  font-size: 16px;
  font-family: var(--hrf-font);
}

/* Country list rows: neutral text like intl-tel-input's defaults (themes colour <li> text, e.g. orange) */
.hrf-form-wrap .iti__country-list .iti__country {
  color: #333 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  padding: 5px 10px !important;
}

.hrf-form-wrap .iti__country-list .iti__country-name {
  color: #333 !important;
}

.hrf-form-wrap .iti__country-list .iti__dial-code {
  color: #999 !important;
}

.hrf-form-wrap .iti__country-list .iti__country.iti__highlight {
  background-color: rgba(0, 0, 0, 0.05) !important;
}

.hrf-control .iti__country-list {
  max-width: 400px;
  font-size: 14px;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid var(--hrf-border);
  border-radius: var(--hrf-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Floating labels (opt-in) — theme-aligned */
.hrf-form--floating .hrf-floating {
  position: relative;
  width: 100%;
}

/* Floating layout = the Mews "speak with sales" form: 50px boxes, 12px/20px padding, 6px radius, 20% black border;
   the label rests inside (top 13px, left 19px) and moves onto the top border (top -10px, 14px) on focus or with a value. */
.hrf-form--floating .hrf-floating > input,
.hrf-form--floating .hrf-floating > textarea,
.hrf-form--floating .hrf-floating > select {
  border-radius: 6px;
  padding: 12px 36px 12px 20px;
  min-height: 50px;
  height: 50px;
  border-color: rgba(0, 0, 0, 0.2);
  transition: border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hrf-form--floating .hrf-floating > textarea {
  height: 100px;
  min-height: 100px;
}

.hrf-form--floating .hrf-floating > label {
  position: absolute;
  left: 19px;
  top: 13px;
  transform: none;
  pointer-events: none;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 38px);
  color: rgba(0, 0, 0, 0.45);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0.01rem;
  padding: 0 2px;
  background: transparent;
  transition: top 0.3s ease-out, font-size 0.3s ease-out, line-height 0.3s ease-out, color 0.06s ease-out; /* Mews: black within ~60ms */
  z-index: 2;
}

.hrf-form--floating .hrf-floating > input::placeholder,
.hrf-form--floating .hrf-floating > textarea::placeholder {
  color: transparent;
}

.hrf-form--floating .hrf-floating:focus-within > label,
.hrf-form--floating .hrf-floating.hrf-has-value > label,
.hrf-form--floating .hrf-floating > input:not([type="hidden"]):not(:placeholder-shown) ~ label,
.hrf-form--floating .hrf-floating > textarea:not(:placeholder-shown) ~ label {
  top: -10px;
  font-size: 14px;
  line-height: 21px;
  color: #000;
  /* the box's top border runs 10px below the label's top: above it = what is behind the form, below = the control;
     both colours set by the runtime (paintFloatingLabelBg) */
  background: linear-gradient(to bottom, var(--hrf-float-bg-outer, #fff) 10px, var(--hrf-float-bg-inner, #fff) 10px);
}

.hrf-form--floating .hrf-floating > label .hrf-req {
  color: #dc3545;
}

/* Phone: the resting label sits where the number is typed (right of the flag + dial code, set by the runtime) and moves
   to the usual left edge when it rises. */
.hrf-form--floating .hrf-floating:has(.iti) > label {
  left: var(--hrf-tel-label-left, 19px);
  transition: top 0.3s ease-out, left 0.3s ease-out, font-size 0.3s ease-out, line-height 0.3s ease-out, color 0.06s ease-out;
}

.hrf-form--floating .hrf-floating:has(.iti):focus-within > label,
.hrf-form--floating .hrf-floating:has(.iti).hrf-has-value > label {
  left: 19px;
}

/* Floating layout: the phone input is as tall and round as the other floating inputs */
.hrf-form--floating .hrf-floating .iti input[type="tel"] {
  height: 50px !important;
  min-height: 50px !important;
  border-radius: 6px !important;
  border-color: rgba(0, 0, 0, 0.2) !important;
}

/* Floating layout: flag + dial code box without the grey fill (also on hover/open), separated by a black line */
.hrf-form--floating .hrf-floating .iti .iti__selected-flag,
.hrf-form--floating .hrf-floating .iti .iti__selected-flag:hover,
.hrf-form--floating .hrf-floating .iti .iti__selected-flag:focus,
.hrf-form--floating .hrf-floating .iti .iti__selected-country,
.hrf-form--floating .hrf-floating .iti .iti__selected-country:hover,
.hrf-form--floating .hrf-floating .iti--allow-dropdown .iti__flag-container:hover .iti__selected-flag {
  background: transparent !important;
  border-right: 0 !important;
  position: relative;
}

/* separator: a short, softer line (half the box height, centred) instead of a full-height border */
.hrf-form--floating .hrf-floating .iti .iti__selected-flag::after,
.hrf-form--floating .hrf-floating .iti .iti__selected-country::after {
  content: "";
  position: absolute;
  right: 0;
  top: 25%;
  bottom: 25%;
  width: 1px;
  background: rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

/* Floating layout: Tom Select boxes look like the floating inputs (the .hrf-control rules above do not reach them). */
.hrf-form--floating .hrf-floating .ts-wrapper .ts-control {
  min-height: 50px !important;
  height: 50px !important; /* same fixed height as the floating inputs */
  box-sizing: border-box !important;
  align-items: flex-end;
  flex-wrap: nowrap;
  overflow: hidden;
  padding: 12px 36px 12px 20px !important;
  border-radius: 6px !important;
  border: 1px solid rgba(0, 0, 0, 0.2) !important;
  align-items: center !important;
  font-family: var(--hrf-font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--hrf-text);
  background-color: var(--hrf-bg) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8.825L1.175 4 2.238 2.938 6 6.7l3.763-3.763L10.825 4z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 12px !important;
  box-shadow: none !important;
}

.hrf-form--floating .hrf-floating .ts-wrapper.single .ts-control::after {
  display: none !important; /* Tom Select's own caret; the arrow is the background image */
}

/* The label is the placeholder while it sits inside the box: hide the select's own placeholder text until a value is
   chosen (native first option and Tom Select's "Select…" placeholder). */
.hrf-form--floating .hrf-floating:not(.hrf-has-value):not(:focus-within) > select {
  color: transparent;
}

.hrf-form--floating .hrf-floating > select option {
  color: var(--hrf-text);
}

.hrf-form--floating .hrf-floating:not(.hrf-has-value):not(:focus-within) .ts-control .items-placeholder,
.hrf-form--floating .hrf-floating:not(.hrf-has-value):not(:focus-within) .ts-control .items-placeholder::placeholder {
  color: transparent !important;
}

/* Checkboxes — match theme */
.hrf-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  user-select: none;
  margin-bottom: 5px;
  font-family: var(--hrf-font);
}

.hrf-check input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  min-width: 18px !important;
  max-width: 18px !important;
  width: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  height: 18px !important;
  flex: 0 0 18px !important;
  border: 1px solid var(--hrf-border) !important;
  border-radius: 3px !important;
  background-color: #fff !important;
  cursor: pointer !important;
  position: relative !important;
  margin: 0 !important;
  padding: 0 !important;
  transition: all 0.3s ease;
}

.hrf-check input[type="checkbox"]:checked {
  background-color: var(--hrf-primary) !important;
}

.hrf-check input[type="checkbox"]:checked::after {
  content: "" !important;
  position: absolute !important;
  left: 6px !important;
  top: 3px !important;
  width: 4px !important;
  height: 9px !important;
  border: solid white !important;
  border-width: 0 2px 2px 0 !important;
  transform: rotate(45deg) !important;
}

.hrf-check-label {
  flex: 1;
  min-width: 0;
  font-size: 13px !important;
  line-height: 1.4 !important;
  color: var(--hrf-label) !important;
}

.hrf-check-label a {
  color: inherit !important;
  text-decoration: underline;
  cursor: pointer;
}

/* Error label — always reserves height so the form does not jump */
.hrf-error {
  color: #d32f2f;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 16px;
  min-height: 16px;
  margin-top: 4px;
  margin-bottom: 0;
  /* Override [hidden]{display:none} so the slot stays in flow */
  display: flex !important;
  align-items: center;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  font-family: var(--hrf-font);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Style → "Errors without layout shift": the error overlays the gap under the field instead of
   reserving (or growing) a line, so showing it never moves anything. */
.hrf-errors-stable .hrf-error {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: auto;
  min-height: 0;
  margin-top: 1px;
  padding-left: inherit;
  padding-right: inherit;
  white-space: nowrap;
  overflow: hidden;
}

/* Long (translated) messages end in an ellipsis; the full text is in the box's title (set by the runtime). */
.hrf-errors-stable .hrf-error > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hrf-errors-stable .hrf-error:not([hidden])::before {
  margin-top: 1px;
}

.hrf-error:not([hidden]) {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.hrf-error:not([hidden])::before {
  content: "";
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background-image: url("../img/icon-error.svg");
  background-size: 14px 14px;
  background-repeat: no-repeat;
  background-position: center;
  display: block;
}

.hrf-form-error {
  color: #dc3545;
  background-color: #ffe9e9;
  padding: 12px 15px;
  margin: 0 0 20px;
  border: 1px solid #dc3545;
  border-radius: 4px;
  font-size: 14px;
  font-family: var(--hrf-font);
}

.hrf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 12px 24px;
  border-radius: 30px;
  border: 1px solid var(--hrf-primary);
  background: var(--hrf-primary);
  color: #fff;
  font-family: var(--hrf-font);
  font-size: 16px;
  /* Bold: white on the brand orange (#f15f22) is ~3.3:1, which needs bold text to pass as "large" text. */
  font-weight: 700;
  line-height: 1.5em;
  cursor: pointer;
  text-decoration: none;
  transition: 0.3s ease;
}

.hrf-btn:hover {
  filter: brightness(90%);
  color: #fff;
}

.hrf-btn:disabled,
.hrf-btn.is-loading {
  opacity: 0.7;
  cursor: wait;
}

.hrf-btn-prev {
  background: #fff;
  color: var(--hrf-primary);
}

.hrf-actions {
  display: block;
  width: 100%;
  text-align: right;
  padding: 0 10px;
  margin-top: 0;
}

@media screen and (max-width: 1199px) {
  .hrf-actions {
    text-align: left;
  }
}

@media screen and (max-width: 767px) {
  .hrf-actions {
    padding: 0;
    text-align: left;
  }
}

.hrf-step-actions {
  display: flex;
  gap: 10px;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  padding: 0 10px;
}

@media (max-width: 767px) {
  .hrf-step-actions {
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 25px;
  }
}

.hrf-progress {
  display: flex;
  gap: 8px;
  margin: 20px auto;
}

.hrf-progress-dot {
  border-radius: 10px;
  background: #ffece2;
  height: 4px;
  max-width: 80px;
  width: 80px;
}

.hrf-progress-dot.is-active,
.hrf-progress-dot.is-done {
  background: var(--hrf-primary);
}

.hrf-step-title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-family: var(--hrf-font);
}

.hrf-step-desc {
  margin: 0 0 1rem;
  color: var(--hrf-label);
  font-size: 0.95rem;
}

.hrf-step:not(.is-active) {
  display: none;
}

.hrf-turnstile {
  margin: 0.5rem 0;
  padding: 0 10px;
}

.hrf-field.is-hidden {
  display: none !important;
}

.hrf-consent {
  padding: 0 10px 0 0;
  margin-bottom: 12px;
}

@media screen and (max-width: 767px) {
  .hrf-consent,
  .hrf-turnstile {
    padding: 0;
  }
}

/* Field widths (half lives above; these add thirds / quarter) */
.hrf-field.hrf-w-third {
  flex: 0 0 33.3333%;
  max-width: 33.3333%;
}

.hrf-field.hrf-w-two_thirds {
  flex: 0 0 66.6667%;
  max-width: 66.6667%;
}

.hrf-field.hrf-w-quarter {
  flex: 0 0 25%;
  max-width: 25%;
}

/* Tablet portrait (and phones in landscape, mostly 768–932px wide): 1/3 and 1/4 → 1/2, 2/3 → full */
@media screen and (max-width: 1024px) {
  .hrf-field.hrf-w-third,
  .hrf-field.hrf-w-quarter {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .hrf-field.hrf-w-two_thirds {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Short landscape screens wider than 1024px (large phones / foldables) — same as tablet */
@media screen and (orientation: landscape) and (max-height: 500px) and (min-width: 1025px) {
  .hrf-field.hrf-w-third,
  .hrf-field.hrf-w-quarter {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .hrf-field.hrf-w-two_thirds {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media screen and (max-width: 767px) {
  .hrf-field.hrf-w-third,
  .hrf-field.hrf-w-two_thirds,
  .hrf-field.hrf-w-quarter {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.hrf-plaintext {
  font-size: 14px;
  line-height: 1.5;
}

.hrf-plaintext > :last-child {
  margin-bottom: 0;
}

.hrf-submit-field {
  display: flex;
  align-items: flex-end;
}

/* Loading overlay: the runtime moves it into the form card (.hrf-form-wrap), so it covers the whole card. Fields can
   overhang the <form> box by their column gutters (negative row margins); an overlay sized to the <form> left those
   edges uncovered while sending. The <form> stays position:relative (step progress etc. are placed against it). */
.hrf-form {
  position: relative;
}

.hrf-form-wrap {
  position: relative;
}

.hrf-overlay {
  position: absolute;
  inset: 0; /* the runtime widens it around cards without padding (see fitOverlay) */
  border-radius: inherit;
  z-index: 11; /* above the phone flag box (10); below the sticky site header (theme: 20) and floating buttons (12) */
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.7);
}

.hrf-overlay[hidden] {
  display: none;
}

.hrf-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--hrf-border);
  border-top-color: var(--hrf-primary);
  border-radius: 50%;
  animation: hrf-spin 0.8s linear infinite;
}

@keyframes hrf-spin {
  to {
    transform: rotate(360deg);
  }
}

.hrf-form-error.is-success {
  color: #1e7e34;
  background-color: #e8f6ec;
  border-color: var(--hrf-success);
}

/* Consents / Turnstile placed inside the field row (positioned submit button) */
.hrf-fields > .hrf-consent {
  padding: 0 10px;
}

.hrf-fields > .hrf-turnstile {
  flex: 0 0 100%;
  padding: 0 10px;
}

@media screen and (max-width: 767px) {
  .hrf-fields > .hrf-consent,
  .hrf-fields > .hrf-turnstile {
    padding: 0;
  }
}

/* -------------------------------------------------------------------------
   Field extras: hint, suffix, button group
   ------------------------------------------------------------------------- */
.hrf-help {
  display: block;
  margin: -2px 0 6px;
  font-family: var(--hrf-font);
  font-size: 13px;
  line-height: 1.45;
  color: #6b6b6b; /* ≥4.5:1 on white */
}

.hrf-has-suffix .hrf-control {
  position: relative;
}

.hrf-has-suffix .hrf-control > input {
  padding-right: 38px !important;
  background-image: none !important;
}

.hrf-suffix {
  position: absolute;
  right: 14px;
  bottom: 0;
  height: var(--hrf-input-height);
  display: flex;
  align-items: center;
  font-family: var(--hrf-font);
  font-size: 16px;
  color: #6b6b6b;
  pointer-events: none;
}

.hrf-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hrf-choice-btn {
  position: relative;
  cursor: pointer;
}

.hrf-choice-btn input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.hrf-choice-btn span {
  display: inline-block;
  padding: 4px 14px; /* + 2px border = same box as before */
  border: 2px solid transparent;
  border-radius: 30px;
  background: #f3f3f3;
  color: #595959;
  font-family: var(--hrf-font);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

/* Selected: accent border + check mark + dark text (not just a tint) */
.hrf-choice-btn input:checked + span {
  background: #fff;
  border-color: var(--hrf-primary);
  color: #1a1a1a;
  font-weight: 600;
}

.hrf-choice-btn input:checked + span::before {
  content: "\2713";
  margin-right: 6px;
  color: var(--hrf-primary);
  font-weight: 700;
}

.hrf-choice-btn input:focus-visible + span {
  outline: 2px solid var(--hrf-primary);
  outline-offset: 2px;
}

/* -------------------------------------------------------------------------
   Calculator mode
   ------------------------------------------------------------------------- */
.hrf-calc-currency {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0 0 8px;
  font-family: var(--hrf-font);
  font-size: 13px;
  color: #666;
}

.hrf-calc-currency select {
  width: auto;
  padding: 6px 10px;
  border: 1px solid var(--hrf-border);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  color: var(--hrf-text);
}

.hrf-calc-mode .hrf-calc-actions {
  text-align: left;
  margin-top: 6px;
}

.hrf-calc-error {
  margin-top: 10px;
  font-family: var(--hrf-font);
  font-size: 14px;
  color: #c92d49;
}

.hrf-calc-result {
  margin-top: 20px;
  padding: 22px;
  border-radius: 20px;
  background: #fff4ee;
  border: 1px solid #f9d3c1;
  font-family: var(--hrf-font);
  color: var(--hrf-text);
}

.hrf-calc-big {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--hrf-primary);
  overflow-wrap: anywhere;
}

.hrf-calc-text {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.6;
}

.hrf-calc-text p {
  margin: 0 0 6px;
}

.hrf-calc-tablewrap {
  overflow-x: auto;
  margin: 16px 0 0;
}

.hrf-calc-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  font-size: 14px;
}

.hrf-calc-table th,
.hrf-calc-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.hrf-calc-table th {
  background: #f3f3f3;
  font-weight: 600;
}

.hrf-calc-table tr:last-child td {
  border-bottom: 0;
}

.hrf-calc-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: #666; /* ≥4.5:1 on the result box tint */
}

.hrf-calc-cta {
  margin-top: 18px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #f9d3c1;
  border-radius: 16px;
}

.hrf-calc-cta b {
  display: block;
  margin-bottom: 2px;
}

.hrf-calc-cta p {
  margin: 0 0 12px;
  font-size: 14px;
  color: #666;
}

.hrf-btn.hrf-btn-sm {
  padding: 8px 16px;
  font-size: 14px;
  line-height: 1.3;
}

.hrf-btn.hrf-btn-outline {
  background: transparent;
  color: var(--hrf-primary);
}

.hrf-btn.hrf-btn-outline:hover {
  background: #fff4ee;
  color: var(--hrf-primary);
  filter: none;
}

.hrf-calc-cta .hrf-btn {
  margin: 0 8px 6px 0;
}

.hrf-calc-gate {
  margin-top: 20px;
  padding: 22px;
  border: 1px solid #ececec;
  border-radius: 20px;
  background: #fff;
}

.hrf-calc-gate-title {
  margin: 0 0 6px;
  font-family: var(--hrf-font);
  font-size: 20px;
  font-weight: 600;
}

.hrf-calc-gate-text {
  margin: 0 0 14px;
  font-family: var(--hrf-font);
  color: #666;
}

@media (max-width: 560px) {
  .hrf-calc-big {
    font-size: 32px;
  }

  .hrf-calc-result,
  .hrf-calc-gate {
    padding: 18px;
  }
}

/* Submit: same pill as the site's hr-form (48px, no border); bold for contrast (see .hrf-btn) */
.hrf-form-wrap .hrf-btn.hrf-btn-submit {
  font-weight: 700;
  border-width: 0;
}

/* Reduced motion: no transitions, no spinning */
@media (prefers-reduced-motion: reduce) {
  .hrf-form-wrap *,
  .hrf-form-wrap *::before,
  .hrf-form-wrap *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* Dropdown without search (legacy select2 with its search box off): same control, no search field. */
.hrf-ts-nosearch.ts-wrapper .dropdown-input-wrap {
  display: none !important;
}

/* Textarea character counter ("0/600 characters"). */
.hrf-form-wrap .hrf-char-counter {
  /* floats like the legacy counter: it does not add height to the field */
  display: inline;
  float: right;
  font-size: 12px;
  color: #666;
  text-align: right;
  transition: all 0.3s ease;
}
.hrf-form-wrap .hrf-char-counter.is-full {
  color: #e3342f;
  font-weight: bold;
}

/* Multi-select chips (Tom Select remove_button) = the old forms' select2 chips: light grey tag, × on the left.
   Replaces tom-select.default's blue gradient chips with text shadow. */
.hrf-form-wrap:not(#hrf-chip1):not(#hrf-chip2) .ts-wrapper.multi .ts-control > .item,
.hrf-form-wrap:not(#hrf-chip1):not(#hrf-chip2) .ts-wrapper.multi .ts-control > .item.active {
  background: #f3f4f6 !important;
  background-image: none !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 4px !important;
  color: #333 !important;
  text-shadow: none !important;
  box-shadow: none !important;
  font-size: 16px !important;
  line-height: 24px !important;
  font-weight: 500 !important;
  padding: 0 8px 0 0 !important;
  margin: 1px 5px 4px 0 !important;
  cursor: default;
}
.hrf-form-wrap .ts-wrapper.multi.plugin-remove_button .ts-control > .item .remove {
  order: -1;
  border: 0 !important;
  margin: 0 !important;
  padding: 0 4px 0 6px !important;
  color: #666 !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  line-height: 24px !important;
  text-shadow: none !important;
  background: transparent !important;
}
.hrf-form-wrap .ts-wrapper.multi.plugin-remove_button .ts-control > .item .remove:hover {
  color: #333 !important;
  background: transparent !important;
}
/* Chips in rows like select2: 28px per row, 4px box padding once chips are in. */
.hrf-form-wrap:not(#hrf-chip1):not(#hrf-chip2) .ts-wrapper.multi .ts-control > .item {
  margin: 1px 5px 1px 0 !important;
}
.hrf-form-wrap:not(#hrf-chip1):not(#hrf-chip2):not(#hrf-chip3):not(#hrf-chip4):not(#hrf-chip5):not(#hrf-chip6) .ts-wrapper.multi.has-items .ts-control {
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}
/* Multi select placeholder = the other fields' placeholders (colour, weight), one text line high so it sits centred
   in a text-field-high box. */
.hrf-form-wrap:not(#hrf-chip1):not(#hrf-chip2):not(#hrf-chip3):not(#hrf-chip4):not(#hrf-chip5):not(#hrf-chip6) .ts-wrapper.multi .ts-control > input {
  height: 24px !important;
  min-height: 0 !important;
  line-height: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
  font-weight: 400 !important;
  align-self: center;
}
.hrf-form-wrap:not(#hrf-chip1):not(#hrf-chip2):not(#hrf-chip3):not(#hrf-chip4):not(#hrf-chip5):not(#hrf-chip6) .ts-wrapper.multi .ts-control > input::placeholder {
  color: var(--hrf-placeholder) !important;
  font-weight: 400 !important;
  opacity: 1 !important;
}
.hrf-form-wrap:not(#hrf-chip1):not(#hrf-chip2):not(#hrf-chip3):not(#hrf-chip4):not(#hrf-chip5):not(#hrf-chip6) .ts-wrapper.multi .ts-control {
  align-items: center;
}
/* Checkbox / consent text: 13px on every form (beats per-form custom CSS). */
.hrf-form-wrap:not(#hrf-ck1):not(#hrf-ck2):not(#hrf-ck3):not(#hrf-ck4):not(#hrf-ck5):not(#hrf-ck6) .hrf-check-label {
  font-size: 13px !important;
  line-height: 1.4 !important;
}
.hrf-form-wrap:not(#hrf-ck1):not(#hrf-ck2):not(#hrf-ck3):not(#hrf-ck4):not(#hrf-ck5):not(#hrf-ck6) .hrf-check-label :is(a, span, p, strong, em, b, i) {
  font-size: inherit !important;
  line-height: inherit !important;
}
/* Small gap between two checkbox fields in a row (8px + the check row's 5px): the first one's empty error slot collapses.
   A shown error still takes its line (or, with "errors without layout shift", the 18px it overlays). */
.hrf-form-wrap:not(#hrf-ck1):not(#hrf-ck2):not(#hrf-ck3):not(#hrf-ck4):not(#hrf-ck5):not(#hrf-ck6) .hrf-field:has(> .hrf-check):has(+ .hrf-field > .hrf-check) {
  margin-bottom: 8px !important;
  padding-bottom: 0 !important;
}
.hrf-form-wrap:not(#hrf-ck1):not(#hrf-ck2):not(#hrf-ck3):not(#hrf-ck4):not(#hrf-ck5):not(#hrf-ck6) .hrf-field:has(> .hrf-check):has(+ .hrf-field > .hrf-check) > .hrf-error[hidden] {
  display: none !important;
}
.hrf-form-wrap.hrf-errors-stable:not(#hrf-ck1):not(#hrf-ck2):not(#hrf-ck3):not(#hrf-ck4):not(#hrf-ck5):not(#hrf-ck6) .hrf-field.has-error:has(> .hrf-check):has(+ .hrf-field > .hrf-check),
.hrf-form-wrap:not(#hrf-ck1):not(#hrf-ck2):not(#hrf-ck3):not(#hrf-ck4):not(#hrf-ck5):not(#hrf-ck6) .hrf-errors-stable .hrf-field.has-error:has(> .hrf-check):has(+ .hrf-field > .hrf-check) {
  margin-bottom: 18px !important;
}
/* Autofill detector for phone fields: the runtime listens for this animation to move a "+90 ..." dial code next to the flag. */
@keyframes hrf-autofill { from { outline-color: transparent; } to { outline-color: transparent; } }
.hrf-form-wrap input:-webkit-autofill, .hrf-form-wrap select:-webkit-autofill { animation-name: hrf-autofill; animation-duration: 1ms; }
/* Step button row: no right padding on any form (beats per-form custom CSS). */
.hrf-form-wrap:not(#hrf-sa1):not(#hrf-sa2):not(#hrf-sa3):not(#hrf-sa4):not(#hrf-sa5):not(#hrf-sa6) .hrf-step-actions {
  padding-right: 0 !important;
}
/* Pointer cursor on everything clickable in a form (dropdowns, phone flag, checkbox text, choices, chips); text fields keep the text cursor. */
.hrf-form-wrap:not(#hrf-cu1):not(#hrf-cu2):not(#hrf-cu3):not(#hrf-cu4):not(#hrf-cu5):not(#hrf-cu6) :is(select, .ts-control, .ts-control input, .ts-control .item, .ts-control .item .remove, .ts-dropdown .option, .iti__flag-container, .iti__selected-flag, .iti__selected-country, .iti__country, .hrf-check, .hrf-check-label, .hrf-check input[type="checkbox"], .hrf-choice-btn, .hrf-choice-btn input, .hrf-btn, button) {
  cursor: pointer !important;
}
.hrf-form-wrap:not(#hrf-cu1):not(#hrf-cu2):not(#hrf-cu3):not(#hrf-cu4):not(#hrf-cu5):not(#hrf-cu6) .ts-dropdown .dropdown-input {
  cursor: text !important;
}
/* The native <select> behind a Tom Select stays fillable by browser autofill (autocomplete="country"), but must never be
   seen: Chrome's autofill preview otherwise paints its text ("T" for Türkiye) in the tiny box over the label. */
.hrf-form-wrap:not(#hrf-hs1):not(#hrf-hs2):not(#hrf-hs3):not(#hrf-hs4):not(#hrf-hs5):not(#hrf-hs6) select.tomselected.ts-hidden-accessible {
  opacity: 0 !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  pointer-events: none !important;
  color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}
/* Form in the right-hand column of a page (runtime adds .hrf-on-right): submit button right aligned (beats per-form custom CSS). */
.hrf-form-wrap.hrf-on-right:not(#hrf-or1):not(#hrf-or2):not(#hrf-or3):not(#hrf-or4):not(#hrf-or5):not(#hrf-or6) .hrf-actions {
  text-align: right !important;
  justify-content: flex-end !important;
}
.hrf-form-wrap.hrf-on-right:not(#hrf-or1):not(#hrf-or2):not(#hrf-or3):not(#hrf-or4):not(#hrf-or5):not(#hrf-or6) .hrf-actions > :is(.hrf-btn, button, [type=submit]) {
  margin-left: auto !important;
  margin-right: 0 !important;
  float: none !important;
}
/* An optional checkbox never shows an error, so its empty error line takes no room (smaller gap after the last checkbox). */
.hrf-form-wrap:not(#hrf-oc1):not(#hrf-oc2):not(#hrf-oc3):not(#hrf-oc4):not(#hrf-oc5):not(#hrf-oc6) .hrf-field:has(> .hrf-check input[type="checkbox"]:not([required])) > .hrf-error[hidden] {
  display: none !important;
}
/* Phone with a separate dial code: the number starts 8px after the "+90" box, like the text in other fields (intl-tel-input pads only ~4px). */
.hrf-form-wrap:not(#hrf-ph1):not(#hrf-ph2):not(#hrf-ph3):not(#hrf-ph4):not(#hrf-ph5):not(#hrf-ph6) .iti--separate-dial-code input[type="tel"] {
  text-indent: 4px;
}
/* Live Reoon check: with "allow submit on invalid" on, an e-mail Reoon rejects is a warning (orange, like the old form), not an error. */
.hrf-form-wrap:not(#hrf-rw1):not(#hrf-rw2):not(#hrf-rw3):not(#hrf-rw4):not(#hrf-rw5):not(#hrf-rw6) .hrf-field.hrf-reoon-warn .hrf-error {
  color: #e67e22 !important;
}
.hrf-form-wrap:not(#hrf-rw1):not(#hrf-rw2):not(#hrf-rw3):not(#hrf-rw4):not(#hrf-rw5):not(#hrf-rw6) .hrf-field.hrf-reoon-warn .hrf-error:not([hidden])::before {
  background-image: none !important;
  background-color: currentColor;
  -webkit-mask: url("../img/icon-error.svg") center / 14px 14px no-repeat;
  mask: url("../img/icon-error.svg") center / 14px 14px no-repeat;
}
.hrf-form-wrap:not(#hrf-rw1):not(#hrf-rw2):not(#hrf-rw3):not(#hrf-rw4):not(#hrf-rw5):not(#hrf-rw6) .hrf-field.hrf-reoon-warn :is(.hrf-control, .hrf-floating) > input {
  border-color: #e67e22 !important;
}
