/* PSA — zapis na terapię + „moje płatności" (front). Tokeny jak w LP współuzależnienia. */
.psa-ter-form,
.psa-ter-box {
    --psa-ter-brand: #393185;
    --psa-ter-line: #e3e3ef;
    --psa-ter-ok: #1f7a46;
    --psa-ter-late: #b32020;
    max-width: 680px;
    margin: 0 auto;
    font-family: "DM Sans", Helvetica, Arial, sans-serif;
    color: #1d1d2b;
}

.psa-ter-row { margin: 0 0 18px; }
.psa-ter-row > label { display: block; font-weight: 600; margin-bottom: 6px; }

.psa-ter-form input[type="text"],
.psa-ter-form input[type="email"],
.psa-ter-form input[type="tel"],
.psa-ter-form select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--psa-ter-line);
    border-radius: 8px;
    font-size: 16px;
    background: #fff;
}

.psa-ter-form input:focus,
.psa-ter-form select:focus { outline: 2px solid var(--psa-ter-brand); outline-offset: 1px; }
.psa-ter-form .psa-ter-invalid { border-color: var(--psa-ter-late); background: #fff6f6; }

.psa-ter-plans { border: 0; padding: 0; margin: 0 0 18px; }
.psa-ter-plans legend { font-weight: 600; margin-bottom: 8px; padding: 0; }

.psa-ter-plan {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border: 1px solid var(--psa-ter-line);
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    background: #fff;
}
.psa-ter-plan:hover { border-color: var(--psa-ter-brand); }
.psa-ter-plan input { margin-top: 3px; }
.psa-ter-plan b { display: block; }
.psa-ter-plan small { color: #5a5a72; }

.psa-ter-summary:not(:empty) {
    padding: 14px 16px;
    border-left: 4px solid var(--psa-ter-brand);
    background: #f5f5fb;
    border-radius: 6px;
    margin-bottom: 18px;
    line-height: 1.5;
}

.psa-ter-consents label {
    display: block;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
    color: #3c3c52;
}
.psa-ter-consents input { margin-right: 8px; }

.psa-ter-submit {
    width: 100%;
    padding: 16px 20px;
    border: 0;
    border-radius: 10px;
    background: var(--psa-ter-brand);
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
}
.psa-ter-submit:disabled { opacity: .6; cursor: default; }

.psa-ter-msg { margin-top: 14px; font-size: 15px; }
.psa-ter-msg-error { color: var(--psa-ter-late); font-weight: 600; }
.psa-ter-msg-ok { color: var(--psa-ter-ok); font-weight: 600; }

.psa-ter-box { padding: 20px; border: 1px solid var(--psa-ter-line); border-radius: 12px; background: #fff; }
.psa-ter-box h3 { margin-top: 0; }
.psa-ter-table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.psa-ter-table th,
.psa-ter-table td { padding: 10px 8px; border-bottom: 1px solid var(--psa-ter-line); text-align: left; font-size: 15px; }
.psa-ter-table tr.psa-ter-ok td { color: var(--psa-ter-ok); }
.psa-ter-table tr.psa-ter-late td { color: var(--psa-ter-late); font-weight: 600; }
.psa-ter-pay {
    display: inline-block;
    padding: 6px 12px;
    background: var(--psa-ter-brand);
    color: #fff !important;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
}
.psa-ter-note { color: #5a5a72; font-size: 14px; }

@media (max-width: 600px) {
    .psa-ter-table th:nth-child(4),
    .psa-ter-table td:nth-child(4) { display: none; }
    .psa-ter-submit { font-size: 16px; }
}
