/* enrollment-form.css — Enrollment Form Styles */

.enrollment-intro {
  background: var(--gold-pale);
  padding: 32px;
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
  border-left: 4px solid var(--gold);
}

.enrollment-intro h3 {
  font-size: 20px;
  margin-bottom: 24px;
  color: var(--navy);
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.intro-card {
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-xs);
  transition: transform var(--t), box-shadow var(--t);
}

.intro-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.intro-icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}

.intro-card h4 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--navy);
}

.intro-card p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.5;
}

/* ── ENROLLMENT FORM ─────────────────────────────────────── */
.enrollment-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
}

.enrollment-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.form-section {
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 14px;
}

.req {
  color: #d32f2f;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  transition: border-color var(--t), box-shadow var(--t);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(191, 155, 48, 0.1);
}

.field textarea {
  resize: vertical;
  min-height: 100px;
}

.field input.error,
.field select.error,
.field textarea.error {
  border-color: #d32f2f;
  background-color: rgba(211, 47, 47, 0.03);
}

.error-msg {
  font-size: 12px;
  color: #d32f2f;
  display: none;
  margin-top: 4px;
}

.field input.error ~ .error-msg,
.field select.error ~ .error-msg,
.field textarea.error ~ .error-msg {
  display: block;
}

/* Radio & Checkbox Groups */
.radio-group,
.checkbox-label {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radio-label,
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-12 { margin-bottom: 12px; }
.mb-24 { margin-bottom: 24px; }
.p-16 { padding: 16px; }
.p-14 { padding: 14px; }
.fs-14 { font-size: 14px; }
.fs-13 { font-size: 13px; }
.fs-22 { font-size: 22px; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.c-navy { color: var(--navy); }
.c-navy-mid { color: var(--navy-mid); }
.c-text-mid { color: var(--text-mid); }
.c-gold-line { color: var(--gold-line); }
.c-white { color: var(--white); }
.w-100 { width: 100%; }
.jc-center { justify-content: center; }
.d-flex { display: flex; }
.fd-column { flex-direction: column; }
.gap-8 { gap: 8px; }
.gap-10 { gap: 10px; }
.gap-12 { gap: 12px; }
.gap-20 { gap: 20px; }
.bg-gold-pale { background: var(--gold-pale); }
.b-gold-line { border: 1px solid var(--gold-line); }
.b-radius { border-radius: var(--radius); }
.p-28 { padding: 28px; }
.d-grid { display: grid; }
.g-cols-2 { grid-template-columns: 1fr 1fr; }
.g-gap-20 { gap: 20px; }
}

.radio-label input[type="radio"],
.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--gold);
}

.radio-label span,
.checkbox-label span {
  flex: 1;
}

.radio-label strong {
  display: block;
  margin-bottom: 4px;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.form-submit {
  padding: 12px 28px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  transition: background var(--t);
  font-size: 14px;
  flex: 1;
  min-width: 160px;
}

.form-submit:hover {
  background: var(--gold-hover);
}

.form-submit:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--text-soft);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--text-mid);
}

/* Messages */
.form-msg {
  padding: 16px;
  border-radius: var(--radius);
  font-weight: 600;
  display: none;
  margin-top: 20px;
}

.form-msg.ok {
  background: #c8e6c9;
  color: #1b5e20;
  border-left: 4px solid #4caf50;
}

.form-msg.err {
  background: #ffcdd2;
  color: #b71c1c;
  border-left: 4px solid #d32f2f;
}

.form-msg.ok.show,
.form-msg.err.show {
  display: block;
}

/* Hidden elements */
.hidden-element {
  display: none;
}

