@charset "UTF-8";

/* ========================================
   ROOT & GLOBAL VARIABLES
   ======================================== */
:root {
  --yellow: #F6C12A;
  --gold:   #C7A45A;
  --black:  #0E0E0E;
  --white:  #ffffff;
  --grey:   #cfcfcf;
  --light:  #fafafa;
  --cream:  #FFFDF2;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* Light page specifically for registration */
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #F3F4F6;
  color: #111827;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ========================================
   LAYOUT UTILITIES
   ======================================== */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.text-center {
  text-align: center;
}

/* ========================================
   HEADER & NAVIGATION (same as site)
   ======================================== */
.site-header {
  background: var(--white);
  color: var(--black);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 4px solid #FFB84D;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--black);
  font-weight: 700;
  letter-spacing: .5px;
}

.brand__logo {
  width: 36px;
  height: 36px;
}

.brand__text {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  letter-spacing: .8px;
}

.nav__list {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav__list a {
  color: var(--black);
  font-weight: 500;
  transition: color .2s;
}

.nav__list a:hover {
  color: var(--yellow);
}

.nav-login {
  padding: 6px 14px;
  border: 2px solid var(--yellow);
  border-radius: 6px;
  font-weight: 600;
  transition: .2s;
}

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--black);
  display: block;
}

/* Portal dropdown (My Portal → dashboards) */
.nav-portal {
  position: relative;
}

.nav-portal-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-portal-caret {
  font-size: .75rem;
}

.nav-dropdown {
  position: absolute;
  top: 110%;
  right: 0;
  background: var(--white);
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 8px 0;
  min-width: 160px;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
  list-style: none;
  display: none;
  z-index: 1200;
}

.nav-dropdown a {
  display: block;
  padding: 8px 14px;
  font-size: .9rem;
  white-space: nowrap;
}

.nav-dropdown a:hover {
  background: #f5f5f5;
  color: var(--yellow);
}

.nav-portal:hover .nav-dropdown,
.nav-portal.open .nav-dropdown {
  display: block;
}

/* ========================================
   REGISTRATION PAGE LAYOUT (wizard)
   ======================================== */

.candidate-registration {
  max-width: 1200px;
  margin: 2rem auto 3rem;
  padding: 0 1rem;
}

.candidate-registration h1 {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.reg-intro {
  font-size: 0.95rem;
  color: #4B5563;
  margin-bottom: 1.5rem;
}

/* Layout: sidebar + content */
.reg-layout {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
}

.reg-sidebar {
  flex: 0 0 240px;
  position: sticky;
  top: 90px;
  align-self: flex-start;
}

.reg-sidebar-card {
  background: #FFFFFF;
  border-radius: 1rem;
  border: 1px solid #E5E7EB;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.reg-sidebar-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.reg-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.reg-step {
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  color: #6B7280;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  transition: background 0.15s ease, border-color 0.15s ease,
              color 0.15s ease, transform 0.1s ease, opacity 0.1s ease;
}

.reg-step-index {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  background: #E5E7EB;
  color: #374151;
}

.reg-step-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reg-step.locked {
  opacity: 0.5;
  cursor: not-allowed;
}

.reg-step.active {
  background: #F6C12A;
  color: #111827;
  border-color: #D97706;
  transform: translateX(1px);
}

.reg-step.active .reg-step-index {
  background: #111827;
  color: #F9FAFB;
}

.reg-step.completed {
  background: #ECFDF5;
  color: #065F46;
  border-color: #10B981;
}

.reg-step.completed .reg-step-index {
  background: #10B981;
  color: #ECFDF5;
}

/* Right content + card */
.reg-content {
  flex: 1 1 auto;
}

.reg-card {
  background: #FFFFFF;
  border-radius: 1rem;
  border: 1px solid #E5E7EB;
  padding: 1.5rem 1.75rem 1.75rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.03);
}

/* Progress bar */
.reg-progress-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #E5E7EB;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.reg-progress-bar-fill {
  height: 100%;
  width: 0;
  background: #F6C12A;
  border-radius: 999px;
  transition: width 0.25s ease;
}

.reg-progress-label {
  font-size: 0.8rem;
  color: #6B7280;
  margin-bottom: 1.1rem;
}

