/* =============================================
   MULTI-STEP FORM — STYLES
   ============================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  background: #fff;
  color: #343434;
  -webkit-font-smoothing: antialiased;
}

/* ---- Layout ---- */
.form-wrapper {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 50px 30px;
}

.form-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

/* Logo row — full width, left aligned */
.logo-row {
  width: 100%;
  flex-basis: 100%;
  display: flex;
  margin-bottom: 30px;
}

.logo {
  width: 100px;
  height: 100px;
  display: block;
}

/* Content row — 718 px centered */
.content-row {
  width: 718px;
  max-width: 100%;
  margin: 10px 0 30px;
}

/* ---- Steps ---- */
#stepsContainer {
  min-height: 180px;
}

.step {
  display: none;
  animation: fadeIn .35s ease;
}

.step.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Headings & descriptions ---- */
.step-heading {
  font-family: 'Open Sans', sans-serif;
  font-size: 23px;
  font-weight: 700;
  color: #343434;
  text-align: center;
  line-height: 1.35;
  padding: 16px;
}

.step-description {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  color: #343434;
  text-align: center;
  line-height: 1.5;
  padding: 16px;
}

.step-description strong {
  font-weight: 700;
}

/* ---- Radio options ---- */
.radio-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 20px 0;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 17px;
  border: 1px solid #dadada;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color .2s;
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  color: #343434;
  width: calc(50% - 10px);
  height: 56px;
  flex-shrink: 0;
  box-shadow: rgba(216, 216, 216, .5) 2px 2px 12px 2px;
  font-weight: 600;
  margin-bottom: 17px;
}

.radio-options.has-odd-last .radio-option:last-child {
  width: calc(50% - 10px);
  margin: 0 auto;
}

.radio-option:hover {
  border-color: #0a83ca;
}

.radio-option.selected {
  border-color: #0a83ca;
}

.radio-circle {
  width: 17px;
  height: 17px;
  min-width: 17px;
  border-radius: 50%;
  border: 2px solid #0a83ca;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s;
}

.radio-option.selected .radio-circle {
  border-color: #0a83ca;
}

.radio-circle-inner {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #0a83ca;
  transform: scale(0);
  transition: transform .15s;
}

.radio-option.selected .radio-circle-inner {
  transform: scale(1);
}

/* ---- Input fields (MUI filled-style) ---- */
.input-group+.input-group {
  margin-top: 27px;
}

.input-wrapper {
  position: relative;
  width: 100%;
  height: 77px;
  border-radius: 0;
  box-shadow: rgba(216, 216, 216, .5) 2px 2px 12px 2px;
  background: #fff;
  overflow: hidden;
}

.input-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(0, 0, 0, .42);
  transition: height .2s, background .2s;
}

.input-wrapper.focused::after {
  height: 2px;
  background: #0a83ca;
}

.input-wrapper label {
  position: absolute;
  top: 20px;
  left: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #a3a3a3;
  pointer-events: none;
  transition: all .2s;
  transform-origin: top left;
}

.input-wrapper.focused label,
.input-wrapper.has-value label {
  top: 10px;
  font-size: 12px;
}

.input-wrapper.focused label {
  color: #0a83ca;
}

.input-wrapper input {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  padding: 30px 12px 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: #000;
  background: transparent;
}

/* Phone input — intl-tel-input overrides */
.phone-intl {
  overflow: visible;
}

.phone-intl .iti {
  width: 100%;
  height: 100%;
}

.phone-intl .iti__selected-country-primary {
  padding-left: 12px;
}

.phone-intl .iti__country-container {
  height: 100%;
  padding-top: 20px;
}

.phone-intl .iti input.iti__tel-input {
  width: 100%;
  height: 100%;
  padding: 26px 12px 8px 0;
  border: none;
  background: transparent;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  outline: none;
  box-sizing: border-box;
}

.phone-intl label {
  z-index: 2;
}

