:root {
    --primary-orange: #020180;
    --primary-red: #dc2626;
    --light-orange: #dcdcec;
    --light-red: #fef2f2;
}
/* Dropdown base */

body {
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 50%, #fef2f2 100%);
    min-height: 100vh;
    padding-top: 88px;
}

.registration-container {
    padding: 60px 0;
    background: transparent;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    min-height: calc(100vh - 88px);
    box-sizing: border-box;
}

@media (max-width: 992px) {
  .form-content { padding: 30px; }
  .verification-icon { width: 72px; height: 72px; }
  .form-title { font-size: 22px; }
}

/* Stepper: stack vertically on narrow screens */
@media (max-width: 768px) {
  .d-flex.align-items-center.justify-content-between {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
  }
  .step-line { display: none; }
  .step-indicator { margin-left: 0; margin-right: 0; }
  .form-card { box-shadow: 0 12px 30px rgba(2,2,50,0.08); }
}

/* Code input: scale and wrap on small widths */
.code-input-container {
  gap: 10px;
  flex-wrap: nowrap;
  justify-content: center;
}
@media (max-width: 480px) {
  .code-input-container {
    gap: 8px;
  }
  .code-digit {
    width: 42px;
    height: 52px;
    font-size: 20px;
  }
  .submit-btn { padding: 12px; font-size: 15px; }
}

/* Loader full coverage with safe z-index */
#loader-wrapper {
  z-index: 99999;
  padding: 20px;
  box-sizing: border-box;
}

/* Make resend button layout friendlier */
.resend-container { display:flex; gap:12px; align-items:center; justify-content:center; flex-wrap:wrap; }
.resend-container span { flex: 0 0 auto; }

/* Accessibility: focus visible for inputs */
.code-digit:focus { outline: 3px solid rgba(99,102,241,0.12); outline-offset: 2px; }

/* Small screens: reduce top spacing */
@media (max-width: 576px) {
  body { padding-top: 72px; }
  .form-card { margin-top: 8px; border-radius: 14px; }
  .form-content { padding: 22px; }
  .verification-icon { width: 64px; height: 64px; }
}

    
    html,
    body {
        max-width: 100vw;
        overflow-x: hidden;
    }
    .biglogo {
        display: none;
    }


.step-indicator {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid;
    margin-left: 30px;
}

.step-active {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    color: white;
}

.step-inactive {
    background: white;
    border-color: #d1d5db;
    color: #6b7280;
}

.step-completed {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    color: white;
}

.step-line {
    height: 2px;
    background: #d1d5db;
    flex: 1;
    margin: 0 20px;
    transition: all 0.3s ease;
}

.step-line-completed {
    background: var(--primary-orange);
}

.form-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: none;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    border-radius: 18px;
    overflow: hidden;
    box-sizing: border-box;
}

.btn-primary-custom {
    background: var(--primary-orange);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
    color:#ffffff;
}

.btn-primary-custom:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

.skill-badge {
    background: #f3f4f6;
    color: #374151;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    margin: 4px;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #d1d5db;
}

.skill-badge.active {
    background: var(--primary-orange);
    color: white;
    border-color: var(--primary-orange);
}

.skill-badge:hover {
    background: var(--light-orange);
    color: var(--primary-orange);
    border-color: var(--primary-orange);
}

.skill-badge-selected {
    background: var(--primary-orange);
    color: white;
    border-color: var(--primary-orange);
}

.tesda-section {
    background: var(--light-orange);
    border: 2px solid var(--primary-orange);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.certification-requirement {
    background: white;
    border: 2px solid var(--light-orange);
    border-radius: 8px;
    padding: 1rem;
    margin: 0.5rem 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.certification-requirement:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.1);
}

.certification-requirement.selected {
    border-color: var(--primary-orange);
    background: var(--light-red);
}

/* ---------- Responsive rules copied/adapted from verification.css ---------- */

/* Ensure page content sits below fixed nav */
body { padding-top: 88px; }

/* Make registration container centered and responsive */
.registration-container {
  background: transparent;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  min-height: calc(100vh - 88px);
  box-sizing: border-box;
}

/* Card responsiveness */
.form-card {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  box-sizing: border-box;
}

/* Main form content padding */
.form-content {
  padding: 40px;
  text-align: center;
}

/* Icon/hero inside registration if present */
.registration-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

/* Stepper indicators adjustments (if used) */
.step-indicator {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:600;
  font-size:1.1rem;
}

/* Reduce paddings on medium/smaller screens */
@media (max-width: 992px) {
  .form-content { padding: 30px; }
  .registration-icon { width: 72px; height: 72px; }
  .form-title { font-size: 22px; }
}

/* Stepper: stack vertically on narrow screens */
@media (max-width: 768px) {
  .steps-row, .d-flex.align-items-center.justify-content-between {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
  }
  .step-line { display: none; }
  .step-indicator { margin-left: 0; margin-right: 0; }
  .form-card { box-shadow: 0 12px 30px rgba(2,2,50,0.08); }
}

