/* Sutarčių pildymas puslapyje (kartu su /assets/sutartis-forma.js) */

/* ===== Užpildomi laukai ===== */
.b[contenteditable] {
    padding: 0 4px;
    cursor: text;
    outline: none;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    border-radius: 3px 3px 0 0;
    transition: background 0.15s, box-shadow 0.15s;
}
.b[contenteditable]:hover { background: #f1f5f9; }
.b[contenteditable]:focus {
    background: #eff6ff;
    border-bottom-color: #2563eb;
    box-shadow: 0 1px 0 #2563eb;
}
.b[contenteditable]:empty::before {
    content: attr(data-ph);
    color: #94a3b8;
    font-style: italic;
    font-size: 0.85em;
}

/* ===== Užuomina virš sutarties ===== */
.fill-hint {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    line-height: 1.55;
}
.fill-hint small {
    display: block;
    color: #64748b;
    margin-top: 0.25rem;
    font-size: 0.78rem;
}

/* ===== Mygtukas „Išvalyti“ ===== */
.tb-btn-clear {
    background: transparent;
    color: #cbd5e1;
    border: 1px solid #475569;
}
.tb-btn-clear:hover { color: #fff; border-color: #94a3b8; }

/* ===== Šablono žyma po parašais ===== */
.c-brand {
    margin-top: 2.5rem;
    text-align: center;
    font-size: 0.7rem;
    color: #94a3b8;
    letter-spacing: 0.2px;
}

/* ===== Spausdinimas ===== */
@media print {
    .fill-hint { display: none !important; }
    .b[contenteditable] {
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 2px;
    }
    .b[contenteditable]:empty::before { content: none; }
    .custom-clause { animation: none !important; }
    .c-brand { color: #6b7280; margin-top: 1.5rem; break-before: avoid; page-break-before: avoid; }
}

/* ===== Įžanga virš sutarties (garažo, komercinių patalpų puslapiai) ===== */
.seo-intro { margin-bottom: 1rem; }
.seo-intro h1 {
    font-size: 1.5rem;
    line-height: 1.3;
    color: #0f172a;
    margin-bottom: 0.4rem;
}
.seo-intro p { font-size: 0.95rem; line-height: 1.6; color: #475569; }

/* ===== Informacija po sutartimi ===== */
.seo-more {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    font-size: 0.92rem;
    line-height: 1.65;
    color: #334155;
}
.seo-more h2 { font-size: 1.05rem; color: #0f172a; margin: 1.25rem 0 0.5rem; }
.seo-more h2:first-child { margin-top: 0; }
.seo-more ul, .seo-more ol { padding-left: 1.25rem; }
.seo-more li { margin: 0.2rem 0; }
.seo-more a { color: #2563eb; }

/* ===== Kitas žingsnis (includes/sutartis-next-step.php) ===== */
.next-step {
    background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
    border: 1px solid #c7d2fe;
    border-radius: 14px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}
.ns-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #4f46e5;
    background: #e0e7ff;
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    margin-bottom: 0.6rem;
}
.ns-title { font-size: 1.15rem; line-height: 1.35; color: #1e1b4b; margin-bottom: 0.4rem; }
.ns-text { font-size: 0.92rem; line-height: 1.6; color: #334155; margin-bottom: 0.6rem; }
.ns-list { list-style: none; margin: 0 0 1.1rem; }
.ns-list li {
    position: relative;
    padding-left: 1.5rem;
    margin: 0.3rem 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #1e293b;
}
.ns-list li::before { content: '✓'; position: absolute; left: 0; top: 0; color: #10b981; font-weight: 700; }
.ns-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.35rem;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}
.ns-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(102, 126, 234, 0.35); }
.ns-btn:focus-visible, .ns-close:focus-visible, .ns-later:focus-visible, .ns-review:focus-visible {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
}
.ns-btn-block { width: 100%; }
.ns-note { font-size: 0.78rem; color: #64748b; margin-top: 0.5rem; }

/* Langas po spausdinimo */
.ns-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 300;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.ns-modal.is-open { display: flex; }
.ns-modal-box {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 420px;
    width: 100%;
    padding: 2rem 1.75rem 1.25rem;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    animation: nsIn 0.25s ease;
}
@keyframes nsIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}
.ns-close {
    position: absolute;
    top: 0.6rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.4rem;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
}
.ns-modal-icon { font-size: 2.25rem; margin-bottom: 0.4rem; }
.ns-modal-title { font-size: 1.15rem; color: #1e293b; margin-bottom: 0.4rem; }
.ns-modal-text { font-size: 0.88rem; line-height: 1.55; color: #475569; margin-bottom: 1.1rem; }
.ns-review { display: block; margin-top: 0.9rem; font-size: 0.82rem; color: #64748b; text-decoration: none; }
.ns-review:hover { color: #1e293b; text-decoration: underline; }
.ns-later {
    margin-top: 0.4rem;
    background: none;
    border: none;
    color: #94a3b8;
    font-family: inherit;
    font-size: 0.78rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .seo-intro h1 { font-size: 1.25rem; }
    .next-step, .seo-more { padding: 1.25rem 1rem; }
    .ns-btn { width: 100%; }
}

@media print {
    .seo-intro, .seo-more, .next-step, .ns-modal, #registrationModal { display: none !important; }
}