.iti__dropdown-content {
  z-index: 9999 !important;
  border: 1px solid #dadada;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
  border-radius: 4px;
  background: #fff;
}

.iti__search-input {
  padding: 10px 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
}

.iti__country-list {
  max-height: 220px;
}

.iti__country {
  padding: 8px 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
}

.iti__country:hover {
  background: #f5f5f5;
}

.iti__dial-code {
  color: #999;
}

/* Validation errors */
.field-error {
  font-size: 11px;
  color: #d32f2f;
  margin-top: 3px;
  padding-left: 12px;
  display: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.field-error.visible {
  display: block;
}

/* ---- Textarea ---- */
.textarea-wrapper {
  position: relative;
  width: 100%;
  border-radius: 0;
  box-shadow: rgba(216, 216, 216, .5) 2px 2px 12px 2px;
  background: #fff;
  overflow: hidden;
  margin-bottom: 20px;
}

.textarea-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(0, 0, 0, .42);
  transition: height .2s, background .2s;
}

.textarea-wrapper:focus-within::after {
  height: 2px;
  background: #0a83ca;
}

.textarea-wrapper label {
  position: absolute;
  top: 20px;
  left: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #a3a3a3;
  pointer-events: none;
  transition: all .2s;
}

.textarea-wrapper:focus-within label,
.textarea-wrapper.has-value label {
  top: 8px;
  font-size: 12px;
}

.textarea-wrapper:focus-within label {
  color: #0a83ca;
}

.textarea-wrapper textarea {
  width: 100%;
  min-height: 120px;
  border: none;
  outline: none;
  padding: 27px 12px 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: #000;
  background: transparent;
  resize: none;
}

/* ---- Buttons ---- */
.btn-next,
.btn-submit {
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 4px;
  background: #0a83ca;
  color: #fff;
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .43px;
  cursor: pointer;
  transition: background .2s;
  margin-top: 20px;
  margin-bottom: 12px;
  font-weight: 700;
}

.btn-next:hover,
.btn-submit:hover {
  background: #0972b3;
}

/* ---- Progress bar ---- */
.progress-bar-track {
  width: 100%;
  height: 4px;
  background: rgba(6, 164, 65, .1);
  margin-top: 40px;
}

.progress-bar-fill {
  height: 100%;
  background: rgb(6, 164, 65);
  transition: width .4s linear;
  width: 0%;
}

/* ---- Notices ---- */
.confidential-notice {
  font-size: 14px;
  color: #343434;
  text-align: center;
  margin-top: 15px;
  font-family: 'Open Sans', sans-serif;
  padding: 16px;
}

.consent-text {
  font-size: 14px;
  color: #343434;
  text-align: center;
  line-height: 1.5;
  margin-top: 15px;
  font-family: 'Open Sans', sans-serif;
}

.back-button {
  font-size: 14px;
  color: #343434;
  cursor: pointer;
  margin-top: 10px;
  font-family: 'Open Sans', sans-serif;
}

.back-button:hover {
  color: #0a83ca;
}

/* ---- Footer ---- */
.footer {
  width: 100%;
  flex-basis: 100%;
  margin-top: 40px;
  text-align: center;
}

.copyright,
.footer-links {
  font-size: 14px;
  color: #343434;
  font-family: 'Open Sans', sans-serif;
}

.copyright {
  margin-bottom: 4px;
}

.footer-links a {
  color: #0a83ca;
  text-decoration: underline;
}

.footer-links a:hover {
  text-decoration: none;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .form-wrapper {
    padding: 10px 15px 20px;
  }

  .content-row {
    width: 100%;
  }

  .step-heading {
    font-size: 22px;
  }

  .radio-option {
    width: 100%;
    margin-bottom: 2px;
  }

  .radio-options.has-odd-last .radio-option:last-child {
    width: 100%;
  }
}

.iti .iti__selected-dial-code {
  display: none;
}