/* ============================================
   RANKUP - Application Page
   ============================================ */
.apply-hero {
  padding: 140px 0 56px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #004B8D 0%, #00356B 35%, #002850 100%);
}
.apply-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(244, 128, 26, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 15% 85%, rgba(227, 168, 39, 0.06) 0%, transparent 45%);
}
.apply-hero-content { text-align: center; position: relative; z-index: 1; }
.apply-hero-icon {
  width: 72px; height: 72px;
  margin: 0 auto 18px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--accent);
  backdrop-filter: blur(4px);
}
.apply-hero-content h1 { color: var(--white); font-size: 2.5rem; margin-bottom: 10px; }
.apply-hero-content p { color: rgba(255, 255, 255, 0.75); max-width: 560px; margin: 0 auto; font-size: 1rem; line-height: 1.7; }

.apply-section { padding: 48px 0 80px; background: var(--background-alt); min-height: 60vh; }
.apply-container { max-width: 820px; }

.apply-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
}
.apply-card-header {
  padding: 26px 32px;
  background: linear-gradient(135deg, var(--primary) 0%, #003366 100%);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.apply-card-header h2 { font-size: 1.3rem; color: var(--white); margin: 0; }
.apply-card-header p { font-size: 0.85rem; opacity: 0.85; }
.req-star { color: var(--accent); font-weight: 800; }
.opt-label { color: var(--text-muted); font-size: 0.78rem; font-weight: 500; }

.apply-card form { padding: 28px 32px 32px; }

/* Form sections */
.form-section { border-bottom: 1px solid var(--border-light); padding-bottom: 24px; margin-bottom: 26px; }
.form-section:last-of-type { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.form-section-title {
  font-size: 1rem;
  color: var(--primary);
  margin: 0 0 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
  letter-spacing: 0.03em;
}
.form-label { display: block; font-weight: 600; font-size: 0.82rem; margin-bottom: 6px; color: var(--text); letter-spacing: 0.01em; }

/* Checkbox grid */
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.choice-box {
  display: flex; align-items: center; gap: 10px;
  background: var(--background);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}
.choice-box:hover { border-color: var(--primary); background: var(--surface); }
.choice-box input { width: 18px; height: 18px; accent-color: var(--primary); flex-shrink: 0; }

/* Radio pills */
.radio-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-option {
  display: flex; align-items: center; gap: 8px;
  background: var(--background);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
}
.pill-option:hover { border-color: var(--primary); }
.pill-option input { width: 16px; height: 16px; accent-color: var(--primary); }

/* Conditional fields */
.conditional-field { margin-top: 10px; }
.conditional-field label { display: block; font-weight: 600; font-size: 0.78rem; margin-bottom: 6px; color: var(--text-muted); }
.conditional-block {
  margin-top: 14px; padding: 16px; background: var(--background);
  border-left: 3px solid var(--primary); border-radius: var(--radius-sm);
}
.conditional-inner { margin-bottom: 12px; }
.conditional-inner:last-child { margin-bottom: 0; }

/* Consent boxes */
.consent-box {
  display: flex; align-items: flex-start; gap: 12px;
  cursor: pointer; font-size: 0.88rem; line-height: 1.6; color: var(--text);
}
.consent-box input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--primary); }
.form-group.error .consent-box span { color: var(--error); }


.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }
.form-status {
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  min-height: 1.2em;
}
.form-status.status-error { color: var(--error); }
.form-status.status-success { color: var(--success); }

.apply-form-actions { text-align: center; margin-top: 8px; }
.apply-form-actions .btn { min-width: 260px; justify-content: center; }

/* Success */
.apply-success { max-width: 640px; margin: 0 auto; }
.apply-success-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  padding: 48px 36px;
  text-align: center;
}
.apply-success-card h3 { color: #059669; font-size: 1.4rem; margin-bottom: 10px; }
.apply-success-card p { color: var(--text-light); line-height: 1.7; }
.apply-success-sub { margin-top: 10px; font-size: 0.9rem; }

@media (max-width: 768px) {
  .apply-hero { padding: 120px 0 40px; }
  .apply-hero-content h1 { font-size: 1.8rem; }
  .apply-card-header { padding: 20px 20px; }
  .apply-card form { padding: 20px 18px 24px; }
  .apply-success-card { padding: 32px 20px; }
}
@media (max-width: 480px) {
  .apply-hero-content h1 { font-size: 1.5rem; }
  .apply-form-actions .btn { width: 100%; }
}
