.mk-step-dots {
    display: flex;
    align-items: center;
}

.mk-sdot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.mk-sdot__num {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    transition: background .25s, box-shadow .25s;
}

.mk-sdot span {
    font-size: 10px;
    font-weight: 600;
    color: #9ca3af;
    white-space: nowrap;
}

.mk-sdot--active .mk-sdot__num {
    background: #1e5ea8;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(30, 94, 168, .18);
}

.mk-sdot--active span {
    color: #1e5ea8;
    font-weight: 800;
}

.mk-sdot--done .mk-sdot__num {
    background: #16a34a;
    color: #fff;
}

.mk-sdot--done span {
    color: #16a34a;
}

.mk-sdot__line {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    margin-bottom: 16px;
    min-width: 12px;
    transition: background .25s;
}

.mk-sdot__line--done {
    background: #16a34a;
}

.mk-step {
    display: none;
    background: #fff;
    border-radius: 14px;
    border: 1.5px solid #e2e8f0;
    padding: 26px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
    animation: mkFade .3s ease;
}

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

@keyframes mkFade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mk-step-hdr {
    margin-bottom: 22px;
}

.mk-step-hdr span {
    display: inline-block;
    background: #e8f3fb;
    color: #1e5ea8;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .8px;
    border-radius: 20px;
    padding: 3px 12px;
    margin-bottom: 6px;
}

.mk-step-hdr h4 {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin: 0;
}

.mk-g2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.mk-g3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.mk-f {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mk-fgroup {
    margin-bottom: 18px;
}

.mk-lbl {
    font-size: 11px;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.mk-req {
    color: #c8362e;
}

.mk-inp {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    font-size: 14px;
    color: #111827;
    background: #f8fafc;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
    appearance: none;
    -webkit-appearance: none;
}

.mk-inp:focus {
    border-color: #1e5ea8;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(30, 94, 168, .1);
}

.mk-inp::placeholder {
    color: #9ca3af;
}

.mk-ta {
    resize: vertical;
    min-height: 90px;
}

select.mk-inp {
    padding-right: 30px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M6 8l4 4 4-4' stroke='%236b7280' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

.mk-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mk-pill {
    cursor: pointer;
}

.mk-pill input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.mk-pill span {
    display: inline-block;
    padding: 7px 18px;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    background: #f8fafc;
    transition: all .15s;
    user-select: none;
}

.mk-pill:hover span {
    border-color: #1e5ea8;
    color: #1e5ea8;
    background: #e8f3fb;
}

.mk-pill input:checked + span {
    background: #1e5ea8;
    border-color: #1e5ea8;
    color: #fff;
}

.mk-dep-card {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    animation: mkFade .25s ease;
}

.mk-dep-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 6px;
}

.mk-dep-card__num {
    font-size: 12px;
    font-weight: 800;
    color: #1e5ea8;
    text-transform: uppercase;
}

.mk-dep-remove {
    background: #fee2e2;
    border: none;
    color: #dc2626;
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
}

.mk-dep-remove:hover {
    background: #fca5a5;
}

.mk-plan-lbl {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 12px;
}

.mk-plan-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mk-pcard {
    cursor: pointer;
}

.mk-pcard input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.mk-pcard span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 12px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    transition: all .18s;
    min-width: 90px;
    text-align: center;
    user-select: none;
}

.mk-pcard span b {
    font-size: 14px;
    font-weight: 800;
    color: #1e5ea8;
}

.mk-pcard span small {
    font-size: 10px;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
}

.mk-pcard:hover span {
    border-color: #1e5ea8;
    background: #e8f3fb;
}

.mk-pcard input:checked + span {
    background: #1e5ea8;
    border-color: #1e5ea8;
    box-shadow: 0 4px 12px rgba(30, 94, 168, .25);
}

.mk-pcard input:checked + span b,
.mk-pcard input:checked + span small {
    color: #fff;
}

.mk-pcard--out span b {
    color: #16a34a;
}

.mk-pcard--out:hover span {
    border-color: #16a34a;
    background: #f0fdf4;
}

.mk-pcard--out input:checked + span {
    background: #16a34a;
    border-color: #16a34a;
}

.mk-pcard--none span b {
    color: #6b7280;
}

.mk-pcard--none input:checked + span {
    background: #6b7280;
    border-color: #6b7280;
}

.mk-prem-box {
    background: #e8f3fb;
    border: 1.5px solid #bee3f8;
    border-radius: 12px;
    padding: 16px 18px;
    margin-top: 20px;
}

.mk-prem-title {
    font-size: 11.5px;
    font-weight: 800;
    color: #1e5ea8;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 10px;
}

.mk-prem-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #374151;
    padding: 5px 0;
    border-bottom: 1px dashed #bee3f8;
}