/* Compact controls / code-input-like blocks */
.code-input-container {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: nowrap;
}
@media (max-width: 480px) {
  .code-input-container { gap: 8px; }
  .code-digit {
    width: 42px;
    height: 52px;
    font-size: 20px;
  }
  .submit-btn { padding: 12px; font-size: 15px; }
}

/* Resend / helper layout */
.resend-container {
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
}
.resend-container span { flex: 0 0 auto; }

/* Accessibility: focus visible for inputs */
input:focus, .code-digit:focus { outline: 3px solid rgba(99,102,241,0.12); outline-offset: 2px; }

/* Small screens: reduce top spacing and shrink cards/icons */
@media (max-width: 576px) {
  body { padding-top: 72px; }
  .form-card { margin-top: 8px; border-radius: 14px; }
  .form-content { padding: 22px; }
  .registration-icon { width: 64px; height: 64px; }
}

/* Very small screens */
@media (max-width: 360px) {
  .form-card { margin: 0.5rem; }
  .card-header .container,
  .card-body { padding-left: 0.75rem; padding-right: 0.75rem; }
}

/* ===== Responsive improvements for registration page ===== */

/* Make form card use full width on smaller screens and improve paddings */
@media (max-width: 1200px) {
  .form-card {
    max-width: 100%;
    margin: 1rem;
  }
  .card-body {
    padding: 1rem;
  }
}

