/*
 * FemiX Experts application form
 * Scoped to the Experts page so the shared form system remains stable while
 * this application receives its own premium, responsive presentation.
 */
#expert-application .fmxp-shell {
  width: min(1280px, calc(100% - 48px));
}

#expert-application .fmxp-heading {
  width: min(100%, 1060px);
  max-width: 1060px;
  margin-inline: auto;
  text-align: left;
}

#expert-application .fmxp-heading .fmxp-intro {
  max-width: 100%;
  text-align: left;
}

#expert-application .fmxp-form-layout--centered {
  display: flex;
  width: 100%;
  justify-content: center;
}

#expert-application .fmxp-form--expert {
  width: 100%;
  max-width: 1060px;
  flex: 0 1 1060px;
  gap: 22px 20px;
  overflow: hidden;
  padding: clamp(34px, 4.2vw, 56px);
  border: 1px solid rgba(36, 20, 61, .08);
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 34px 90px rgba(20, 10, 40, .24);
  text-align: left;
}

#expert-application .fmxp-form--expert::before {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--fmxp-lime), #E8FFAA 50%, var(--fmxp-lime));
  content: "";
}

#expert-application .fmxp-field:has(> #fmxp-expert-linkedin) {
  grid-column: 1 / -1;
}

#expert-application .fmxp-choice-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

#expert-application .fmxp-form--expert,
#expert-application .fmxp-form--expert .fmxp-field,
#expert-application .fmxp-form--expert .fmxp-consent,
#expert-application .fmxp-form--expert .fmxp-form__submit {
  text-align: left;
}

#expert-application .fmxp-choice-field legend {
  margin-bottom: 5px;
  padding: 0;
  color: var(--fmxp-body);
  font: 600 13px/1.4 Poppins, sans-serif;
}

#expert-application .fmxp-choice-field legend b {
  color: var(--fmxp-purple);
}

#expert-application .fmxp-field-help {
  margin: 0 0 12px !important;
  color: var(--fmxp-muted) !important;
  font-size: 13px;
}

#expert-application .fmxp-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

#expert-application .fmxp-choice {
  display: flex;
  min-height: 56px;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--fmxp-border);
  border-radius: 13px;
  background: #FBFAFD;
  color: var(--fmxp-body);
  cursor: pointer;
  font-size: 14px;
  line-height: 1.35;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

#expert-application .fmxp-choice:hover {
  border-color: rgba(91, 47, 214, .6);
  background: #F8F4FF;
}

#expert-application .fmxp-choice:has(input:checked) {
  border-color: var(--fmxp-purple);
  background: #F3EEFF;
  box-shadow: inset 0 0 0 1px var(--fmxp-purple);
}

#expert-application .fmxp-choice:focus-within {
  outline: 3px solid var(--fmxp-gold);
  outline-offset: 2px;
}

#expert-application .fmxp-choice input,
#expert-application .fmxp-field .fmxp-choice input {
  width: 20px;
  min-height: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin: 0;
  padding: 0;
  border-radius: 5px;
  accent-color: var(--fmxp-purple);
}

#expert-application .fmxp-choice input:focus-visible {
  outline: 0 !important;
}

#expert-application .fmxp-choice-field[aria-invalid="true"] .fmxp-choice-grid {
  padding: 3px;
  border-radius: 15px;
  box-shadow: 0 0 0 2px #A52020;
}

@media (max-width: 900px) {
  #expert-application .fmxp-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  #expert-application .fmxp-shell {
    width: calc(100% - 36px);
  }

  #expert-application .fmxp-form--expert {
    gap: 18px;
    padding: 28px 20px;
    border-radius: 24px;
  }

  #expert-application .fmxp-choice-grid {
    grid-template-columns: 1fr;
  }

  #expert-application .fmxp-field:has(> #fmxp-expert-linkedin) {
    grid-column: auto;
  }
}
