/* Match previous landing form look. Keep validation class names intact. */

#custom-regbox {
  padding-top: 0 !important;
  width: 100%;
}

#custom-regbox #main-container {
  max-width: none;
  margin: 0;
  width: 100%;
}

#custom-regbox .form-section,
#custom-regbox .formwrap-outer,
#custom-regbox .intgrtn-form-signup,
#custom-regbox .formwrap {
  width: 100%;
}

#custom-regbox .form-container {
  background-color: var(--color-primary, #104ade) !important;
  border-radius: 15px;
  box-shadow: none;
  overflow: hidden;
  border: none;
  padding: 0;
}

@media (min-width: 768px) {
  #custom-regbox .form-container {
    border-radius: 25px;
  }
}

#custom-regbox .formHeader {
  display: none !important;
}

#custom-regbox .formwrap-outer .intgrtn-form-signup {
  padding: 2rem 1rem;
}

@media (min-width: 768px) {
  #custom-regbox .formwrap-outer .intgrtn-form-signup {
    padding: 2rem;
  }
}

#custom-regbox .intgrtn-form-signup,
#custom-regbox .intgrtn-form-signup-3-steps,
#custom-regbox .intgrtn-form-signup *,
#custom-regbox .intgrtn-form-signup-3-steps * {
  box-sizing: border-box;
}

#custom-regbox .intgrtn-step.intgrtn-active {
  display: grid;
  gap: 1.5rem;
}

#custom-regbox .orp-fields {
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  #custom-regbox .orp-fields {
    gap: 0.875rem;
  }
}

#custom-regbox .intgrtn-input-holder {
  display: grid;
  gap: 0.375rem;
  margin-bottom: 0 !important;
}

#custom-regbox .orp-agree {
  margin: 0;
}

#custom-regbox .orp-account {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #000;
}

#custom-regbox .intgrtn-form-signup .intgrtn-input,
#custom-regbox .intgrtn-form-signup-3-steps .intgrtn-input,
#custom-regbox .formwrap-outer .intgrtn-form-signup .intgrtn-form-signup-3-steps .intgrtn-input-holder .intgrtn-input {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 40px;
  margin: 0;
  padding: 0.5rem 1.25rem;
  font-size: 1rem;
  line-height: 1.5;
  font-family: inherit;
  color: #000;
  background-color: var(--color-primary-light, #88a3ef) !important;
  border: 1px solid var(--color-primary-light, #88a3ef) !important;
  border-radius: 20px !important;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

@media (min-width: 768px) {
  #custom-regbox .intgrtn-form-signup .intgrtn-input,
  #custom-regbox .intgrtn-form-signup-3-steps .intgrtn-input,
  #custom-regbox .formwrap-outer .intgrtn-form-signup .intgrtn-form-signup-3-steps .intgrtn-input-holder .intgrtn-input {
    height: 50px;
    border-radius: 25px !important;
  }
}

#custom-regbox .intgrtn-input::placeholder {
  color: rgba(0, 0, 0, 0.55);
}

#custom-regbox .intgrtn-input:focus {
  border-color: #fff !important;
  background-color: #fff !important;
}

/* Phone / flags — align with old separateDialCode field */
#custom-regbox .intgrtn-input-holder-phone .iti {
  width: 100%;
  display: block;
}

#custom-regbox .intgrtn-input-holder-phone .iti input,
#custom-regbox .intgrtn-input-holder-phone .iti input[type="tel"] {
  width: 100%;
  height: 40px;
  background-color: var(--color-primary-light, #88a3ef) !important;
  border: 1px solid var(--color-primary-light, #88a3ef) !important;
  border-radius: 20px !important;
  color: #000;
}

@media (min-width: 768px) {
  #custom-regbox .intgrtn-input-holder-phone .iti input,
  #custom-regbox .intgrtn-input-holder-phone .iti input[type="tel"] {
    height: 50px;
    border-radius: 25px !important;
  }
}