/* Tablet / small laptops */
@media (max-width: 992px) {
  .registration-container {
    padding: 30px 1rem;
  }

  .step-indicator {
    width: 44px;
    height: 44px;
    font-size: 1rem;
    margin-left: 0;
  }

  .step-line {
    margin: 0.5rem 8px;
  }

  /* Make progress stepper stack vertically */
  .form-card .d-flex.align-items-center.justify-content-between {
    flex-direction: row;
    align-items: stretch;
    gap: 12px;
    padding: 0.5rem 1rem;
  }

  /* Each step row: circle left, text right */
  .form-card .d-flex.align-items-center.justify-content-between .text-center {
        display: flex;
        align-items: center;
        gap: 12px;
        text-align: left;
        width: 100%;
        max-width: 100%;
        flex-direction: column;
  }

  /* Position indicator at start of each row and remove extra margin */
  .step-indicator {
    margin-left: 0;
    margin-right: 6px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    font-size: 0.95rem;
    flex: none;
  }

  /* Hide horizontal connector line on stacked layout */
  .step-line {
    display: none;
  }

  .card-header .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* Mobile portrait */
@media (max-width: 768px) {
  h1.display-4 {
    font-size: 1.6rem;
    line-height: 1.1;
  }

 
  .form-card {
    border-radius: 10px;
    overflow: hidden;
  }

  .card-body {
    padding: 1rem;
  }

  .row.mb-4 > .col-md-6 {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .card .form-label {
    font-size: 0.95rem;
  }

  .form-control, .form-select, textarea {
    font-size: 0.95rem;
    padding: 10px 12px;
  }

  .btn-primary-custom, .btn-outline-secondary {
    padding: 10px 16px;
    font-size: 0.95rem;
  }

  .skill-badge {
    padding: 6px 10px;
    font-size: 0.82rem;
  }

  .centered-portrait,
  .content img {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }
}

/* ------------------------------------------------------------------ */
/* Stepper rules (copied from applicant register.css) to ensure layout   */
/* matches the applicant registration stepper exactly.                 */
/* These override any earlier step styles in this file.               */
/* ------------------------------------------------------------------ */
.step-indicator {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 2px solid;
  margin-left: 15px;  
}

.step-active {
  background: var(--primary-orange);
  border-color: var(--primary-orange);
  color: white;
}

.step-inactive {
  background: white;
  border-color: #d1d5db;
  color: #6b7280;
}

.step-completed {
  background: var(--primary-orange);
  border-color: var(--primary-orange);
  color: white;
}

.step-line {
  flex: 0 0 36px;
  height: 3px;
  margin: 0 8px;
  align-self: center;
  background: #d1d5db;
  transition: all 0.3s ease;
}

.step-line-completed {
  background: var(--primary-orange);
}

/* Stack stepper vertically on narrow screens (match applicant CSS) */
@media (max-width: 768px) {
  .d-flex.align-items-center.justify-content-between {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
  }
  .step-line { display: none; }
  .step-indicator { margin-left: 0; margin-right: 0; }
  .form-card { box-shadow: 0 12px 30px rgba(2,2,50,0.08); }
}


/* Small phones */
@media (max-width: 480px) {
  .step-indicator {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
    margin: 0;
  }

  .card-title {
    font-size: 1.05rem;
  }

  .lead {
    font-size: 0.95rem;
  }

  .tesda-section {
    padding: 1rem;
  }

  .skill-badge {
    margin: 3px;
    padding: 6px 8px;
    font-size: 0.78rem;
  }


  /* ensure buttons are full width if necessary */
  .d-flex.justify-content-between .btn {
    min-width: 120px;
  }

  /* adjust progress text spacing */
  .mt-2 small {
    display: block;
    white-space: normal;
  }
}

/* Accessibility / touch hit target improvements */
@media (any-pointer: coarse) {
  .skill-badge, .select-btn, .btn-primary-custom, .employer-btn {
    padding: 12px 14px;
  }
}

/* Utility: ensure long inputs wrap properly */
.form-card .row > .col-md-6 input,
.form-card .row > .col-md-6 select,
.form-card textarea {
  word-break: break-word;
}

/* Keep form centered on very narrow viewports */
@media (max-width: 360px) {
  .form-card {
    margin: 0.5rem;
  }
  .card-header .container,
  .card-body {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}
/* ===== End responsive improvements ===== */

/* Insert / replace with these rules to place steps on the left and keep responsiveness */

/* layout */
.registration-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}

/* left column */
.steps-column {
  position: relative;
}
.steps-inner {
  position: sticky;
  top: 90px; /* keeps steps visible while scrolling */
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 12px;
  background: transparent;
  border-radius: 10px;
}

/* step row: horizontal alignment of circle + labels for clarity */
.step-row {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

/* labels beside indicators */
.step-label small { display: block; color: #6b7280; font-size: 0.92rem; }
.step-label .fw-semibold { color: #0f172a; font-weight: 700; }

/* narrow vertical connector */
.step-line {
  width: 2px;
  height: 5px;
  background: linear-gradient(180deg,#eef2ff,#f3f4f6);
  margin: 0 auto;
  border-radius: 4px;
}

/* indicator sizing */
.step-indicator {
  width: 46px;
  height: 46px;
  min-width:46px;
  border-radius: 50%;
  display: inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  font-size:1rem;
  color:#6b7280;
  background:#fff;
  border:2px solid rgba(209,213,219,0.9);
  box-shadow: 0 6px 18px rgba(11,22,60,0.04);
}
.step-active { background: var(--primary-orange); border-color: var(--primary-orange); color:#fff; transform: translateY(-2px); }
.step-completed { background: var(--primary-orange); border-color: var(--primary-orange); color:#fff; }

/* right column (form) */
.form-column { width:100%; }

/* responsive: collapse steps on small screens to top */
@media (max-width: 992px) {
  .registration-layout {
    grid-template-columns: 1fr;
  }
  .steps-inner {
    position: relative;
    top: 0;
    display: flex;
    flex-direction: row;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 6px;
    -webkit-overflow-scrolling: touch;
  }
  .step-row { flex-direction: column; align-items: center; min-width: 84px; }
  .step-label { text-align: center; }
  .step-line { display: none; }
}

/* extra small screens: compact indicators */
@media (max-width: 480px) {
  .step-indicator { width: 40px; height: 40px; font-size: 0.9rem; }
  .steps-inner { gap: 10px; padding: 8px 6px; }
}

/* small utility to ensure form-card remains full width */
.form-card { width: 100%; box-sizing: border-box; }




/* Very small screens: tighten spacing and hide descriptive text */
@media (max-width: 480px) {
  .card-header .d-flex.align-items-center.justify-content-between { gap: 6px; padding: 6px 4px; }
  .card-header .d-flex.align-items-center.justify-content-between > .text-center { min-width: 48px; padding: 4px; max-width: 120px;}
  .card-header .d-flex.align-items-center.justify-content-between .text-center > small,
  .card-header .d-flex.align-items-center.justify-content-between .text-center > .step-label {
    display: none; /* hide descriptions to save horizontal space */
  }
  .step-indicator { width: 36px; height: 36px; min-width: 36px; min-height: 36px; font-size: 0.9rem; }
  .card-header .step-line { display: none; }
}

/* If content still overflows, allow horizontal scroll (keyboard/touchable) */
.card-header .d-flex.align-items-center.justify-content-between[style*="overflow"] { overflow-x: auto; }
.card-header .d-flex.align-items-center.justify-content-between::-webkit-scrollbar { height: 8px; }
.card-header .d-flex.align-items-center.justify-content-between::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.08); border-radius: 6px; }



/* Button base */
.prev-btn, .next-btn {
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  min-width: 110px;
  text-align: center;
  box-sizing: border-box;
}

/* Visual styles */
.prev-btn {
  background: transparent;
  color: #0f172a;
  border-color: rgba(15,23,42,0.06);
}
.next-btn {
  background: #0a2d82;
  color: #fff;
  border-color: #0a2d82;
}

/* Disabled state */
.prev-btn[disabled], .next-btn[disabled] {
  opacity: 0.55;
  pointer-events: none;
}

/* Mobile: fixed bottom control bar with large touch targets */
@media (max-width: 576px) {

  .prev-btn, .next-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 12px 10px;
    border-radius: 10px;
    font-size: 15px;
  }
  .form-card { padding-bottom: 84px; /* room for fixed controls */ }
}

/* Small screens: make buttons fill available width in inline layout */
@media (max-width: 768px) {
  .prev-btn { flex: 0 0 auto; }
  .next-btn { flex: 0 0 auto; }
}

