/* ==========================================================================
FILE: talent-step-form.css  (v4)
========================================================================== */

/* ---------- Modal shell ---------- */
.devminds-nw-km-step-form {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(10, 12, 30, 0.55);
    padding: 20px;
    box-sizing: border-box;
}

.devminds-nw-km-step-form.is-open {
    display: flex !important;
}

.devminds-nw-km-step-form * {
    box-sizing: border-box;
}

.devminds-nw-km-step-form__wrapper {
    position: relative;
    width: 100%;
    max-width: 1400px;
    height: 850px;
    max-height: 90vh;
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.devminds-nw-km-step-form__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.devminds-nw-km-step-form__content {
    padding: 40px 64px;
    overflow-y: auto;
    height: 100%;
}

.devminds-nw-km-step-form__image {
    background-color: #1c1f6b;
    background-size: cover;
    background-position: center;
    height: 100%;
}

/* Logo image (replaces old text-based brand) */
.devminds-nw-km-step-form__logo {
    display: block;
    height: 30px;
    width: auto;
    margin-bottom: 26px;
}

/* ---------- FIX: Contact Form 7's wpautop wraps our markup in
   <p> and <br> tags, which breaks flex layouts (dots stacking in a
   column, Back/Continue stacking vertically, step header stacking).
   The real fix is adding this to functions.php:
       add_filter( 'wpcf7_autop_or_not', '__return_false' );
   These rules below are just a safety net in case autop still runs
   somewhere, they neutralise any stray <p>/<br> inside our layout
   blocks so flex/grid still works correctly. ---------- */
.devminds-nw-km-step-form__stepline > p,
.devminds-nw-km-step-form__actions > p,
.devminds-nw-km-step-form__dots > p,
.dnkm-choice-group > p,
.dnkm-pill-group > p {
    display: contents;
}

.devminds-nw-km-step-form__stepline br,
.devminds-nw-km-step-form__actions br,
.devminds-nw-km-step-form__dots br,
.dnkm-choice-group br,
.dnkm-pill-group br {
    display: none;
}

/* ---------- Step header ---------- */
.devminds-nw-km-step-form__stepline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-bottom: 16px;
    flex-wrap: nowrap;
    gap: 12px;
}

.devminds-nw-km-step-form__stepnum {
    color: var(--devminds-nw-km-color-blue, #264cbe);
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    white-space: nowrap;
}

.devminds-nw-km-step-form__steptime {
    color: #6E6E6E;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    white-space: nowrap;
}

.devminds-nw-km-step-form__title {
    font-weight: 500 !important;
    font-size: 24px !important;
    line-height: 32px !important;
    margin: 0 0 6px;
}

.devminds-nw-km-step-form__title--sm {
    font-size: 17px;
    margin-top: 26px;
}

.devminds-nw-km-step-form__hint {
    color: var(--devminds-nw-km-color-dark, #444);
    font-size: 18px;
    margin-bottom: 18px;
}

.devminds-nw-km-step-form__label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8a8f9c;
    margin: 20px 0 8px;
}

/* ---------- Pill / choice groups (checkbox + radio) ---------- */
.devminds-nw-km-step-form .dnkm-pill-group,
.devminds-nw-km-step-form .dnkm-choice-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
}

.devminds-nw-km-step-form .dnkm-pill-group .wpcf7-list-item,
.devminds-nw-km-step-form .dnkm-choice-group .wpcf7-list-item {
    margin: 0;
}

.devminds-nw-km-step-form .dnkm-pill-group label,
.devminds-nw-km-step-form .dnkm-choice-group label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    border: 1px solid #C3C6D4;
    border-radius: 24px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.15s ease;
    font-weight: 400;
}

/* Hide the native radio/checkbox circle visually, keep it functional
   and accessible (still clickable, still tabbable) */
