body {
  background: linear-gradient(
    90deg,
    #e9f1fa 0%,
    #cff0ea 62%,
    #d8f2f4 100%
  );
  margin: 0;
  padding: 2rem;
}
#wizard {
  max-width: 1200px;
  margin: auto;
  background: transparent;
  padding: 2rem;
}
.hidden {
  display: none;
}
.nav-buttons {
  margin-top: 1.5rem;
  text-align: right;
}

h1 {
  color: #09373f;
  font-weight: 700;
  text-align: center;
  font-family: "Roboto Slab";
}

/* Card-based layout for applicant type selection */
.applicant-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}

/* Single form container styles */
.single-form-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.single-form-container section {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #09373f;
}

.single-form-container section h2 {
  color: #09373f;
  font-family: "Roboto Slab";
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e9f1fa;
}

/* Submission Summary Styles */
.submission-summary-container {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
  border: 2px solid #09373f;
}

.summary-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e9f1fa;
}

.summary-header h3 {
  color: #09373f;
  font-family: "Roboto Slab";
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.summary-header h3 i {
  color: #28a745;
  margin-right: 0.5rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.summary-section-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  border-left: 4px solid #09373f;
}

.summary-section-card h4 {
  color: #09373f;
  font-family: "Roboto Slab";
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.summary-section-card h4 i {
  margin-right: 0.5rem;
  color: #007bff;
}

.summary-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.5rem 0;
  border-bottom: 1px solid #dee2e6;
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-item .label {
  font-weight: 600;
  color: #495057;
  flex: 1;
  margin-right: 1rem;
}

.summary-item .value {
  color: #212529;
  text-align: right;
  flex: 1;
  word-break: break-word;
}

.dependent-summary {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 0.5rem;
}

.summary-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 2px solid #e9f1fa;
}

.summary-actions .btn {
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 768px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }
  
  .summary-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .summary-item .value {
    text-align: left;
    margin-top: 0.25rem;
  }
  
  .summary-actions {
    flex-direction: column;
  }
}

/* Enrollment Summary Styles */
.enrollment-summary-container {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
  border: 2px solid #28a745;
}

.enrollment-summary-container .summary-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e9f1fa;
}

.enrollment-summary-container .summary-header h3 {
  color: #09373f;
  font-family: "Roboto Slab";
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.enrollment-summary-container .summary-header h3 i {
  color: #28a745;
  margin-right: 0.5rem;
}

.enrollment-summary-container .summary-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.enrollment-summary-container .summary-section-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  border-left: 4px solid #09373f;
}

.enrollment-summary-container .summary-section-card h4 {
  color: #09373f;
  font-family: "Roboto Slab";
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.enrollment-summary-container .summary-section-card h4 i {
  margin-right: 0.5rem;
  color: #007bff;
}

.enrollment-summary-container .summary-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.enrollment-summary-container .summary-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.5rem 0;
  border-bottom: 1px solid #dee2e6;
}

.enrollment-summary-container .summary-item:last-child {
  border-bottom: none;
}

.enrollment-summary-container .summary-item .label {
  font-weight: 600;
  color: #495057;
  flex: 1;
  margin-right: 1rem;
}

.enrollment-summary-container .summary-item .value {
  color: #212529;
  text-align: right;
  flex: 1;
  word-break: break-word;
}

.enrollment-summary-container .summary-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 2px solid #e9f1fa;
}

.enrollment-summary-container .summary-actions .btn {
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Backend Request Display Styles */
.backend-request-container {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
  border: 2px solid #007bff;
}

.backend-request-container .request-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #dee2e6;
}

.backend-request-container .request-header h3 {
  color: #09373f;
  font-family: "Roboto Slab";
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.backend-request-container .request-header h3 i {
  color: #007bff;
  margin-right: 0.5rem;
}

.backend-request-container .request-content {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.backend-request-container .request-method,
.backend-request-container .request-url,
.backend-request-container .request-headers,
.backend-request-container .request-body {
  margin-bottom: 1.5rem;
}

.backend-request-container .method-badge {
  background: #28a745;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.875rem;
}

.backend-request-container code {
  background: #f8f9fa;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  color: #e83e8c;
}

.backend-request-container pre {
  background: #2d3748;
  color: #e2e8f0;
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 1.5;
}

.backend-request-container pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.backend-request-container .request-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 2px solid #dee2e6;
}

.backend-request-container .request-actions .btn {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 768px) {
  .enrollment-summary-container .summary-content {
    grid-template-columns: 1fr;
  }
  
  .enrollment-summary-container .summary-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .enrollment-summary-container .summary-item .value {
    text-align: left;
    margin-top: 0.25rem;
  }
  
  .enrollment-summary-container .summary-actions,
  .backend-request-container .request-actions {
    flex-direction: column;
  }
}

.applicant-card {
  width: 250px;
  max-width: 300px;
  border: none;
  box-shadow: 0px 5px 11.1px 3px rgba(0, 0, 0, 0.05);
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.applicant-card:hover {
  transform: translateY(-2px);
  box-shadow: 0px 8px 20px 5px rgba(0, 0, 0, 0.1);
}

.applicant-card h3 {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  color: #09373f;
  font-size: 20px;
  margin-bottom: 10px;
}

.applicant-card p {
  color: #666;
  font-size: 14px;
  margin-bottom: 0;
}

/* Navigation buttons */
button {
  margin: 0.3rem;
  padding: 0.7rem 1.2rem;
  border: none;
  border-radius: 6px;
  background: #09373f;
  color: #fff;
  cursor: pointer;
}
button:hover {
  background: #ba7a03;
}

/* Form validation styles */
.form-control.is-valid {
  border-color: #28a745;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='m2.3 6.73.94-.94 1.35 1.35 2.3-2.3.94.94L4.59 9.73z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid {
  border-color: #dc3545;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6 2.4 2.4m0-2.4-2.4 2.4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-valid:focus {
  border-color: #28a745;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.form-control.is-invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Enhanced form styling */
.form-group {
  margin-bottom: 1rem;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.5rem;
}

.form-row .form-group {
  flex: 1;
  margin: 0 0.5rem;
  min-width: 200px;
}

.form-text {
  font-size: 0.875rem;
  color: #6c757d;
  margin-top: 0.25rem;
}

/* Progress bar styling */
.progress {
  height: 1.5rem;
  background-color: #e9ecef;
  border-radius: 0.375rem;
  overflow: hidden;
}

.progress-bar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  background-color: #09373f;
  transition: width 0.6s ease;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: capitalize;
}

/* Success Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
  transform: scale(1);
}

.success-icon {
  font-size: 4rem;
  color: #28a745;
  margin-bottom: 1rem;
  animation: bounce 0.6s ease;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #09373f;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 1rem auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.modal-title {
  color: #09373f;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.modal-message {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.redirect-message {
  color: #09373f;
  font-weight: 500;
  margin-top: 1rem;
}

/* Responsive design */
@media (max-width: 768px) {
  .applicant-cards {
    flex-direction: column;
    align-items: center;
  }
  .applicant-card {
    width: 100%;
    max-width: 400px;
  }
  .form-row .form-group {
    min-width: 100%;
    margin: 0 0 1rem 0;
  }
  .modal-content {
    padding: 1.5rem;
    margin: 1rem;
  }
}
