/* ════════════════════════════════════════════════
   PRZEGLĄD24 — Style
   ════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary:    #2563eb;
    --primary-h:  #1d4ed8;
    --success:    #16a34a;
    --error:      #dc2626;
    --bg:         #f8fafc;
    --surface:    #ffffff;
    --border:     #e2e8f0;
    --text:       #1e293b;
    --text-muted: #64748b;
    --radius:     12px;
    --shadow:     0 4px 24px rgba(0,0,0,.08);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
}

a { color: var(--primary); }
a:hover { text-decoration: underline; }

.container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── HEADER ──────────────────────────────────── */
.header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.header .container {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    color: var(--text);
    text-decoration: none;
}

.logo-icon { font-size: 1.8rem; }
.logo-text strong { color: var(--primary); }
.tagline { color: var(--text-muted); font-size: .9rem; }

/* ── HERO ────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #fff;
    padding: 60px 0 50px;
    text-align: center;
}

.hero h1 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.hero-sub {
    font-size: 1.05rem;
    opacity: .9;
    max-width: 560px;
    margin: 0 auto 32px;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.badge {
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 50px;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .9rem;
    backdrop-filter: blur(4px);
}

/* ── FORM SECTION ────────────────────────────── */
.form-section { padding: 56px 0; }

.form-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: clamp(24px, 5vw, 48px);
    max-width: 600px;
    margin: 0 auto;
}

.form-card h2 { font-size: 1.5rem; margin-bottom: 6px; }
.form-intro { color: var(--text-muted); margin-bottom: 28px; font-size: .95rem; }

/* ── FIELDS ──────────────────────────────────── */
.field { margin-bottom: 20px; }

.field label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: .9rem;
}

.req { color: var(--error); }
.optional { color: var(--text-muted); font-weight: 400; font-size: .85em; }

.field input:not([type="checkbox"]),
.field select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: .95rem;
    font-family: inherit;
    color: var(--text);
    background: var(--surface);
    transition: border-color .15s, box-shadow .15s;
    appearance: none;
    -webkit-appearance: none;
}

.field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.field input:focus,
.field select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.field input.is-invalid,
.field select.is-invalid { border-color: var(--error); }

.field-hint {
    display: block;
    margin-top: 5px;
    font-size: .82rem;
    color: var(--text-muted);
}

.field-error {
    display: block;
    margin-top: 5px;
    font-size: .82rem;
    color: var(--error);
    min-height: 1em;
}

/* ── CHECKBOX ────────────────────────────────── */
.checkbox-label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    cursor: pointer;
    font-weight: 400;
    font-size: .88rem;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 1px;
    cursor: pointer;
    accent-color: var(--primary);
}

/* ── TURNSTILE ───────────────────────────────── */
.turnstile-wrap { display: flex; flex-direction: column; align-items: flex-start; }

/* ── HONEYPOT ────────────────────────────────── */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px; height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* ── BUTTON ──────────────────────────────────── */
.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background .15s, transform .1s;
    margin-top: 8px;
}

.btn-submit:hover:not(:disabled) { background: var(--primary-h); }
.btn-submit:active:not(:disabled) { transform: scale(.99); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; }

/* ── SPINNER ─────────────────────────────────── */
.spinner {
    width: 18px; height: 18px;
    border: 2.5px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── FORM MESSAGE ────────────────────────────── */
.form-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: .93rem;
    font-weight: 500;
}

.form-message.success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.form-message.error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

.hidden { display: none !important; }

/* ── JAK TO DZIAŁA ───────────────────────────── */
.how-section {
    background: var(--surface);
    padding: 56px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.how-section h2 { font-size: 1.4rem; margin-bottom: 36px; }

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}

.step-num {
    width: 44px; height: 44px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 auto 12px;
}

.step h3 { font-size: 1rem; margin-bottom: 8px; }
.step p  { font-size: .88rem; color: var(--text-muted); }

/* ── CZĘSTOTLIWOŚĆ ───────────────────────────── */
.freq-section {
    padding: 56px 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    text-align: center;
}

.freq-section h2 { font-size: 1.4rem; margin-bottom: 36px; }

.freq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.freq-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px 24px;
}

.freq-icon { font-size: 2rem; margin-bottom: 10px; }
.freq-card h3 { font-size: 1rem; margin-bottom: 10px; }

.freq-badge {
    display: inline-block;
    background: #dbeafe;
    color: #1d4ed8;
    border-radius: 50px;
    padding: 3px 14px;
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.freq-card p { font-size: .85rem; color: var(--text-muted); }

/* ── RODO ────────────────────────────────────── */
.rodo-section {
    padding: 48px 0;
    background: #f1f5f9;
    border-top: 1px solid var(--border);
}

.rodo-section h2 { font-size: 1.2rem; margin-bottom: 16px; }

.rodo-content p {
    font-size: .88rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    max-width: 700px;
}

/* ── FOOTER ──────────────────────────────────── */
.footer {
    background: var(--text);
    color: rgba(255,255,255,.7);
    text-align: center;
    padding: 20px 0;
    font-size: .85rem;
}

.footer .link { color: rgba(255,255,255,.9); }

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 480px) {
    .header .container { justify-content: center; text-align: center; }
    .form-card { padding: 24px 16px; }
    .badges { gap: 8px; }
    .badge { font-size: .82rem; padding: 6px 14px; }
}