.devminds-nw-km-step-form .dnkm-pill-group input[type="radio"],
.devminds-nw-km-step-form .dnkm-pill-group input[type="checkbox"],
.devminds-nw-km-step-form .dnkm-choice-group input[type="radio"],
.devminds-nw-km-step-form .dnkm-choice-group input[type="checkbox"],
.devminds-nw-km-step-form .dnkm-team-type-group input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.devminds-nw-km-step-form .dnkm-pill-group label:has(input:checked),
.devminds-nw-km-step-form .dnkm-choice-group label:has(input:checked) {
    border-color: #264cbe;
    background: #eef2fd;
    color: #264cbe;
}

/* ---------- Team type cards (icon + title + subtext) ---------- */
.devminds-nw-km-step-form .dnkm-team-type-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.devminds-nw-km-step-form .dnkm-team-type-group .wpcf7-list-item {
    flex: 1 1 45%;
    margin: 0;
}

.devminds-nw-km-step-form .dnkm-team-type-group label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #C3C6D4;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
}

.devminds-nw-km-step-form .dnkm-team-type-group label:has(input:checked) {
    border-color: #264cbe;
    background: #eef2fd;
}

/* Icon turns blue when its option is selected. CSS fill always wins
   over the SVG's own fill="#AAAAAA" attribute, so no JS change needed. */
.devminds-nw-km-step-form .dnkm-team-type-group label:has(input:checked) .devminds-nw-km-step-form__team-icon svg path {
    fill: #264cbe;
}

.devminds-nw-km-step-form__team-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.devminds-nw-km-step-form__team-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.devminds-nw-km-step-form__team-title {
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
}

.devminds-nw-km-step-form__team-sub {
    font-size: 12px;
    color: #8a8f9c;
    font-weight: 400;
}

/* ---------- Basic inputs ---------- */
.devminds-nw-km-step-form input[type="text"],
.devminds-nw-km-step-form input[type="email"],
.devminds-nw-km-step-form input[type="number"],
.devminds-nw-km-step-form select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e2e4ea;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 4px;
    background: #fff;
}

/* ---------- Dual-range price slider ---------- */
.devminds-nw-km-step-form__slider {
    position: relative;
    height: 24px;
    margin: 6px 0 14px;
}

.devminds-nw-km-step-form__slider-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: #e2e4ea;
    border-radius: 4px;
    transform: translateY(-50%);
}

.devminds-nw-km-step-form__slider-range {
    position: absolute;
    top: 50%;
    height: 4px;
    background: #264cbe;
    border-radius: 4px;
    transform: translateY(-50%);
}

.devminds-nw-km-step-form .dnkm-range {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 24px;
    margin: 0;
    background: transparent;
    -webkit-appearance: none;
    pointer-events: none;
}

.devminds-nw-km-step-form .dnkm-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    pointer-events: all;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #264cbe;
    cursor: pointer;
    margin-top: 0;
}

.devminds-nw-km-step-form .dnkm-range::-moz-range-thumb {
    pointer-events: all;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #264cbe;
    cursor: pointer;
}

.devminds-nw-km-step-form .dnkm-range::-webkit-slider-runnable-track,
.devminds-nw-km-step-form .dnkm-range::-moz-range-track {
    background: transparent;
}

.devminds-nw-km-step-form__price-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 6px;
}

.devminds-nw-km-step-form__price-label {
    display: block;
    font-size: 11px;
    color: #8a8f9c;
    margin-bottom: 4px;
}

/* ================================================================
   STEP 2 — Role card + Level group (redesigned to match Figma)
   ================================================================ */
.devminds-nw-km-step-form__role-card {
    border: 1px solid #e2e4ea;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 14px;
    background: #FAFBFF;
}

.devminds-nw-km-step-form__role-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin-bottom: 14px;
}

.devminds-nw-km-step-form__role-dot {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: inline-flex;
}

.devminds-nw-km-step-form__role-dot svg {
    display: block;
}

.devminds-nw-km-step-form__role-name {
    font-size: 15px;
    font-weight: 500;
    flex-grow: 1;
}

.devminds-nw-km-step-form__role-toggle,
.devminds-nw-km-step-form__level-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: transform 0.15s ease;
}

.devminds-nw-km-step-form__role-toggle.is-collapsed,
.devminds-nw-km-step-form__level-toggle.is-collapsed {
    transform: rotate(-90deg);
}