.mk-prem-row:last-of-type {
    border-bottom: none;
}

.mk-prem-row b {
    font-weight: 700;
    color: #111;
}

.mk-prem-total {
    font-weight: 800;
    font-size: 15px;
    color: #1e5ea8;
    border-top: 2px solid #bee3f8 !important;
    border-bottom: none !important;
    padding-top: 10px !important;
    margin-top: 4px;
}

.mk-prem-total b {
    color: #1e5ea8;
    font-size: 17px;
}

.mk-prem-note {
    font-size: 11.5px;
    color: #6b7280;
    margin: 8px 0 0;
    font-style: italic;
}

.mk-health-list {
    display: flex;
    flex-direction: column;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.mk-hq {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-bottom: 1px solid #f1f5f9;
}

.mk-hq:last-child {
    border-bottom: none;
}

.mk-hq:nth-child(even) {
    background: #f8fafc;
}

.mk-hq__num {
    flex-shrink: 0;
    background: #1e5ea8;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    border-radius: 5px;
    padding: 2px 7px;
    white-space: nowrap;
}

.mk-hq__text {
    flex: 1;
    font-size: 13px;
    color: #374151;
    line-height: 1.5;
    margin: 0;
}

.mk-hq__radios {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.mk-yn {
    cursor: pointer;
}

.mk-yn input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.mk-yn span {
    display: inline-block;
    padding: 5px 13px;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    transition: all .15s;
    user-select: none;
}

.mk-yn--yes:hover span {
    border-color: #dc2626;
    color: #dc2626;
}

.mk-yn--no:hover span {
    border-color: #16a34a;
    color: #16a34a;
}

.mk-yn--yes input:checked + span {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}

.mk-yn--no input:checked + span {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

.mk-step-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    gap: 12px;
}

.mk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 26px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    white-space: nowrap;
    min-height: 44px;
}

.mk-btn--back {
    background: #f1f5f9;
    color: #374151;
    border: 1.5px solid #d1d5db;
}

.mk-btn--back:hover {
    background: #e5e7eb;
}

.mk-btn--next {
    background: linear-gradient(135deg, #1e5ea8, #3a7ecf);
    color: #fff;
    box-shadow: 0 3px 12px rgba(30, 94, 168, .3);
}

.mk-btn--next:hover {
    box-shadow: 0 5px 18px rgba(30, 94, 168, .45);
    transform: translateY(-1px);
}

.mk-btn--add {
    background: #f0fdf4;
    color: #16a34a;
    border: 1.5px dashed #86efac;
    padding: 9px 20px;
    margin-bottom: 4px;
}

.mk-btn--add:hover {
    background: #dcfce7;
    border-color: #4ade80;
}

.mk-btn--submit {
    background: linear-gradient(135deg, #1e5ea8, #3a7ecf);
    color: #fff;
    box-shadow: 0 4px 14px rgba(30, 94, 168, .38);
    padding: 12px 30px;
    font-size: 15px;
}

.mk-btn--submit:hover {
    box-shadow: 0 6px 20px rgba(30, 94, 168, .5);
    transform: translateY(-1px);
}


@media (max-width: 768px) {
    .mk-sdot span {
        display: none;
    }

    .mk-sdot__num {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .mk-sdot__line {
        min-width: 14px;
    }

    .mk-step {
        padding: 20px 16px;
    }

    .mk-step-hdr h4 {
        font-size: 17px;
    }

    .mk-g2, .mk-g3 {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .mk-plan-cards {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .mk-pcard {
        width: 100%;
    }

    .mk-pcard span {
        width: 100%;
        min-width: unset;
        padding: 10px 12px;
    }

    .mk-hq {
        flex-wrap: wrap;
        padding: 10px 12px;
        align-items: flex-start;
    }

    .mk-hq__text {
        width: calc(100% - 56px);
    }

    .mk-hq__radios {
        width: 100%;
        padding-left: 42px;
    }

    .mk-step-nav {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .mk-step-nav .mk-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .mk-step {
        padding: 18px 14px;
    }

    .mk-prem-box {
        padding: 14px;
    }

    .mk-prem-row {
        font-size: 12.5px;
    }

    .mk-dep-card {
        padding: 14px 12px;
    }

    .mk-pill span {
        padding: 6px 14px;
        font-size: 12.5px;
    }
}

@media (max-width: 480px) {
    .mk-step {
        padding: 16px 12px;
        border-radius: 10px;
    }

    .mk-step-hdr h4 {
        font-size: 15px;
    }

    .mk-step-hdr span {
        font-size: 10px;
    }

    .mk-lbl {
        font-size: 10.5px;
    }

    .mk-inp {
        padding: 10px 12px;
        font-size: 13px;
    }

    .mk-pill span {
        padding: 5px 12px;
        font-size: 12px;
    }

    .mk-sdot__num {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }

    .mk-sdot__line {
        min-width: 8px;
    }

    .mk-plan-cards {
        grid-template-columns: 1fr 1fr;
    }

    .mk-pcard span {
        padding: 9px 8px;
    }

    .mk-pcard span b {
        font-size: 12px;
    }

    .mk-hq {
        padding: 9px 10px;
    }

    .mk-hq__text {
        font-size: 12px;
    }

    .mk-hq__radios {
        padding-left: 32px;
    }

    .mk-yn span {
        padding: 4px 10px;
        font-size: 11px;
    }

    .mk-btn {
        font-size: 13px;
        padding: 10px 14px;
    }

    .mk-btn--submit {
        font-size: 14px;
        padding: 11px 20px;
    }

    .mk-btn--add {
        font-size: 12.5px;
        padding: 8px 14px;
    }

    .mk-prem-total b {
        font-size: 15px;
    }
}

@media (max-width: 360px) {
    .mk-step {
        padding: 14px 10px;
    }

    .mk-plan-cards {
        grid-template-columns: 1fr;
    }

    .mk-hq__radios {
        padding-left: 0;
    }

    .mk-pill span {
        padding: 5px 10px;
        font-size: 11.5px;
    }
}


label.error {
    color: #c8362e;
    font-size: 0.75rem;
    margin-top: 4px;
    display: block;
}

input.error, select.error, textarea.error {
    border-color: #c8362e !important;
    background-color: #fff8f8;
}

/* ── Auto-outpatient locked display ──────────────────────────────── */
.mk-autoout-box {
    border-radius: 10px;
    transition: background .2s;
}

/* ── Dependant premium display box ──────────────────────────────── */
.mk-dep-prem-box {
    padding: 8px 10px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    min-height: 38px;
    display: flex;
    align-items: center;
    font-size: 13px;
}

/* Principal vs dep rows subtle divider */
#principalPremiumRow {
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 6px;
    margin-bottom: 4px;
}
#depPremiumRow {
    margin-bottom: 4px;
}