#custom-regbox .intgrtn-input-holder-phone .iti__flag-container {
  z-index: 2;
}

#custom-regbox .intgrtn-input-holder-phone .iti__selected-flag {
  color: #000;
  border-radius: 20px 0 0 20px;
  padding: 0 8px 0 12px;
}

@media (min-width: 768px) {
  #custom-regbox .intgrtn-input-holder-phone .iti__selected-flag {
    border-radius: 25px 0 0 25px;
  }
}

#custom-regbox .intgrtn-input-holder-phone .iti__selected-dial-code {
  color: #000;
  font-size: 1rem;
  margin-left: 6px;
}

#custom-regbox .intgrtn-input-holder-phone .iti--separate-dial-code .iti__selected-flag {
  background-color: transparent;
}

#custom-regbox .intgrtn-input-holder-phone .iti__country-list {
  border-radius: 12px;
  z-index: 20;
}

#custom-regbox .intgrtn-btn-go-to-step-holder {
  display: grid;
  gap: 0.75rem;
  margin: 0 !important;
  text-align: left;
}

#custom-regbox .intgrtn-btn-go-to-step,
#custom-regbox .formwrap-outer .intgrtn-form-signup .intgrtn-form-signup-3-steps .intgrtn-btn-go-to-step {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3rem;
  margin: 0 !important;
  padding: 0.75rem 1.25rem;
  border: 0;
  border-radius: 9999px !important;
  background: #fff !important;
  color: #000 !important;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  text-transform: none !important;
  text-align: center;
  cursor: pointer;
  white-space: normal;
  transition: background-color 0.3s ease, color 0.3s ease;
}

@media (min-width: 768px) {
  #custom-regbox .intgrtn-btn-go-to-step {
    min-height: 3rem;
    font-size: 0.875rem;
  }
}

#custom-regbox .intgrtn-btn-go-to-step:hover {
  background: var(--color-primary-lighter, #d3defd) !important;
  color: #000 !important;
}

#custom-regbox .orp-disclaimer {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #fff;
}

#custom-regbox .orp-disclaimer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#custom-regbox .orp-disclaimer a:hover {
  color: var(--color-primary-lighter, #d3defd);
}

/* Validation states */
#custom-regbox .form-send .activeGood {
  color: #fff !important;
  background: #5ec849 !important;
  border-color: #5ec849 !important;
}

#custom-regbox .form-send .activeBad {
  color: #fff !important;
  background: rgba(255, 0, 0, 0.6) !important;
  border-color: rgba(255, 0, 0, 0.6) !important;
}

/* Light variant: sign-up / contacts / faq */
#custom-regbox.custom-regbox--light .form-container {
  background-color: #fff !important;
  border: 1px solid #000;
}

#custom-regbox.custom-regbox--light .intgrtn-input,
#custom-regbox.custom-regbox--light .formwrap-outer .intgrtn-form-signup .intgrtn-form-signup-3-steps .intgrtn-input-holder .intgrtn-input,
#custom-regbox.custom-regbox--light .intgrtn-input-holder-phone .iti input {
  background-color: #fff !important;
  border-color: #000 !important;
}

#custom-regbox.custom-regbox--light .intgrtn-btn-go-to-step {
  background: #000 !important;
  color: #fff !important;
}

#custom-regbox.custom-regbox--light .intgrtn-btn-go-to-step:hover {
  background: var(--color-primary-light, #88a3ef) !important;
  color: #000 !important;
}

#custom-regbox.custom-regbox--light .orp-disclaimer {
  color: #000;
}

#custom-regbox.custom-regbox--light .orp-disclaimer a:hover {
  color: var(--color-primary, #104ade);
}

#custom-regbox .intgrtn-steps-holder .intgrtn-step {
  display: none;
}

#custom-regbox .intgrtn-steps-holder .intgrtn-step.intgrtn-active {
  display: grid;
}