.devminds-nw-km-step-form__level-group {
    border: 1px solid #e2e4ea;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: visible;
    background: #ffffff;
}

.devminds-nw-km-step-form__level-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    cursor: pointer;
}

.devminds-nw-km-step-form__pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.devminds-nw-km-step-form__pill--level {
    border: 1px solid #264cbe;
    color: #264cbe;
    background: #eef2fd;
}

.devminds-nw-km-step-form__pill--count {
    color: #6E6E6E;
    font-size: 12px;
    font-weight: 400;
}

.devminds-nw-km-step-form__level-summary .devminds-nw-km-step-form__level-toggle {
    margin-left: auto;
}

.devminds-nw-km-step-form__level-body {
    padding: 0 14px 16px;
}

.devminds-nw-km-step-form__level-row {
    display: grid;
    grid-template-columns: 1fr 110px;
    gap: 10px;
    margin-bottom: 4px;
}

/* Experience Level <select> — native arrow hidden, custom chevron
   (same icon as the tech-search bar) shown instead */
.devminds-nw-km-step-form__exp-select-wrap {
    position: relative;
}

.devminds-nw-km-step-form__exp-select {
    width: 100%;
    padding: 10px 34px 10px 12px;
    border: 1px solid #e2e4ea;
    border-radius: 8px;
    font-size: 13px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: #fff;
}

.devminds-nw-km-step-form__exp-select-chevron {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 8px;
    pointer-events: none;
}

.devminds-nw-km-step-form__exp-select-chevron svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* Quantity counter (- 1 +) */
.devminds-nw-km-step-form__counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #e2e4ea;
    border-radius: 8px;
    padding: 0 8px;
    height: 41px;
}

.devminds-nw-km-step-form__counter-btn {
    border: none;
    background: transparent;
    font-size: 18px;
    line-height: 1;
    color: #264cbe;
    cursor: pointer;
    padding: 6px;
}

.devminds-nw-km-step-form__counter-value {
    font-size: 14px;
    font-weight: 500;
    min-width: 16px;
    text-align: center;
}

.devminds-nw-km-step-form__add-level-btn {
    border: none;
    background: transparent;
    color: #264cbe;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 0;
}

/* ================================================================
   v4 additions — dynamic Step 1 pills + Preview screen
   ================================================================ */

/* Step 1 role pills, built dynamically from ACF talent designations */
.dnkm-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 10px;
}

.dnkm-role-pill {
    padding: 12px 20px;
    border: 1px solid #C3C6D4;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 400;
    background: #fff;
    cursor: pointer;
    transition: 0.15s ease;
}

.dnkm-role-pill.is-selected {
    border-color: #264cbe;
    background: #eef2fd;
    color: #264cbe;
}

/* Preview screen: read-only specialist summary card (Quick flow only) */
.devminds-nw-km-step-form__preview-specialist {
    border-radius: 12px;
    margin-bottom: 6px;
}

.devminds-nw-km-step-form__preview-card {
    padding: 14px;
}

.devminds-nw-km-step-form__preview-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.devminds-nw-km-step-form__preview-card-title {
    font-size: 15px;
    font-weight: 500;
}

.devminds-nw-km-step-form__preview-card-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 36px;
}

.devminds-nw-km-step-form__pill-caption {
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8a8f9c;
}

/* Technology search + tags */
.devminds-nw-km-step-form__tech-search {
    position: relative;
}

.devminds-nw-km-step-form__tech-icon,
.devminds-nw-km-step-form__tech-chevron {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    pointer-events: none;
}

.devminds-nw-km-step-form__tech-icon svg,
.devminds-nw-km-step-form__tech-chevron svg {
    display: block;
    width: 100%;
    height: 100%;
}

.devminds-nw-km-step-form__tech-icon {
    left: 12px;
}

.devminds-nw-km-step-form__tech-chevron {
    right: 12px;
}

.devminds-nw-km-step-form__tech-input {
    width: 100%;
    padding: 10px 38px 10px 42px !important;
    border: 1px solid #e2e4ea;
    border-radius: 8px;
    font-size: 13px;
}

