.ui-dialog {
  z-index: 1000 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.ui-dialog .ui-dialog-content {
  padding: 0 !important;
  background: transparent !important;
}

.external-link-popup.ui-dialog {
  background: #fff !important;
  border: 1px solid #ccc !important;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3) !important;
}

.external-link-popup.ui-dialog .ui-dialog-content {
  background: #fff !important;
  padding: 1em !important;
}

.ajax-progress-throbber,
.ui-dialog-titlebar-close {
  display: none !important;
}

.ui-dialog-titlebar {
  display: none !important;
}

#edit-actions {
  padding-top: 0 !important;
}

.os-change-password {
  margin: 20px auto;
  max-width: 570px;
  height: auto;
  background: #ffffff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  font-family: "Roboto", sans-serif;
}

.os-modal {
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.os-modal__backdrop {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
  width: 100%;
}

.os-modal__backdrop--centered {
  align-items: center;
}

.os-modal__content {
  position: relative;
  background-color: transparent;
  max-width: 570px;
  width: 100%;
}

.os-modal__content--login {
  max-width: 680px;
}

.js-form-errors-container {
  display: none;
  background-color: #f8d7da;
  color: #bd120a;
  border: 1px solid #f5c6cb;
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
  font-size: 14px;
  min-height: 40px;
  transition: all 0.3s ease-in-out;
}

.js-form-errors-container:not(:empty) {
  display: block;
}

.js-form-errors-container div {
  margin: 0;
}

.os-register__back-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: transparent;
  color: #bd120a;
  border: none;
  padding: 8px 16px 8px 32px;
  font-size: 14px !important;
  border-radius: 4px;
  cursor: pointer;
  z-index: 1001;
  font-family: "Roboto", sans-serif !important;
}

