/* ==========================================================================
   Infochief Academy - Custom enrollment form
   File: css/enrollment-form.css
   Scope: only the replacement form inside Infochief_Info_Enrollment.htm
   ========================================================================== */

.enrollment-form-shell {
  position: relative;
  margin-top: 22px;
}

.enrollment-form {
  width: 100%;
}

.enrollment-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.enrollment-field {
  min-width: 0;
}

.enrollment-field-full {
  grid-column: 1 / -1;
}

.enrollment-field label {
  display: block;
  margin: 0 0 7px;
  color: #173b63;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.enrollment-field label span {
  color: #b42318;
}

.enrollment-field input,
.enrollment-field select {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #d7e2ed;
  border-radius: 10px;
  background: #fff;
  color: #20384f;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.enrollment-field input::placeholder {
  color: #8b9bae;
  opacity: 1;
}

.enrollment-field input:hover,
.enrollment-field select:hover {
  border-color: #b6c9dc;
}

.enrollment-field input:focus,
.enrollment-field select:focus {
  border-color: #31659f;
  box-shadow: 0 0 0 3px rgba(49, 101, 159, .12);
}

.enrollment-field.has-error input,
.enrollment-field.has-error select {
  border-color: #b42318;
  background: #fffafa;
}

.field-error {
  display: block;
  min-height: 0;
  margin-top: 5px;
  color: #b42318;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
}

.field-error:empty {
  display: none;
}

.field-help {
  display: block;
  margin-top: 5px;
  color: #6d8095;
  font-size: 11px;
  line-height: 1.45;
}

.enrollment-form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #e5edf5;
}

.enrollment-submit {
  flex: 0 0 auto;
  min-width: 154px;
  border: 0;
}

.enrollment-submit[disabled] {
  cursor: wait;
  opacity: .78;
}

.submit-spinner {
  display: none;
  width: 16px;
  height: 16px;
  margin-left: 8px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -3px;
  animation: enrollment-spin .65s linear infinite;
}

.enrollment-submit.is-loading .submit-spinner {
  display: inline-block;
}

.enrollment-security-note {
  margin: 0;
  color: #687c92;
  font-size: 11px;
  line-height: 1.55;
}

.enrollment-status {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
}

.enrollment-status.is-success {
  border-color: #b8dfc8;
  background: #eef9f2;
  color: #146c43;
}

.enrollment-status.is-error {
  border-color: #f0c0bc;
  background: #fff3f2;
  color: #9f2218;
}

.enrollment-honeypot,
.enrollment-submit-frame {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@keyframes enrollment-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 720px) {
  .enrollment-form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .enrollment-field-full {
    grid-column: auto;
  }

  .enrollment-form-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .enrollment-submit {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .enrollment-field input,
  .enrollment-field select {
    transition: none;
  }

  .submit-spinner {
    animation-duration: 1.2s;
  }
}
