/* ── Linis Coaching 360° – Public Styles ─────────────── */
/* 1.2.0: kolory z motywu strony (Blocksy: przyciski i linki z --theme-*), powierzchnie i ramki
   jako odcienie koloru tekstu (currentColor), więc działają w trybie jasnym i ciemnym.
   Czcionki dziedziczone z motywu (lokalne woff2 strony). Kontrast mierzony na żywo, zob. NOTATKA 13.347. */

.lc360-instructions,
.lc360-form,
.lc360-login-box,
.lc360-otp-flow,
.lc360-survey,
.lc360-send-form,
.lc360-session-selector,
.lc360-response-card,
.lc360-table,
.lc360-matrix-table,
.lc360-notice {
    --lc360-accent: var(--theme-button-background-initial-color, #1559ed);
    --lc360-accent-hover: var(--theme-button-background-hover-color, var(--lc360-accent));
    --lc360-on-accent: var(--theme-button-text-initial-color, #fff);
    --lc360-on-accent-hover: var(--theme-button-text-hover-color, var(--lc360-on-accent));
    --lc360-surface: color-mix(in srgb, currentColor 5%, transparent);
    --lc360-surface-2: color-mix(in srgb, currentColor 9%, transparent);
    --lc360-line: color-mix(in srgb, currentColor 25%, transparent);
    --lc360-control: color-mix(in srgb, currentColor 62%, transparent);
}

.lc360-instructions {
    background: var(--lc360-surface);
    border-left: 4px solid var(--lc360-accent);
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 4px;
}
.lc360-instructions h2 {
    margin-top: 0;
}
.lc360-instructions ol li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* ── Form styles ──────────────────────────────────────── */
.lc360-form {
    max-width: 640px;
    margin: 20px 0;
}
.lc360-field {
    margin-bottom: 18px;
}
.lc360-field > label:first-child {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}
.lc360-field input[type="text"],
.lc360-field input[type="email"],
.lc360-field textarea,
.lc360-field select,
.lc360-respondent-row input[type="email"],
.lc360-respondent-row input[type="text"],
.lc360-respondent-row select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--lc360-control);
    border-radius: 4px;
    font-size: 1rem;
    color: inherit;
    background: transparent;
}
.lc360-field select option,
.lc360-respondent-row select option {
    color: initial;
    background: initial;
}
.lc360-form input:focus-visible,
.lc360-form textarea:focus-visible,
.lc360-form select:focus-visible,
.lc360-form button:focus-visible,
.lc360-login-box summary:focus-visible,
.lc360-session-list a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}
.lc360-field textarea {
    resize: vertical;
}
.lc360-radio,
.lc360-checkbox {
    display: block;
    margin: 4px 0;
    padding: 4px 0;
}
.lc360-radio input,
.lc360-checkbox input {
    margin-right: 6px;
    accent-color: var(--lc360-accent);
}

/* ── Consent / questions fieldsets ────────────────────── */
.lc360-consent,
.lc360-questions {
    border: 1px solid var(--lc360-line);
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 24px;
}
.lc360-consent {
    background: var(--lc360-surface);
}
.lc360-consent legend,
.lc360-questions legend {
    font-weight: 700;
    font-size: 1rem;
    padding: 0 8px;
}

/* ── Buttons ──────────────────────────────────────────── */
.lc360-submit-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}
.lc360-submit-row .button {
    padding: 10px 24px;
    font-size: 1rem;
    cursor: pointer;
}
/* Przycisk główny: tło = odcień koloru tekstu, ramka 2 px, pogrubienie. Kolory przycisków motywu nie trzymały
   4.5:1 w obu trybach (budujacliderow.pl: 4.31 jasny, 1.65 ciemny; pomiar 04.12), a ten wariant ma kontrast
   tekstu treści w każdym motywie i trybie. */
