.pas-qd {
    --pas-qd-ink: #20242c;
    --pas-qd-muted: #667085;
    --pas-qd-line: #d7dde7;
    --pas-qd-soft: #f7f9fc;
    --pas-qd-panel: #ffffff;
    --pas-qd-teal: #14746f;
    --pas-qd-teal-dark: #0f5652;
    --pas-qd-gold: #d99a3e;
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    color: var(--pas-qd-ink);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
}

.pas-qd *,
.pas-qd *::before,
.pas-qd *::after {
    box-sizing: border-box;
}

.pas-qd__form {
    display: grid;
    gap: 22px;
    padding: clamp(14px, 2vw, 22px);
    border: 1px solid #e7ebf2;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.pas-qd__draft-tools {
    display: grid;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid #b9d8d5;
    border-radius: 8px;
    color: var(--pas-qd-teal-dark);
    background: #eef8f7;
}

.pas-qd__draft-note,
.pas-qd__draft-status {
    margin: 0;
}

.pas-qd__draft-note {
    font-size: 0.92rem;
    line-height: 1.45;
}

.pas-qd__draft-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
}

.pas-qd__draft-status {
    color: #3f6663;
    font-size: 0.82rem;
    font-weight: 700;
}

.pas-qd__clear-draft {
    border: 0;
    padding: 3px 0;
    color: #5f3b35;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: underline;
    background: transparent;
    cursor: pointer;
}

.pas-qd__clear-draft:hover,
.pas-qd__clear-draft:focus {
    color: #8a2d1f;
}

.pas-qd__section,
.pas-qd__result {
    display: grid;
    gap: 18px;
    margin: 0;
    padding: clamp(20px, 3vw, 30px);
    border: 1px solid var(--pas-qd-line);
    border-radius: 8px;
    background: var(--pas-qd-panel);
    box-shadow: 0 10px 26px rgba(32, 36, 44, 0.06);
}

.pas-qd__section h2,
.pas-qd__result h2 {
    margin: 0;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--pas-qd-gold);
    color: var(--pas-qd-teal-dark);
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
}

.pas-qd__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.pas-qd label {
    display: grid;
    gap: 8px;
    margin: 0;
    color: var(--pas-qd-ink);
    font-size: 0.98rem;
    font-weight: 700;
}

.pas-qd input[type="text"],
.pas-qd input[type="email"],
.pas-qd select,
.pas-qd textarea {
    width: 100% !important;
    min-height: 48px;
    margin: 0 !important;
    border: 1px solid var(--pas-qd-line) !important;
    border-radius: 7px !important;
    padding: 11px 13px !important;
    color: var(--pas-qd-ink) !important;
    font: inherit !important;
    font-weight: 500 !important;
    background: #fff !important;
    box-shadow: none !important;
    outline: none;
}

.pas-qd textarea {
    min-height: 104px;
    resize: vertical;
}

.pas-qd input:focus,
.pas-qd select:focus,
.pas-qd textarea:focus {
    border-color: var(--pas-qd-teal) !important;
    box-shadow: 0 0 0 3px rgba(20, 116, 111, 0.14) !important;
}

.pas-qd__progress {
    overflow: hidden;
    height: 9px;
    border-radius: 999px;
    background: #e9edf5;
}

.pas-qd__progress span {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--pas-qd-teal), var(--pas-qd-gold));
}

.pas-qd__question {
    min-width: 0;
    margin: 0;
    padding: 18px;
    border: 1px solid #e1e6ef;
    border-radius: 8px;
    background: var(--pas-qd-soft);
}

.pas-qd__question-title {
    margin: 0 0 14px;
    padding: 0;
    color: var(--pas-qd-ink);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
}

.pas-qd__version {
    justify-self: start;
    margin: -8px 0 0;
    padding: 4px 9px;
    border-radius: 999px;
    color: #55706d;
    font-size: 0.74rem;
    font-weight: 700;
    background: #eef7f5;
}

.pas-qd__scale {
    display: grid;
    grid-template-columns: repeat(5, minmax(112px, 1fr));
    gap: 10px;
}

.pas-qd__scale label {
    display: grid;
    grid-template-rows: auto auto 1fr;
    align-items: center;
    justify-items: center;
    min-height: 104px;
    margin: 0 !important;
    padding: 12px 8px;
    border: 1px solid var(--pas-qd-line);
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.pas-qd__scale label:hover {
    border-color: var(--pas-qd-teal);
    box-shadow: 0 8px 18px rgba(20, 116, 111, 0.1);
    transform: translateY(-1px);
}

.pas-qd__scale input[type="radio"] {
    width: 18px !important;
    height: 18px !important;
    margin: 0 0 4px !important;
    accent-color: var(--pas-qd-teal);
}

.pas-qd__scale span {
    display: block;
    color: var(--pas-qd-teal-dark);
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1;
}

.pas-qd__scale small {
    display: block;
    color: var(--pas-qd-muted);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.22;
}

.pas-qd__submit {
    justify-self: start;
    min-height: 54px;
    border: 0 !important;
    border-radius: 8px;
    padding: 15px 24px;
    color: #fff !important;
    font: inherit;
    font-weight: 900;
    background: var(--pas-qd-teal);
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(20, 116, 111, 0.22);
}

.pas-qd__submit:hover,
.pas-qd__submit:focus {
    background: var(--pas-qd-teal-dark);
}

.pas-qd__notice {
    margin: 0;
    border-radius: 8px;
    padding: 14px 16px;
    font-weight: 700;
}

.pas-qd__notice--error {
    border: 1px solid #f1a29a;
    color: #7a271a;
    background: #fff4ed;
}

.pas-qd__notice--success {
    border: 1px solid #a6d8bd;
    color: #175c3b;
    background: #ecfdf3;
}

.pas-qd__result p {
    margin: 0;
}

.pas-qd__scores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
    margin: 6px 0;
}

.pas-qd__scores div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--pas-qd-line);
    border-radius: 8px;
    padding: 13px 14px;
    background: var(--pas-qd-soft);
}

.pas-qd__scores strong {
    color: var(--pas-qd-teal-dark);
}

.pas-qd__note {
    color: var(--pas-qd-muted);
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .pas-qd__scale {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .pas-qd__grid,
    .pas-qd__scale {
        grid-template-columns: 1fr;
    }

    .pas-qd__scale label {
        grid-template-columns: auto auto 1fr;
        grid-template-rows: auto;
        justify-items: start;
        min-height: auto;
        text-align: left;
    }

    .pas-qd__submit {
        width: 100%;
    }
}
