#applicationModal .form-step {
  padding: 25px;
  overflow-y: auto;
  flex: 1;
  display: none;
}

#applicationModal .form-step.active {
  display: block;
}

#applicationModal .row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
}

#applicationModal .col {
  flex: 1;
  min-width: 250px;
}

#applicationModal .form-group {
  margin-bottom: 15px;
}

#applicationModal .form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

#applicationModal .form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: 0.3s;
}

#applicationModal .form-control:focus {
  border-color: #0d3b66;
  box-shadow: 0 0 0 3px rgba(13, 59, 102, 0.1);
}

#applicationModal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

#applicationModal.show {
  display: flex;
}

#applicationModal .wizard-container {
    width: 90%;
    max-width: 1000px;   /* or whatever width you prefer */
    height: 100vh;        /* fixed modal height */
    background: #fff;
    border-radius: 16px;

    display: flex;
    flex-direction: column;

    overflow: hidden;    /* IMPORTANT: keep scrolling inside the body */
}
#applicationModal .wizard-body {
    flex: 1;
    min-height: 0;       /* VERY IMPORTANT for flexbox scrolling */
    overflow-y: auto;
    overflow-x: hidden;

    padding: 15px;
}

#applicationModal .wizard-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 40px;
  border-bottom: 1px solid #eee;
}

#applicationModal .wizard-progress::-webkit-scrollbar {
  display: none;
}

#applicationModal .step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

#applicationModal .step-indicator span {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  background: #e5e7eb;
  font-weight: bold;
}

#applicationModal .step-indicator.active span {
  background: #0d3b66;
  color: #fff;
}

#applicationModal .line {
  min-width: 40px;
  margin-top: 22px;
}

@media (max-width: 768px) {
  #applicationModal .wizard-container {
    width: 100%;
    height: 100vh;
    border-radius: 0;
  }

  #applicationModal .wizard-header {
    padding: 15px;
  }

  #applicationModal .wizard-header h2 {
    font-size: 20px;
  }

  #applicationModal .form-step {
    padding: 10p x;
  }

  #applicationModal .row {
    flex-direction: column;
    gap: 10px;
  }

  #applicationModal .col {
    width: 100%;
    min-width: 100%;
  }

  #applicationModal .wizard-footer button {
    flex: 1;
  }

  .step-indicator p,
  #applicationModal .step-indicator small {
    display: none;
  }

  #applicationModal .step-indicator {
    min-width: 50px;
  }
}

#applicationModal .wizard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 25px 35px;
  border-bottom: 1px solid #eee;
}

#applicationModal .wizard-header h2 {
  font-size: 36px;
  margin-bottom: 5px;
}

#applicationModal .close-btn {
  font-size: 32px;
  cursor: pointer;
  color: #666;
}

#applicationModal .btn {
  padding: 12px 25px;
  border: none;
  cursor: pointer;
}

#applicationModal .btn-primary {
  background: #0d3b66;
  color: white;
}

#applicationModal .btn-secondary {
  background: #ddd;
}

#applicationModal .form-group {
  margin-bottom: 10px;
}

#applicationModal .form-group label {
  display: block;
  margin-bottom: 5px;
}

#applicationModal .form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#applicationModal .row {
  display: flex;
  gap: 15px;
}

#applicationModal .col {
  flex: 1;
}

#applicationModal .wizard-footer {
  border-top: 1px solid #eee;
  padding: 20px;
  display: flex;
  justify-content: space-between;
}

#applicationModal .form-content h3 {
  font-size: 28px;
  margin-bottom: 8px;
  color: #0d3b66;
}

#applicationModal .step-description {
  color: #6b7280;
  margin-bottom: 15px;
}

#applicationModal .required {
  color: #dc2626;
}

#applicationModal .textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

#applicationModal .wizard-.course-card .apply-btn {
  margin-top: auto;
}

.course-card p {
  margin-bottom: 12px;
}

#applicationModal .upload-note {
  display: block;
  margin-top: 5px;
  color: #6b7280;
  font-size: 12px;
}

#applicationModal input[type="file"] {
  padding: 10px;
  background: #f8fafc;
}

#applicationModal .declaration-box {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 25px;
  line-height: 1.8;
}

#applicationModal .declaration-box p {
  margin-bottom: 15px;
}

#applicationModal .declaration-box p:last-child {
  margin-bottom: 0;
}

#applicationModal .checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  line-height: 1.6;
}

#applicationModal .checkbox-label input[type="checkbox"] {
  margin-top: 5px;
  transform: scale(1.2);
}

#applicationModal .declaration-check {
  margin-top: 20px;
}

#applicationModal .signature-preview {
  margin-top: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  background: #fff;
  text-align: center;
}

#applicationModal .signature-preview img {
  max-width: 300px;
  max-height: 120px;
}

#applicationModal .payment-summary{
    background:#f8fafc;
    border:1px solid #e5e7eb;
    border-radius:12px;
    padding:25px;
    margin-top:20px;
}

#applicationModal .summary-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:12px 0;
}

#applicationModal .summary-row span{
    color:#6b7280;
}

#applicationModal .total-row{
    font-size:20px;
}

#applicationModal .total-row strong{
    color:#0d3b66;
}

#applicationModal .payment-notice{
    margin-top:20px;
    padding:15px;
    border-left:4px solid #0d3b66;
    background:#f0f7ff;
}

#applicationModal .payment-actions{
    margin-top:25px;
    text-align:right;
}

#applicationModal .btn-success{
    background:#16a34a;
    color:#fff;
    border:none;
    padding:14px 30px;
    border-radius:8px;
    cursor:pointer;
    font-size:16px;
}

#applicationModal .btn-success:hover{
    opacity:.9;
}
#applicationModal .error{
    border:2px solid #dc2626 !important;
    background:#fff5f5;
}

#applicationModal .step-indicator.completed span{
    background:#16a34a;
    color:#fff;
}

#applicationModal .step-indicator.active span{
    background:#0d3b66;
    color:#fff;
} 