/* Responsive */
@media (max-width: 900px) {
  .enrollment-intro {
    padding: 36px 24px;
  }

  .enrollment-intro h1 {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .enrollment-intro p {
    font-size: 15px;
    margin-bottom: 18px;
  }

  .intro-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .intro-card {
    padding: 20px 16px;
  }

  .intro-card h3 {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .intro-card p {
    font-size: 13px;
    line-height: 1.5;
  }

  .enrollment-form-wrapper {
    padding: 32px 24px;
  }

  .enrollment-form-wrapper h2 {
    font-size: 22px;
    margin-bottom: 24px;
  }

  .form-section {
    margin-bottom: 24px;
  }

  .form-section h3 {
    font-size: 15px;
    margin-bottom: 14px;
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .field {
    margin-bottom: 14px;
  }

  .field label {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .field input,
  .field textarea,
  .field select {
    font-size: 13px;
    padding: 10px 12px;
  }

  .form-actions {
    gap: 10px;
  }

  .form-submit,
  .btn-secondary {
    font-size: 13px;
    padding: 10px 20px;
  }
}

@media (max-width: 768px) {
  .enrollment-intro {
    padding: 28px 20px;
  }

  .enrollment-intro h1 {
    font-size: 24px;
    margin-bottom: 16px;
  }

  .enrollment-intro p {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .intro-card {
    padding: 18px 14px;
  }

  .intro-card h3 {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .intro-card p {
    font-size: 12px;
    line-height: 1.5;
  }

  .enrollment-form-wrapper {
    padding: 24px 18px;
  }

  .enrollment-form-wrapper h2 {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .form-section {
    margin-bottom: 20px;
  }

  .form-section h3 {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .field {
    margin-bottom: 12px;
  }

  .field label {
    font-size: 12px;
    margin-bottom: 5px;
  }

  .field input,
  .field textarea,
  .field select {
    font-size: 12px;
    padding: 9px 10px;
  }

  .form-actions {
    flex-direction: column;
    gap: 8px;
  }

  .form-submit,
  .btn-secondary {
    width: 100%;
    font-size: 12px;
    padding: 10px 16px;
  }

  .radio-label input[type="radio"],
  .checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
  }

  .radio-label span,
  .checkbox-label span {
    font-size: 12px;
  }
}

@media (max-width: 640px) {
  .enrollment-intro {
    padding: 22px 16px;
  }

  .enrollment-intro h1 {
    font-size: 20px;
    margin-bottom: 14px;
  }

  .enrollment-intro p {
    font-size: 13px;
    margin-bottom: 14px;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .intro-card {
    padding: 16px 12px;
  }

  .intro-card h3 {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .intro-card p {
    font-size: 11px;
    line-height: 1.4;
  }

  .enrollment-form-wrapper {
    padding: 20px 14px;
  }

  .enrollment-form-wrapper h2 {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .form-section {
    margin-bottom: 16px;
  }

  .form-section h3 {
    font-size: 13px;
    margin-bottom: 10px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .field {
    margin-bottom: 10px;
  }

  .field label {
    font-size: 11px;
    margin-bottom: 4px;
  }

  .field input,
  .field textarea,
  .field select {
    font-size: 11px;
    padding: 8px 8px;
  }

  .form-msg {
    font-size: 12px;
    padding: 12px;
  }

  .form-submit,
  .btn-secondary {
    font-size: 11px;
    padding: 8px 12px;
  }
}

@media (max-width: 480px) {
  .enrollment-intro {
    padding: 18px 12px;
  }

  .enrollment-intro h1 {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .enrollment-intro p {
    font-size: 12px;
    margin-bottom: 12px;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .intro-card {
    padding: 14px 10px;
  }

  .intro-card h3 {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .intro-card p {
    font-size: 10px;
    line-height: 1.4;
  }

  .enrollment-form-wrapper {
    padding: 16px 10px;
  }

  .enrollment-form-wrapper h2 {
    font-size: 16px;
    margin-bottom: 14px;
  }

  .form-section {
    margin-bottom: 14px;
  }

  .form-section h3 {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .field {
    margin-bottom: 8px;
  }

  .field label {
    font-size: 10px;
    margin-bottom: 4px;
  }

  .field input,
  .field textarea,
  .field select {
    font-size: 10px;
    padding: 7px 6px;
  }

  .form-actions {
    gap: 6px;
  }

  .form-msg {
    font-size: 11px;
    padding: 10px;
    margin-top: 14px;
  }

  .form-submit,
  .btn-secondary {
    font-size: 10px;
    padding: 7px 10px;
  }

  .radio-label input[type="radio"],
  .checkbox-label input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin-top: 1px;
  }
}
