/* =====================================================
   miCommunity — Apply Page Styles
   ===================================================== */

body.apply-page {
  background: #0f0f1a;
  min-height: 100vh;
  padding-top: 80px;
}

/* ---- Progress Bar ---- */
.apply-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px 10px;
  gap: 0;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.4;
  transition: opacity 0.3s;
}

.progress-step.active { opacity: 1; }

.step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #1e1e3a;
  border: 2px solid #444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #aaa;
  font-size: 15px;
  transition: all 0.3s;
}

.progress-step.active .step-circle {
  background: linear-gradient(135deg, #9b51e0, #ff0084);
  border-color: transparent;
  color: white;
  box-shadow: 0 0 20px rgba(155, 81, 224, 0.5);
}

.progress-step.completed .step-circle {
  background: #28a745;
  border-color: transparent;
  color: white;
}

.progress-step span {
  font-size: 12px;
  color: #aaa;
  white-space: nowrap;
}

.progress-step.active span { color: #e0e0e0; font-weight: 600; }

.progress-line {
  flex: 1;
  height: 2px;
  background: #333;
  max-width: 120px;
  margin: 0 8px;
  margin-bottom: 22px;
}

/* ---- Container ---- */
.apply-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 20px 16px 60px;
}

/* ---- Card ---- */
.apply-card {
  background: #1a1a2e;
  border: 1px solid #2a2a4a;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
}

.apply-card.wide {
  text-align: left;
}

.apply-card.success-card {
  text-align: center;
}

.apply-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #9b51e0, #ff0084);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  color: white;
}

