/* ITI MIS Registration Styles - Pixel Perfect Match */
:root {
    --primary: #1B6B3A;
    --primary-dark: #145a2f;
    --primary-light: #e8f5ed;
    --accent: #E8913A;
    --accent-light: #fef3e5;
    --blue: #1B4B8E;
    --blue-light: #e8eef8;
    --danger: #D32F2F;
    --danger-light: #fdecea;
    --success: #2E7D32;
    --success-light: #e8f5e9;
    --text: #1a1a1a;
    --text-mid: #555;
    --text-light: #888;
    --border: #ddd;
    --bg: #f5f6f8;
    --white: #fff;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 24px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
}

body {
    font-family: 'Noto Sans', 'Segoe UI', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.logout-btn {
    background: var(--danger);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #c9302c;
    transform: translateY(-1px);
}

/* Login Tabs */
.login-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.login-tab {
    flex: 1;
    padding: 12px 16px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-mid);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.login-tab:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.login-tab.active {
    border-bottom-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
    font-weight: 600;
}

.login-form {
    display: none;
}

.login-form.active {
    display: block;
}

/* User Type Selection */
.user-type-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.user-type-option {
    position: relative;
}

.user-type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.user-type-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--white);
    min-width: 100px;
    text-align: center;
}

.user-type-option label i {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--text-mid);
    transition: color 0.3s ease;
}

.user-type-option label span {
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    transition: color 0.3s ease;
}

.user-type-option input[type="radio"]:checked + label {
    border-color: var(--primary);
    background: var(--primary-light);
}

.user-type-option input[type="radio"]:checked + label i,
.user-type-option input[type="radio"]:checked + label span {
    color: var(--primary);
}

.user-type-option.selected label {
    border-color: var(--primary);
    background: var(--primary-light);
}

.user-type-option.selected label i,
.user-type-option.selected label span {
    color: var(--primary);
}

/* External User Sub-type Selection */
.external-user-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.external-option {
    position: relative;
}

.external-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.external-option label {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--white);
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.external-option label::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid #cbd5e1;
    border-radius: 3px;
    margin-right: 10px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.external-option input[type="checkbox"]:checked + label {
    border-color: var(--primary);
    background: var(--primary-light);
}

.external-option input[type="checkbox"]:checked + label::before {
    background: var(--primary);
    border-color: var(--primary);
    position: relative;
}

.external-option input[type="checkbox"]:checked + label::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
    font-weight: bold;
}

.external-option.selected label {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

/* Government Top Bar */
.gov-bar {
    background: linear-gradient(135deg, #1a2a4a 0%, #2a3a5a 100%);
    padding: 6px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    border-bottom: 3px solid var(--accent);
}

.gov-bar .logo-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gov-bar .gov-text {
    line-height: 1.3;
}

.gov-bar .gov-text .t1 {
    font-weight: 600;
    font-size: 11.5px;
}

.gov-bar .gov-text .t2 {
    font-size: 10px;
    opacity: 0.75;
}

.gov-bar .right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.gov-bar a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.gov-bar select {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
}

/* Main Header */
.main-header {
    background: var(--primary);
    padding: 10px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: white;
}

.main-header .brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.main-header .brand-text h1 {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin: 0;
}

.main-header .brand-text p {
    font-size: 12px;
    opacity: 0.85;
    font-weight: 400;
    margin: 0;
}

.main-header .header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.header-btn .dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    padding: 5px 12px 5px 6px;
    border-radius: 24px;
    cursor: pointer;
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

.user-pill .uname {
    font-size: 13px;
    font-weight: 500;
}

/* User Dropdown */
.user-pill-wrapper {
    position: relative;
}
.user-pill-wrapper .pill-arrow {
    transition: transform 0.2s;
}
.user-pill-wrapper.open .pill-arrow {
    transform: rotate(180deg);
}
.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 240px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
    z-index: 1000;
    overflow: hidden;
    animation: dropdownFade 0.15s ease;
}
.user-pill-wrapper.open .user-dropdown {
    display: block;
}
@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #f8f9fa;
}
.user-dropdown-header .user-avatar {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: #fff;
    font-size: 15px;
}
.udd-name {
    font-weight: 600;
    font-size: 14px;
    color: #1a1a2e;
}
.udd-email {
    font-size: 12px;
    color: #666;
    margin-top: 1px;
}
.user-dropdown-divider {
    height: 1px;
    background: #e9ecef;
}
.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
}
.user-dropdown-item:hover {
    background: #f0f7f0;
}
.user-dropdown-item i {
    width: 16px;
    text-align: center;
    color: #666;
}
.user-dropdown-item.logout {
    color: var(--danger);
}
.user-dropdown-item.logout i {
    color: var(--danger);
}
.user-dropdown-item.logout:hover {
    background: #fff5f5;
}

/* ══════════════════════════════════════════════════════════════
   LOGIN PAGE V2
   ══════════════════════════════════════════════════════════════ */
.login-page {
    min-height: calc(100vh - 100px);
    background: linear-gradient(135deg, #1a3a3a 0%, #2d1b4e 50%, #3a1a3a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    position: relative;
    overflow: hidden;
}
.login-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    pointer-events: none;
}
.login-blob-1 {
    width: 400px; height: 400px;
    background: #2dd4bf;
    top: -100px; left: -100px;
}
.login-blob-2 {
    width: 350px; height: 350px;
    background: #a78bfa;
    bottom: -80px; right: -80px;
}
.login-blob-3 {
    width: 250px; height: 250px;
    background: #f472b6;
    top: 40%; left: 60%;
}

/* Login Card */
.login-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.25);
    width: 100%;
    max-width: 520px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}
.lc-header {
    text-align: center;
    padding: 28px 24px 18px;
    background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
    border-bottom: 1px solid #eee;
}
.lc-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 8px;
}
.lc-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 4px;
}
.lc-header p {
    font-size: 13px;
    color: #666;
    margin: 0;
}
.lc-body {
    padding: 24px 28px;
}

/* User Type Cards */
.login-utype-row {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}
.login-utype-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 6px 10px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
    text-align: center;
}
.login-utype-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.login-utype-card span {
    font-size: 11px;
    font-weight: 600;
    color: #444;
}
.login-utype-card:hover {
    border-color: #a7d7c5;
    background: #f0faf5;
}
.login-utype-card.active {
    border-color: var(--primary);
    background: var(--primary-light);
}
.login-utype-card.active span {
    color: var(--primary);
}

/* Colored avatar circles */
.luc-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.luc-pink  { background: #fce4ec; color: #c2185b; }
.luc-teal  { background: #e0f2f1; color: #00897b; }
.luc-blue  { background: #e3f2fd; color: #1565c0; }
.luc-orange{ background: #fff3e0; color: #e65100; }

/* Info Banner */
.login-info-banner {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px;
    background: #f8f9fa;
    border-left: 3px solid #9ca3af;
    border-radius: 0 8px 8px 0;
    font-size: 12px;
    color: #555;
    margin-bottom: 18px;
    line-height: 1.5;
}
.login-info-banner i {
    color: #9ca3af;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Sub-type Pills */
.login-subtype-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.login-subtype-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}
.login-subtype-pill input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.login-subtype-pill i {
    font-size: 12px;
    color: #888;
}
.login-subtype-pill:hover {
    border-color: #a7d7c5;
}
.login-subtype-pill.active {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}
.login-subtype-pill.active i {
    color: var(--primary);
}

/* Field Label */
.login-field-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    margin-top: 14px;
}
.login-field-label .req {
    color: var(--danger);
}

/* Input Group with icon */
.login-input-group {
    display: flex;
    align-items: center;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    padding: 0 14px;
    transition: border-color 0.2s;
    margin-bottom: 4px;
}
.login-input-group:focus-within {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(27,107,58,0.08);
}
.login-input-group > i {
    color: #9ca3af;
    font-size: 15px;
    flex-shrink: 0;
}
.login-input-group input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 13px 10px;
    font-size: 14px;
    outline: none;
    font-family: inherit;
}
.login-input-group input::placeholder {
    color: #aaa;
}
.login-eye-toggle {
    cursor: pointer;
    color: #9ca3af !important;
    font-size: 14px !important;
    margin-left: 4px;
}
.login-eye-toggle:hover {
    color: #666 !important;
}

/* CAPTCHA Box */
.login-captcha-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1a1a2e;
    border-radius: 12px;
    padding: 12px 18px;
    margin-top: 16px;
}
.lc-captcha-challenge {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 3px;
    min-width: 90px;
    text-align: center;
    padding: 4px 12px;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
}
.lc-captcha-input {
    flex: 1;
    border: 2px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    outline: none;
    font-family: inherit;
}
.lc-captcha-input::placeholder {
    color: rgba(255,255,255,0.35);
}
.lc-captcha-input:focus {
    border-color: rgba(255,255,255,0.4);
}
.lc-captcha-refresh {
    color: rgba(255,255,255,0.5);
    font-size: 16px;
    cursor: pointer;
    transition: color 0.2s;
}
.lc-captcha-refresh:hover {
    color: #fff;
}

/* Remember + Forgot row */
.login-remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    margin-bottom: 4px;
}
.login-remember {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
}
.login-remember input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--primary);
}
.login-forgot {
    font-size: 13px;
    color: #7c3aed;
    text-decoration: none;
    font-weight: 500;
}
.login-forgot:hover {
    text-decoration: underline;
}

/* Login Button */
.login-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #8b5cf6 0%, #a855a0 50%, #be4b7c 100%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    transition: opacity 0.2s, transform 0.15s;
    font-family: inherit;
}
.login-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

/* Error Alert */
.login-error-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #fff5f5;
    border: 1px solid #feb2b2;
    border-radius: 8px;
    color: #c0392b;
    font-size: 13px;
    margin-bottom: 10px;
}

/* Card Footer */
.lc-footer {
    text-align: center;
    padding: 18px 24px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}
.lc-footer p {
    font-size: 11px;
    color: #888;
    margin: 0 0 4px;
}
.lc-footer-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 11px;
    margin-bottom: 4px;
}
.lc-footer-links a {
    color: #555;
    text-decoration: none;
}
.lc-footer-links a:hover {
    color: var(--primary);
    text-decoration: underline;
}
.lc-footer-links span {
    color: #ccc;
}
.lc-footer-powered {
    font-size: 10px !important;
    color: #aaa !important;
}

/* Screen Tabs */
.screen-tabs {
    background: var(--primary-dark);
    display: flex;
    padding: 0 20px;
}