.devminds-nw-km-step-form__tech-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e2e4ea;
    border-radius: 8px;
    max-height: 180px;
    overflow-y: auto;
    z-index: 10;
    display: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.devminds-nw-km-step-form__tech-dropdown.is-open {
    display: block;
}

.devminds-nw-km-step-form__tech-option {
    padding: 9px 12px;
    font-size: 13px;
    cursor: pointer;
}

.devminds-nw-km-step-form__tech-option:hover,
.devminds-nw-km-step-form__tech-option.is-active {
    background: #eef2fd;
    color: #264cbe;
}

.devminds-nw-km-step-form__tech-option--add {
    color: #264cbe;
    font-weight: 600;
}

.devminds-nw-km-step-form__tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.devminds-nw-km-step-form__tech-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid #264cbe;
    color: #264cbe;
    border-radius: 20px;
    font-size: 12px;
    background: #eef2fd;
}

.devminds-nw-km-step-form__tech-tag button {
    border: none;
    background: transparent;
    color: #264cbe;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0;
}

/* ---------- Quick Request: specialist blocks ---------- */
.devminds-nw-km-step-form__quick-specialists {
    border: 1px solid #e2e4ea;
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 6px;
}

.devminds-nw-km-step-form__quick-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 8px;
    border-bottom: 1px solid #f0f1f4;
}

.devminds-nw-km-step-form__quick-card:last-child {
    border-bottom: none;
}

.devminds-nw-km-step-form__quick-card-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.devminds-nw-km-step-form__quick-card-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #eef2fd;
    color: #264cbe;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.devminds-nw-km-step-form__quick-card-remove {
    border: none;
    background: transparent;
    color: #d63638;
    cursor: pointer;
    font-size: 16px;
}

.devminds-nw-km-step-form__quick-add {
    position: relative;
    margin-top: 8px;
}

.devminds-nw-km-step-form__quick-add-btn {
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border: 1px dashed #c6cbe0;
    border-radius: 8px;
    background: transparent;
    color: #264cbe;
    font-size: 13px;
    cursor: pointer;
}

/* ---------- Buttons ---------- */
.devminds-nw-km-step-form__actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
}

.devminds-nw-km-step-form__actions--end {
    justify-content: flex-end;
}

.devminds-nw-km-step-form__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 30px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: box-shadow 0.15s ease;
}

.devminds-nw-km-step-form__btn-icon {
    display: inline-flex;
    align-items: center;
}

