/* Therapist registration webform */

.webform-submission-therapist-reg-form {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px var(--edgepad);
}

/* ---- Confirmation page ---- */
.webform-confirmation {
  max-width: 800px;
  margin: 0 auto;
  /* padding: 3rem var(--edgepad); */
  text-align: left;
}

/* ---- Progress bar ---- */
.webform-submission-therapist-reg-form .webform-progress-tracker {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #ddd;
}

ul.progress-tracker {
  margin: var(--sec-spacer) 0 0 0;
}

/* All circles */
:is(.webform-submission-therapist-reg-form, .webform-progress:has(+ .webform-confirmation)) .progress-step .progress-marker::before {
  width: 48px;
  height: 48px;
  border: 1px solid #333;
  background-color: #fff;
  color: #333;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  top: -12px;
}

/* Inactive/future */
:is(.webform-submission-therapist-reg-form, .webform-progress:has(+ .webform-confirmation)) .progress-step:not(.is-active):not(.is-complete) .progress-marker::before {
  border-color: #ccc;
  color: #aaa;
}

/* Completed */
:is(.webform-submission-therapist-reg-form, .webform-progress:has(+ .webform-confirmation)) .progress-step.is-complete .progress-marker::before,
:is(.webform-submission-therapist-reg-form, .webform-progress:has(+ .webform-confirmation)) .progress-step.is-complete:hover .progress-marker::before {
  background-color: #333;
  border-color: #333;
  color: #fff;
}

/* Current */
:is(.webform-submission-therapist-reg-form, .webform-progress:has(+ .webform-confirmation)) .progress-step.is-active .progress-marker::before,
:is(.webform-submission-therapist-reg-form, .webform-progress:has(+ .webform-confirmation)) .progress-step.is-active:hover .progress-marker::before {
  background-color: var(--tgoldlight);
  border-color: var(--tgold);
  color: var(--slate);
}

.webform-confirmation {
  padding-bottom: var(--sec-spacer);
  padding-top: var(--sec-spacer);
}

/* Connector line */
.webform-submission-therapist-reg-form .progress-step .progress-marker::after {
  height: 2px;
}

/* Step titles */
.webform-submission-therapist-reg-form .progress-step .progress-title {
  font-family: var(--font-sans);
  font-size: 0.85rem;
}

.webform-submission-therapist-reg-form .progress-step.is-active .progress-title {
  color: var(--slate);
}

/* ---- Inputs ---- */
.webform-submission-therapist-reg-form input[type="text"],
.webform-submission-therapist-reg-form input[type="email"],
.webform-submission-therapist-reg-form input[type="tel"],
.webform-submission-therapist-reg-form input[type="url"],
.webform-submission-therapist-reg-form select,
.webform-submission-therapist-reg-form textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid #333;
  border-radius: 0;
  padding: 0.5rem 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--slate);
  width: 100%;
  box-shadow: none;
  outline: none;
  transition: border-bottom-color 0.2s ease;
}

.webform-submission-therapist-reg-form input[type="text"]::placeholder,
.webform-submission-therapist-reg-form input[type="email"]::placeholder,
.webform-submission-therapist-reg-form input[type="tel"]::placeholder,
.webform-submission-therapist-reg-form input[type="url"]::placeholder,
.webform-submission-therapist-reg-form textarea::placeholder {
  color: #999;
}

.webform-submission-therapist-reg-form input[type="text"]:focus,
.webform-submission-therapist-reg-form input[type="email"]:focus,
.webform-submission-therapist-reg-form input[type="tel"]:focus,
.webform-submission-therapist-reg-form input[type="url"]:focus,
.webform-submission-therapist-reg-form textarea:focus {
  border-bottom-color: var(--tgold);
  box-shadow: none;
}

.webform-submission-therapist-reg-form textarea {
  transition: border-bottom-color 0.2s ease, background-color 0.7s ease;
}

.webform-submission-therapist-reg-form textarea:focus {
  background-color: #f7f7f7;
  color: var(--slate);
}