/* Sections (one at a time) */
.form-section {
  border: none;
  padding: 0;
  margin: 0;
  display: none;
}

.form-section.active {
  display: block;
}

.form-section legend {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  padding: 0;
}

.form-section > p {
  font-size: 0.9rem;
  color: #4B5563;
  margin-bottom: 0.75rem;
}

/* Inputs, selects, textareas – make sure they’re white and clear */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.form-group,
.form-group-inline {
  margin-bottom: 0.9rem;
}

.form-group-full {
  grid-column: 1 / -1;
}

label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #111827;
  display: block;
  margin-bottom: 0.25rem;
}

input,
select,
textarea {
  width: 100%;
  background: #FFFFFF;
  border-radius: 0.6rem;
  border: 1px solid #D1D5DB;
  padding: 0.6rem 0.65rem;
  font-size: 0.9rem;
  color: #111827;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
              background-color 0.15s ease;
}

input::placeholder,
textarea::placeholder {
  color: #9CA3AF;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #F6C12A;
  box-shadow: 0 0 0 1px rgba(246, 193, 42, 0.25);
  background-color: #FFFFFF;
}

textarea {
  resize: vertical;
}

/* inline radios / checkboxes */
.form-group-inline span {
  display: block;
  margin-bottom: 0.35rem;
}

.form-group-inline label {
  display: inline-flex;
  align-items: center;
  margin-right: 1.1rem;
  font-weight: 500;
}

.form-group-inline input[type="radio"],
.form-group-inline input[type="checkbox"] {
  width: auto;
  margin-right: 0.35rem;
}

/* Error styles */
.bl-error {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: #DC2626;
}

.bl-has-error input,
.bl-has-error select,
.bl-has-error textarea {
  border-color: #DC2626 !important;
  background: #FEF2F2 !important;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.18);
}

.bl-has-error .form-group-inline span {
  color: #DC2626;
}

/* Footer nav buttons */
.reg-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.reg-footer-info {
  font-size: 0.8rem;
  color: #6B7280;
}

.reg-footer-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Buttons (wizard) */
.btn-pill {
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-ghost {
  background: #E5E7EB;
  color: #111827;
}

.btn-primary {
  background: #111827;
  color: #FFFFFF;
}

.btn-primary:hover,
.btn-ghost:hover {
  filter: brightness(1.05);
}

/* Hide any old prev/next buttons if they still exist in markup */
#prevStep,
#nextStep {
  display: none !important;
}

/* ========================================
   FOOTER (same as site)
   ======================================== */
.site-footer {
  background: var(--black);
  color: var(--grey);
  padding: 24px 0;
  font-size: .9rem;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer a {
  color: var(--grey);
  transition: color .2s;
}

.site-footer a:hover {
  color: var(--yellow);
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */
@media (max-width: 900px) {
  .reg-layout {
    flex-direction: column;
  }

  .reg-sidebar {
    position: static;
    width: 100%;
  }

  .reg-sidebar-card {
    margin-bottom: 0.75rem;
  }
}

@media (max-width: 820px) {
  /* Mobile nav */
  .nav__toggle {
    display: flex;
  }

  .nav__list {
    position: absolute;
    top: 64px;
    right: 20px;
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 16px 20px;
    flex-direction: column;
    gap: 12px;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
  }

  .nav__list.open {
    display: flex;
  }
}

/* ========================================
   PAGE LOCK OVERLAY (same look)
   ======================================== */

#page-lock-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

#page-lock-modal {
  background: white;
  padding: 30px 35px;
  border-radius: 12px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  text-align: center;
  animation: fadeIn 0.3s ease;
}

#page-lock-modal h2 {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 700;
  color: #222;
}

#page-lock-modal p {
  font-size: 16px;
  color: #555;
}

#page-lock-modal input[type="password"] {
  margin-top: 14px;
  margin-bottom: 6px;
}

#page-lock-modal button {
  margin-top: 10px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  background: #f6c12a;
  color: #222;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

#page-lock-modal button:hover {
  background: #e4af1f;
}

#maint-error {
  font-size: 0.85rem;
  color: #b91c1c;
  margin-top: 4px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