.screen-tab {
    padding: 10px 18px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.screen-tab.active {
    color: white;
    border-bottom-color: white;
    font-weight: 600;
}

/* Panels */
.panel {
    display: none;
}

.panel.active {
    display: block;
}

/* Registration Container */
.reg-container {
    padding: 30px 20px;
    background: linear-gradient(170deg, var(--primary-light) 0%, var(--bg) 40%);
    min-height: calc(100vh - 120px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.reg-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 580px;
    overflow: hidden;
}

.reg-card-header {
    background: var(--primary);
    color: white;
    padding: 24px 32px;
    text-align: center;
}

.reg-card-header h2 {
    font-size: 22px;
    margin-bottom: 4px;
}

.reg-card-header p {
    font-size: 14px;
    opacity: 0.85;
}

.reg-card-header .step-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    margin-top: 10px;
}

/* Steps */
.reg-body {
    padding: 28px 32px;
}

.reg-step {
    display: none;
}

.reg-step.active {
    display: block;
}

.step-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-title .num {
    width: 34px;
    height: 34px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-subtitle {
    font-size: 14px;
    color: var(--text-mid);
    margin-bottom: 24px;
    padding-left: 44px;
}

/* Progress Dots */
.progress-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.pdot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    transition: all 0.3s;
}

.pdot.done {
    background: var(--success);
}

.pdot.current {
    background: var(--accent);
    width: 32px;
    border-radius: 6px;
}

/* Form Groups */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.form-group label .req {
    color: var(--danger);
    margin-left: 2px;
}

.form-group label .optional {
    color: var(--text-light);
    font-weight: 400;
    font-size: 13px;
    margin-left: 4px;
}

.form-group .hint {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s;
    background: white;
    outline: none;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27, 107, 58, 0.1);
}

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

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

/* Option Group */
.option-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.option-card {
    flex: 1;
    min-width: 100px;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
    background: white;
}

.option-card:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.option-card.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.option-card i {
    display: block;
    font-size: 22px;
    margin-bottom: 4px;
    color: var(--primary);
}

/* Buttons */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    min-width: 140px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(27, 107, 58, 0.3);
}

.btn-outline {
    background: white;
    color: var(--text-mid);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 18px;
    border-radius: var(--radius);
}

.btn-block {
    width: 100%;
}

.btn-row {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn-row .btn {
    flex: 1;
}

/* OTP Section */
.otp-section {
    background: var(--accent-light);
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}

.otp-section .icon {
    font-size: 40px;
    color: var(--accent);
    margin-bottom: 8px;
}

.otp-boxes {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 16px;
}

.otp-box {
    width: 52px;
    height: 56px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    outline: none;
    background: white;
}

.otp-box:focus {
    border-color: var(--accent);
}

.otp-timer {
    font-size: 14px;
    color: var(--accent);
    font-weight: 600;
}

/* Password Strength */
.pw-strength {
    display: flex;
    gap: 4px;
    margin-top: 8px;
    height: 6px;
}

.pw-bar {
    height: 100%;
    flex: 1;
    border-radius: 3px;
    background: #e0e0e0;
    transition: background-color 0.3s ease;
}

.pw-bar.strong,
.pw-bar.success {
    background: var(--success);
}

.pw-bar.danger {
    background: var(--danger);
}

.pw-bar.warning {
    background: #ff9800;
}

.pw-bar.info {
    background: #2196f3;
}

/* Terms */
.terms-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: #f8f9fa;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.terms-box input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.terms-box label {
    font-size: 14px;
    color: var(--text-mid);
    cursor: pointer;
}

.terms-box a {
    color: var(--primary);
    font-weight: 600;
}

/* ════════════════════════════════════════════════
   DASHBOARD STYLES
   ════════════════════════════════════════════════ */

.dash-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 20px;
}

/* Welcome Banner */
.welcome-banner {
    background: var(--success);
    color: white;
    padding: 24px 32px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.welcome-avatar {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}

.welcome-info h2 {
    margin: 0;
    font-size: 24px;
}

.welcome-info p {
    margin: 4px 0 10px 0;
    opacity: 0.9;
    font-size: 15px;
}

.welcome-info .app-id {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.15);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Stat Cards */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    text-align: center;
    border-top: 4px solid transparent;
}

.stat-card.blue { border-top-color: var(--blue); }
.stat-card.orange { border-top-color: var(--accent); }
.stat-card.green { border-top-color: var(--success); }
.stat-card.red { border-top-color: var(--danger); }

.stat-card .num {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.stat-card .lbl {
    font-size: 13px;
    color: var(--text-mid);
    font-weight: 500;
}

/* Big Action Card */
.big-action {
    background: white;
    padding: 20px 24px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.big-action .icon-box {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.big-action .icon-box.green {
    background: var(--success-light);
    color: var(--success);
}

.big-action .icon-box.red {
    background: #fde8e8;
    color: #c62828;
}

.big-action .action-text {
    flex: 1;
}

.big-action .action-text h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text);
}

.big-action .action-text p {
    margin: 4px 0 0 0;
    font-size: 14px;
    color: var(--text-mid);
}

/* Timeline */
.timeline-section {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.timeline-section h3 {
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 18px;
    display: flex;
    align-items: center;
}

.timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 0 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 80px;
    right: 80px;
    height: 4px;
    background: #e0e0e0;
    z-index: 1;
}

.tl-progress {
    position: absolute;
    top: 20px;
    left: 80px;
    height: 4px;
    background: var(--success);
    z-index: 1;
    max-width: calc(100% - 160px);
    border-radius: 2px;
    transition: width 0.5s ease;
}

.tl-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    width: 100px;
    text-align: center;
}

.tl-dot {
    width: 40px;
    height: 40px;
    background: #fff;
    border: 4px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #999;
    margin-bottom: 12px;
    transition: all 0.3s;
}

.tl-step.done .tl-dot {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.tl-step.current .tl-dot {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.tl-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-mid);
    margin-bottom: 4px;
}

.tl-date {
    font-size: 11px;
    color: var(--text-light);
}

.tl-step.done .tl-name { color: var(--success); font-weight: 700; }
.tl-step.current .tl-name { color: var(--accent); font-weight: 700; }

/* My Applications */
.my-apps-section {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.my-apps-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    display: flex;
    align-items: center;
}

.app-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    gap: 14px;
}