.os-register__back-btn::before {
  content: "←";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.os-register__back-btn:hover {
  color: #5c0c08;
}

.os-register__back-btn:focus {
  outline: none;
}

.user-register-modal,
.os-register {
  max-width: 570px;
  height: auto;
  margin: 0 auto;
  background: #ffffff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  font-family: "Roboto", sans-serif;
}

.os-register__logo {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.os-register__logo img {
  max-width: 157px;
  max-height: 53px;
  height: auto;
}

.os-register__text-container {
  text-align: left;
}

.os-register__heading {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

.os-register__subheading {
  font-size: 16px;
  font-weight: 400;
  margin: 5px 5px 10px 0;
}

.os-register__link {
  color: #bd120a !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  cursor: pointer !important;
}

.tc-link {
  color: #bd120a !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  cursor: pointer !important;
  margin: 0 5px 0 5px !important;
}

.os-register__link a {
  color: #bd120a !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  cursor: pointer !important;
}

.os-register__subheading,
.os-register__link {
  display: inline-block;
}

.os-register-form {
  font-family: "Roboto", sans-serif;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.os-register-form__single-input-container {
  position: relative;
}

.os-register-form__single-input-container--login {
  margin-bottom: 20px;
}

.os-register-form__input-label {
  width: 100%;
  color: #bfc0bc;
  margin: 0;
}

.js-form-required.form-required {
  font-size: 12px;
  font-weight: 400;
  margin: 0;
  font-family: "Roboto", sans-serif !important;
}

.reset-password-actions {
  margin-bottom: 10px;
}

#step-2 label,
#step-1 label {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  color: #bfc0bc;
  font-size: 12px;
}

.js-form-item {
  display: flex;
  flex-direction: column;
}

.form-item__error-message {
  color: #d03632;
  font-size: 0.85em;
  margin-top: 5px;
  display: block;
}

input.error,
select.error,
textarea.error {
  border-color: #d03632;
  background-color: #fff6f6;
}

.ui-dialog.os-modal,
.ui-dialog.os-modal .ui-dialog-content {
  height: auto !important;
  overflow: visible !important;
}

.form-item__error-message h2 {
  text-transform: unset;
  color: #d03632;
  font-size: 12px;
  margin-top: 5px;
  display: block;
  font-family: inherit;
  font-weight: 400;
}

.password-field-container {
  position: relative;
  display: block;
  width: 100%;
}

.password-toggle-button {
  position: absolute;
  right: 8px;
  top: 64%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
}

.password-toggle-button:hover {
  opacity: 1;
}

.password-toggle-button:focus {
  outline: none;
  opacity: 1;
}

.password-toggle-icon {
  display: block;
  width: 20px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.js-form-item label {
  margin-bottom: 0;
}

.form-email,
.password-field,
.password-confirm,
.js-text-full,
.form-tel,
.form-text {
  all: unset !important;
  width: 100% !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
  border: 1px solid #bfc0bc !important;
  border-radius: 4px !important;
  box-sizing: border-box !important;
  color: #000000 !important;
}

.form-email,
.password-field,
.password-confirm,
.js-text-full,
.form-tel,
.form-text {
  &:focus {
    border-color: #000000 !important;
    color: #000000 !important;
  }
}

.password-confirm-message,
.password-strength,
.password-suggestions,
.description {
  display: none !important;
}

.os-register-form__input {
  all: unset !important;
  width: 100% !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
  border: 1px solid #bfc0bc !important;
  border-radius: 4px !important;
  box-sizing: border-box !important;
  color: #000000 !important;
}

.js-form-type-select select.form-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("../images/arrow_forward_ios.svg") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
  background-size: 12px !important;
  padding-right: 36px !important;
  cursor: pointer !important;
  font-size: 16px;
  border: 1px solid #bfc0bc;
  border-radius: 4px;
  padding: 8px 12px;
  height: 50.8px;
  margin-top: 3px;
}

.form-select {
  color: #999 !important;
}

.form-select.has-selection {
  color: #000 !important;
}

.form-select option {
  color: #000 !important;
}

.os-register-form__input-row-wrapper {
  flex: 1;
}

.os-register-form__eye-icon {
  position: absolute;
  top: 65%;
  transform: translateY(-50%);
  right: 16px;
  pointer-events: auto;
  cursor: pointer;
  z-index: 2;
}

.os-register-form__validation-error {
  font-size: 12px;
  color: #d03632;
  margin-top: -15px;
  margin-bottom: 0;
  transition: all 0.3s ease-in-out;
}

.os-register-form__cnt-button,
.form-submit {
  background-color: #d03632 !important;
  color: #ffffff !important;
  font-family: "Roboto", sans-serif !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  padding: 16px 32px !important;
  border: none !important;
  border-radius: 145px !important;
  cursor: pointer !important;
  width: 100% !important;
  display: block !important;
  text-align: center !important;
  text-transform: none !important;
  line-height: 1 !important;
}

.os-register-form__cnt-button,
.form-submit {
  &:hover {
    background-color: #bd120a !important;
  }
}

.os-register-form__password-checklist {
  margin: 0 0 30px 0;
  font-size: 12px;
  font-weight: 400;
  color: #000000;
  list-style-type: none;
  padding: 0;
}

.os-register-form__password-checklist--reset {
  margin-bottom: 10px;
}

.os-register-form__list-item {
  color: #d03632;
  position: relative;
  padding-left: 20px;
}

.os-register-form__list-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 10px;
  height: 10px;
  background-image: url("../images/close_small.svg");
  background-size: contain;
  background-repeat: no-repeat;
}

.os-register-form__list-item.valid {
  color: green;
}

.os-register-form__list-item.valid::before {
  background-image: url("../images/check_small.svg");
}

.os-register-form__row-group {
  display: flex;
  gap: 10px;
}

.os-register-form__checkbox-wrapper {
  display: flex;
  margin: 0;
}

.os-register-form__checkbox-wrapper input[type="checkbox"] {
  opacity: 0;
  position: absolute;
  left: 0;
  top: 0;
  height: 15px;
  width: 15px;
  cursor: pointer;
}

*/ .js-form-type-checkbox input.form-checkbox {
  opacity: 0;
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.js-form-type-checkbox .option {
  display: flex;
  align-items: center;
  font-size: 16px !important;
  font-weight: 400 !important;
  color: #000000 !important;
  line-height: 1.5;
  position: relative !important;
  cursor: pointer;
  padding-left: 25px;
  flex-wrap: wrap;
}

.js-form-type-checkbox .option::before {
  content: "";
  width: 15px;
  height: 15px;
  border: 1px solid #000000;
  background-color: #ffffff;
  position: absolute;
  left: 0;
  top: 6px;
  border-radius: 2px;
}

.js-form-type-checkbox input.form-checkbox:checked + .option::before {
  background-color: #d03632;
  border-color: #d03632;
}

.js-form-type-checkbox input.form-checkbox:checked + .option::after {
  content: "✓";
  color: white;
  font-size: 12px;
  position: absolute;
  left: 3px;
  top: 5px;
}

.stay-in-touch__consent label.form-control {
  position: relative;
  font-size: 16px !important;
  font-weight: 400 !important;
  color: #000 !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  line-height: 1.5;
  border: none;
  border-radius: 0;
  margin-bottom: 10px;
}

.form-control {
  position: relative !important;
  padding-left: 25px !important;
}

.form-checkbox {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  appearance: none;
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  border: 1px solid #000;
  background-color: #fff;
  border-radius: 2px;
  cursor: pointer;
}

.form-checkbox:checked {
  background-color: #d03632;
  border-color: #d03632;
}

.form-checkbox:checked::after {
  content: "✓";
  color: white;
  font-size: 12px;
  position: absolute;
  left: 2px;
  top: -2px;
}

.btn-submit input[type="submit"].btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #d1d5db;
  color: #6b7280;
  border-color: #d1d5db;
  pointer-events: none;
  transition: all 0.2s ease;
}

.btn-submit input[type="submit"].btn-disabled:hover {
  transform: none;
  box-shadow: none;
}

.btn-submit input[type="submit"].btn-enabled {
  opacity: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cf-turnstile {
  max-width: 100% !important;
  width: 100% !important;
  min-height: 65px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.os-cloudflare-wrapper {
  margin-bottom: 16px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.os-hidden {
  display: none;
}

@media screen and (max-width: 690px) {
  .os-register,
  .os-change-password {
    max-width: 450px;
  }

  .js-form-type-select select.form-select {
    width: 100%;
  }

  .os-register__back-btn {
    left: 60px;
    font-size: 12px !important;
  }

  .os-register-form__row-group {
    flex-direction: column;
    gap: 0;
  }

  .os-register-form__row-group > .js-form-item {
    width: 100%;
  }
}

@media screen and (max-width: 550px) {
  .os-register,
  .os-change-password {
    max-width: 350px;
  }

  .os-modal__content {
    max-width: 400px;
  }

  .os-register__heading {
    font-size: 20px;
  }

  .os-register__subheading {
    font-size: 14px;
  }

  .os-register__back-btn {
    font-size: 14px !important;
  }

  .os-register__logo img {
    max-width: 118px;
    max-height: 40px;
  }

  .os-register-form__checkbox-wrapper {
    font-size: 14px;
  }

  .os-register__subheading,
  .os-register__link {
    display: inline;
  }

  .js-form-type-checkbox .option {
    font-size: 12px !important;
  }

  .stay-in-touch__consent label.form-control {
    font-size: 12px !important;
  }

  .tc-link {
    margin: 0 2px 0 2px !important;
  }

  .os-cloudflare-wrapper {
    transform: scale(0.82);
    transform-origin: top left;
    margin-bottom: 0;
  }
}

@media screen and (max-width: 520px) {
  .os-register__back-btn {
    left: 50px;
  }
}

@media screen and (max-width: 480px) {
  .os-register__back-btn {
    left: 30px;
  }

  .os-modal__content {
    max-width: 380px;
  }
}

@media screen and (max-width: 410px) {
  .os-register__back-btn {
    left: 20px;
  }

  .os-modal__content {
    max-width: 340px;
  }
}
