/*
 * rn-forms.css — JEDEN styl okien z formularzami (motyw RN): Zgłoś nieruchomość, Zadaj pytanie / Umów spotkanie,
 * Zaproponuj cenę, Sprzedaj ze mną, Darmowa wycena. Wzór = okno wyceny: ciemny nagłówek z żółtym nadtytułem,
 * biały formularz, ostre krawędzie, ramki 2 px, żółta obwódka przy fokusie, żółty przycisk na całą szerokość.
 * Okno: <div class="modal rn-fm"> + .rn-modal-header (.rn-modal-close/.rn-modal-supertitle/.rn-modal-title/.rn-modal-subtitle)
 * + .rn-modal-body. Wiersze pól: .rn-fm-row (1 kolumna) / .rn-fm-row--2 (2 kolumny, na telefonie 1).
 */

/* ── okno ── (warstwa nad paskiem nawigacji 9900 i elementami galerii; jquery-modal domyślnie ma z-index 1) */
.jquery-modal.blocker { z-index: 99992 !important; }   /* nad kartą powiadomień (99990), ikoną cookie (99970) i czatem; pod paskiem zgody cookies (99995+) */
.modal.rn-fm {
    max-width: 600px; width: calc(100% - 24px); padding: 0 !important; background: #fff; overflow: hidden;
    border-radius: 0; box-shadow: 0 24px 70px rgba(0,0,0,.35); font-family: Montserrat, sans-serif; text-align: left;
}
.modal.rn-fm > a.close-modal { display: none !important; }   /* własny × w nagłówku */

