/* =====================
   ENROLLMENT PORTAL SECTION
   ===================== */

/* Banner */
.enroll-section { background: #f1f5f9; }

.enroll-banner {
  background: #570F12;
  background-image:
    radial-gradient(circle at top right, rgba(196,22,28,0.3), transparent),
    radial-gradient(circle at bottom left, rgba(196,22,28,0.2), transparent);
  padding: 52px 6%;
  text-align: center;
}

.enroll-banner-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.2);
  border-left: 5px solid #FFD700;
  border-radius: 16px;
  padding: 24px 32px;
  max-width: 860px;
  margin: 0 auto;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  line-height: 1.7;
}

/* Body */
.enroll-body {
  padding: 0 0 60px;
  margin-top: -28px;
}

.enroll-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 6%;
}

/* Step container */
.enroll-step {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.07);
  padding: 40px;
  border: 1px solid #E1E1E1;
}

.fade-in {
  animation: enrollFadeIn 0.4s ease;
}

@keyframes enrollFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.enroll-step-badge {
  display: inline-block;
  background: #C4161C;
  color: #fff;
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.enroll-step-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: #C4161C;
  margin-bottom: 28px;
  line-height: 1.4;
}

/* Payment row */
.enroll-payment-row {
  display: flex;
  gap: 32px;
  align-items: center;
  margin-bottom: 28px;
}

.enroll-table-wrap { flex: 1; }

.enroll-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #E1E1E1;
}

.enroll-table tr { border-bottom: 1px solid #f1f5f9; }
.enroll-table tr:last-child { border-bottom: none; }

.enroll-td-label {
  background: #f8fafc;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  padding: 12px 16px;
  width: 38%;
}

.enroll-td-val {
  font-size: 0.88rem;
  font-weight: 600;
  color: #C4161C;
  padding: 12px 16px;
}

/* QR */
.enroll-qr-wrap {
  flex: 0 0 180px;
  text-align: center;
}

.enroll-scanner-box {
  position: relative;
  width: 160px;
  height: 160px;
  overflow: hidden;
  background: #fff;
  padding: 10px;
  border-radius: 12px;
  border: 2px dashed #E1E1E1;
  margin: 0 auto 10px;
}

.enroll-scanner-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.enroll-scan-line {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: #C4161C;
  box-shadow: 0 0 12px #C4161C;
  animation: scanMove 3s linear infinite;
}

@keyframes scanMove {
  0%, 100% { top: 0; }
  50%       { top: 100%; }
}

.enroll-qr-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  margin: 0;
}

/* Checkbox */
.enroll-checkbox-wrap {
  background: #FFF5F6;
  border: 1px solid #E1E1E1;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.enroll-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
}

.enroll-checkbox-label input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: #C4161C;
  cursor: pointer;
  flex-shrink: 0;
}

.enroll-val-err {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #C4161C;
  margin: 10px 0 0;
}

/* Buttons */
.enroll-btn {
  background: #C4161C;
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.enroll-btn:hover {
  background: #C4161C;
  transform: translateY(-2px);
  color: #fff;
}

.enroll-btn--full { width: 100%; justify-content: center; margin-top: 24px; }

.enroll-back-btn {
  background: none;
  border: none;
  color: #C4161C;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  transition: color 0.2s;
}

.enroll-back-btn:hover { color: #C4161C; }

/* Step 2 header */
.enroll-step2-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}

/* Form */
.enroll-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 8px;
}

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

.enroll-field--wide { grid-column: span 2; }
.enroll-field--full { grid-column: 1 / -1; }

.enroll-field label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #C4161C;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.enroll-req { color: #C4161C; margin-left: 2px; }

.enroll-field input,
.enroll-field select {
  height: 44px;
  border: 1.5px solid #E1E1E1;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 0.88rem;
  color: #1a1a1a;
  background: #f8fafc;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.enroll-field input:focus,
.enroll-field select:focus {
  border-color: #C4161C;
  box-shadow: 0 0 0 3px rgba(196,22,28,0.12);
  background: #fff;
}

.enroll-section-divider {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  border-top: 1px solid #E1E1E1;
  padding-top: 20px;
  margin: 20px 0 16px;
}

/* Support cards */
.enroll-support-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.enroll-support-card {
  background: #FFF5F6;
  border: 1px solid #E1E1E1;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.enroll-support-icon {
  background: #C4161C;
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.enroll-support-lbl {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin: 0 0 3px;
}

.enroll-support-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: #C4161C;
  margin: 0;
}

/* Feedback */
.enroll-feedback {
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 12px;
}

.enroll-feedback--err { color: #C4161C; }

/* Success */
.enroll-success {
  text-align: center;
  padding: 52px 24px;
}

.enroll-success i {
  font-size: 4rem;
  color: #C4161C;
  display: block;
  margin-bottom: 20px;
}

.enroll-success h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: #C4161C;
  margin-bottom: 12px;
}

.enroll-success p {
  font-size: 15px;
  color: #475569;
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto 28px;
}

/* Responsive */
@media (max-width: 768px) {
  .enroll-step { padding: 28px 20px; }
  .enroll-payment-row { flex-direction: column; }
  .enroll-qr-wrap { flex: 0 0 auto; }
  .enroll-form-grid { grid-template-columns: 1fr; }
  .enroll-field--wide { grid-column: span 1; }
  .enroll-support-row { grid-template-columns: 1fr; }
  .enroll-step2-header { flex-direction: column; gap: 12px; }
}