.devminds-nw-km-step-form__btn--primary {
    background: var(--devminds-nw-km-color-blue, #264cbe);
    color: var(--devminds-nw-km-color-white, #fff);
}

.devminds-nw-km-step-form__btn--primary:hover,
.devminds-nw-km-step-form .wpcf7-submit:hover {
    box-shadow: 0 0 0 4px rgba(38, 76, 190, 0.22);
}

.devminds-nw-km-step-form__btn--secondary {
    background: #fff;
    border-color: #e2e4ea;
    color: #333;
}

.devminds-nw-km-step-form .wpcf7-submit {
    border-radius: 30px;
    padding: 12px 26px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    border: none;
    background: #264cbe;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ---------- Validation ---------- */
.devminds-nw-km-step-form .wpcf7-not-valid-tip {
    font-size: 12px;
    color: #d63638;
    margin-top: -2px;
    margin-bottom: 8px;
}

.devminds-nw-km-step-form input.wpcf7-not-valid {
    border-color: #d63638 !important;
}

.devminds-nw-km-step-form__response {
    margin-top: 14px;
}

/* ---------- Footer: quick call + dots ---------- */
.devminds-nw-km-step-form__footer {
    margin-top: 20px;
    padding-top: 24px;
    border-top: 1px solid #F3F4F6;
}

.devminds-nw-km-step-form__quickcall {
    font-size: 14px;
    color: var(--devminds-nw-km-color-blue, #264cbe);
    margin: 0 0 5px;
    font-weight: 500;
}

.devminds-nw-km-step-form__quickcall-link {
    color: var(--devminds-nw-km-color-blue, #264cbe);
    font-weight: 700;
    text-decoration: underline;
}

.devminds-nw-km-step-form__quickcall span {
    display: block;
    font-size: 12px;
    line-height: 16px;
    font-weight: 400;
    color: #8a8f9c;
    margin-top: 2px;
}

.devminds-nw-km-step-form__dots {
    display: flex !important;
    flex-direction: row !important;
    gap: 6px;
    align-items: center;
}

.devminds-nw-km-step-form__dot {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: #e2e4ea;
    transition: 0.2s ease;
}

.devminds-nw-km-step-form__dot.is-active {
    width: 26px;
    background: #264cbe;
}

/* ---------- Confirm-close popup (Custom flow only) ---------- */
.devminds-nw-km-step-form__confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 12, 30, 0.55);
    z-index: 1000001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.devminds-nw-km-step-form__confirm-overlay[hidden] {
    display: none;
}

.devminds-nw-km-step-form__confirm-box {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    max-width: 360px;
    width: 100%;
    text-align: center;
}

.devminds-nw-km-step-form__confirm-text {
    font-size: 15px;
    color: #333;
    margin: 0 0 20px;
}

.devminds-nw-km-step-form__confirm-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.devminds-nw-km-step-form__btn[hidden] {
    display: none !important;
}

#dnkm-preview-specialist .devminds-nw-km-step-form__level-toggle {
    display: none;
}

#dnkm-preview-specialist .devminds-nw-km-step-form__role-toggle {
    display: none;
}

/* ===================== Responsive ===================== */
@media (max-width: 900px) {
    .devminds-nw-km-step-form__wrapper {
        grid-template-columns: 1fr;
        height: auto;
        max-height: 94vh;
        overflow-y: auto;
    }
    .devminds-nw-km-step-form__image {
        min-height: 150px;
        height: auto;
        order: -1;
    }
    .devminds-nw-km-step-form__content {
        padding: 26px 18px 20px;
        height: auto;
        overflow-y: visible;
    }
}

@media (max-width: 480px) {
    .devminds-nw-km-step-form__price-row,
    .devminds-nw-km-step-form__level-row {
        grid-template-columns: 1fr;
    }
    .devminds-nw-km-step-form__actions {
        flex-direction: column-reverse;
    }
    .devminds-nw-km-step-form__btn--primary,
    .devminds-nw-km-step-form__btn--secondary,
    .devminds-nw-km-step-form .wpcf7-submit {
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }
    .devminds-nw-km-step-form .dnkm-team-type-group .wpcf7-list-item {
        flex: 1 1 100%;
    }
}

/* ================================================================
   PREVIEW: Timeline compact dropdown — FIXED to the viewport (not
   absolute), so it always renders correctly no matter what CF7's
   own wrapper spans or the modal's overflow/scroll do. Position
   (top/left) is set by JS at click-time from the button's real
   on-screen location.
   ================================================================ */
.devminds-nw-km-step-form__timeline-wrap {
    position: relative;
}

.devminds-nw-km-step-form__timeline-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 20px;
    background: #FAFBFF;
    border: 1px solid #e2e4ea;
    border-radius: 16px;
}

.devminds-nw-km-step-form__timeline-summary-label {
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
}

.devminds-nw-km-step-form__timeline-summary-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid #e2e4ea;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    color: #1a1a1a;
    cursor: pointer;
}

.devminds-nw-km-step-form__tech-chevron-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 8px;
}

.devminds-nw-km-step-form__tech-chevron-inline svg {
    display: block;
    width: 100%;
    height: 100%;
}

.dnkm-choice-group.is-collapsed-body {
    position: fixed;
    width: 140px;
    background: #fff;
    border: 1px solid #e2e4ea;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    padding: 6px;
    z-index: 1000000;
    display: none;
    flex-direction: column;
    gap: 2px;
}

.dnkm-choice-group.is-collapsed-body.is-open {
    display: flex;
}

.dnkm-choice-group.is-collapsed-body label {
    border: none;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 13px;
}

.dnkm-choice-group.is-collapsed-body label:has(input:checked) {
    background: #eef2fd;
    border: none;
}

.devminds-nw-km-step-form__roles.is-in-preview .devminds-nw-km-step-form__add-level-btn {
    display: none;
}