.app-num {
    width: 32px;
    height: 32px;
    background: var(--success-light);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.app-details {
    flex: 1;
}

.app-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.app-meta {
    font-size: 13px;
    color: var(--text-mid);
    margin-top: 4px;
}

.app-status {
    padding: 4px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.app-status.draft {
    background: #ffeecc;
    color: #e65100;
}

/* Help Section */
.help-section {
    background: #e9eef6;
    border-radius: var(--radius);
    padding: 16px 24px;
}

.help-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.help-icon {
    font-size: 24px;
    color: var(--blue);
}

.help-text {
    font-size: 14px;
    color: var(--text-mid);
}

.help-text strong {
    color: var(--blue);
    margin-right: 8px;
}

.help-text a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
}

/* ═══════════ APPLICATION FORM PANEL ═══════════ */
.app-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Top Progress Bar */
.top-progress {
    background: white;
    border-bottom: 1px solid #eee;
    padding: 16px 24px;
}
.progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.progress-header h3 { font-size: 16px; }
.progress-header .pct { font-size: 14px; font-weight: 600; color: var(--primary); }
.progress-bar-track {
    height: 8px;
    background: #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--primary), #2ecb6f);
    transition: width 0.5s ease;
}

/* Step Navigation */
.step-nav {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.step-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
    background: #f0f0f0;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.step-pill .snum {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ccc;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}
.step-pill.done { background: var(--success-light); color: var(--success); }
.step-pill.done .snum { background: var(--success); }
.step-pill.current { background: var(--accent-light); color: #c96e10; font-weight: 600; }
.step-pill.current .snum { background: var(--accent); }
.step-pill.locked { opacity: 0.55; cursor: not-allowed; }
.step-pill.locked .snum { background: #b0b0b0; }
.step-pill.locked::after {
    content: "\f023"; /* fa-lock */
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-weight: 900;
    margin-left: 6px;
    font-size: 10px;
    opacity: 0.8;
}

/* Form Content Area */
.form-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    justify-content: center;
}
.form-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 700px;
    overflow: hidden;
}
.form-card-header {
    padding: 20px 28px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 14px;
}
.form-card-header .step-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.form-card-header .step-icon.green { background: var(--primary-light); color: var(--primary); }
.form-card-header .step-icon.blue { background: var(--blue-light); color: var(--blue); }
.form-card-header .step-icon.orange { background: var(--accent-light); color: var(--accent); }
.form-card-header h2 { font-size: 20px; }
.form-card-header p { font-size: 13px; color: var(--text-mid); }

.form-card-body { padding: 24px 28px; }

/* App Step Panels */
.app-step { display: none; }
.app-step.active { display: block; }

/* Info Banner inside form */
.info-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
}
.info-banner.green { background: var(--success-light); color: #1b5e20; }
.info-banner.blue { background: var(--blue-light); color: #0d47a1; }
.info-banner.orange { background: var(--accent-light); color: #bf360c; }
.info-banner i { font-size: 18px; margin-top: 1px; flex-shrink: 0; }

/* Read-only field */
.ro-field {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f9f9f9;
    border: 2px solid #eee;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}
.ro-field .ro-label { font-size: 13px; color: var(--text-light); min-width: 110px; }
.ro-field .ro-value { font-size: 16px; font-weight: 600; color: var(--text); }
.ro-field .lock-icon { margin-left: auto; color: #ccc; }

/* Upload Area */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafafa;
}
.upload-area:hover { border-color: var(--primary); background: var(--primary-light); }
.upload-area i { font-size: 36px; color: var(--primary); margin-bottom: 8px; }
.upload-area p { font-size: 15px; font-weight: 500; color: var(--text-mid); }

/* Section Divider */
.section-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}
.section-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* Trade Cards */
.trade-card {
    border: 2px solid #eee;
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.trade-card:hover { border-color: var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.trade-card.selected { border-color: var(--primary); background: var(--primary-light); }
.trade-card .tc-top { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.trade-card .tc-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--blue-light);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.trade-card .tc-top { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.trade-card .tc-info { flex: 1; min-width: 0; }
.trade-card .tc-name { font-size: 16px; font-weight: 600; color: var(--primary); line-height: 1.3; }
.trade-card.selected .tc-name { color: var(--primary); }
.trade-card .tc-code { font-size: 12px; color: #888; margin-top: 2px; }
.trade-card .tc-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.trade-card .tag {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.tag.dur { background: #e3f2fd; color: #1565c0; }
.tag.cert { background: #f3e5f5; color: #7b1fa2; }
.tag.seats { background: var(--success-light); color: var(--success); }
.tag.qual { background: #fff3e0; color: #e65100; }

/* Preference Slot */
.pref-slot {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8f9fa;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
}
.pref-slot .pref-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}
.pref-slot .pref-info { flex: 1; }
.pref-slot .pref-info .trade-name { font-weight: 600; font-size: 15px; }
.pref-slot .pref-info .iti-name { font-size: 13px; color: var(--text-mid); }
.pref-slot.empty { border-style: dashed; background: #fafafa; }
.pref-slot.empty .pref-num { background: #ccc; }
/* Drag & drop reordering */
.pref-slot[draggable="true"] { cursor: move; }
.pref-slot .pref-grip { margin-right: 8px; color: #b0b0b0; cursor: move; }
.pref-slot.pref-dragging { opacity: 0.45; }
.pref-slot.pref-dragover { border-color: var(--primary); border-style: dashed; background: var(--primary-light); }

/* Review Section */
.review-section {
    border: 1px solid #eee;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    overflow: hidden;
}
.review-section .rs-head {
    padding: 12px 16px;
    background: #f8f9fa;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #eee;
}
.review-section .rs-body { padding: 14px 16px; }
.review-section .rs-body p { margin-bottom: 6px; font-size: 14px; }

/* Footer Buttons */
.form-footer {
    padding: 16px 28px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fafafa;
}

/* ═══════════ SUCCESS PANEL ═══════════ */
.success-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(170deg, var(--success-light) 0%, var(--bg) 40%);
}
.success-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 48px 40px;
    text-align: center;
    max-width: 520px;
    width: 100%;
}
.success-card .big-check {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--success-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.success-card .big-check i { font-size: 50px; color: var(--success); }
.success-card h2 { font-size: 26px; color: var(--success); margin-bottom: 8px; }
.success-card .success-subtitle { font-size: 15px; color: var(--text-mid); margin-bottom: 20px; }

/* Success Details Table */
.success-details-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 8px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
}
.success-details-table tr { border-bottom: 1px solid #f0f0f0; }
.success-details-table tr:last-child { border-bottom: none; }
.success-details-table td { padding: 12px 18px; font-size: 14px; }
.success-details-table .sdt-label {
    color: #888;
    width: 45%;
    background: #fafafa;
}
.success-details-table .sdt-value {
    font-weight: 600;
    color: #2c3e50;
    text-align: right;
}

/* Success Info Box */
.success-info-box {
    background: #eaf3fb;
    border-radius: 8px;
    padding: 14px 18px;
    margin-top: 20px;
    font-size: 13px;
    color: #1a5276;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
}
.success-info-box i { color: #2980b9; margin-top: 2px; flex-shrink: 0; }

/* Education Level Cards */
.edu-level-group { display: flex; flex-direction: column; gap: 10px; }
.edu-level-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}
.edu-level-card:hover { border-color: var(--blue); background: var(--blue-light); }
.edu-level-card.selected { border-color: var(--blue); background: var(--blue-light); }
.edu-level-card .elc-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.edu-level-card .elc-text { flex: 1; }
.edu-level-card .elc-title { font-size: 16px; font-weight: 600; color: var(--text); }
.edu-level-card .elc-check { font-size: 22px; color: #ccc; flex-shrink: 0; }
.edu-level-card.selected .elc-check { color: var(--blue); }

.edu-section { animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ── Eligibility Check Box ── */
.eligibility-box {
    padding: 16px 20px;
    border-radius: 12px;
    animation: fadeIn 0.3s ease;
}
.eligibility-pass {
    background: #e8f5e9;
    border: 2px solid #4caf50;
    color: #1b5e20;
}
.eligibility-fail {
    background: #fbe9e7;
    border: 2px solid #e53935;
    color: #b71c1c;
}
.elig-row {
    display: flex;
    align-items: center;
    gap: 14px;
}
.elig-icon {
    font-size: 28px;
    flex-shrink: 0;
}
.eligibility-pass .elig-icon { color: #2e7d32; }
.eligibility-fail .elig-icon { color: #c62828; }
.elig-title {
    font-size: 16px;
    font-weight: 600;
    font-style: italic;
}
.elig-sub {
    font-size: 14px;
    margin-top: 2px;
    opacity: 0.85;
}

/* ── Hint text (optional label suffix) ── */
.hint-text {
    font-weight: 400;
    color: #999;
    font-size: 13px;
}

/* ── Education card subtitles ── */
.elc-sub {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}
.form-hint {
    font-size: 13px;
    color: #888;
    margin: -4px 0 12px 0;
}

/* ── Education info banners ── */
.edu-info-banner {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.edu-info-banner i { flex-shrink: 0; }
.edu-info-banner.blue { background: #e3f2fd; color: #1565c0; }
.edu-info-banner.green { background: #e8f5e9; color: #2e7d32; }
.edu-info-banner.orange { background: #fff3e0; color: #e65100; }
.edu-info-banner.purple { background: #ede7f6; color: #4527a0; }

/* ── Percentage auto field ── */
.pct-auto {
    background: #e8f5e9 !important;
    color: #2e7d32 !important;
    font-weight: 600;
    text-align: center;
}

/* ── Upload box ── */
.upload-box {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: #fafafa;
}
.upload-box:hover {
    border-color: var(--primary);
    background: #f0faf3;
}
.upload-icon {
    font-size: 32px;
    color: #4caf50;
    margin-bottom: 8px;
}
.upload-text {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}
.upload-hint {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}
.upload-fname {
    display: none;
    font-size: 13px;
    color: var(--primary);
    margin-top: 8px;
    font-weight: 500;
    word-break: break-all;
}

/* ── Document step sections ── */
.doc-section {
    margin-bottom: 28px;
    padding-bottom: 10px;
}
.doc-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
}
.doc-section-header i {
    font-size: 18px;
}
.doc-cat-label {
    font-weight: 400;
    font-size: 14px;
    color: #666;
}
.doc-optional-hint {
    font-weight: 400;
    font-size: 13px;
    color: #888;
}

/* ── Document upload box ── */
.doc-upload-box {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 28px 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: #fafafa;
    margin-bottom: 16px;
}
.doc-upload-box:hover {
    border-color: var(--primary);
    background: #f0faf3;
}
.doc-upload-box.uploaded {
    border-color: #4caf50;
    border-style: solid;
    background: #f0faf3;
}
.doc-upload-icon {
    font-size: 32px;
    color: #4caf50;
    margin-bottom: 6px;
}
.doc-upload-text {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}
.doc-upload-hint {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}
.doc-upload-check {
    font-size: 36px;
    color: #4caf50;
    margin-bottom: 6px;
}
.doc-upload-fname {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}
.doc-upload-meta {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

/* ── Preview / Re-upload actions (shown after a document is uploaded) ── */
.doc-upload-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 12px;
}
.doc-act-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    border-radius: 6px;
    border: 1px solid #c8d6c8;
    background: #ffffff;
    color: #2e7d32;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.doc-act-btn:hover {
    background: #2e7d32;
    border-color: #2e7d32;
    color: #ffffff;
}
.doc-act-btn.doc-act-reupload {
    color: #1565c0;
    border-color: #bcd3ef;
}
.doc-act-btn.doc-act-reupload:hover {
    background: #1565c0;
    border-color: #1565c0;
    color: #ffffff;
}

/* ── Document checklist ── */
.doc-checklist {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 24px;
}
.doc-checklist-header {
    background: #f0faf3;
    padding: 12px 18px;
    font-weight: 600;
    font-size: 15px;
    color: #2e7d32;
    border-bottom: 1px solid #e0e0e0;
}
.doc-checklist-header i {
    margin-right: 6px;
}
.doc-checklist-body {
    padding: 0;
}
.doc-checklist-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}
.doc-checklist-row:last-child {
    border-bottom: none;
}

/* ── Review & Submit step ── */
.review-section {
    margin-bottom: 24px;
}
.review-section-header {
    background: #f5f5f5;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 15px;
    color: #333;
    border-radius: 6px 6px 0 0;
    border-bottom: 2px solid #e0e0e0;
}
.review-section-header i {
    margin-right: 8px;
    color: #555;
}
.review-table {
    padding: 0;
}
.review-row {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}
.review-row:last-child {
    border-bottom: none;
}
.review-label {
    color: #888;
    min-width: 160px;
    flex-shrink: 0;
    font-size: 13px;
}
.review-value {
    color: #222;
    font-weight: 500;
}
/* Sub-heading inside a review section (e.g. "Class 10", "Choice 1 — ITI") */
.review-subhead {
    font-weight: 600;
    font-size: 14px;
    color: #555;
    padding: 14px 16px 6px;
    margin: 0;
}
.review-subhead.primary { color: var(--primary); }
/* Tighten the gap when a sub-heading follows the rows of a previous block */
.review-row + .review-subhead { border-top: 1px solid #f0f0f0; margin-top: 4px; }

/* Declaration box */
.declaration-box {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 10px;
    padding: 18px 20px;
    margin-top: 20px;
}
.declaration-title {
    font-size: 16px;
    font-weight: 600;
    color: #e65100;
    margin-bottom: 10px;
}
.declaration-title i {
    margin-right: 6px;
}
.declaration-text {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}
.declaration-check {
    margin-top: 16px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 14px 18px;
}
.declaration-check .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    cursor: pointer;
}
.declaration-check .checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #4caf50;
}

/* Privacy / DPDP Notice box */
.privacy-box {
    background: #e8f4fd;
    border: 1px solid #90caf9;
    border-radius: 10px;
    padding: 18px 20px;
    margin-top: 20px;
}
.privacy-title {
    font-size: 16px;
    font-weight: 600;
    color: #1565c0;
    margin-bottom: 10px;
}
.privacy-title i {
    margin-right: 6px;
}
.privacy-text {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    margin: 0;
}

/* ── Auto-save label ── */
.auto-save-label {
    font-size: 12px;
    color: #999;
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── Selected Above 12th card purple ── */
.edu-level-card[data-level="above"].selected {
    border-color: #4527a0;
    background: #ede7f6;
}

/* ── Same-as-permanent checkbox ── */
.same-address-check {
    background: #f0faf3;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 16px;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    user-select: none;
}
.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #2e7d32;
    cursor: pointer;
}

/* ITI Selection Cards */
.iti-select-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    margin-bottom: 10px;
}
.iti-select-card:hover { border-color: var(--primary); background: var(--primary-light); }
.iti-select-card.selected { border-color: var(--primary); background: var(--primary-light); }
.iti-select-card .isc-radio { font-size: 22px; color: #ccc; flex-shrink: 0; }
.iti-select-card.selected .isc-radio { color: var(--primary); }
.iti-select-card .isc-info { flex: 1; min-width: 0; }
.iti-select-card .isc-name { font-size: 16px; font-weight: 600; color: var(--text); }
/* ITI already chosen in another Choice block — not selectable here */
.iti-select-card.disabled { opacity: 0.5; cursor: not-allowed; background: #f6f6f6; pointer-events: none; }
.iti-select-card.disabled .isc-chosen-tag { font-size: 11px; color: var(--primary); font-weight: 600; }

/* ── Step A: ITI selector as a custom themed dropdown ── */
.iti-dd { position: relative; margin-bottom: 10px; }
.iti-dd-trigger {
    display: flex; align-items: center; gap: 12px; width: 100%;
    padding: 14px 16px; background: #fff; cursor: pointer; text-align: left;
    border: 2px solid var(--border); border-radius: var(--radius-sm);
    font-size: 15px; color: var(--text); transition: border-color 0.15s, box-shadow 0.15s;
}
.iti-dd-trigger:hover { border-color: var(--primary); }
.iti-dd.open .iti-dd-trigger { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.iti-dd-trigger-icon { color: var(--primary); font-size: 16px; flex-shrink: 0; }
.iti-dd-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.iti-dd-placeholder { color: var(--text-light, #888); font-weight: 500; }
.iti-dd-arrow { color: #999; flex-shrink: 0; transition: transform 0.18s ease; }
.iti-dd.open .iti-dd-arrow { transform: rotate(180deg); }

.iti-dd-menu {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 70;
    margin: 0; padding: 6px; list-style: none;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
    box-shadow: 0 14px 34px rgba(0,0,0,0.14);
    max-height: 320px; overflow-y: auto; display: none;
}
.iti-dd.open .iti-dd-menu { display: block; animation: itiDdPop 0.14s ease-out; }
@keyframes itiDdPop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.iti-dd-option { padding: 11px 12px; border-radius: 8px; cursor: pointer; transition: background 0.12s, color 0.12s; }
.iti-dd-option:hover { background: var(--primary-light); }
.iti-dd-option.selected { background: var(--primary-light); }
.iti-dd-opt-name { font-size: 15px; font-weight: 600; color: var(--text); }
.iti-dd-opt-meta { font-size: 12px; color: #666; margin-top: 2px; }
.iti-dd-check { color: var(--primary); margin-left: 6px; }
.iti-dd-option.disabled { opacity: 0.5; cursor: not-allowed; background: #f6f6f6; pointer-events: none; }
.iti-dd-chosen-tag { font-size: 11px; color: var(--primary); font-weight: 600; }

/* Step B: Trade dropdown (multi-select) — option = name/meta on left, check badge on right */
.trade-dd-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.trade-dd-option .trade-dd-opt-main { flex: 1; min-width: 0; }
.trade-dd-option .tc-select-badge { font-size: 20px; color: #ccc; flex-shrink: 0; }
.trade-dd-option.selected .tc-select-badge i { color: var(--success); }
.trade-dd-option:not(.selected) .tc-select-badge i { color: #ccc !important; }

.tc-select-badge { font-size: 20px; color: #ccc; }
.trade-card.selected .tc-select-badge { color: var(--success); }

/* ── Multi-ITI choice blocks (Step 5) ── */
.iti-choice-block { border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 18px; background: #fcfcfd; }
.iti-choice-block .choice-block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.iti-choice-block .choice-block-title { font-size: 16px; font-weight: 700; color: var(--primary); }
.iti-choice-block .choice-req { font-size: 12px; font-weight: 500; color: var(--danger); }
.iti-choice-block .choice-opt { font-size: 12px; font-weight: 500; color: var(--text-light); }
.iti-choice-block .choice-remove-btn { padding: 6px 12px; font-size: 13px; min-width: auto; }
/* Success: one card per created application */
.success-app-card { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; margin: 10px 0; text-align: left; background: #fff; }
.success-app-card .sac-no { font-weight: 700; color: var(--primary); font-size: 15px; }
.success-app-card .sac-iti { color: var(--text); font-weight: 600; margin: 4px 0; }
.success-app-card .sac-trades { color: var(--text-light); font-size: 13px; }

/* ══════════════════════════════════════════════════════════════
   STANDALONE LOGIN PAGE V2 — /applicant/login
   Purple theme, glass header, SVG illustrated cards
   Matches iti_mis_login_v2.html reference design
   ══════════════════════════════════════════════════════════════ */

/* ── V2 CSS Variables ── */
.v2-login-wrapper {
    --v2-primary: #875A7B;
    --v2-primary-dark: #6f4565;
    --v2-primary-deep: #5a3750;
    --v2-primary-light: #a97d9d;
    --v2-primary-pale: #f3edf2;
    --v2-accent: #E8913A;
    --v2-accent-dark: #c77a2e;
    --v2-accent-light: #fdf0e0;
    --v2-teal: #00796B;
    --v2-teal-bg: #e0f2f1;
    --v2-blue: #1565C0;
    --v2-blue-bg: #e3f2fd;
    --v2-danger: #c0392b;
    --v2-danger-bg: #fdecea;
    --v2-success: #27ae60;
    --v2-success-bg: #eafaf1;
    --v2-text: #2c3e50;
    --v2-text-muted: #7f8c8d;
    --v2-border: #dce1e6;
    --v2-bg: #f4f6f8;
    --v2-white: #ffffff;
    --v2-glass: rgba(255,255,255,0.94);
    --v2-radius: 8px;
    --v2-radius-lg: 14px;
    --v2-radius-xl: 20px;
}
.v2-login-wrapper {
    font-family: 'Noto Sans', 'Segoe UI', sans-serif;
    color: var(--v2-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}
.v2-login-wrapper * { box-sizing: border-box; }

/* Override Odoo website layout wrappers when v2 login page is active */
#wrapwrap:has(.v2-login-wrapper) {
    background: none !important;
    min-height: 0 !important;
}
#wrapwrap:has(.v2-login-wrapper) > main,
#wrapwrap:has(.v2-login-wrapper) #wrap {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
}

/* ════════════════ FULL-SCREEN BACKGROUND ════════════════ */
.bg-canvas { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.bg-canvas .grad {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #4a2f42 0%, #5c3d52 18%, #3a4f5c 45%, #1a5c56 70%, #2d4a5a 100%);
}
.bg-canvas .scene {
    position: absolute; bottom: 0; left: 0; right: 0; height: 45%;
    opacity: 0.06;
}
.bg-canvas .glow1 { position: absolute; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(232,145,58,0.18) 0%, transparent 70%); top: -10%; right: -5%; }
.bg-canvas .glow2 { position: absolute; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(0,121,107,0.12) 0%, transparent 70%); bottom: -8%; left: -5%; }
.bg-canvas .glow3 { position: absolute; width: 350px; height: 350px; border-radius: 50%; background: radial-gradient(circle, rgba(135,90,123,0.1) 0%, transparent 70%); top: 40%; left: 35%; }
.bg-canvas .dots {
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 28px 28px;
}

/* Animated floating particles */
.v2-particle { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.06); animation: v2floatUp linear infinite; }
@keyframes v2floatUp {
    0%   { transform: translateY(0) scale(1); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(-100vh) scale(0.5); opacity: 0; }
}

/* ════════════════ HEADER BAR ════════════════ */
.gov-header {
    position: relative; z-index: 10;
    background: rgba(0,0,0,0.28);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 0 24px; height: 58px;
    display: flex; align-items: center; gap: 14px; color: var(--v2-white);
}
.gov-logo { height: 36px; filter: brightness(1.15) drop-shadow(0 1px 3px rgba(0,0,0,0.4)); }
.gov-divider { width: 1px; height: 28px; background: rgba(255,255,255,0.2); margin: 0 4px; }
.gov-title { flex: 1; }
.gov-title h1 { font-size: 14.5px; font-weight: 700; letter-spacing: 0.2px; text-shadow: 0 1px 3px rgba(0,0,0,0.3); margin: 0; }
.gov-title p { font-size: 11px; opacity: 0.75; margin-top: 1px; margin-bottom: 0; }

/* ── Registration announcement: running news-ticker in the header ── */
/* Title grows to fill the gap so the ticker is pushed to the right,
   sitting next to the language/Help buttons. */
.gov-header:has(.gov-ticker) .gov-title { flex: 1 1 auto; min-width: 0; }
.gov-ticker {
    flex: 0 1 auto; width: 460px; max-width: 460px; min-width: 0; margin: 0 14px;
    overflow: hidden; white-space: nowrap;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 18px; padding: 7px 0;
    text-decoration: none; display: block; cursor: pointer;
}
.gov-ticker-track {
    display: inline-block; padding-left: 100%;
    color: #fff; font-size: 12.5px; font-weight: 600;
    animation: gov-marquee 22s linear infinite;
}
.gov-ticker:hover .gov-ticker-track { animation-play-state: paused; }
.gov-ticker-track i { margin-right: 8px; color: #ffd9a8; }
@keyframes gov-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}
@media (max-width: 900px) { .gov-ticker { display: none; } }
.gov-right { display: flex; align-items: center; gap: 12px; }
.gov-right select { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; padding: 5px 10px; border-radius: 6px; font-size: 12px; cursor: pointer; font-family: inherit; }
.gov-right select option { color: #333; background: #fff; }
.gov-help { display: flex; align-items: center; gap: 5px; font-size: 12px; cursor: pointer; opacity: 0.8; padding: 5px 10px; border-radius: 6px; transition: all 0.2s; color: #fff; text-decoration: none; }
.gov-help:hover { opacity: 1; background: rgba(255,255,255,0.1); }

/* ════════════════ MAIN AREA ════════════════ */
.login-main { position: relative; z-index: 5; flex: 1; display: flex; align-items: center; justify-content: center; padding: 28px 20px; }

/* ════════════════ LOGIN CARD ════════════════ */
.v2-login-card {
    background: var(--v2-glass);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    width: 520px; max-width: 100%;
    border-radius: var(--v2-radius-xl);
    box-shadow: 0 24px 80px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.15);
    overflow: hidden;
    animation: v2cardIn 0.6s cubic-bezier(0.16,1,0.3,1);
}
@keyframes v2cardIn { from { opacity: 0; transform: translateY(28px) scale(0.97); } to { opacity: 1; transform: none; } }

/* Card header with logo */
.card-top {
    background: linear-gradient(135deg, var(--v2-primary) 0%, var(--v2-primary-deep) 100%);
    padding: 22px 28px 18px; text-align: center;
    position: relative; overflow: hidden;
}
.card-top::before { content: ''; position: absolute; top: -40px; right: -40px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,0.05); }
.card-top::after { content: ''; position: absolute; bottom: -30px; left: -30px; width: 100px; height: 100px; border-radius: 50%; background: rgba(232,145,58,0.08); }
.card-logo { height: 46px; margin-bottom: 10px; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3)); position: relative; }
.card-top h2 { font-size: 17px; font-weight: 700; color: #fff; position: relative; text-shadow: 0 1px 3px rgba(0,0,0,0.2); margin: 0; }
.card-top p { font-size: 12px; color: rgba(255,255,255,0.78); position: relative; margin-top: 2px; margin-bottom: 0; }

.v2-card-body { padding: 22px 28px 18px; }

/* ════════════════ ROLE SELECTOR — ILLUSTRATED CARDS ════════════════ */
/* Sized to match /web/login's .role-tab so both pages look identical. */
.role-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-bottom: 16px; }

.role-card {
    border: 2px solid #eaeaea; background: var(--v2-white); border-radius: 12px;
    padding: 12px 4px 9px; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
    position: relative; overflow: hidden;
}
.role-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: transparent; transition: background 0.3s; border-radius: 12px 12px 0 0; }

/* Illustrated icon container */
.role-illust {
    width: 46px; height: 46px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s; position: relative; overflow: hidden;
}
.role-illust svg { width: 38px; height: 38px; transition: transform 0.3s; }

.role-card .rlabel { font-size: 10px; font-weight: 600; color: var(--v2-text-muted); text-align: center; line-height: 1.3; transition: color 0.3s; margin-top: 2px; }

/* Hover */
.role-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(135,90,123,0.14); border-color: var(--v2-primary-light); }
.role-card:hover .role-illust svg { transform: scale(1.08); }

/* Active */
.role-card.active { border-color: var(--v2-primary); background: linear-gradient(180deg, var(--v2-primary-pale) 0%, #fff 100%); box-shadow: 0 6px 20px rgba(135,90,123,0.18); }
.role-card.active::before { background: var(--v2-primary); }
.role-card.active .rlabel { color: var(--v2-primary-dark); }
.role-card.active .role-illust svg { transform: scale(1.1); }

/* Role-specific bg tints */
.role-card[data-role="admin"] .role-illust { background: #f0e6ed; }
.role-card[data-role="admin"].active .role-illust { background: #e4d2df; }
.role-card[data-role="instructor"] .role-illust { background: var(--v2-teal-bg); }
.role-card[data-role="instructor"].active .role-illust { background: #b2dfdb; }
.role-card[data-role="student"] .role-illust { background: var(--v2-blue-bg); }
.role-card[data-role="student"].active .role-illust { background: #bbdefb; }
.role-card[data-role="external"] .role-illust { background: var(--v2-accent-light); }
.role-card[data-role="external"].active .role-illust { background: #fce0b8; }

/* ── HERO LAYOUT: big Candidate tile first, small staff cluster below ── */
.role-grid.role-grid-hero { display: flex; flex-direction: column-reverse; gap: 10px; }

/* Small staff roles: a full-width row of 3 equal buttons, aligned edge-to-edge
   with the Candidate tile above */
.role-grid-hero .staff-corner { display: flex; gap: 8px; }
.role-card.role-mini { flex: 1; width: auto; padding: 7px 3px 5px; border-radius: 10px; gap: 3px; }
.role-card.role-mini .role-illust { width: 30px; height: 30px; }
.role-card.role-mini .role-illust svg { width: 22px; height: 22px; }
.role-card.role-mini .rlabel { font-size: 8.5px; }

/* Big primary Candidate tile (compact height) */
.role-card.role-hero {
    flex-direction: row; align-items: center; justify-content: flex-start;
    gap: 12px; padding: 10px 16px; border-width: 2px;
    border-color: var(--v2-accent); background: linear-gradient(135deg, #ffffff 0%, #fff6ec 100%);
}
.role-card.role-hero::before { display: none; }
.role-card.role-hero .role-illust { flex: 0 0 46px; width: 46px; height: 46px; background: #fde8cc; }
.role-card.role-hero .role-illust svg { width: 34px; height: 34px; }
.role-card.role-hero .hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; flex: 1; }
.role-card.role-hero .hero-title { font-size: 17px; font-weight: 800; color: var(--v2-primary-dark); line-height: 1.2; }
.role-card.role-hero .hero-sub { font-size: 11.5px; font-weight: 500; color: var(--v2-text-muted); }
.role-card.role-hero .hero-arrow { color: var(--v2-accent); font-size: 16px; transition: transform 0.25s; }
.role-card.role-hero:hover { transform: translateY(-2px); border-color: var(--v2-accent); box-shadow: 0 10px 26px rgba(232,145,58,0.22); }
.role-card.role-hero:hover .hero-arrow { transform: translateX(4px); }
.role-card.role-hero.active { background: linear-gradient(135deg, #fff 0%, #fdebd6 100%); border-color: var(--v2-accent); }
.role-card.role-hero.active .role-illust svg { transform: scale(1.05); }

/* Register CTA directly under the role selector — uses the portal green theme */
.v2-register-cta {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; margin: 4px 0 14px; padding: 11px 14px;
    border: 1.5px dashed #1B6B3A; border-radius: 10px;
    background: #e8f5ed; color: #145a2f;
    font-size: 13.5px; font-weight: 700; text-decoration: none;
    transition: all 0.2s ease;
}
.v2-register-cta:hover {
    background: #1B6B3A; color: #fff; border-style: solid;
    box-shadow: 0 6px 18px rgba(27,107,58,0.28); text-decoration: none;
}

/* ── FEE DETAILS card (applicant login left panel) ── */
.v2-fee-card { margin: 6px 0 22px; }
.v2-fee-total {
    background: linear-gradient(135deg, #0d7c5b 0%, #0b6b4f 60%, #073d2c 100%);
    color: #fff; border-radius: 14px; padding: 16px 18px;
    box-shadow: 0 8px 22px rgba(11,107,79,0.22); margin-bottom: 14px;
}
.v2-fee-total-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.v2-fee-total-head { display: flex; align-items: center; gap: 10px; }
.v2-fee-total-icon {
    width: 32px; height: 32px; border-radius: 9px; flex: 0 0 32px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.16); font-size: 15px;
}
.v2-fee-total-label { font-size: 14.5px; font-weight: 600; opacity: 0.95; }
.v2-fee-total-amt { font-size: 32px; font-weight: 800; line-height: 1; letter-spacing: 0.5px; white-space: nowrap; }
.v2-fee-total-sub { font-size: 12px; opacity: 0.9; margin-top: 10px; }

.v2-fee-breakhead {
    font-size: 13px; font-weight: 700; color: var(--v2-primary-dark, #5a3b51);
    border-left: 3px solid var(--v2-accent, #E8913A); padding-left: 9px; margin: 0 0 10px;
}

/* Match the Admission Applications (.v2-feat-card) card style so the left
   column stays aligned/consistent */
.v2-fee-item {
    display: flex; gap: 14px; align-items: center;
    background: var(--v2-white); border: 1px solid var(--v2-border); border-radius: var(--v2-radius-lg);
    padding: 10px 16px; margin-bottom: 10px;
    transition: box-shadow 0.2s;
}
.v2-fee-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.07); }
.v2-fee-item-warn { background: #fff9ee; border-color: #f3e2bd; }
.v2-fee-ic {
    width: 48px; height: 48px; border-radius: 10px; flex: 0 0 48px;
    display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.v2-fee-body { flex: 1; min-width: 0; }
.v2-fee-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.v2-fee-name { font-size: 14px; font-weight: 700; color: var(--v2-text); }
.v2-fee-amt { font-size: 14px; font-weight: 800; color: var(--v2-text); white-space: nowrap; }
.v2-fee-badge {
    display: inline-block; font-size: 10px; font-weight: 700;
    padding: 2px 9px; border-radius: 20px; margin-left: 7px; vertical-align: middle;
}
.v2-fee-badge-green { background: #e3f3ea; color: #1B6B3A; }
.v2-fee-badge-amber { background: #fceacb; color: #97650b; }
.v2-fee-note { font-size: 13px; color: var(--v2-text-muted); line-height: 1.5; margin: 4px 0 0; }

/* Caution-money sub-section inside the green Total Course Fee card */
.v2-fee-caution { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.22); }
.v2-fee-caution-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.v2-fee-caution-name { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: #fff; }
.v2-fee-caution-ic {
    width: 28px; height: 28px; border-radius: 8px; flex: 0 0 28px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.16); font-size: 13px;
}
.v2-fee-caution-amt { font-size: 17px; font-weight: 800; color: #fff; white-space: nowrap; }
.v2-fee-caution-note { font-size: 12.5px; color: rgba(255,255,255,0.85); line-height: 1.5; margin: 6px 0 0 36px; }
.v2-fee-points { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.22); }
.v2-fee-point { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #fff; font-weight: 500; margin-top: 6px; }
.v2-fee-point i { color: #b9f6ca; font-size: 14px; flex-shrink: 0; }

.v2-fee-foot {
    display: flex; gap: 7px; align-items: flex-start;
    font-size: 11.5px; color: #7a7a82; line-height: 1.5; margin-top: 4px; padding: 0 2px;
}
.v2-fee-foot i { margin-top: 2px; color: var(--v2-primary-light, #a97d9d); }

/* ── ROLE HINT ── */
.role-hint { font-size: 11.5px; color: var(--v2-text-muted); text-align: center; margin-bottom: 16px; padding: 8px 14px; background: #f8f9fa; border-radius: 8px; border-left: 3px solid var(--v2-primary-light); line-height: 1.5; animation: v2fadeIn 0.3s ease; }
@keyframes v2fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ── EXTERNAL SUB-CATEGORIES ── */
.ext-category { display: none; margin-bottom: 14px; }
.ext-category.show { display: block; animation: v2fadeIn 0.3s ease; }
.ext-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ext-pill { padding: 6px 13px; border: 1.5px solid var(--v2-border); border-radius: 20px; font-size: 12px; cursor: pointer; background: var(--v2-white); transition: all 0.2s; color: var(--v2-text-muted); display: flex; align-items: center; gap: 5px; }
.ext-pill i { font-size: 11px; }
.ext-pill:hover { border-color: var(--v2-accent); color: var(--v2-accent-dark); background: var(--v2-accent-light); }
.ext-pill.active { background: var(--v2-accent); border-color: var(--v2-accent); color: #fff; }

/* ── METHOD TOGGLE ── */
.v2-method-toggle { display: flex; background: #f1f3f5; border-radius: 10px; padding: 3px; margin-bottom: 16px; }
.v2-method-btn { flex: 1; padding: 9px 8px; border: none; background: transparent; border-radius: 8px; font-size: 12.5px; font-weight: 500; cursor: pointer; color: var(--v2-text-muted); transition: all 0.25s; font-family: inherit; display: flex; align-items: center; justify-content: center; gap: 6px; }
.v2-method-btn.active { background: var(--v2-white); color: var(--v2-primary); box-shadow: 0 2px 8px rgba(0,0,0,0.07); font-weight: 600; }

/* ── FORM ── */
.v2-form-group { margin-bottom: 14px; }
.v2-form-group label { display: block; font-size: 12.5px; font-weight: 500; color: var(--v2-text); margin-bottom: 5px; }
.v2-form-group label .req { color: var(--v2-danger); }
.v2-input-wrap { position: relative; }
.v2-input-wrap i.v2-fi { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #aab2bd; font-size: 14px; pointer-events: none; transition: color 0.2s; }
.v2-input-wrap input, .v2-input-wrap select {
    width: 100%; padding: 11px 12px 11px 42px;
    border: 1.5px solid var(--v2-border); border-radius: 10px;
    font-size: 13.5px; font-family: inherit;
    transition: all 0.2s; background: var(--v2-white); color: var(--v2-text);
}
.v2-input-wrap input:focus, .v2-input-wrap select:focus { outline: none; border-color: var(--v2-primary); box-shadow: 0 0 0 3px rgba(135,90,123,0.1); }
.v2-input-wrap input:focus ~ i.v2-fi { color: var(--v2-primary); }
.v2-input-wrap input.error { border-color: var(--v2-danger); }
.v2-input-wrap .v2-toggle-pass { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); cursor: pointer; color: #aab2bd; font-size: 14px; padding: 4px; background: none; border: none; }
.v2-input-wrap .v2-toggle-pass:hover { color: var(--v2-primary); }
.v2-field-error { font-size: 11.5px; color: var(--v2-danger); margin-top: 4px; display: none; }
.v2-field-error.show { display: block; }

/* ── CAPTCHA ── */
.v2-captcha-row { display: none; align-items: center; gap: 10px; margin-bottom: 14px; padding: 12px; background: #f8f9fa; border-radius: 10px; border: 1px solid var(--v2-border); }
.v2-captcha-row.show { display: flex; }
.v2-captcha-img {
    width: 120px; height: 42px;
    background: linear-gradient(135deg, #dfe6e9, #b2bec3);
    border-radius: 6px; display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 800; letter-spacing: 5px; color: #2d3436;
    font-family: 'Courier New', monospace; user-select: none;
    position: relative; overflow: hidden;
}
.v2-captcha-img::before { content: ''; position: absolute; width: 100%; height: 1px; background: rgba(0,0,0,0.15); top: 45%; transform: rotate(-4deg); }
.v2-captcha-img::after { content: ''; position: absolute; width: 100%; height: 1px; background: rgba(0,0,0,0.1); top: 62%; transform: rotate(3deg); }
.v2-captcha-row input {
    flex: 1; padding: 9px 10px;
    border: 1.5px solid var(--v2-border); border-radius: 8px;
    font-size: 13px; font-family: inherit;
}
.v2-captcha-row input:focus { outline: none; border-color: var(--v2-primary); }
.v2-captcha-refresh { cursor: pointer; color: var(--v2-primary); font-size: 18px; padding: 4px; transition: transform 0.3s; background: none; border: none; }
.v2-captcha-refresh:hover { transform: rotate(180deg); }

/* ── INLINE ROW ── */
.v2-inline-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.v2-remember-me { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 12.5px; color: var(--v2-text-muted); }
.v2-remember-me input { accent-color: var(--v2-primary); width: 15px; height: 15px; cursor: pointer; }
.v2-forgot-link { font-size: 12.5px; color: var(--v2-primary); text-decoration: none; font-weight: 500; }
.v2-forgot-link:hover { text-decoration: underline; }

/* ── PRIMARY BUTTON ── */
.v2-btn-login {
    width: 100%; padding: 12px;
    background: linear-gradient(135deg, var(--v2-primary) 0%, var(--v2-primary-dark) 100%);
    color: #fff; border: none; border-radius: 10px;
    font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
    transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px;
    box-shadow: 0 4px 16px rgba(135,90,123,0.3); position: relative; overflow: hidden;
}
.v2-btn-login::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 50%); pointer-events: none; }
.v2-btn-login:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(135,90,123,0.4); }
.v2-btn-login:active { transform: translateY(0); }
.v2-btn-login:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.v2-btn-login .v2-spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: v2spin 0.6s linear infinite; display: none; }
@keyframes v2spin { to { transform: rotate(360deg); } }

/* ── ALERTS ── */
.v2-alert { padding: 10px 14px; border-radius: 10px; font-size: 12.5px; margin-bottom: 14px; display: none; align-items: flex-start; gap: 8px; line-height: 1.5; }
.v2-alert.show { display: flex; }
.v2-alert i { margin-top: 2px; flex-shrink: 0; }
.v2-alert-danger { background: var(--v2-danger-bg); color: var(--v2-danger); border: 1px solid #f5c6cb; }

/* ── REGISTER BAR ── */
.v2-register-bar { text-align: center; padding-top: 14px; border-top: 1px solid #f0f0f0; margin-top: 8px; font-size: 12.5px; color: var(--v2-text-muted); }
.v2-register-bar a { color: var(--v2-primary); font-weight: 600; text-decoration: none; }
.v2-register-bar a:hover { text-decoration: underline; }

/* ── FOOTER ── */
.v2-login-footer { position: relative; z-index: 5; text-align: center; padding: 14px 20px; font-size: 11px; color: rgba(255,255,255,0.55); }
.v2-login-footer a { color: rgba(255,255,255,0.7); text-decoration: none; }
.v2-login-footer a:hover { color: #fff; text-decoration: underline; }

/* ════════════════ RESPONSIVE ════════════════ */
@media (max-width: 560px) {
    .login-main { padding: 16px 10px; }
    .v2-login-card { border-radius: var(--v2-radius-lg); }
    .v2-card-body { padding: 18px 16px 14px; }
    .card-top { padding: 16px 16px 14px; }
    .card-logo { height: 36px; }
    .role-grid { grid-template-columns: repeat(2,1fr); gap: 8px; }
    .role-card { padding: 10px 4px 8px; }
    .role-illust { width: 46px; height: 46px; }
    .role-illust svg { width: 38px; height: 38px; }
    .gov-right { display: none; }
    /* Auto height so the wrapped title fits instead of overflowing/overlapping. */
    .gov-header {
        padding: 8px 14px;
        height: auto;
        min-height: 50px;
        align-items: center;
    }
    .gov-logo { height: 30px; }
    .gov-title h1 { font-size: 12.5px; line-height: 1.25; }
    .gov-title p { font-size: 10px; line-height: 1.2; }
    .ext-pills { gap: 4px; }
    .ext-pill { padding: 5px 10px; font-size: 11px; }
}

/* ══════════════════════════════════════════════════════════════
   V2 LOGIN — LIGHT TWO-PANEL VARIANT (.v2-light)
   Matches the /web/login (iDECT) admin page: warm-beige page,
   left role-info panel + right white form card.
   ══════════════════════════════════════════════════════════════ */
.v2-login-wrapper.v2-light { background-color: #f0ebe8; }

/* Drop the dark gradient backdrop + floating particles */
.v2-login-wrapper.v2-light .bg-canvas,
.v2-login-wrapper.v2-light #v2particles { display: none !important; }

/* Keep the Odoo website wrapper beige underneath */
#wrapwrap:has(.v2-login-wrapper.v2-light) { background: #f0ebe8 !important; }
html:has(.v2-login-wrapper.v2-light),
body:has(.v2-login-wrapper.v2-light) { background: #f0ebe8 !important; }

/* Header: solid maroon bar (instead of the dark glass) */
.v2-login-wrapper.v2-light .gov-header {
    background: linear-gradient(135deg, var(--v2-primary) 0%, var(--v2-primary-dark) 100%);
    backdrop-filter: none; -webkit-backdrop-filter: none;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

/* Two-panel main area */
.v2-login-wrapper.v2-light .login-main {
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    min-height: calc(100vh - 58px - 72px);
}

/* ── LEFT: ROLE INFO PANEL (fills remaining width) ── */
.v2-light .v2-info-panel { flex: 1 1 auto; min-width: 0; padding: 28px 40px 24px; overflow-y: auto; }
.v2-role-info { display: none; animation: v2fadeIn 0.3s ease; }
.v2-role-info.active { display: block; }
.v2-ws-heading { font-size: 2rem; font-weight: 800; color: var(--v2-text); margin-bottom: 6px; line-height: 1.2; }
.v2-ws-heading span { color: var(--v2-text-muted); font-weight: 600; }
.v2-ws-for { font-size: 14.5px; font-weight: 600; color: var(--v2-text); margin-bottom: 10px; }
.v2-ws-desc { font-size: 14px; color: var(--v2-text-muted); line-height: 1.6; margin-bottom: 22px; }

.v2-feat-cards { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.v2-feat-card { display: flex; align-items: flex-start; gap: 14px; background: var(--v2-white); border: 1px solid var(--v2-border); border-radius: var(--v2-radius-lg); padding: 16px 18px; transition: box-shadow 0.2s; }
.v2-feat-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.07); }
.v2-feat-icon { width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.v2-feat-text h4 { font-size: 14px; font-weight: 700; color: var(--v2-text); margin: 0 0 4px; }
.v2-feat-text p { font-size: 13px; color: var(--v2-text-muted); line-height: 1.5; margin: 0; }

.v2-restricted-notice { font-size: 12.5px; color: #555; margin-bottom: 14px; padding: 9px 14px; background: #f5f5f5; border-radius: 8px; border: 1px solid #e0e0e0; display: flex; align-items: center; gap: 7px; }
.v2-restricted-notice i { color: #888; font-size: 13px; }

.v2-signin-box { background: #f5f0f4; border: 1px solid #e6d8e2; border-radius: var(--v2-radius); padding: 14px 18px; margin-bottom: 16px; }
.v2-signin-box h5 { font-size: 12px; font-weight: 700; color: var(--v2-primary-dark); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.v2-signin-box ul { padding-left: 18px; margin: 0; }
.v2-signin-box li { font-size: 13px; color: var(--v2-text); line-height: 1.6; margin-bottom: 3px; }
.v2-signin-box a { color: var(--v2-primary); font-weight: 600; }

.v2-about-box { background: #f5f5f5; border: 1px solid #e0e0e0; border-radius: var(--v2-radius); padding: 14px 18px; }
.v2-about-box h5 { font-size: 12px; font-weight: 700; color: #555; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.v2-about-box p { font-size: 13px; color: var(--v2-text-muted); line-height: 1.6; margin: 0; }

/* ── RIGHT: FORM PANEL (reduced, capped) ── */
.v2-light .v2-form-panel {
    flex: 0 0 auto; width: 32%; min-width: 340px; max-width: 440px;
    background: transparent;
    display: flex; align-items: flex-start; justify-content: center;
    padding: 28px 24px 24px; overflow-y: auto; flex-shrink: 0;
}

/* Light: form card becomes solid white, fills the panel width */
.v2-light .v2-login-card {
    width: 100%;
    background: var(--v2-white);
    backdrop-filter: none; -webkit-backdrop-filter: none;
    box-shadow: 0 4px 32px rgba(0,0,0,0.10), 0 0 0 1px rgba(0,0,0,0.04);
}

/* Light: card header = horizontal logo-beside-title brand row (match admin) */
.v2-login-card .card-top { text-align: left; }
.v2-login-card .card-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    position: relative;
    z-index: 1;
}
.v2-login-card .card-logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
    margin: 0;
    flex-shrink: 0;
}
.v2-login-card .card-brand-text { flex: 1; min-width: 0; }
.v2-login-card .card-top h2 { font-size: 22px; line-height: 1.1; }
.v2-login-card .card-top p { font-size: 12px; line-height: 1.3; margin-top: 2px; }

/* Light: footer text becomes dark */
.v2-light .v2-login-footer { color: var(--v2-text-muted); }
.v2-light .v2-login-footer a { color: var(--v2-primary); }
.v2-light .v2-login-footer a:hover { color: var(--v2-primary-dark); }

/* ── Responsive: stack panels (form first) ── */
@media (max-width: 860px) {
    .v2-light .login-main { flex-direction: column; min-height: 0; }
    .v2-light .v2-form-panel { width: 100%; min-width: 0; max-width: 100%; order: 1; padding: 22px 16px 8px; }
    .v2-light .v2-info-panel { padding: 8px 20px 20px; order: 2; }
    .v2-ws-heading { font-size: 1.5rem; }
    .v2-feat-card { padding: 12px 14px; }
    .v2-feat-icon { width: 40px; height: 40px; }
}

/* ════════════════════════════════════════════════════════════════
   GUIDELINES ACCEPTANCE SCREEN (before Step 1 — Basic Details)
   ════════════════════════════════════════════════════════════════ */
.guidelines-wrap {
    max-width: 960px;
    margin: 24px auto;
    padding: 0 16px;
}
.guidelines-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    padding: 28px 32px 24px;
    border: 1px solid #e3e3e8;
}
.guidelines-header {
    display: flex; gap: 18px; align-items: flex-start;
    padding-bottom: 18px; margin-bottom: 18px;
    border-bottom: 2px solid #f0e6ed;
}
.guidelines-icon {
    flex-shrink: 0;
    width: 64px; height: 64px;
    background: #fff;
    border: 1px solid #e3e3e8; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    padding: 6px; box-sizing: border-box;
}
.guidelines-icon img { width: 100%; height: 100%; object-fit: contain; }
.guidelines-header h2 {
    margin: 0 0 6px; font-size: 22px; font-weight: 700; color: #2c2c2c;
}
.guidelines-header p { margin: 0; color: #666; font-size: 14px; }

.guidelines-banner {
    display: flex; gap: 12px; align-items: flex-start;
    background: #fef4e6; color: #8a5a2b;
    border: 1px solid #f5d9b0; border-radius: 8px;
    padding: 14px 16px; margin-bottom: 22px; font-size: 14px; line-height: 1.5;
}
.guidelines-banner i { font-size: 20px; margin-top: 2px; }

.guidelines-section-title {
    font-size: 16px; font-weight: 700; color: #875a7b;
    margin: 22px 0 12px; padding-bottom: 6px;
    border-bottom: 1px dashed #e0d0db;
    display: flex; align-items: center; gap: 8px;
}

.guidelines-dates {
    width: 100%; border-collapse: collapse; margin-bottom: 6px;
    font-size: 13.5px;
}
.guidelines-dates th, .guidelines-dates td {
    padding: 10px 14px; text-align: left;
    border: 1px solid #e3e3e8;
}
.guidelines-dates th {
    background: #f5eef2; color: #6b4461; font-weight: 600;
}
.guidelines-dates tr:nth-child(even) td { background: #fafafa; }

.guidelines-list {
    margin: 0 0 6px 20px; padding: 0;
    font-size: 14px; line-height: 1.7; color: #444;
}
.guidelines-list li { margin-bottom: 4px; }
.guidelines-list code {
    background: #f0f0f0; padding: 1px 6px; border-radius: 3px;
    font-size: 12.5px; color: #c7254e;
}

.guidelines-dos {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    margin-bottom: 8px;
}
.guidelines-dos h4 {
    margin: 0 0 10px; font-size: 15px; font-weight: 700;
    display: flex; align-items: center; gap: 8px;
}
.guidelines-dos .dos-col h4 { color: #1e8449; }
.guidelines-dos .donts-col h4 { color: #c0392b; }
.guidelines-dos ul {
    margin: 0; padding-left: 20px; font-size: 13.5px; line-height: 1.65; color: #444;
}
.guidelines-dos .dos-col {
    background: #f3fbf5; border: 1px solid #c8e6d0; border-radius: 8px; padding: 14px 16px;
}
.guidelines-dos .donts-col {
    background: #fdf2f2; border: 1px solid #f5c9c9; border-radius: 8px; padding: 14px 16px;
}

.guidelines-para {
    font-size: 14px; line-height: 1.65; color: #444;
    margin: 0 0 10px;
}
.guidelines-note {
    font-size: 13px; line-height: 1.6; color: #666;
    font-style: italic; margin: 6px 0 14px;
}
.guidelines-subhead {
    font-size: 14.5px; font-weight: 600; color: #5a3b51;
    margin: 14px 0 8px;
}

.guidelines-table {
    width: 100%; border-collapse: collapse; margin: 4px 0 12px;
    font-size: 13.5px; line-height: 1.55;
}
.guidelines-table th,
.guidelines-table td {
    padding: 8px 12px; text-align: left;
    border: 1px solid #e3e3e8; vertical-align: top;
}
.guidelines-table th {
    background: #f5eef2; color: #6b4461; font-weight: 600;
}
.guidelines-table tbody tr:nth-child(even) td { background: #fafafa; }
.guidelines-table code {
    background: #f0f0f0; padding: 1px 6px; border-radius: 3px;
    font-size: 12.5px; color: #c7254e;
}

.guidelines-callout {
    margin: 10px 0 14px; padding: 12px 16px;
    border-radius: 6px; border-left: 4px solid;
    font-size: 13.5px; line-height: 1.6;
}
.guidelines-callout-warn {
    background: #fdecea; border-left-color: #d9534f; color: #6a2a25;
}
.guidelines-callout-info {
    background: #fff8e1; border-left-color: #f0b400; color: #6c5200;
}

.guidelines-download-row {
    margin: 22px 0 14px;
    padding: 14px; border-radius: 8px;
    background: #eef4fc; border: 1px dashed #b7d0ec;
    text-align: center;
}
.guidelines-download-row .btn { font-weight: 600; }

.guidelines-accept-row {
    margin: 18px 0 12px;
    padding: 14px 16px;
    background: #fff9eb; border: 1.5px solid #f4c87a;
    border-radius: 8px;
}
.guidelines-accept-label {
    display: flex; gap: 10px; align-items: flex-start;
    font-size: 14px; font-weight: 500; color: #333;
    cursor: pointer; margin: 0;
}
.guidelines-accept-label input[type="checkbox"] {
    margin-top: 3px; transform: scale(1.2); cursor: pointer;
}

.guidelines-footer {
    display: flex; justify-content: space-between; gap: 12px;
    padding-top: 16px; border-top: 1px solid #eee;
    align-items: center;
}
.guidelines-footer .btn {
    padding: 10px 22px; font-weight: 600; font-size: 14px;
    border-radius: 8px;
}
.guidelines-footer .btn-primary:disabled {
    opacity: 0.5; cursor: not-allowed;
}
.guidelines-step-nav { display: flex; gap: 10px; }
.guidelines-step-nav .btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ──── STEPPER MODE (web only — PDF doesn't load this CSS) ──── */
.guidelines-stepper-mode .guidelines-step { display: none; }
.guidelines-stepper-mode .guidelines-step.active {
    display: block;
    animation: guidelines-step-fade 0.18s ease-out;
}
@keyframes guidelines-step-fade {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.guidelines-stepper-head {
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #d8dee7;
}
.guidelines-step-counter {
    font-size: 13px; font-weight: 600; color: #6b6b78;
    margin-bottom: 8px; letter-spacing: 0.3px;
}
.guidelines-step-counter span { color: var(--primary, #875a7b); font-size: 15px; }
.guidelines-progress-bar {
    height: 6px; background: #eef0f3; border-radius: 999px; overflow: hidden;
}
.guidelines-progress-fill {
    height: 100%; width: 8.3%;
    background: linear-gradient(90deg, var(--primary, #875a7b), #b07db0);
    border-radius: 999px;
    transition: width 0.25s ease-out;
}

/* Acceptance row + Proceed btn: hidden until last step.
   JS adds .is-last-step to the stepper on step 12. */
.guidelines-stepper-mode:not(.is-last-step) .guidelines-accept-row { display: none; }

/* Per-step confirmation row (visible on steps 1–11; hidden on the
   last step where the final agreement checkbox replaces it). */
.guidelines-step-confirm-row {
    margin: 14px 0 12px;
    padding: 12px 14px;
    background: #f4f7fb; border: 1px dashed #c8d3e0;
    border-radius: 8px;
}
.guidelines-step-confirm-label {
    display: flex; gap: 10px; align-items: center;
    font-size: 14px; font-weight: 500; color: #333;
    cursor: pointer; margin: 0;
}
.guidelines-step-confirm-label input[type="checkbox"] {
    transform: scale(1.15); cursor: pointer;
}
.guidelines-stepper-mode.is-last-step .guidelines-step-confirm-row { display: none; }

@media (max-width: 768px) {
    .guidelines-card { padding: 18px 16px; }
    .guidelines-dos { grid-template-columns: 1fr; }
    .guidelines-header h2 { font-size: 18px; }
    .guidelines-icon { width: 52px; height: 52px; font-size: 22px; }
}

/* ════════════════════════════════════════════════════════════════
   V2 FORGOT PASSWORD MODAL
   ════════════════════════════════════════════════════════════════ */
.v2-fp-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(30, 20, 30, 0.65);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    animation: v2FpFadeIn 0.2s ease-out;
}
@keyframes v2FpFadeIn { from { opacity: 0; } to { opacity: 1; } }

.v2-fp-modal {
    position: relative;
    background: #fff;
    border-radius: 14px;
    width: 100%; max-width: 460px;
    padding: 32px 28px 26px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: v2FpSlideUp 0.25s ease-out;
}
@keyframes v2FpSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.v2-fp-close {
    position: absolute; top: 10px; right: 14px;
    background: transparent; border: none;
    font-size: 28px; line-height: 1; color: #999;
    cursor: pointer; padding: 4px 8px;
    transition: color 0.15s;
}
.v2-fp-close:hover { color: #333; }

.v2-fp-header {
    text-align: center;
    margin-bottom: 22px;
}
.v2-fp-icon {
    width: 56px; height: 56px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, #875a7b, #6b4461);
    color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    box-shadow: 0 6px 16px rgba(135,90,123,0.35);
}
.v2-fp-header h3 {
    margin: 0 0 6px; font-size: 20px; font-weight: 700; color: #2c2c2c;
}
.v2-fp-header p {
    margin: 0; font-size: 13.5px; color: #666;
}

.v2-fp-alert {
    padding: 10px 14px; border-radius: 8px;
    font-size: 13px; margin-bottom: 16px;
    display: flex; align-items: center; gap: 8px;
}
.v2-fp-alert-error {
    background: #fdecea; color: #c0392b; border: 1px solid #f5b7b1;
}
.v2-fp-alert-success {
    background: #e9f7ef; color: #1e8449; border: 1px solid #a9dfbf;
}

.v2-fp-info {
    background: #ebf3fb; color: #2874a6;
    padding: 10px 14px; border-radius: 8px;
    font-size: 13px; margin-bottom: 16px;
    border: 1px solid #aed6f1;
}
.v2-fp-info i { margin-right: 6px; }

.v2-fp-field {
    margin-bottom: 14px;
}
.v2-fp-field label {
    display: block; font-size: 13px; font-weight: 600;
    color: #444; margin-bottom: 6px;
}
.v2-fp-field label .req { color: #e74c3c; }
.v2-fp-input {
    width: 100%; padding: 10px 14px;
    border: 1.5px solid #ddd; border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.v2-fp-input:focus {
    outline: none;
    border-color: #875a7b;
    box-shadow: 0 0 0 3px rgba(135,90,123,0.15);
}

.v2-fp-btn {
    width: 100%; padding: 11px 18px;
    border: none; border-radius: 8px;
    font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all 0.15s;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.v2-fp-btn-primary {
    background: linear-gradient(135deg, #875a7b, #6b4461);
    color: #fff;
}
.v2-fp-btn-primary:hover:not(:disabled) {
    box-shadow: 0 6px 14px rgba(135,90,123,0.35);
    transform: translateY(-1px);
}
.v2-fp-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.v2-fp-btn-secondary {
    background: #f0f0f0; color: #555;
}
.v2-fp-btn-secondary:hover { background: #e3e3e3; }

.v2-fp-btn-row {
    display: flex; gap: 10px; margin-top: 4px;
}
.v2-fp-btn-row .v2-fp-btn { flex: 1; }

.v2-fp-resend {
    text-align: center; margin-top: 14px;
    font-size: 13px;
}
.v2-fp-resend a {
    color: #875a7b; text-decoration: none; font-weight: 500;
}
.v2-fp-resend a:hover { text-decoration: underline; }

.v2-fp-success {
    text-align: center;
}
.v2-fp-success-icon {
    width: 72px; height: 72px; margin: 4px auto 14px;
    background: #e9f7ef; color: #27ae60;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 38px;
}
.v2-fp-success h4 {
    margin: 0 0 8px; font-size: 18px; color: #1e8449;
}
.v2-fp-success p {
    margin: 0 0 20px; color: #666; font-size: 14px;
}

/* ════════════════════════════════════════════════════════════════
   ONE-PAGE QUICK GUIDE  (guidelines acceptance screen — .gl2)
   Self-contained card layout shown before the application form.
   Mirrors the published "ITI Admission Quick Guide" design.
   All rules scoped under .gl2 so they never leak into the form.
   ════════════════════════════════════════════════════════════════ */
.gl2 {
    --gl-green:#0b6b4f; --gl-green-d:#073d2c; --gl-green-l:#e7f5ef;
    --gl-amber:#e09600; --gl-amber-l:#fff4dc;
    --gl-blue:#1d6fb8;  --gl-blue-l:#e7f1fb;
    --gl-teal:#0e9aa7;  --gl-teal-l:#e3f6f7;
    --gl-ink:#16241f; --gl-muted:#64736e; --gl-line:#e4ebe8; --gl-r:18px;
    --gl-shadow:0 4px 18px rgba(11,107,79,.08);
    max-width:560px; margin:0 auto; color:var(--gl-ink);
    font-size:16px; line-height:1.5;
}
.gl2 *{box-sizing:border-box;}
.gl2 h1,.gl2 h3,.gl2 p,.gl2 ul{margin:0;}

.gl2-header{
    background:linear-gradient(150deg,#0d7c5b,#073d2c); color:#fff;
    padding:22px 18px 24px; border-radius:20px; position:relative; overflow:hidden;
}
.gl2-header::before{content:"";position:absolute;right:-50px;top:-30px;width:160px;height:160px;background:rgba(255,255,255,.06);border-radius:50%;}
.gl2-hgov{font-size:11.5px;letter-spacing:.5px;text-transform:uppercase;opacity:.85;font-weight:600;position:relative;}
.gl2-h1{font-size:23px;margin:7px 0 3px;line-height:1.2;position:relative;color:#fff;}
.gl2-hsub{font-size:13.5px;opacity:.92;position:relative;}
.gl2-stats{display:flex;gap:8px;margin-top:15px;position:relative;}
.gl2-stat{flex:1;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.18);border-radius:13px;padding:9px 6px;text-align:center;}
.gl2-sn{font-size:14px;font-weight:800;line-height:1.1;}
.gl2-sl{font-size:10px;opacity:.85;margin-top:3px;text-transform:uppercase;letter-spacing:.3px;}

.gl2-card{background:#fff;border:1px solid var(--gl-line);border-radius:var(--gl-r);box-shadow:var(--gl-shadow);padding:14px 15px;margin:13px 0;}
.gl2-ct{display:flex;align-items:center;gap:11px;margin-bottom:11px;}
.gl2-ci{flex:0 0 42px;height:42px;border-radius:12px;display:flex;align-items:center;justify-content:center;}
.gl2-ci svg{width:24px;height:24px;}
.gl2-ch{font-size:16px;font-weight:800;}
.gl2-i-green{background:var(--gl-green-l);color:var(--gl-green);}
.gl2-i-blue{background:var(--gl-blue-l);color:var(--gl-blue);}
.gl2-i-amber{background:var(--gl-amber-l);color:var(--gl-amber);}
.gl2-i-teal{background:var(--gl-teal-l);color:var(--gl-teal);}

.gl2-hl{list-style:none;padding:0;}
.gl2-hl li{display:flex;gap:11px;padding:8px 0;font-size:14px;border-bottom:1px dashed var(--gl-line);align-items:flex-start;}
.gl2-hl li:last-child{border-bottom:none;}
.gl2-hi{flex:0 0 26px;height:26px;border-radius:8px;display:flex;align-items:center;justify-content:center;}
.gl2-hi svg{width:16px;height:16px;}
.gl2-hl li b{font-weight:700;}
.gl2-sub{color:var(--gl-muted);font-size:12.5px;}

.gl2-chiprow{display:flex;flex-wrap:wrap;gap:7px;margin-top:11px;}
.gl2-tagp{display:inline-flex;align-items:center;gap:6px;background:var(--gl-green-l);color:var(--gl-green-d);border-radius:30px;padding:6px 12px;font-size:12.5px;font-weight:700;}
.gl2-tagp svg{width:15px;height:15px;color:var(--gl-green);}
@keyframes regConfirmPop{from{transform:scale(0.92);opacity:0;}to{transform:scale(1);opacity:1;}}

.gl2-cardtext{font-size:13px;color:var(--gl-muted);margin-bottom:11px !important;}
.gl2-dlbtn{display:flex;align-items:center;gap:12px;width:100%;border:2px solid var(--gl-blue);background:var(--gl-blue-l);color:var(--gl-blue);border-radius:14px;padding:13px 14px;cursor:pointer;text-align:left;text-decoration:none;}
.gl2-dlbtn:hover{background:#dceafa;text-decoration:none;color:var(--gl-blue);}
.gl2-dz{flex:0 0 40px;height:40px;border-radius:11px;background:var(--gl-blue);color:#fff;display:flex;align-items:center;justify-content:center;}
.gl2-dz svg{width:22px;height:22px;}
.gl2-dt b{display:block;font-size:14.5px;font-weight:800;}
.gl2-dt span{font-size:12px;color:#13548c;opacity:.85;}

.gl2-warn{display:flex;gap:9px;align-items:flex-start;background:var(--gl-amber-l);border:1px solid #f3dca0;border-left:4px solid var(--gl-amber);border-radius:12px;padding:11px 12px;margin:13px 0;font-size:12.5px;color:#6b4e08;}
.gl2-warn svg{width:17px;height:17px;flex:0 0 17px;margin-top:1px;color:var(--gl-amber);}

.gl2-declare{background:linear-gradient(150deg,#0d7c5b,#073d2c);color:#fff;border-radius:var(--gl-r);padding:17px 16px;margin:13px 0 4px;box-shadow:0 6px 20px rgba(11,107,79,.22);position:relative;overflow:hidden;}
.gl2-declare::after{content:"";position:absolute;right:-40px;top:-40px;width:140px;height:140px;background:rgba(255,255,255,.06);border-radius:50%;}
.gl2-dh{font-size:17px;font-weight:800;display:flex;align-items:center;gap:10px;margin-bottom:9px;position:relative;color:#fff;}
.gl2-hz{width:36px;height:36px;border-radius:11px;background:rgba(255,255,255,.16);display:flex;align-items:center;justify-content:center;}
.gl2-hz svg{width:21px;height:21px;}
.gl2-dl{font-size:12.5px;opacity:.95;line-height:1.55;margin-bottom:13px;position:relative;}
.gl2-chk{display:flex;gap:12px;align-items:flex-start;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.25);border-radius:13px;padding:13px;cursor:pointer;position:relative;user-select:none;margin:0;}
.gl2-chk.on{background:rgba(255,255,255,.2);}
.gl2-chk input{position:absolute;opacity:0;width:0;height:0;pointer-events:none;}
.gl2-cbox{flex:0 0 25px;height:25px;border:2px solid #fff;border-radius:7px;display:flex;align-items:center;justify-content:center;margin-top:1px;}
.gl2-cbox svg{width:16px;height:16px;color:var(--gl-green);opacity:0;transition:.15s;}
.gl2-chk.on .gl2-cbox{background:#fff;}
.gl2-chk.on .gl2-cbox svg{opacity:1;}
.gl2-ctx{font-size:13px;font-weight:600;line-height:1.45;}
.gl2-btn{margin-top:12px;width:100%;border:none;border-radius:14px;padding:16px;font-size:16px;font-weight:800;background:#fff;color:#0a5a43;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:9px;opacity:.45;pointer-events:none;transition:.2s;}
.gl2-btn.on{opacity:1;pointer-events:auto;box-shadow:0 8px 18px rgba(0,0,0,.25);}
.gl2-btn:active{transform:translateY(1px);}
.gl2-btn svg{width:21px;height:21px;}
.gl2-btn[disabled]{opacity:.45;pointer-events:none;}
.gl2-hint{text-align:center;font-size:11.5px;opacity:.85;margin-top:9px;position:relative;}

.gl2-cancelrow{display:flex;justify-content:center;margin:16px 0 4px;}

