/* Dropdown base */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  padding: 10px 0;
  min-width: 160px;
  z-index: 9999; /* Important! */
}

/* Show when active */
.dropdown.active .dropdown-menu {
  display: block;
}

/* Adjust dropdown inside mobile nav overlay */
@media (max-width: 992px) {
  .nav-links.active .dropdown-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 260px;
    background: white;
    border-radius: 10px;
    padding: 15px 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    display: none;
    z-index: 99999;
  }
  

  .dropdown-menu a {
    display: hide;
    text-align: center;
    padding: 10px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
  }

  .dropdown-menu a:hover {
    background: #f1f1f1;
  }
}

/* Loader Styles */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#loader-content {
    text-align: center;
    color: white;
}

#loader-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    border-radius: 20px;
}

#loader {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

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

#loader-text {
    font-size: 16px;
    font-weight: 500;
}

/* Main Container */
.registration-container {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 500px;
    position: relative;
}






/* Form Content */
.form-content {
    padding: 40px;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.form-subtitle {
    color: #64748b;
    font-size: 16px;
}

/* Form Inputs */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    transition: color 0.3s ease;
}

.form-input:focus + .input-icon {
    color: #667eea;
}

.form-input.with-icon {
    padding-left: 50px;
}

/* Password Strength */
.password-feedback {
    margin-top: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.password-feedback.valid {
    color: #10b981;
}

.password-feedback.invalid {
    color: #ef4444;
}

.strength-indicator {
    flex: 1;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-weak {
    background: #ef4444;
    width: 25%;
}
.strength-fair {
    background: #f59e0b;
    width: 50%;
}
.strength-good {
    background: #3b82f6;
    width: 75%;
}
.strength-strong {
    background: #10b981;
    width: 100%;
}

/* Checkbox */
.checkbox-wrapper {
    display: flex;
    align-items: start;
    gap: 12px;
    margin: 25px 0;
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-checkbox.checked {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
}

.custom-checkbox.checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.checkbox-label {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

.checkbox-label a {
    color: #667eea;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 16px;
    background:var(--primary-orange);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Links */
.form-links {
    text-align: center;
    font-size: 14px;
    margin-bottom: 50px;
}

.form-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.form-links a:hover {
    text-decoration: underline;
}

/* Alerts */
.alert {
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert ul {
    margin: 0;
    padding-left: 20px;
}

/* Responsive */
@media (max-width: 576px) {
    .registration-container {
        margin: 10px;
    }

    .form-content {
        padding: 30px 25px;
    }

    .progress-container {
        padding: 20px;
    }

    .step-labels {
        font-size: 10px;
    }

    .step {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
}

:root {
    --primary-orange: #020180;
    --primary-red: #dc2626;
    --light-orange: #dcdcec;
    --light-red: #fef2f2;
}

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

.registration-container {
    padding: 60px 0;
}

.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);
}

.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;
}

.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);
}

@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; }
}