/* DEBUG */
/* .webform-submission-therapist-reg-form * {
  border: 1px solid red;
} */

/* Spacing between form elements */
.webform-submission-therapist-reg-form .form-item,
.webform-submission-therapist-reg-form .webform-flexbox,
.webform-submission-therapist-reg-form .js-form-wrapper {
  padding-bottom: 50px;
}

.webform-submission-therapist-reg-form .webform-flexbox .form-item,
.webform-submission-therapist-reg-form .js-form-wrapper .form-item {
  padding-bottom: 0;
}

/* Flexbox row gaps */
.webform-submission-therapist-reg-form .webform-flexbox {
  gap: 1rem;
}

.webform-submission-therapist-reg-form .webform-flexbox .form-item {
  flex: 1;
}

/* Field titles — shared typography for all question/field labels */
.webform-submission-therapist-reg-form .fieldset-legend,
.webform-submission-therapist-reg-form .js-form-item>label:not(.form-check-label),
.webform-submission-therapist-reg-form .js-form-type-radios>label {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: normal;
  color: var(--slate);
  text-transform: none;
  letter-spacing: normal;
}

/* ---- Radios ---- */
.webform-submission-therapist-reg-form .form-radios label {
  display: inline;
}

.webform-submission-therapist-reg-form .js-form-type-radios>label {
  display: block;
  margin-bottom: 0.5rem;
}

.webform-submission-therapist-reg-form input[type="radio"].form-check-input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 50%;
  border: 1px solid var(--tgold);
  background: transparent;
  cursor: pointer;
  margin-top: 0.2rem;
  transition: background-color 0.2s ease;
}

.webform-submission-therapist-reg-form input[type="radio"].form-check-input:checked {
  background-color: var(--tgoldlight);
  border-color: var(--tgold);
}

/* File upload spacing */
.webform-submission-therapist-reg-form .form-managed-file {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

/* ---- Checkbox ---- */
.webform-submission-therapist-reg-form input[type="checkbox"].form-check-input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1px solid var(--tgold);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  margin-top: 0.2rem;
  position: relative;
  transition: background-color 0.2s ease;
}

.webform-submission-therapist-reg-form input[type="checkbox"].form-check-input:checked {
  background-color: var(--tgoldlight);
  border-color: var(--tgold);
}

.webform-submission-therapist-reg-form input[type="checkbox"].form-check-input:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border-right: 1.5px solid var(--slate);
  border-bottom: 1.5px solid var(--slate);
  transform: rotate(45deg);
}

/* ---- Buttons ---- */
.webform-submission-therapist-reg-form .webform-button--next,
.webform-submission-therapist-reg-form .webform-button--submit,
.webform-submission-therapist-reg-form .form-submit {
  background-color: var(--tgold);
  color: #fff;
  border: none;
  border-radius: 0;
  padding: 0.6rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, letter-spacing 0.2s ease;
  margin-top: 1.5rem;
}

.webform-submission-therapist-reg-form .webform-button--next:hover,
.webform-submission-therapist-reg-form .webform-button--submit:hover,
.webform-submission-therapist-reg-form .form-submit:hover {
  background-color: var(--tgold-hover);
  letter-spacing: 0.15em;
}

.webform-submission-therapist-reg-form .webform-button--previous {
  background: transparent;
  color: var(--slate);
  border: 1px solid var(--slate);
  border-radius: 0;
  padding: 0.6rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  cursor: pointer;
  margin-top: 1.5rem;
  margin-right: 1rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.webform-submission-therapist-reg-form .webform-button--previous:hover {
  background-color: var(--slate);
  color: #fff;
}

/* ---- Responsive ---- */
@media (max-width: 1400px) {}

@media (max-width: 1200px) {}

@media (max-width: 992px) {}

@media (max-width: 768px) {
  .webform-submission-therapist-reg-form .webform-flexbox {
    flex-direction: column;
  }
}

@media (max-width: 576px) {}