/* ==========================================================================
   Section: dosha-test (ajurweda) — interactive VATA/PITTA/KAPHA quiz
   ========================================================================== */

.sec-dosha {
    padding: 80px 0;
    background: var(--c-white);
}

.dosha__inner {
    max-width: var(--content-max);
    margin-inline: auto;
    padding-inline: var(--pad-x);
}

.dosha__head {
    max-width: 720px;
    margin: 0 auto 40px;
    text-align: center;
}

.dosha__title {
    margin: 0;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: clamp(32px, 3.4vw, 48px);
    line-height: 1.2;
    color: var(--c-black);
}

.dosha__text {
    margin: 16px 0 0;
    font-size: 18px;
    line-height: 1.5;
    color: var(--c-text);
}

/* Table (horizontal scroll on narrow screens) */
.dosha__scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid var(--c-gray);
}

.dosha__table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-family: var(--font-sans);
    font-size: 15px;
}

.dosha__table th,
.dosha__table td {
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--c-gray);
    border-right: 1px solid var(--c-gray);
}

.dosha__table th:last-child,
.dosha__table td:last-child {
    border-right: 0;
}

.dosha__table tbody tr:last-child th,
.dosha__table tbody tr:last-child td {
    border-bottom: 0;
}

.dosha__table thead th {
    padding: 14px 16px;
    background: var(--c-primary);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.04em;
    vertical-align: middle;
}

.dosha__feature-col {
    width: 16%;
    text-align: left;
}

.dosha__dosha-col {
    text-align: center;
}

.dosha__feature {
    padding: 12px 16px;
    background: #fbf7f8;
    font-weight: 700;
    color: var(--c-heading);
}

.dosha__cell {
    padding: 0;
}

.dosha__opt {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    height: 100%;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.dosha__opt:hover {
    background: #fbf7f8;
}

.dosha__cb {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--c-primary);
    cursor: pointer;
}

/* Highlight chosen cells (graceful: no highlight if :has unsupported) */
.dosha__opt:has(.dosha__cb:checked) {
    background: #fdeef4;
}

.dosha__opt-text {
    line-height: 1.4;
    color: var(--c-text);
}

/* Actions */
.dosha__actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 28px;
}

.dosha__reset {
    padding: 0;
    background: none;
    border: 0;
    color: var(--c-primary);
    font-size: 15px;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.dosha__reset:hover {
    text-decoration: none;
}

/* Result */
.dosha__result {
    margin-top: 32px;
    padding: 36px;
    background: #feeff8;
    border-radius: 20px;
    text-align: center;
    outline: none;
}

.dosha__result-lead {
    margin: 0;
    font-size: 16px;
    color: var(--c-text);
}

.dosha__result-name {
    margin: 8px 0 0;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.1;
    color: var(--c-primary);
}

.dosha__result-desc {
    margin-top: 16px;
    font-size: 18px;
    line-height: 1.55;
    color: var(--c-text);
}

.dosha__result-desc:empty {
    display: none;
}

.dosha__scores {
    margin: 22px 0 0;
    font-size: 14px;
    color: #969696;
}

@media (max-width: 767px) {
    .sec-dosha {
        padding: 48px 0;
    }

    .dosha__table {
        font-size: 14px;
    }

    .dosha__result {
        padding: 24px;
    }
}