/* ── nagłówek (jak w wycenie) ── */
.rn-fm .rn-modal-header { background: #0a0a0a; padding: 24px 56px 20px 28px; position: relative; }
.rn-fm .rn-modal-close {
    position: absolute; top: 14px; right: 16px; background: none; border: none; color: rgba(255,255,255,.55);
    font-size: 1.7rem; line-height: 1; cursor: pointer; padding: 4px 8px; text-decoration: none; transition: color .15s;
}
.rn-fm .rn-modal-close:hover { color: #fff; }
.rn-fm .rn-modal-supertitle { font-size: .78rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #ffc82a; margin: 0 0 6px; }
.rn-fm .rn-modal-title { font-size: 1.45rem; font-weight: 700; line-height: 1.25; color: #fff; margin: 0 0 6px; letter-spacing: -.3px; }
.rn-fm .rn-modal-subtitle { font-size: .85rem; line-height: 1.5; color: rgba(255,255,255,.6); margin: 0; }
.rn-fm .rn-modal-body { padding: 24px 28px 26px; }
@media (max-width: 600px) {
    .rn-fm .rn-modal-header { padding: 20px 48px 16px 16px; }
    .rn-fm .rn-modal-title { font-size: 1.2rem; }
    .rn-fm .rn-modal-body { padding: 16px; }
}

/* ── wiersze pól ── */
.rn-fm form { margin: 0; }
.rn-fm .rn-fm-row { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 0 0 12px; }
.rn-fm .rn-fm-row--2 { grid-template-columns: 1fr 1fr; align-items: end; }   /* pole z opisem (np. data) w linii z sąsiednim */
@media (max-width: 600px) { .rn-fm .rn-fm-row--2 { grid-template-columns: 1fr; } }
.rn-fm .rn-fm-row > div { min-width: 0; }

/* ── pola (jak w wycenie: ostre krawędzie, ramka 2 px, żółty fokus) ── */
.rn-fm input[type="text"], .rn-fm input[type="email"], .rn-fm input[type="tel"], .rn-fm input[type="number"],
.rn-fm textarea, .rn-fm select {
    display: block; width: 100%; box-sizing: border-box; margin: 0 !important; border: 2px solid #e0e0e0; border-radius: 0;
    background: #fff; color: #111; font: 500 .92rem/1.4 Montserrat, sans-serif; padding: 12px 14px; height: 48px;
    outline: none; box-shadow: none; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
.rn-fm textarea { height: 110px; min-height: 90px; resize: vertical; }
.rn-fm input::placeholder, .rn-fm textarea::placeholder { color: #9a9a9a; opacity: 1; }
.rn-fm input:focus, .rn-fm textarea:focus, .rn-fm select:focus { border-color: #ffc82a; box-shadow: 0 0 0 3px rgba(255,200,42,.18); }
.rn-fm input[type="number"]::-webkit-inner-spin-button, .rn-fm input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* ── Turnstile ── */
.rn-fm .cf-turnstile, .rn-fm .oplixo-turnstile-row { display: flex; justify-content: center; margin: 6px 0 12px !important; }
.rn-fm .oplixo-turnstile-row { flex-direction: column; align-items: center; }
.rn-fm [data-turnstile-error], .rn-fm .oplixo-turnstile-hint { text-align: center; color: #dc2626 !important; font-size: .82rem !important; font-weight: 600; margin: -4px 0 10px !important; }

/* ── przycisk ── */
.rn-fm button[type="submit"], .rn-fm .rn-fm-submit {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 52px; margin: 0 0 16px;
    border: 2px solid #ffc82a; border-radius: 0; background: #ffc82a; color: #000; cursor: pointer;
    font: 700 .92rem Montserrat, sans-serif; letter-spacing: .06em; text-transform: uppercase; transition: background .15s, border-color .15s;
}
.rn-fm button[type="submit"]:hover, .rn-fm .rn-fm-submit:hover { background: #e6b400; border-color: #e6b400; }
.rn-fm button[type="submit"]:disabled { opacity: .6; cursor: wait; }
.rn-fm button[type="submit"]::after, .rn-fm button[type="submit"] img, .rn-fm button[type="submit"] svg { display: none; }   /* stare strzałki przycisków */

/* ── RODO ── */
.rn-fm .form-rodo, .rn-fm .oplixo-form-rodo {
    background: #f6f6f4; border: 0; border-left: 3px solid #ffc82a; padding: 12px 14px; margin: 0 0 14px;
    font-size: .76rem; line-height: 1.55; color: #666;
}
.rn-fm .form-rodo-button, .rn-fm .oplixo-form-rodo-button {
    display: inline; background: none; border: 0; padding: 0; margin: 0 0 0 4px; cursor: pointer;
    color: #111; font: 700 .76rem Montserrat, sans-serif; text-decoration: underline; text-decoration-color: #ffc82a; text-underline-offset: 3px;
}
.rn-fm .form-rodo-more, .rn-fm .oplixo-form-rodo-more { margin-top: 8px; font-size: .74rem; color: #777; }
/* stary „[ Więcej ]" pokazywał treść w czarnym dymku po najechaniu — tu rozwija się w ramce */
.rn-fm .form-rodo-button .form-rodo-more { display: none; position: static; background: none; padding: 0; color: #777; font-weight: 500; text-decoration: none; }
.rn-fm .form-rodo-button.is-open .form-rodo-more, .rn-fm .form-rodo-button:hover .form-rodo-more { display: block; }

/* ── zgody ── */
.rn-fm p.checkbox, .rn-fm .oplixo-swu-check {
    position: relative; display: flex; align-items: flex-start; gap: 10px; margin: 0 0 10px; padding: 0; cursor: pointer;
    background: none; border: 0;
}
.rn-fm p.checkbox input[type="checkbox"], .rn-fm .oplixo-swu-check input[type="checkbox"] {
    display: block !important; flex: 0 0 20px; width: 20px !important; height: 20px !important; min-width: 20px; margin: 1px 0 0 !important; padding: 0 !important; box-sizing: border-box; position: static !important; opacity: 1 !important; cursor: pointer;
    -webkit-appearance: none; appearance: none; border: 2px solid #cfcfcf; border-radius: 0; background: #fff; transition: border-color .15s, background .15s;
}
.rn-fm p.checkbox input[type="checkbox"]:checked, .rn-fm .oplixo-swu-check input[type="checkbox"]:checked {
    border-color: #ffc82a; background: #ffc82a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat;
}
.rn-fm p.checkbox label, .rn-fm .oplixo-swu-check label {
    display: block !important; margin: 0 !important; padding: 0 !important; font-size: .76rem !important; line-height: 1.5 !important; color: #555; font-weight: 500; cursor: pointer;
}
.rn-fm p.checkbox label::before, .rn-fm p.checkbox label::after,
.rn-fm .oplixo-swu-check label::before, .rn-fm .oplixo-swu-check label::after { display: none !important; }   /* stare atrapy pól wyboru */

/* ── komunikaty ── */
.rn-fm .rn-fm-error { background: #fef2f2; border-left: 3px solid #dc2626; color: #b91c1c; font-size: .82rem; font-weight: 600; padding: 10px 12px; margin: 0 0 12px; }
.rn-fm .rn-fm-done { padding: 44px 16px 36px; text-align: center; }
.rn-fm .rn-fm-done-ic { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: 16px; background: #ffc82a; color: #000; font-size: 1.6rem; font-weight: 800; }
.rn-fm .rn-fm-done h3 { font-size: 1.5rem; font-weight: 800; color: #0a0a0a; margin: 0 0 10px; }
.rn-fm .rn-fm-done p { font-size: .95rem; line-height: 1.7; color: #555; margin: 0; }

/* ── okno z panelem agenta (pytanie przy ofercie) ── */
.modal.rn-fm.rn-fm--agent { max-width: 860px; }
.rn-fm .rn-fm-split { display: flex; align-items: stretch; }
.rn-fm .rn-fm-split > .rn-modal-body { flex: 1 1 auto; min-width: 0; }
.rn-fm .rn-fm-agent {
    flex: 0 0 240px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
    background: #141414; border-top: 1px solid rgba(255,255,255,.06); padding: 26px 20px;
}
.rn-fm .rn-fm-agent-photo { width: 116px; height: 116px; overflow: hidden; border: 3px solid #ffc82a; background: #222; margin-bottom: 8px; }
.rn-fm .rn-fm-agent-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.rn-fm .rn-fm-agent-name { margin: 0; color: #fff; font-size: 1.02rem; font-weight: 700; }
.rn-fm .rn-fm-agent-pos { margin: 0 0 8px; color: rgba(255,255,255,.55); font-size: .8rem; }
.rn-fm .rn-fm-agent-phone {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 2px solid #ffc82a; color: #ffc82a;
    font-weight: 700; font-size: .92rem; text-decoration: none; transition: background .15s, color .15s;
}
.rn-fm .rn-fm-agent-phone:hover { background: #ffc82a; color: #000; }
.rn-fm .rn-fm-agent-link { margin-top: 10px; color: rgba(255,255,255,.7); font-size: .8rem; text-decoration: none; border-bottom: 1px solid rgba(255,200,42,.6); }
.rn-fm .rn-fm-agent-link:hover { color: #fff; }
.rn-fm .rn-modal-subtitle strong { color: #fff; font-weight: 600; }
.rn-fm .rn-fm-label { display: block; margin: -2px 0 4px; font-size: .72rem; font-weight: 600; color: #777; }
.rn-fm input[type="date"] { height: 48px; padding: 10px 12px; }
@media (max-width: 760px) {
    .rn-fm .rn-fm-split { flex-direction: column; }
    .rn-fm .rn-fm-agent { flex: 0 0 auto; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; text-align: left; padding: 14px 16px; gap: 4px 12px; }
    .rn-fm .rn-fm-agent-photo { width: 56px; height: 56px; margin: 0; border-width: 2px; }
    .rn-fm .rn-fm-agent-name { font-size: .95rem; }
    .rn-fm .rn-fm-agent-pos { margin: 0; flex-basis: 100%; }
    .rn-fm .rn-fm-agent-link { margin-top: 0; }
}

/* ── zgody w wersji <label class="rn-check"><input><span> ── */
.rn-fm .rn-agreements { margin: 0; }
.rn-fm label.rn-check { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 10px; cursor: pointer; font-weight: 500; }
.rn-fm label.rn-check input[type="checkbox"] {
    display: block !important; flex: 0 0 20px; width: 20px !important; height: 20px !important; margin: 1px 0 0 !important; padding: 0 !important;
    position: static !important; opacity: 1 !important; -webkit-appearance: none; appearance: none; border: 2px solid #cfcfcf; border-radius: 0; background: #fff; cursor: pointer;
}
.rn-fm label.rn-check input[type="checkbox"]:checked {
    border-color: #ffc82a; background: #ffc82a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat;
}
.rn-fm label.rn-check .rn-check-label { font-size: .76rem; line-height: 1.5; color: #555; }