.lc360-submit-row .button-primary,
.lc360-otp-flow .button-primary,
.lc360-magic-landing .button-primary {
    background: color-mix(in srgb, currentColor 12%, transparent);
    color: inherit;
    border: 2px solid currentColor;
    border-radius: 4px;
    font-weight: 700;
}
.lc360-submit-row .button-primary:hover,
.lc360-otp-flow .button-primary:hover,
.lc360-magic-landing .button-primary:hover {
    background: color-mix(in srgb, currentColor 22%, transparent);
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.lc360-form button,
.lc360-form .button,
.lc360-form input,
.lc360-form select,
.lc360-form textarea {
    font-family: inherit;
}
.lc360-form input:focus,
.lc360-form select:focus,
.lc360-form textarea:focus {
    border-color: currentColor;
}
/* „Zapisz szkic” i przyciski drugorzędne: obrys w kolorze tekstu treści.
   Zmierzone 2026-12-04 (pathtofullness.com, kierunekpelnia.pl): tekst, ramka i fokus 13.29:1 (jasny), 15.1:1 (ciemny). */
.lc360-submit-row .button:not(.button-primary),
.lc360-submit-row .button:not(.button-primary):hover,
.lc360-submit-row .button:not(.button-primary):focus,
.lc360-add-respondent,
.lc360-add-respondent:hover,
.lc360-add-respondent:focus {
    background: transparent;
    color: inherit;
    border: 2px solid currentColor;
    border-radius: 4px;
}
.lc360-submit-row .button:not(.button-primary):hover,
.lc360-add-respondent:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.lc360-add-respondent {
    margin: 8px 0 20px;
    padding: 8px 16px;
    cursor: pointer;
}

/* ── Login box (magic link + hasło) ───────────────────── */
.lc360-login-box {
    max-width: 640px;
}
.lc360-password-login {
    margin-top: 28px;
    border-top: 1px solid var(--lc360-line);
    padding-top: 12px;
}
.lc360-password-login summary {
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ── OTP flow ─────────────────────────────────────────── */
.lc360-otp-flow {
    max-width: 420px;
    margin: 40px auto;
    text-align: center;
    padding: 30px;
    background: var(--lc360-surface);
    border: 1px solid var(--lc360-line);
    border-radius: 8px;
}
.lc360-otp-flow h2 {
    margin-top: 0;
}
.lc360-otp-verify {
    margin-top: 20px;
}
.lc360-otp-verify input[type="text"] {
    font-size: 1.5rem;
    letter-spacing: 8px;
    text-align: center;
    width: 200px;
    max-width: 100%;
    padding: 10px;
    border: 2px solid var(--lc360-control);
    border-radius: 6px;
    color: inherit;
    background: transparent;
}
.lc360-otp-verify button {
    margin-top: 12px;
}

/* ── Notices: tekst w kolorze treści (kontrast z motywu), kolor sygnału na ramce i tle ── */
.lc360-notice {
    padding: 12px 16px;
    border-radius: 4px;
    margin: 16px 0;
    font-weight: 500;
    border-left: 6px solid currentColor;
    background: var(--lc360-surface-2);
}
.lc360-notice.success {
    border-left-color: #2e7d32;
    background: color-mix(in srgb, #2e7d32 12%, transparent);
}
.lc360-notice.error {
    border-left-color: #c62828;
    background: color-mix(in srgb, #c62828 12%, transparent);
}

/* ── Tables ───────────────────────────────────────────── */
.lc360-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}
.lc360-table th,
.lc360-table td {
    padding: 10px 12px;
    border: 1px solid var(--lc360-line);
    text-align: left;
}
.lc360-table th {
    background: var(--lc360-surface-2);
    font-weight: 600;
    white-space: nowrap;
}
.lc360-table tr:nth-child(even) {
    background: var(--lc360-surface);
}

/* ── Response card ────────────────────────────────────── */
.lc360-response-card {
    border: 1px solid var(--lc360-line);
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 20px;
}
.lc360-response-card h3 {
    margin-top: 0;
}

/* ── Respondent rows (invitation form) ────────────────── */
.lc360-respondent-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.lc360-respondent-row input[type="email"],
.lc360-respondent-row input[type="text"] {
    flex: 1;
    min-width: 180px;
    width: auto;
}
.lc360-respondent-row select {
    min-width: 160px;
    width: auto;
}

/* ── Survey header ────────────────────────────────────── */
.lc360-survey h2 {
    border-bottom: 2px solid var(--lc360-accent);
    padding-bottom: 8px;
}
.lc360-form-desc {
    font-style: italic;
    margin-bottom: 20px;
}

/* ── Radio matrix table ───────────────────────────────── */
.lc360-matrix-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
}
.lc360-matrix-table th,
.lc360-matrix-table td {
    padding: 10px 8px;
    border: 1px solid var(--lc360-line);
    text-align: center;
}
.lc360-matrix-table thead th {
    background: var(--lc360-surface-2);
    font-weight: 600;
    white-space: nowrap;
    min-width: 40px;
}
.lc360-matrix-table tbody td:first-child {
    text-align: left;
    font-weight: 500;
    min-width: 200px;
    white-space: normal;
}
.lc360-matrix-table thead th:first-child {
    text-align: left;
}
.lc360-matrix-cell {
    cursor: pointer;
}
.lc360-matrix-cell input[type="radio"] {
    margin: 0;
    cursor: pointer;
    width: 20px;
    height: 20px;
    accent-color: var(--lc360-accent);
}
.lc360-matrix-table tr:nth-child(even) {
    background: var(--lc360-surface);
}
.lc360-matrix-table tbody tr:hover {
    background: var(--lc360-surface-2);
}

/* ── Session selector ─────────────────────────────────── */
.lc360-session-selector {
    margin: 20px 0;
    padding: 16px;
    background: var(--lc360-surface);
    border: 1px solid var(--lc360-line);
    border-radius: 6px;
}
.lc360-session-selector h3 {
    margin-top: 0;
}
.lc360-session-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.lc360-session-list li {
    margin: 0;
}
.lc360-session-list li a {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--lc360-control);
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
}
.lc360-session-list li a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.lc360-session-active a {
    border: 2px solid currentColor !important;
    font-weight: 700;
}
.lc360-session-context {
    font-size: 0.85em;
}
.lc360-session-status {
    font-size: 0.8em;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 4px;
    border: 1px solid currentColor;
}

@media (prefers-reduced-motion: reduce) {
    .lc360-form *,
    .lc360-session-list a {
        transition: none !important;
    }
}
