/* TPImain/apply/assets/css/register.css */

/* Background & Main Layout */
.register-main {
  background: linear-gradient(135deg, #f0f4f8, #d9e2ec);
  padding: 80px 20px;
  min-height: calc(100vh - 200px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.register-container {
  width: 100%;
  max-width: 800px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  padding: 50px;
  position: relative;
  overflow: hidden;
}

/* Header */
.form-header {
  text-align: center;
  margin-bottom: 40px;
}
.form-header h2 {
  color: var(--primary-navy);
  font-size: 2.2rem;
  margin-bottom: 10px;
  font-weight: 700;
}
.form-header p {
  color: #666;
  font-size: 1rem;
}

/* Modern Stepper */
.stepper-wrapper {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
}
.stepper-wrapper::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #e2e8f0;
  z-index: 1;
}
.stepper-progress {
  position: absolute;
  top: 15px;
  left: 0;
  height: 3px;
  background: var(--primary-red);
  z-index: 2;
  transition: width 0.4s ease;
  width: 0%;
}
.step-item {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 30px;
}
.step-counter {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: 3px solid var(--white);
}
.step-item.active .step-counter {
  background: var(--primary-red);
  color: var(--white);
  box-shadow: 0 0 0 4px rgba(230, 43, 38, 0.2);
}
.step-item.completed .step-counter {
  background: var(--primary-navy);
  color: var(--white);
}

/* Form Steps & Transitions */
.form-step {
  display: none;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.4s ease;
}
.form-step.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
  animation: slideInRight 0.4s forwards;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideOutLeft {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-30px); }
}

.form-step h3 {
  color: var(--primary-navy);
  margin-bottom: 25px;
  font-size: 1.4rem;
  font-weight: 600;
}

/* Floating Labels Layout */
.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}
@media (max-width: 600px) {
  .form-row { flex-direction: column; gap: 0; }
  .register-container { padding: 30px 20px; }
  .stepper-wrapper { display: none; /* Hide complex stepper on very small screens, rely on text indicator */ }
}

/* Mobile Stepper text */
.mobile-step-indicator {
  display: none;
  text-align: center;
  font-weight: 600;
  color: var(--primary-navy);
  margin-bottom: 20px;
}
@media (max-width: 600px) {
  .mobile-step-indicator { display: block; }
}

/* Static Labels CSS Logic (Restyled to match Subject/Grade) */
.floating-group {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-bottom: 25px;
}
.floating-group label {
  order: -1;
  margin-bottom: 8px;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.floating-group input,
.floating-group select,
.floating-group textarea {
  width: 100%;
  padding: 14px 15px;
  font-size: 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  color: var(--dark-text);
  box-sizing: border-box;
}
.floating-group select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23183153%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat, repeat;
  background-position: right .7em top 50%, 0 0;
  background-size: .65em auto, 100%;
}
.floating-group textarea {
  resize: vertical;
  min-height: 80px;
}
.floating-group input:focus,
.floating-group select:focus,
.floating-group textarea:focus {
  outline: none;
  border-color: var(--primary-navy);
  background: var(--white);
  box-shadow: 0 4px 12px rgba(24, 49, 83, 0.08);
}

.req {
  color: var(--primary-red);
}

/* Custom File Upload Dropzone */
.file-upload-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}
.file-upload-dropzone:hover, .file-upload-dropzone.dragover {
  background: #f1f5f9;
  border-color: var(--primary-navy);
}
.file-upload-dropzone i {
  font-size: 3rem;
  color: #94a3b8;
  margin-bottom: 15px;
}
.file-upload-dropzone p {
  color: #475569;
  margin-bottom: 5px;
}
.file-upload-dropzone input[type="file"] {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
}
.file-preview-container {
  margin-top: 20px;
  display: none;
  text-align: center;
}
.file-preview-container img {
  max-width: 150px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  display: inline-block;
}

/* Document Upload New Options UI */
.upload-options-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 20px;
  text-align: center;
}
.upload-option-btn {
  flex: 1;
  padding: 30px 10px;
  border-radius: 12px;
  border: 2px dashed #cbd5e1;
  color: var(--primary-navy) !important;
  background: #f8fafc !important;
  transition: all 0.3s ease;
}
.upload-option-btn:hover {
  background: #f1f5f9 !important;
  border-color: var(--primary-navy) !important;
}

@media (max-width: 600px) {
  .upload-options-container {
    flex-direction: column;
    gap: 15px;
  }
}

/* Form Actions */
.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}
.btn {
  padding: 12px 25px;
  font-size: 1rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}
.form-actions .next-btn { margin-left: auto; }
.btn--primary {
  background: var(--primary-navy);
  color: white;
}
.btn--primary:hover {
  background: #0f213a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 49, 83, 0.2);
}
.btn--outline {
  background: white;
  border: 1px solid #cbd5e1;
  color: #475569;
}
.btn--outline:hover {
  background: #f8fafc;
  color: var(--dark-text);
}

/* Review Summary Box */
.review-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
}
.review-section { margin-bottom: 25px; }
.review-section:last-child { margin-bottom: 0; }
.review-section h4 {
  color: var(--primary-navy);
  font-size: 1.1rem;
  margin-bottom: 15px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 8px;
}
.review-item {
  display: flex;
  margin-bottom: 10px;
  font-size: 0.95rem;
}
.review-item .label {
  width: 160px;
  font-weight: 600;
  color: #64748b;
}
.review-item .value {
  color: var(--dark-text);
  font-weight: 500;
  flex: 1;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  background: #f1f5f9;
  border-radius: 8px;
}
.checkbox-group input {
  margin-top: 4px;
  transform: scale(1.2);
}
.checkbox-group label {
  font-size: 0.95rem;
  color: #475569;
}
