body.talent-pool-body-override {
    background-color: #0b0c0e !important;
    display: block !important;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.talent-pool-page-wrapper,
.talent-pool-page-wrapper *:not(.fa-solid):not(.fa-regular):not(.fa-brands),
.talent-pool-container,
.talent-pool-container *:not(.fa-solid):not(.fa-regular):not(.fa-brands) {
    font-family: 'Mulish', sans-serif !important;
}

#navbar {
    background-color: #0b0c0e !important;
    border-bottom: 1px solid #1c1e22;
}
#navbar .nav-links a { color: #ffffff !important; }
#navbar .nav-links a.nav-cta { background-color: #FF6C08 !important; color: #FFFFFF !important; }

.talent-pool-page-wrapper {
    position: relative;
    background-color: #0b0c0e;
    padding: 5rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: calc(100vh - 180px);
    box-sizing: border-box;
    overflow: hidden;
}

.landing-hero-backdrop {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -25%);
    width: 100%;
    max-width: 900px;
    text-align: center;
    opacity: 0.12;
    pointer-events: none;
    user-select: none;
    z-index: 1;
}
.landing-hero-backdrop h1 { font-size: 3.5rem; font-weight: 800; color: #FFFFFF; margin-bottom: 1.5rem; letter-spacing: -1px; }
.landing-hero-backdrop p { font-size: 1.2rem; color: #CCCCCC; line-height: 1.6; max-width: 680px; margin: 0 auto 2.5rem auto; }

.talent-pool-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1160px;
    background-color: #141619;
    border-radius: 16px;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    border: 1px solid #23262b;
}

.talent-pool-header {
    padding: 1.75rem 2.5rem;
    border-bottom: 1px solid #23262b;
    background-color: #181a1e;
}
.talent-pool-header h2 { color: #FFFFFF; font-size: 1.4rem; font-weight: 700; margin: 0; letter-spacing: -0.3px; }
.highlight-orange { color: #FF6C08; }

.talent-pool-body {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 560px;
    background-color: #141619;
}

.talent-pool-sidebar {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    border-right: 1px solid #23262b;
    background-color: #181a1e;
}

.step-tab { display: flex; align-items: center; gap: 1rem; opacity: 0.4; transition: opacity 0.25s ease, transform 0.2s ease; cursor: default; }
.step-tab.active { opacity: 1; transform: translateX(2px); }

.step-number { width: 26px; height: 26px; border: 2px solid #FF6C08; color: #ffffff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 700; background-color: #FF6C08; }
.step-circle { width: 24px; height: 24px; border: 2px solid #484f58; border-radius: 50%; background-color: transparent; }
.step-text { color: #9aa2af; font-size: 0.95rem; font-weight: 600; }
.step-tab.active .step-text { color: #ffffff; font-weight: 700; }

.talent-pool-form-panel {
    background-color: #1b1d22;
    margin: 2rem 2.5rem;
    border-radius: 12px;
    padding: 2.5rem;
    height: clamp(460px, calc(100vh - 300px), 900px);
    box-sizing: border-box;
    display: block;
    overflow: hidden;
    border: 1px solid #282c33;
}

.form-panel-section { display: none; width: 100%; height: 100%; flex-direction: column; box-sizing: border-box; }
.form-panel-section.active { display: flex !important; }

.talent-pool-form-panel h3 { color: #ffffff; font-size: 1.1rem; font-weight: 700; margin-top: 0; margin-bottom: 2rem; border-bottom: 1px solid #282c33; padding-bottom: 0.85rem; width: 100%; display: block; letter-spacing: -0.2px; }

.nested-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid #282c33;
    padding-bottom: 0.85rem;
    width: 100%;
}
.nested-section-title {
    margin: 0 !important;
    border: none !important;
    padding: 0 !important;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
}

.scrollable-nested-container { flex: 1; min-height: 0; overflow-y: auto; padding-right: 8px; }
.scrollable-nested-container::-webkit-scrollbar { width: 6px; }
.scrollable-nested-container::-webkit-scrollbar-track { background: #141619; border-radius: 4px; }
.scrollable-nested-container::-webkit-scrollbar-thumb { background: #383c44; border-radius: 4px; }
.scrollable-nested-container::-webkit-scrollbar-thumb:hover { background: #4f5560; }

.form-grid-2x2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 1.5rem; width: 100%; }
.grid-span-2 { grid-column: span 2; }
.grid-span-all { grid-column: 1 / -1; }

.input-group-split-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }

.nested-fields-entry-card { background: #141619; border: 1px solid #282c33; padding: 1.5rem; border-radius: 8px; margin-bottom: 1.5rem; position: relative; }

.input-group { display: flex; flex-direction: column; gap: 0.55rem; }
.input-group label, .file-box-label { color: #c9d1d9; font-size: 0.88rem; font-weight: 600; letter-spacing: 0.1px; }

.input-group input,
.input-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #383c44;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #ffffff;
    outline: none;
    background-color: #141619;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.input-group input:focus,
.input-group select:focus {
    border-color: #FF6C08;
    box-shadow: 0 0 0 3px rgba(255, 108, 8, 0.2);
}
.input-group input::placeholder {
    color: #586069;
}
.input-group input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.ts-wrapper.public-select-ts {
    width: 100% !important;
}

.ts-wrapper.public-select-ts .ts-control {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    border: 1px solid #383c44 !important;
    border-radius: 8px !important;
    font-size: 0.95rem !important;
    color: #ffffff !important;
    background-color: #141619 !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    min-height: 46px !important;
    box-shadow: none !important;
}

.ts-wrapper.public-select-ts.focus .ts-control {
    border-color: #FF6C08 !important;
    box-shadow: 0 0 0 3px rgba(255, 108, 8, 0.2) !important;
}

.ts-wrapper.public-select-ts .ts-control .item {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #ffffff !important;
    font-size: 0.95rem !important;
    box-shadow: none !important;
}

.ts-wrapper.public-select-ts .ts-control .item .remove {
    display: none !important;
}

.ts-wrapper.public-select-ts .ts-control > input {
    color: #ffffff !important;
    font-size: 0.95rem !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ts-wrapper.public-select-ts .ts-control > input::placeholder {
    color: #586069 !important;
}

.cv-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.cv-suggestions .cv-suggestion {
    text-align: left;
    background-color: transparent !important;
    color: #c9d1d9 !important;
    border: 1px dashed #4b5563 !important;
    border-radius: 9999px !important;
    padding: 4px 12px !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.15s ease-in-out !important;
    line-height: 1.2 !important;
}

.cv-suggestions .cv-suggestion:hover {
    background-color: rgba(249, 115, 22, 0.1) !important;
    color: #f97316 !important;
    border-color: #f97316 !important;
}

.cv-suggestions .cv-suggestion.is-selected {
    background-color: #2a2e35 !important;
    color: #e2e8f0 !important;
    border: 1px solid #383c44 !important;
}

.cv-suggestions .cv-suggestion.is-selected:hover {
    background-color: #2a2e35 !important;
    color: #e2e8f0 !important;
    border-color: #383c44 !important;
}

.experience-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.card-actions-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    margin-bottom: 8px !important;
}

.cv-matched {
    margin-right: auto !important;
}

.cv-matched span {
    color: #d1d5db !important;
    white-space: nowrap !important;
}

.cv-matched .cv-change {
    background: transparent !important;
    border: none !important;
    color: #f97316 !important;
    text-decoration: underline !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    padding: 0 !important;
}

.cv-matched .cv-change:hover {
    color: #fb923c !important;
}

.competencies-tags-display-container .competency-tag-pill .remove-node {
    color: #9aa2af !important;
    border-left: 1px solid #383c44 !important;
}

/* ==========================================================================
   CV Proposals Box & Collapsed State
   ========================================================================== */

/* Outer Container */
.cv-proposals-box {
    background: #181b20;
    border: 1px dashed #383c44;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.cv-proposals-box:hover {
    border-color: #4b525d;
}

/* Header Badge & Title */
.cv-proposals-tag {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--tpt-accent, #f97316);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.cv-proposals-subtitle {
    font-size: 0.88rem;
    color: #94a3b8;
    margin: 0 0 12px 0;
    font-weight: 400;
}

/* ==========================================================================
   Options List & Custom Radio Cards
   ========================================================================== */

.cv-options-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Card Option Base */
.cv-option-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 0;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.cv-option-card:active {
    transform: scale(0.995);
}

/* Radio Input */
.cv-option-radio {
    appearance: none;
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    border: 2px solid #8e95a2;
    border-radius: 50%;
    outline: none;
    margin-top: 2px;
    display: grid;
    place-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.cv-option-radio::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    transform: scale(0);
    transition: 0.15s transform ease-in-out;
    background-color: var(--tpt-accent, #ff6200);
}

.cv-option-card:hover .cv-option-radio {
    border-color: var(--tpt-accent, #ff6200);
}

.cv-option-radio:checked {
    border-color: var(--tpt-accent, #ff6200);
}

.cv-option-radio:checked::before {
    transform: scale(1);
}

/* Typography Inside Option Card */
.cv-option-content {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.3;
}

.cv-option-title {
    font-size: 0.82rem;
    font-weight: 500;
    color: #e2e8f0;
}

.cv-option-meta {
    font-size: 0.74rem;
    color: #8e95a2;
}

/* ==========================================================================
   Collapsed Summary Banner (Selected State)
   ========================================================================== */

/* The experience fields wait for an answer to the question. */
.form-panel-section.cv-awaiting-role .scrollable-nested-container { display: none !important; }

/* State Hiding Toggle */
.cv-proposals-box.is-chosen .cv-proposals-body {
    display: none;
}

.cv-proposals-box.is-chosen {
    padding: 12px 16px;
    background-color: #181b20;
}

/* Collapsed Row Container */
.cv-proposals-summary,
.cv-chosen {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    font-size: 0.88rem;
    color: #94a3b8;
    margin: 0;
    padding: 0;
}

.cv-summary-text strong,
.cv-chosen-text strong {
    color: #ffffff;
    font-weight: 600;
    margin-left: 2px;
}

/* "Change" Link Trigger */
.cv-change-btn,
.cv-change {
    background: transparent;
    border: none;
    color: var(--tpt-accent, #f97316);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    padding: 0;
    margin-left: 6px;
    transition: opacity 0.15s ease, color 0.15s ease;
}

.cv-change-btn:hover,
.cv-change:hover {
    opacity: 0.85;
}

/* ==========================================================================
   Form Grid Fixes (Job Category / Job Title / Industry Row)
   ========================================================================== */

.experience-form-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
    margin-bottom: 16px;
}

.experience-form-row .input-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0; /* Prevents overflow inside flex/grid items */
}

/* Fix TomSelect inputs stretching/breaking vertical alignment */
.experience-form-row .ts-wrapper {
    width: 100% !important;
}

.experience-form-row .ts-control {
    background-color: #2a2e35 !important;
    border: 1px solid #383c44 !important;
    border-radius: 6px !important;
    color: #f1f5f9 !important;
    min-height: 40px !important;
    padding: 8px 12px !important;
}

/* Inline Match Badge ("matched to Software Developer change") */
.job-title-matched-hint {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1.2;
}

.job-title-matched-hint strong {
    color: #f1f5f9;
}

.job-title-matched-hint .change-match-btn {
    color: var(--tpt-accent, #f97316);
    background: none;
    border: none;
    padding: 0;
    margin-left: 2px;
    font-size: 0.75rem;
    text-decoration: underline;
    cursor: pointer;
}

.ts-dropdown {
    background: #1b1d22 !important;
    border: 1px solid #383c44 !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3) !important;
}

.ts-dropdown .ts-dropdown-content,
.ts-dropdown .optgroup-header,
.ts-dropdown .no-results {
    background: #1b1d22 !important;
    color: #c9d1d9 !important;
}
.ts-dropdown .option {
    color: #c9d1d9 !important;
}
.ts-dropdown .active {
    background-color: #FF6C08 !important;
    color: #ffffff !important;
}

.is-invalid {
    border-color: #dc3545 !important;
}
.ts-control.is-invalid {
    border-color: #dc3545 !important;
}

.ts-wrapper.public-select-ts.disabled .ts-control,
.ts-wrapper.public-select-ts.disabled .ts-control input,
.ts-wrapper.public-select-ts.locked .ts-control,
.ts-wrapper.public-select-ts.locked .ts-control input {
    background-color: #141619 !important;
    color: #ffffff !important;
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

.ts-wrapper.public-select-ts.disabled .ts-control input::placeholder,
.ts-wrapper.public-select-ts.locked .ts-control input::placeholder,
.ts-wrapper.public-select-ts.disabled .ts-control .item,
.ts-wrapper.public-select-ts.locked .ts-control .item {
    color: #586069 !important;
}

.input-group.disabled label,
.input-group label:has(+ .disabled),
.input-group label[for]:has(+ .ts-wrapper.disabled) {
    color: #c9d1d9 !important;
    opacity: 1 !important;
}

.input-group label {
    color: #c9d1d9 !important;
    opacity: 1 !important;
}

.ts-wrapper.public-select-ts .ts-control {
    min-height: 42px !important;
    max-height: 42px !important;
    height: 42px !important;
    padding: 0 12px !important;
    display: flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.ts-wrapper.public-select-ts .ts-control .item {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    display: block !important;
    line-height: normal !important;
}

.ts-wrapper.public-select-ts .ts-control > input {
    height: 24px !important;
    line-height: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ts-wrapper.public-select-ts .ts-control > input {
    height: 24px !important;
    line-height: 24px !important;
    padding: 0 !important;
    margin: 0 !important;
}

.competency-block-wrapper,
.competency-block-wrapper .custom-dropdown-mock-box,
.competency-block-wrapper .ts-wrapper {
    width: 100% !important;
    display: block !important;
}

.ts-wrapper.disabled .ts-control {
    background-color: #141619 !important;
    opacity: 0.6;
    cursor: not-allowed;
}

.experience-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
    align-items: start;
}

.relative-icon { position: relative; }
.icon-right { position: absolute; right: 16px; bottom: 15px; color: #8b949e; pointer-events: none; font-size: 0.9rem; z-index: 2; }

.add-nested-block-btn { background-color: rgba(255, 108, 8, 0.1); color: #FF6C08; border: 1px dashed #FF6C08; padding: 0.5rem 1.25rem; border-radius: 6px; font-weight: 600; font-size: 0.85rem; cursor: pointer; transition: all 0.2s ease; }
.add-nested-block-btn:hover { background-color: #FF6C08; color: #FFFFFF; }

.remove-nested-block-btn { background: none; border: none; color: #f85149; font-weight: 600; font-size: 0.85rem; cursor: pointer; }
.remove-nested-block-btn:hover { text-decoration: underline; }

.custom-public-upload-zone { border: 2px dashed #383c44; background: #141619; border-radius: 8px; padding: 1.75rem; text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center; }
/* The CV picker is the button and the file's name, with no field box round them.
   Written against .input-group input, which would otherwise draw one. */
.input-group input.public-file-node { display: block; width: 16rem; max-width: 100%; box-sizing: border-box; padding: 0; font-size: 0.9rem; color: #c9d1d9; background: transparent; border: 0; border-radius: 0; }
.input-group input.public-file-node:focus { box-shadow: none; }
.input-group input.public-file-node:focus-visible { outline: 2px solid #FF6C08; outline-offset: 4px; }
.public-file-node::file-selector-button { margin-right: 12px; padding: 6px 14px; border: 0; border-radius: 6px; background: #2f333b; color: #ffffff; font: inherit; font-weight: 600; cursor: pointer; }
.help-text { color: #8b949e; font-size: 0.8rem; }

.talent-pool-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2.5rem;
    border-top: 1px solid #23262b;
    background-color: #181a1e;
}

.footer-left-actions, .footer-right-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-form-cancel { background: transparent; color: #9aa2af; border: 1px solid #383c44; padding: 0.65rem 2.25rem; border-radius: 20px; text-decoration: none; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.btn-form-cancel:hover { background-color: #23262b; color: #ffffff; border-color: #484f58; }

.btn-form-continue { background-color: #FF6C08; color: #FFFFFF; border: none; padding: 0.65rem 2.75rem; border-radius: 12px; font-size: 0.95rem; font-weight: 700; cursor: pointer; transition: background-color 0.2s, transform 0.1s; }
.btn-form-continue:hover { background-color: #ff7d26; }
.btn-form-continue:active { transform: scale(0.98); }
.btn-form-continue:disabled, .btn-form-continue.is-held { background-color: #4a4a4a; color: #9a9a9a; cursor: not-allowed; transform: none; transition: none; }
.btn-form-continue:disabled:hover, .btn-form-continue.is-held:hover { background-color: #4a4a4a; }

footer { position: relative; z-index: 3; background-color: #0b0c0e !important; border-top: 1px solid #1c1e22; padding: 2.5rem 2rem; }
footer small { color: #586069 !important; font-size: 0.85rem; }
footer a.footer-link { color: #586069; font-size: 0.85rem; text-decoration: none; }
footer a.footer-link:hover { color: #b0ada8; text-decoration: underline; }

.landing-hero-backdrop { display: none !important; }

html, body {
    margin: 0 !important;
    padding: 0 !important;
    height: 100vh !important;
    width: 100vw !important;
    overflow: hidden !important;
    background-color: #0f1012 !important;
}

body {
    position: relative;
}

#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    background: #0f1012;
}

#navbar .nav-logo svg {
    height: 32px;
    width: auto;
}

#navbar .nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

#navbar .nav-links a {
    color: #d1d5db;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.mobile-nav-toggle {
    display: none;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 32px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0f1012;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.talent-pool-page-wrapper {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 100% !important;
    max-width: 1100px !important; /* INCREASED from 900px to widen the modal container */
    padding: 0 16px !important;
    box-sizing: border-box !important;
    z-index: 10;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.talent-pool-container {
    width: 100%;
    height: 600px;
    max-height: calc(100vh - 160px);
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    border-radius: 12px;
    overflow: hidden !important; /* Keep outer clipping active */
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* ADD THIS: Prevent horizontal overflow in the form body/scroll area */
.talent-pool-body,
.talent-pool-form-panel,
.scrollable-nested-container {
    overflow-x: hidden !important;
}

/* ADD THIS: Force grid inputs to shrink within bounds rather than pushing width */
.form-grid-2x2,
.experience-form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.talent-pool-header {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    padding: 22px 28px !important;
    background: #17191d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0 !important;
}

.talent-pool-header h2 {
    font-size: 1.15rem !important;
    margin: 0 !important;
    color: #ffffff !important;
    font-weight: 600;
}

.talent-pool-header h2 .highlight-orange {
    color: #FF6C08;
}

.mobile-step-header {
    display: none;
    margin-top: 12px;
}

.talent-pool-sidebar {
    padding: 16px 12px !important;
    overflow-y: auto !important;
    flex-shrink: 0 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    width: 210px;
    display: flex;
    flex-direction: column;
    gap: 16px !important;
}

.step-tab {
    padding: 6px 8px !important;
    font-size: 0.75rem !important;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-tab .step-number {
    width: 18px !important;
    height: 18px !important;
    font-size: 0.7rem !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FF6C08;
    color: #ffffff;
    flex-shrink: 0;
}

.step-tab .step-circle {
    width: 18px !important;
    height: 18px !important;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    box-sizing: border-box;
    flex-shrink: 0;
}

.input-group {
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    color: #e2e8f0;
    margin-bottom: 6px;
}

.input-group input {
    width: 100%;
    background: #1e2126;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 14px;
    color: #ffffff;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.add-nested-block-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1rem !important;
    line-height: 1 !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    background: rgba(255, 108, 8, 0.08) !important;
    border: 1.5px dashed #FF6C08 !important;
    color: #FF6C08 !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    outline: none !important;
    box-shadow: none !important;
    transition: all 0.2s ease-in-out !important;
}

.add-nested-block-btn:hover,
.add-nested-block-btn:focus,
.add-nested-block-btn:active {
    background: rgba(255, 108, 8, 0.22) !important;
    border-color: #ff8533 !important;
    color: #ffffff !important;
    outline: none !important;
    box-shadow: 0 0 8px rgba(255, 108, 8, 0.3) !important;
}

.nested-section-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 12px !important;
}

#public-qualifications-wrapper .nested-fields-entry-card:first-child .remove-nested-block-btn {
    display: none !important;
}

.remove-nested-block-btn {
    background: transparent !important;
    border: none !important;
    color: #ef4444 !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    padding: 0 !important;
}

/* ========================================================= */
/* EXPERIENCE STEP FIXES & GRID ALIGNMENT                    */
/* ========================================================= */

#public-experience-wrapper .nested-fields-entry-card {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    position: relative !important;
    padding: 24px 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

#public-experience-wrapper .experience-form-row {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
    width: 100% !important;
    align-items: end !important;
    box-sizing: border-box !important;
}

#public-experience-wrapper .experience-form-row label {
    display: flex !important;
    align-items: flex-end !important;
    min-height: 2.2em !important;
    margin-bottom: 6px !important;
    font-size: 0.85rem !important;
    color: #e2e8f0 !important;
    line-height: 1.2 !important;
}

#public-experience-wrapper .experience-form-row .input-group {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    height: 100% !important;
}

/* Dates Row: Start Date & End Date (2 equal columns) */
#public-experience-wrapper .input-group-split-dates {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
    width: 100% !important;
    align-items: start !important;
    box-sizing: border-box !important;
}

#public-experience-wrapper .experience-full-row,
#public-experience-wrapper .competency-block-wrapper,
#public-experience-wrapper .employer-name-wrapper {
    width: 100% !important;
    box-sizing: border-box !important;
}

#public-experience-wrapper .input-group label {
    display: flex !important;
    align-items: center !important;
    min-height: auto !important;
    margin-bottom: 6px !important;
    font-size: 0.85rem !important;
    color: #e2e8f0 !important;
}

#public-experience-wrapper input[type="text"],
#public-experience-wrapper input[type="date"],
#public-experience-wrapper select {
    height: 42px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

#public-experience-wrapper .nested-fields-entry-card:first-child .remove-nested-block-btn,
#public-experience-wrapper .nested-fields-entry-card:first-child .card-actions-row {
    display: none !important;
}

#public-experience-wrapper .remove-nested-block-btn {
    position: static !important;
    top: auto !important;
    right: auto !important;
    flex-shrink: 0 !important;
}

/* ========================================================= */
/* INTL-TEL-INPUT & PHONE FIELD OVERRIDES                     */
/* ========================================================= */

.phone-input-container,
.iti,
.intl-tel-input {
    position: relative !important;
    display: block !important;
    width: 100% !important;
}

.phone-input-container input[type="tel"],
.phone-input-container input[type="text"],
.iti input[type="tel"],
.iti input[type="text"] {
    width: 100% !important;
    height: auto !important;
    background: #1e2126 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    padding: 10px 14px 10px 52px !important;
    color: #ffffff !important;
    font-size: 0.9rem !important;
    box-sizing: border-box !important;
    line-height: normal !important;
}

.iti__country-container,
.iti__flag-container,
.intl-tel-input .flag-container,
.iti__selected-country,
.iti__selected-flag {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    padding-left: 12px !important;
    padding-right: 8px !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    z-index: 5 !important;
}

.iti__country-list,
.intl-tel-input .country-list {
    width: 320px !important;
    min-width: 320px !important;
    max-width: 90vw !important;
    max-height: 240px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background-color: #17191d !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6) !important;
    z-index: 999999 !important;
    padding: 6px 0 !important;
    list-style: none !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

.iti__dropdown-content {
    width: 320px !important;
    max-width: 90vw !important;
    background-color: #17191d !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6) !important;
    overflow: hidden !important;
}

.iti__dropdown-content .iti__country-list {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.iti__search-input-wrapper {
    position: relative !important;
    padding: 8px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.iti__search-input {
    width: 100% !important;
    height: 40px !important;
    padding: 0 36px !important;
    background-color: #1f2228 !important;
    color: #e2e8f0 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 6px !important;
    font-size: 0.9rem !important;
    outline: none !important;
    box-shadow: none !important;
}

.iti__search-input:focus {
    border-color: #ff6c08 !important;
}

.iti__search-icon {
    left: 20px !important;
    color: #94a3b8 !important;
}

.iti__search-clear {
    right: 16px !important;
}

.iti--fullscreen-popup .iti__dropdown-content {
    width: auto !important;
    max-width: none !important;
}

.iti--fullscreen-popup .iti__country-list {
    flex: 1 1 auto !important;
    max-height: none !important;
}

.iti__country,
.intl-tel-input .country-list .country {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 8px 14px !important;
    font-size: 0.85rem !important;
    color: #ffffff !important;
    background: transparent !important;
    cursor: pointer !important;
}

.iti__country:hover,
.iti__country.iti__highlight,
.intl-tel-input .country-list .country:hover,
.intl-tel-input .country-list .country.highlight {
    background-color: rgba(255, 108, 8, 0.2) !important;
    color: #ffffff !important;
}

.iti__flag,
.iti__country .iti__flag-box {
    flex: 0 0 auto !important;
}

.iti__country-name,
.intl-tel-input .country-name {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    color: #e2e8f0 !important;
    font-size: 0.85rem !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.iti__dial-code,
.intl-tel-input .dial-code {
    flex: 0 0 auto !important;
    color: #94a3b8 !important;
    font-size: 0.85rem !important;
    margin-left: 8px !important;
}

.competency-block-wrapper select,
select.public-select-ts {
    background-color: #1e2126 !important;
    color: rgba(255, 255, 255, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    padding: 8px 14px !important;
    width: 100% !important;
    height: 40px !important;
    appearance: none !important;
    box-sizing: border-box !important;
}

#multi-step-form {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: 100% !important;
}

.talent-pool-body {
    flex: 1 1 auto !important;
    display: flex !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow: visible !important;
}

.talent-pool-form-panel {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow-y: auto !important;
    overflow-x: visible !important;
    padding: 20px 24px 24px 24px !important;
    box-sizing: border-box !important;
}

.nested-fields-entry-card {
    overflow: visible !important;
    position: relative !important;
    margin-bottom: 24px !important;
    background: #17191d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px 20px 24px 20px !important;
    box-sizing: border-box !important;
}

.talent-pool-footer {
    flex-shrink: 0 !important;
    padding: 16px 24px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #17191d;
}

.btn-cancel, .btn-back {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 12px 36px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
}

.btn-continue {
    background: #FF6C08;
    border: none;
    color: #ffffff;
    padding: 12px 40px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
}



/* ========================================================= */
/* MOBILE SCREEN OVERRIDES                                   */
/* ========================================================= */
@media (max-width: 768px) {
    footer {
        display: none !important;
    }

    #navbar {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 60px !important;
        padding: 0 16px !important;
        justify-content: space-between !important;
        align-items: center !important;
        background: #0f1012 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        z-index: 99999 !important;
        overflow: visible !important;
    }

    #navbar .nav-logo {
        display: flex !important;
        align-items: center !important;
    }

    #navbar .nav-logo svg {
        height: 28px !important;
        width: auto !important;
        display: block !important;
    }

    #navbar .nav-links {
        display: none !important;
    }

    #navbar .nav-links.nav-open {
        display: flex !important;
        position: absolute !important;
        top: 60px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        height: auto !important;
        max-height: calc(100vh - 60px) !important;
        background: rgba(15, 16, 18, 0.85) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        padding: 20px 24px 28px 24px !important;
        gap: 20px !important;
        box-sizing: border-box !important;
        z-index: 999999 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7) !important;
    }

    #navbar .nav-links li {
        list-style: none !important;
        width: 100% !important;
        text-align: right !important;
        margin: 0 !important;
        padding: 0 !important;
        background: none !important;
    }

    #navbar .nav-links li a,
    #navbar .nav-links li a.nav-cta,
    #navbar .nav-links .nav-cta {
        color: #ffffff !important;
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        letter-spacing: 0.08em !important;
        text-decoration: none !important;
        text-transform: uppercase !important;
        display: inline-block !important;
        padding: 4px 0 !important;
        margin: 0 !important;
        background: none !important;
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        width: auto !important;
        height: auto !important;
    }

    .mobile-nav-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important;
        border: none !important;
        color: #ffffff !important;
        font-size: 1.25rem !important;
        cursor: pointer !important;
        padding: 4px !important;
    }

    .talent-pool-page-wrapper {
        position: fixed !important;
        top: 60px !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        height: calc(100vh - 60px) !important;
        height: calc(100dvh - 60px) !important;
        transform: none !important;
        max-width: none !important;
        padding: 12px 16px calc(16px + env(safe-area-inset-bottom)) 16px !important;
        box-sizing: border-box !important;
        background: #0f1012 !important;
        display: flex !important;
        flex-direction: column !important;
        z-index: 1 !important;
    }

    .talent-pool-container {
        width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        flex: 1 1 auto !important;
        min-height: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        border-radius: 16px !important;
        background: #17191d !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        margin: 0 !important;
        overflow: hidden !important;
    }

    .talent-pool-sidebar {
        display: none !important;
    }

    .talent-pool-header {
        padding: 16px 16px 12px 16px !important;
        background: transparent !important;
        border-bottom: none !important;
        flex-shrink: 0 !important;
    }

    .talent-pool-header h2 {
        font-size: 1.1rem !important;
        font-weight: 700 !important;
    }

    .mobile-step-header {
        display: block !important;
        margin-top: 10px !important;
    }

    .mobile-step-title-row {
        display: flex !important;
        align-items: center !important;
        margin-bottom: 8px !important;
    }

    .mobile-active-step-name {
        font-size: 1.05rem !important;
        font-weight: 700 !important;
        color: #ffffff !important;
    }

    .mobile-progress-bar {
        display: flex !important;
        gap: 6px !important;
        width: 100% !important;
    }

    .progress-segment {
        flex: 1 !important;
        height: 4px !important;
        background: rgba(255, 255, 255, 0.15) !important;
        border-radius: 2px !important;
    }

    .progress-segment.active {
        background: #FF6C08 !important;
    }

    .talent-pool-body {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    .talent-pool-form-panel {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 12px 16px 24px 16px !important;
        box-sizing: border-box !important;
    }

    /* ========================================================= */
    /* MOBILE FIX: MATCHED ROLE BANNER & TRASH ICON               */
    /* ========================================================= */

    .card-actions-row {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
        width: 100% !important;
        gap: 8px !important;
        margin-bottom: 12px !important;
    }

    .cv-matched {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 6px 10px !important;
        font-size: 0.78rem !important;
        line-height: 1.3 !important;
        max-width: calc(100% - 32px) !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }

    .cv-matched span {
        white-space: normal !important;
        word-break: break-word !important;
    }

    .cv-matched .cv-change {
        font-size: 0.78rem !important;
        margin-left: 2px !important;
    }

    #public-experience-wrapper .remove-nested-block-btn,
    .remove-nested-block-btn {
        position: static !important;
        flex-shrink: 0 !important;
        padding: 4px !important;
        font-size: 0.9rem !important;
        margin-left: auto !important;
    }

    #public-experience-wrapper .nested-fields-entry-card,
    .nested-fields-entry-card {
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        margin-bottom: 24px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    .form-grid-2x2,
    .experience-grid-3col,
    #public-experience-wrapper .experience-form-row,
    #public-experience-wrapper .input-group-split-dates,
    .input-group-split-dates {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
        width: 100% !important;
        grid-template-columns: none !important;
    }

    #public-experience-wrapper .input-group-split-dates .input-group,
    #public-experience-wrapper .experience-form-row .input-group {
        width: 100% !important;
    }

    #public-experience-wrapper .input-group label {
        min-height: auto !important;
        margin-bottom: 4px !important;
    }

    .talent-pool-footer {
        flex-shrink: 0 !important;
        padding: 14px 16px 18px 16px !important;
        display: flex !important;
        gap: 12px !important;
        background: #17191d !important;
        border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
        z-index: 20 !important;
    }

    .footer-right-actions {
        display: flex !important;
        flex: 1 !important;
    }

    .btn-cancel, .btn-back, .btn-form-cancel {
        flex: 1 !important;
        text-align: center !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        color: #ffffff !important;
        border-radius: 40px !important;
        padding: 14px 0 !important;
        font-size: 0.95rem !important;
        font-weight: 600 !important;
    }

    .btn-continue,
    .btn-form-continue {
        flex: 1 !important;
        width: 100% !important;
        text-align: center !important;
        background: #FF6C08 !important;
        border: none !important;
        color: #ffffff !important;
        border-radius: 40px !important;
        padding: 14px 0 !important;
        font-size: 0.95rem !important;
        font-weight: 600 !important;
    }

    /* The orange above is !important, so a held button needs its grey said
       again here or it looks ready on a phone. */
    .btn-continue:disabled,
    .btn-form-continue:disabled,
    .btn-form-continue.is-held {
        background: #4a4a4a !important;
        color: #9a9a9a !important;
    }

    .footer-left-actions {
        display: flex !important;
        flex: 1 !important;
    }

    /* ========================================================= */
    /* FIX: CAPTCHA full width on top, Back + Submit side by side */
    /* ========================================================= */

    .talent-pool-footer:has(.turnstile-slot:not([style*="display: none"])) {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .footer-right-actions:has(.turnstile-slot:not([style*="display: none"])) {
        display: contents !important;
    }

    .turnstile-slot:not([style*="display: none"]) {
        order: -1 !important;
        flex: 1 1 100% !important;   /* forces it onto its own row */
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }

    .turnstile-slot:not([style*="display: none"]) .cf-turnstile-widget,
    .turnstile-slot:not([style*="display: none"]) iframe {
        width: 100% !important;
        max-width: 100% !important;
    }

    .talent-pool-footer:has(.turnstile-slot:not([style*="display: none"])) .footer-left-actions {
        display: flex !important;
        flex: 1 !important;
    }

    .talent-pool-footer:has(.turnstile-slot:not([style*="display: none"])) .btn-form-cancel,
    .talent-pool-footer:has(.turnstile-slot:not([style*="display: none"])) .btn-back {
        width: 100% !important;
        flex: 1 !important;
    }

    /* Higher specificity than the earlier .btn-continue,.btn-form-continue
       rule, so this wins over its width:100% without touching that rule
       (which other steps still rely on). */
    .talent-pool-footer:has(.turnstile-slot:not([style*="display: none"])) .btn-form-continue,
    .talent-pool-footer:has(.turnstile-slot:not([style*="display: none"])) #public-submit-node,
    .talent-pool-footer:has(.turnstile-slot:not([style*="display: none"])) #public-next-btn {
        flex: 1 !important;
        width: auto !important;
    }
}

.required-star { color: #D92D20; font-weight: 700; }
.required-legend { margin: -1rem 0 1.25rem; font-size: 0.8rem; color: #8b949e; }
@media (max-width: 768px) {
    .form-panel-section > h3 { display: none; }
    #step-5-panel .nested-section-header,
    #step-6-panel .nested-section-header { display: none !important; }
    #step-5-panel .add-nested-block-btn,
    #step-6-panel .add-nested-block-btn { width: 100%; }
    .form-panel-section > .required-legend { order: 1; margin: auto 0 0; padding-top: 1.25rem; }
}

.otp-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, 0.72); }
.otp-card { width: 100%; max-width: 420px; padding: 28px; box-sizing: border-box; background: #1b1d22; border: 1px solid #282c33; border-radius: 16px; box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5); color: #ffffff; text-align: left; }
.otp-card h3 { margin: 0 0 0.5rem; font-size: 1.2rem; font-weight: 700; color: #ffffff; letter-spacing: -0.2px; }
.otp-lead { margin: 0 0 1.5rem; font-size: 0.95rem; line-height: 1.5; color: #c9d1d9; }
.otp-lead strong { color: #ffffff; font-weight: 600; overflow-wrap: anywhere; }
.otp-input { width: 100%; box-sizing: border-box; padding: 14px 12px; text-align: center; font-size: 1.6rem; font-weight: 700; letter-spacing: 10px; text-indent: 10px; color: #ffffff; background: #1e2126; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px; outline: none; }
.otp-input::placeholder { color: rgba(255, 255, 255, 0.18); }
.otp-input:focus { border-color: #FF6C08; }
.otp-error, .otp-note { margin-top: 0.6rem; font-size: 0.85rem; line-height: 1.4; }
.otp-error { color: #f97066; }
.otp-note { color: #8b949e; }
.otp-resend { display: block; margin: 1rem 0 0; padding: 0; background: none; border: 0; color: #FF6C08; font-size: 0.9rem; font-weight: 600; text-decoration: underline; cursor: pointer; }
.otp-resend:disabled { color: #8b949e; text-decoration: none; cursor: default; }
.otp-actions { display: flex; gap: 12px; margin-top: 1.75rem; }
.otp-actions > button { flex: 1; padding-left: 0; padding-right: 0; text-align: center; }

/* --- step 1: verify your email -------------------------------------------- */
.input-group label.gate-consent-label { display: flex !important; flex-direction: row !important; align-items: flex-start; justify-content: flex-start; gap: 10px; font-weight: 500; line-height: 1.45; cursor: pointer; }
.input-group label.gate-consent-label input[type="checkbox"] { width: 18px !important; height: 18px; min-width: 18px; flex: 0 0 18px; margin: 2px 0 0; padding: 0; accent-color: var(--tpt-accent, #ff6c08); }
.input-group label.gate-consent-label a { color: var(--tpt-accent, #ff6c08); text-decoration: underline; }
.gate-intro { margin: -1rem 0 0.75rem; color: #c9d1d9; font-size: 0.95rem; line-height: 1.5; }
.gate-consent { margin-top: 1.5rem; }
.gate-turnstile { margin-top: 0.75rem; }
.gate-intro + .required-legend { margin-top: 0; }
.gate-change-link { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--tpt-accent, #ff6c08); font-size: 0.85rem; text-decoration: underline; cursor: pointer; }
.gate-message { color: #f97066; font-size: 0.9rem; line-height: 1.45; }
/* Get Started's message shows under the verification check, centred, in room
   kept for it: two lines, which the longest message needs on most widths. */
.gate-message-slot { font-size: 0.9rem; min-height: 2.9em; margin-top: 0.75rem; text-align: center; }
.gate-message a { color: #f97066; font-weight: 700; text-decoration: underline; }

/* What a refused submit said, above the step it is corrected on. */
.form-refusal { margin: 0 0 1.5rem; padding: 16px 20px; background: rgba(240, 68, 56, 0.08); border: 1px solid rgba(240, 68, 56, 0.35); border-radius: 12px; color: #fda29b; }
.form-refusal h4 { margin: 0 0 6px; color: #f97066; font-size: 15px; font-weight: 600; }
.form-refusal ul { margin: 0; padding-left: 20px; font-size: 14px; }

.cv-done { display: none; align-items: center; gap: 8px; margin-top: 12px; color: #22c55e; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.cv-done-icon { width: 24px; height: 24px; }
.cv-done-ring, .cv-done-tick { stroke: #22c55e; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cv-done-ring { stroke-dasharray: 145; stroke-dashoffset: 145; }
.cv-done-tick { stroke-dasharray: 36; stroke-dashoffset: 36; }
.cv-done-text { opacity: 0; }
.cv-done.is-animating .cv-done-ring { animation: cv-done-draw 0.5s ease-out forwards; }
.cv-done.is-animating .cv-done-tick { animation: cv-done-draw 0.35s ease-out 0.45s forwards; }
.cv-done.is-animating .cv-done-text { animation: cv-done-fade 0.3s ease-out 0.7s forwards; }
.cv-done.is-animating .cv-done-icon { animation: cv-done-pop 0.3s ease-out 0.8s; }
@keyframes cv-done-draw { to { stroke-dashoffset: 0; } }
@keyframes cv-done-fade { to { opacity: 1; } }
@keyframes cv-done-pop { 50% { transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) {
    .cv-done.is-animating .cv-done-ring, .cv-done.is-animating .cv-done-tick { animation: none; stroke-dashoffset: 0; }
    .cv-done.is-animating .cv-done-text { animation: none; opacity: 1; }
    .cv-done.is-animating .cv-done-icon { animation: none; }
}

.custom-public-upload-zone { border: 0; background: transparent; padding: 0.5rem 0; }
.cv-status-area {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 10px; min-height: 200px; text-align: center;
}
.cv-status-area #cv-parsing-status-banner, .cv-status-area .cv-done, .cv-status-area .cv-intake-status { margin-top: 0 !important; }

@media (min-width: 1600px) and (min-height: 820px) {
    .talent-pool-page-wrapper { zoom: 1.15; }
}
@media (min-width: 1900px) and (min-height: 950px) {
    .talent-pool-page-wrapper { zoom: 1.35; }
}
@media (min-width: 2300px) and (min-height: 1180px) {
    .talent-pool-page-wrapper { zoom: 1.75; }
}

.talent-pool-body { align-items: stretch !important; }
.talent-pool-form-panel { height: auto !important; align-self: stretch !important; }

.form-panel-section { height: auto !important; min-height: 100% !important; }
.talent-pool-form-panel { padding-bottom: 32px !important; }
.cv-status-area { min-height: 140px; flex: 1 1 auto; }

.ts-wrapper.public-select-ts .ts-control {
    background-color: #1e2126 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.ts-wrapper.public-select-ts.focus .ts-control {
    border-color: #FF6C08 !important;
}

.ts-dropdown .option,
.ts-dropdown .no-results,
.ts-dropdown .optgroup-header {
    font-size: 0.95rem !important;
    padding: 0.6rem 1rem !important;
}
@media (min-width: 1600px) and (min-height: 820px) {
    .ts-dropdown .option, .ts-dropdown .no-results, .ts-dropdown .optgroup-header { font-size: 1.1rem !important; }
}
@media (min-width: 1900px) and (min-height: 950px) {
    .ts-dropdown .option, .ts-dropdown .no-results, .ts-dropdown .optgroup-header { font-size: 1.3rem !important; padding: 0.75rem 1.2rem !important; }
}
@media (min-width: 2300px) and (min-height: 1180px) {
    .ts-dropdown .option, .ts-dropdown .no-results, .ts-dropdown .optgroup-header { font-size: 1.65rem !important; padding: 0.95rem 1.5rem !important; }
}

.form-panel-section { min-height: calc(100% - 4px) !important; }

.scrollable-nested-container { flex: 0 0 auto !important; overflow: visible !important; padding-right: 0 !important; }
.nested-fields-entry-card:last-child { margin-bottom: 0 !important; }
.talent-pool-form-panel { padding-bottom: 24px !important; }

.ts-dropdown { margin-top: 4px !important; }
@media (min-width: 1600px) and (min-height: 820px) { .ts-dropdown { margin-top: 10px !important; } }
@media (min-width: 1900px) and (min-height: 950px) { .ts-dropdown { margin-top: 19px !important; } }
@media (min-width: 2300px) and (min-height: 1180px) { .ts-dropdown { margin-top: 36px !important; } }

.competency-block-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.55rem !important;
}
.competency-block-wrapper > label,
.competency-block-wrapper > label.form-label-bold {
    color: #c9d1d9 !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.1px !important;
    margin: 0 !important;
}
/* on Qualifications the skills picker's label takes the other fields' size and spacing */
#public-qualifications-wrapper .competency-block-wrapper > label.form-label-bold {
    font-size: 0.85rem !important;
    margin: 0 0 6px !important;
}
.competency-block-wrapper > .skills-hint { display: block; margin: 0 0 8px; }
.competency-block-wrapper > div:not(.hidden-competency-inputs):not(.competencies-tags-display-container) {
    margin-top: 0 !important;
}
.competency-block-wrapper .competencies-tags-display-container { margin-top: 0 !important; }

.ts-dropdown .option,
.ts-dropdown .no-results,
.ts-dropdown .optgroup-header {
    line-height: 1.4 !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
}
.ts-dropdown .ts-dropdown-content { max-height: 260px !important; }
@media (min-width: 1900px) and (min-height: 950px) { .ts-dropdown .ts-dropdown-content { max-height: 340px !important; } }
@media (min-width: 2300px) and (min-height: 1180px) { .ts-dropdown .ts-dropdown-content { max-height: 440px !important; } }

.ts-wrapper.public-select-ts .ts-control { flex-wrap: nowrap !important; }
.ts-wrapper.public-select-ts .ts-control > input {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: 0 !important;
}
.ts-wrapper.public-select-ts.single.input-active .ts-control .item {
    max-width: calc(100% - 7rem) !important;
}

:root { --tp-z: 1; --nav-h: 72px; --foot-h: 54px; }
@media (min-width: 1600px) and (min-height: 820px) { :root { --tp-z: 1.15; } }
@media (min-width: 1900px) and (min-height: 950px) { :root { --tp-z: 1.35; } }
@media (min-width: 2300px) and (min-height: 1180px) { :root { --tp-z: 1.75; } }

@media (min-width: 769px) {
    .talent-pool-page-wrapper {
        position: fixed !important;
        top: calc(var(--nav-h) / var(--tp-z)) !important;
        bottom: calc(var(--foot-h) / var(--tp-z)) !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        width: auto !important;
        max-width: none !important;
        height: auto !important;
        /* the base rule's min-height: calc(100vh - 180px) is not divided by the
           zoom, so at 1.15x+ it outgrew the nav-to-footer space and pushed the
           cancel/continue row off-screen. top/bottom already size the wrapper. */
        min-height: 0 !important;
        display: block !important;
        padding: 20px 28px !important;
        box-sizing: border-box !important;
    }
    .talent-pool-container {
        height: 100% !important;
        max-height: none !important;
        width: 100% !important;
        max-width: none !important;
    }
}

.talent-pool-form-panel {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
@media (max-width: 768px) {
    .talent-pool-form-panel { margin: 0 !important; padding: 20px 16px 24px 16px !important; }
    .custom-public-upload-zone { align-items: stretch !important; text-align: left !important; }
    /* the CV step is one thing in the middle of the page, on a phone as on a desk */
    #step-2-panel .input-group { align-items: center !important; text-align: center !important; }
    #step-2-panel .custom-public-upload-zone { align-items: center !important; text-align: center !important; }
}
@media (min-width: 1100px) {
    #step-3-panel .form-grid-2x2,
    #step-4-panel .form-grid-2x2 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
    #step-3-panel .grid-span-2,
    #step-4-panel .grid-span-2 { grid-column: span 1 !important; }
}

@media (min-width: 769px) {
    .talent-pool-sidebar {
        width: 270px !important;
        flex-shrink: 0 !important;
        padding: 24px 20px !important;
    }

    .form-panel-section { position: relative !important; }
    .form-panel-section > .required-legend {
        position: absolute !important;
        top: 4px !important;
        right: 0 !important;
        margin: 0 !important;
    }

    #step-2-panel .form-grid-2x2 {
        display: flex !important;
        flex: 1 1 auto !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }
    #step-2-panel .input-group {
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
        grid-column: auto !important;
    }
    #step-2-panel .custom-public-upload-zone { align-items: center !important; }
}

#step-5-panel .nested-fields-entry-card,
#step-6-panel .nested-fields-entry-card {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
}
#step-5-panel .nested-fields-entry-card + .nested-fields-entry-card,
#step-6-panel .nested-fields-entry-card + .nested-fields-entry-card {
    margin-top: 2rem !important;
    padding-top: 1.5rem !important;
    border-top: 1px solid #282c33 !important;
}
#step-5-panel .nested-section-header,
#step-6-panel .nested-section-header { margin-bottom: 2rem !important; padding-bottom: 0.85rem !important; }
#step-5-panel .add-nested-block-btn,
#step-6-panel .add-nested-block-btn { gap: 8px; margin-top: 2rem; padding: 12px 16px !important; font-size: 0.9rem !important; }
#step-6-panel #public-experience-wrapper .nested-fields-entry-card { padding: 0 !important; gap: 1.5rem !important; }
#step-6-panel #public-experience-wrapper .nested-fields-entry-card + .nested-fields-entry-card { padding-top: 1.5rem !important; }
#step-6-panel #public-experience-wrapper .experience-form-row,
#step-6-panel #public-experience-wrapper .input-group-split-dates { gap: 1.5rem !important; }

@media (min-width: 1100px) {
    #step-5-panel .form-grid-2x2 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    #step-6-panel #public-experience-wrapper .experience-form-row { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    #step-6-panel #public-experience-wrapper .input-group-split-dates { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    #step-6-panel #public-experience-wrapper .input-group-split-dates > .input-group { grid-column: auto; }
}

/* The remove button always sits at the top right of an experience entry, with
   or without the "Matched role" banner beside it (space-between left it at the
   start when it was the only item in the row). */
#public-experience-wrapper .card-actions-row .remove-nested-block-btn { margin-left: auto !important; }

/* --- ultrawide screens ------------------------------------------------------
   the form fills the space between the nav and the footer, so on a 40"+ or
   ultra-wide display the card stretched across the whole screen. it keeps its
   responsive behaviour below this width, but never grows past it, and sits
   centred. the cap is in the page's own (zoomed) pixels, so it scales with the
   tiers above */
@media (min-width: 769px) {
    .talent-pool-page-wrapper {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .talent-pool-container {
        max-width: 1400px !important;
        height: min(100%, 900px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* the scale tiers read width and height separately, so a 3440x1440 or 5120x1440
   ultra-wide gets the same 1.75x as a tall 4K screen and has only ~820px of
   layout height to fit the form in. past a 21:10 ratio the width says nothing
   about how much room there is, so use the 1.35x tier */
@media (min-width: 2300px) and (min-height: 1180px) and (min-aspect-ratio: 21/10) {
    :root { --tp-z: 1.35; }
    .talent-pool-page-wrapper { zoom: 1.35 !important; }
}

.ts-dropdown.fields-of-study .optgroup-header { color: #8b949e !important; padding-top: 0.9rem !important; }
.ts-dropdown.fields-of-study .optgroup .option { padding-left: 1.6rem !important; }
.ts-dropdown.fields-of-study .field-term { color: #8b949e; }
.ts-dropdown.fields-of-study .active .field-term { color: #57606a; }

/* iPhone Safari zooms the page in when a field whose text is under 16px is
   tapped, and leaves it zoomed. 16px in every field on phones and touch
   screens stops that; pinching to zoom still works. */
@media (max-width: 768px), (pointer: coarse) {
    .input-group input:not([type="file"]):not([type="checkbox"]):not([type="radio"]),
    .input-group select,
    .input-group textarea,
    .iti input[type="tel"],
    .iti input[type="text"],
    .iti__search-input,
    .ts-wrapper.public-select-ts .ts-control,
    .ts-wrapper.public-select-ts .ts-control .item,
    .ts-wrapper.public-select-ts .ts-control > input {
        font-size: 16px !important;
    }
}
