/* PPDB Custom Form Styles - Clean & Minimal Version */
.sdbu-ppdb-wrapper {
  font-family: 'Poppins', sans-serif;
  color: #334155;
  max-width: 800px;
  margin: 30px auto;
  padding: 0 16px;
}

/* Card Container - Sleek & Subtle */
.sdbu-ppdb-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 10px 25px -5px rgba(0, 0, 0, 0.02);
  border: 1px solid #e2e8f0;
  padding: 32px;
  transition: all 0.3s ease;
}

.text-center {
  text-align: center;
}

/* Step 1: Verification Card */
#sdbu-ppdb-code-card {
  max-width: 440px;
  margin: 50px auto;
  border-top: 4px solid #198754; /* Clean top highlight */
}

.card-brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(25, 135, 84, 0.06);
  color: #198754;
  font-size: 24px;
  margin-bottom: 20px;
}

.sdbu-ppdb-card h2 {
  font-size: 20px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.sdbu-ppdb-card p {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 20px;
}

.sdbu-code-input-wrap {
  position: relative;
  text-align: left;
}

/* Form inputs & styling */
.sdbu-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 13.5px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background-color: #ffffff;
  color: #1e293b;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.sdbu-input:focus {
  border-color: #198754;
  box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.1);
}

textarea.sdbu-input {
  resize: vertical;
}

/* Form Group layout */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 20px;
  margin-bottom: 24px;
}

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

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  margin-bottom: 6px;
}

.form-group label .required {
  color: #ef4444;
  margin-left: 2px;
}

.form-group-row {
  display: flex;
  gap: 12px;
}

.form-group-row .col-6 {
  flex: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  gap: 6px;
}

.btn--primary {
  background-color: #198754;
  color: #ffffff;
}

.btn--primary:hover {
  background-color: #157347;
  transform: translateY(-1px);
}

.btn--accent {
  background-color: #198754; /* Changed to green for a cleaner look */
  color: #ffffff;
}

.btn--accent:hover {
  background-color: #157347;
  transform: translateY(-1px);
}

.btn--outline {
  background-color: transparent;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.btn--outline:hover {
  background-color: #f8fafc;
  color: #1e293b;
  border-color: #94a3b8;
}

.btn--secondary {
  background-color: #475569;
  color: #ffffff;
}

.btn--secondary:hover {
  background-color: #334155;
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn-loader {
  animation: sdbu-spin 1s linear infinite;
}

@keyframes sdbu-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Errors & Validation */
.error-msg {
  color: #ef4444;
  font-size: 12.5px;
  margin-top: 6px;
  font-weight: 500;
}

/* Step Progress Indicator */
.sdbu-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.sdbu-form-header h2 {
  margin-bottom: 0;
  font-size: 18px;
}

.code-indicator {
  font-size: 12.5px;
  color: #64748b;
}

.code-indicator code {
  background: #f1f5f9;
  padding: 3px 6px;
  border-radius: 4px;
  font-weight: 600;
  color: #198754;
}

.sdbu-steps-indicator {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 30px;
}

.sdbu-steps-indicator::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #f1f5f9;
  z-index: 1;
}

.step-indicator {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 25%;
}

.step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 2px solid #e2e8f0;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s ease;
}

.step-label {
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
  margin-top: 6px;
  transition: all 0.3s ease;
}

.step-indicator.active .step-num {
  border-color: #198754;
  background-color: #198754;
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(25, 135, 84, 0.1);
}

.step-indicator.active .step-label {
  color: #198754;
  font-weight: 600;
}

.step-indicator.completed .step-num {
  border-color: #198754;
  background-color: #ffffff;
  color: #198754;
}

/* Tabs Toggle */
.form-tab {
  display: none;
}

.form-tab.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-title {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-left: 3px solid #198754;
  padding-left: 10px;
}

.tab-title i {
  color: #198754;
  font-size: 14px;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #e2e8f0;
  padding-top: 20px;
  margin-top: 24px;
}

.form-actions:only-child,
.form-tab:first-of-type .form-actions {
  justify-content: flex-end;
}

/* Success Card */
#sdbu-ppdb-success-card {
  max-width: 550px;
  margin: 40px auto;
  border-top: 4px solid #198754;
}

.success-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
  margin-top: 10px;
}

.success-icon-circle {
  width: 64px;
  height: 64px;
  background: rgba(25, 135, 84, 0.08);
  color: #198754;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  animation: success-pulse 2s infinite;
}

@keyframes success-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.4);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(25, 135, 84, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(25, 135, 84, 0);
  }
}

.sub-text {
  font-size: 13.5px;
  background: #f8fafc;
  padding: 16px 20px;
  border-radius: 8px;
  border-left: 3.5px solid #198754;
  color: #475569;
  line-height: 1.6;
  text-align: left;
  margin: 20px 0 28px 0;
}

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

@media (max-width: 480px) {
  .success-actions {
    flex-direction: column;
    gap: 8px;
  }
  .success-actions .btn {
    width: 100%;
  }
}

/* Responsive grid rules */
@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .form-group.full-width {
    grid-column: span 1;
  }
  
  .sdbu-steps-indicator {
    margin-bottom: 20px;
  }
  
  .step-label {
    display: none;
  }
  
  .step-indicator {
    width: auto;
    flex: 1;
  }
  
  .sdbu-ppdb-card {
    padding: 20px;
  }
  
  .sdbu-form-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Printing styles optimization */
@media print {
  body * {
    visibility: hidden;
  }
  .sdbu-ppdb-wrapper, .sdbu-ppdb-wrapper * {
    visibility: visible;
  }
  .sdbu-ppdb-wrapper {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .btn, .sdbu-steps-indicator, .sdbu-form-header .code-indicator {
    display: none !important;
  }
}

/* Invalid Input Style & Feedback Messages */
.sdbu-input.is-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.invalid-feedback {
  color: #ef4444;
  font-size: 11.5px;
  font-weight: 500;
  margin-top: 4px;
  display: block;
  text-align: left;
  animation: sdbu-slide-down 0.15s ease-out;
}

@keyframes sdbu-slide-down {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
