/* ==========================================================================
   KOBBY ENTREPRENEURSHIP FUND - APPLICATION FORM STYLES
   ========================================================================== */

.apply-page {
  background: #F8FAFC;
  padding: 40px 0 80px;
}

.apply-hero {
  text-align: center;
  margin-bottom: 36px;
}

.apply-hero h1 {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--deep-blue);
  margin-bottom: 12px;
}

.apply-hero p {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 650px;
  margin: 0 auto;
}

/* Wizard Steps Indicator */
.wizard-progress {
  display: flex;
  justify-content: space-between;
  position: relative;
  max-width: 820px;
  margin: 0 auto 40px;
}

.wizard-progress::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 50px;
  right: 50px;
  height: 3px;
  background: var(--gray-200);
  z-index: 0;
}

.wizard-step-node {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default;
}

.step-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--pure-white);
  border: 3px solid var(--gray-300);
  color: var(--gray-500);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: var(--transition);
  margin-bottom: 8px;
}

.step-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray-500);
  text-align: center;
}

.wizard-step-node.active .step-circle {
  background: var(--primary-red);
  border-color: var(--primary-red);
  color: var(--pure-white);
  box-shadow: 0 0 0 6px rgba(217, 20, 36, 0.15);
}

.wizard-step-node.active .step-label {
  color: var(--primary-red);
}

.wizard-step-node.completed .step-circle {
  background: var(--deep-blue);
  border-color: var(--deep-blue);
  color: var(--pure-white);
}

.wizard-step-node.completed .step-label {
  color: var(--deep-blue);
}

/* Form Container Card */
.form-card {
  background: var(--pure-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
  max-width: 860px;
  margin: 0 auto;
  padding: 44px;
  position: relative;
  overflow: hidden;
}

.form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-red) 0%, var(--gold-accent) 50%, var(--royal-blue) 100%);
}

.step-header {
  margin-bottom: 30px;
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 18px;
}

.step-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--deep-blue);
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-header h2 svg {
  color: var(--primary-red);
}

.step-header p {
  font-size: 0.92rem;
  color: var(--gray-600);
  margin-top: 4px;
}

/* Form Groups & Grid */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

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

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

.form-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-label .required {
  color: var(--primary-red);
  margin-left: 4px;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--gray-500);
  font-weight: 400;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--gray-400);
  pointer-events: none;
}

.form-control {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--gray-900);
  background: var(--pure-white);
  transition: var(--transition);
}

.form-control.no-icon {
  padding-left: 14px;
}

.form-control:focus {
  outline: none;
  border-color: var(--royal-blue);
  box-shadow: 0 0 0 4px rgba(19, 62, 124, 0.12);
}

.form-control.error {
  border-color: var(--primary-red);
  background-color: #fffafb;
}

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

.currency-badge {
  position: absolute;
  left: 12px;
  font-weight: 700;
  color: var(--primary-red);
  font-size: 0.9rem;
}

.form-control.with-currency {
  padding-left: 56px;
}

.error-text {
  font-size: 0.78rem;
  color: var(--primary-red);
  margin-top: 6px;
  display: none;
}

.form-group.has-error .error-text {
  display: block;
}

/* Passport Photo Upload Styling */
.photo-upload-box {
  background: var(--off-white);
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.photo-upload-box:hover, .photo-upload-box.dragover {
  border-color: var(--royal-blue);
  background: var(--blue-light);
}

.photo-upload-box.has-photo {
  border-style: solid;
  border-color: var(--royal-blue);
  background: var(--pure-white);
  cursor: default;
}

.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.photo-icon-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--royal-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.photo-upload-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--deep-blue);
}

.photo-upload-sub {
  font-size: 0.78rem;
  color: var(--gray-500);
}

.photo-preview-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.photo-preview-img {
  width: 140px;
  height: 165px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 3px solid var(--royal-blue);
  box-shadow: 0 4px 12px rgba(19, 62, 124, 0.2);
}

.photo-controls {
  display: flex;
  gap: 10px;
}

/* Radio Cards Grid for Business Stage */
.radio-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.radio-card {
  position: relative;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: var(--transition);
  background: var(--off-white);
}

.radio-card input {
  position: absolute;
  opacity: 0;
}

.radio-card:hover {
  border-color: var(--royal-blue);
}

.radio-card.selected {
  border-color: var(--primary-red);
  background: var(--primary-red-light);
}

.radio-card-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--deep-blue);
  margin-bottom: 4px;
}

.radio-card-desc {
  font-size: 0.78rem;
  color: var(--gray-600);
  line-height: 1.4;
}

/* Declaration Checkbox Box */
.declaration-box {
  background: var(--blue-light);
  border: 1px solid rgba(19, 62, 124, 0.2);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 10px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--deep-blue);
  line-height: 1.55;
  font-weight: 600;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary-red);
  margin-top: 2px;
  flex-shrink: 0;
}

/* Form Actions */
.wizard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

/* Success Card & Confirmation */
.success-card {
  text-align: center;
  padding: 20px 10px;
}

.success-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #DCFCE7;
  color: #15803D;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 10px 20px rgba(22, 101, 52, 0.15);
}

.success-card h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--deep-blue);
  margin-bottom: 12px;
}

.success-card p {
  font-size: 1rem;
  color: var(--gray-600);
  max-width: 580px;
  margin: 0 auto 28px;
}

.ref-code-box {
  background: var(--off-white);
  border: 2px dashed var(--primary-red);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: inline-block;
  margin-bottom: 30px;
}

.ref-code-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.ref-code-val {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary-red);
  letter-spacing: 2px;
}

.success-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Print Slip Styles */
@media print {
  body * {
    visibility: hidden;
  }
  .form-card, .form-card * {
    visibility: visible;
  }
  .form-card {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    box-shadow: none;
    border: none;
  }
  .wizard-actions, .navbar, .top-bar, .footer {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .form-card {
    padding: 24px 18px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .radio-cards-grid {
    grid-template-columns: 1fr;
  }
  .wizard-progress::before {
    display: none;
  }
  .step-label {
    font-size: 0.7rem;
  }
}