.apply-icon.success {
  background: linear-gradient(135deg, #28a745, #00c853);
}

.apply-card h2 {
  font-size: 26px;
  color: #fff;
  margin-bottom: 10px;
}

.apply-subtitle {
  color: #aaa;
  font-size: 15px;
  margin-bottom: 24px;
  line-height: 1.6;
}

/* ---- Fee Box ---- */
.fee-box {
  background: linear-gradient(135deg, rgba(155,81,224,0.15), rgba(255,0,132,0.1));
  border: 1px solid rgba(155,81,224,0.3);
  border-radius: 14px;
  padding: 24px;
  margin: 24px 0;
}

.fee-amount {
  font-size: 42px;
  font-weight: 900;
  background: linear-gradient(90deg, #9b51e0, #ff0084);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fee-label {
  color: #aaa;
  font-size: 14px;
  margin-top: 4px;
}

/* ---- Benefits ---- */
.fee-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 20px 0 28px;
  text-align: left;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ccc;
  font-size: 14px;
}

.benefit-item i { color: #28a745; }

@media (max-width: 480px) {
  .fee-benefits { grid-template-columns: 1fr; }
}

/* ---- Pre-Pay Form ---- */
.pre-pay-form {
  background: #0f0f1a;
  border: 1px solid #2a2a4a;
  border-radius: 14px;
  padding: 28px;
  text-align: left;
  margin-top: 24px;
}

.pre-pay-form h3 {
  color: #fff;
  margin-bottom: 6px;
  font-size: 17px;
}

/* ---- Form Elements ---- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  color: #ccc;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea,
.pre-pay-form input {
  background: #0f0f1a;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 12px 16px;
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.pre-pay-form input:focus {
  border-color: #9b51e0;
  box-shadow: 0 0 0 3px rgba(155,81,224,0.15);
}

.form-group select option { background: #1a1a2e; }
.form-group textarea { resize: vertical; min-height: 100px; }

.char-count {
  font-size: 12px;
  color: #666;
  text-align: right;
}

/* ---- Form Section Title ---- */
.form-section-title {
  grid-column: 1 / -1;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #9b51e0;
  padding: 10px 0 4px;
  border-bottom: 1px solid #2a2a4a;
  margin-top: 6px;
}

.form-section-title i { margin-right: 6px; }

/* ---- Course Selector ---- */
.course-selector {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.course-option {
  background: #0f0f1a;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  font-size: 13px;
  color: #aaa;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.course-option:hover {
  border-color: #9b51e0;
  color: #fff;
}

.course-option.selected {
  background: rgba(155,81,224,0.15);
  border-color: #9b51e0;
  color: #fff;
  font-weight: 600;
}

.course-option i { color: #9b51e0; }

/* ---- File Upload ---- */
.file-upload-area {
  background: #0f0f1a;
  border: 2px dashed #333;
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.file-upload-area:hover,
.file-upload-area.drag-over {
  border-color: #9b51e0;
  background: rgba(155,81,224,0.06);
}

.file-upload-area i { font-size: 28px; color: #9b51e0; margin-bottom: 8px; display: block; }
.file-upload-area p { color: #ccc; font-size: 14px; margin: 0; }
.file-upload-area span { color: #666; font-size: 12px; }
.file-upload-area input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.file-preview { margin-top: 10px; }
.file-preview img { max-width: 100%; max-height: 150px; border-radius: 8px; border: 1px solid #333; }
.file-name { background: #0f0f1a; border: 1px solid #333; border-radius: 8px; padding: 8px 14px; color: #aaa; font-size: 13px; display: flex; align-items: center; gap: 8px; }

/* ---- Buttons ---- */
.btn-pay {
  width: 100%;
  padding: 16px;
  background: linear-gradient(90deg, #9b51e0, #ff0084);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 20px;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-pay:hover { opacity: 0.9; }
.btn-pay:disabled { opacity: 0.5; cursor: not-allowed; }

.pay-note {
  color: #666;
  font-size: 12px;
  text-align: center;
  margin-top: 10px;
}

.pay-note i { margin-right: 4px; }

.already-paid-link {
  color: #777;
  font-size: 13px;
  margin-top: 16px;
}

.already-paid-link a {
  color: #9b51e0;
  text-decoration: none;
}

.btn-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(90deg, #9b51e0, #ff0084);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 28px;
  transition: opacity 0.2s;
}

.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.form-error {
  background: rgba(220, 53, 69, 0.15);
  border: 1px solid rgba(220, 53, 69, 0.4);
  border-radius: 10px;
  padding: 14px 18px;
  color: #ff6b6b;
  font-size: 14px;
  margin-top: 16px;
}

/* ---- Success ---- */
.success-animation {
  margin: 0 auto 24px;
  display: flex;
  justify-content: center;
}

.success-circle {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #28a745, #00c853);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: white;
  animation: pop-in 0.5s cubic-bezier(.36,.07,.19,.97);
  box-shadow: 0 0 40px rgba(40,167,69,0.4);
}

@keyframes pop-in {
  0% { transform: scale(0); opacity: 0; }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.success-details {
  background: #0f0f1a;
  border: 1px solid #2a2a4a;
  border-radius: 12px;
  padding: 20px;
  margin: 24px 0;
  text-align: left;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #1e1e3a;
  font-size: 14px;
}

.detail-row:last-child { border-bottom: none; }
.detail-row span { color: #777; }
.detail-row strong { color: #fff; }

.success-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 24px 0;
}

.btn-primary-solid {
  background: linear-gradient(90deg, #9b51e0, #ff0084);
  color: white;
  padding: 13px 26px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-outline {
  border: 2px solid #444;
  color: #ccc;
  padding: 13px 26px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.check-email-note {
  color: #777;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.check-email-note i { color: #9b51e0; }

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .apply-card { padding: 24px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full-width { grid-column: 1; }
  .form-section-title { grid-column: 1; }
  .course-selector { grid-template-columns: 1fr 1fr; }
}
/* ---- Professional Navbar Reset for Apply Page ---- */
#navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: #0f0f1a; /* Matches your dark theme */
    border-bottom: 1px solid #2a2a4a;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.logo a {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links li a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-links li a:hover, .nav-links li a.active {
    color: #9b51e0; /* Matches your brand color */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-links { gap: 15px; }
    .nav-links li a { font-size: 12px; }
}