/* ==========================================================================
   SYSTEM REKRUTACYJNY — styl publiczny (formularz + strona statusu)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    color-scheme: light;
    --bg-page: #eef1f6;
    --card-bg: #ffffff;
    --border: #e6e9f0;
    --border-soft: #eef0f5;

    --navy: #16233c;
    --navy-hover: #101a2d;
    --navy-soft: #eef1f6;

    --text: #12141c;
    --text-secondary: #5b6472;
    --text-muted: #8890a0;

    --amber-bg: #fef3c7;
    --amber-text: #92400e;
    --amber-icon-bg: #fdf1d6;

    --green-bg: #dcfce7;
    --green-text: #166534;
    --green: #16a34a;

    --red-bg: #fee2e2;
    --red-text: #991b1b;
    --red: #dc2626;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-card: 0 1px 2px rgba(16,24,40,0.04), 0 4px 14px rgba(16,24,40,0.06);
    --shadow-lift: 0 8px 30px rgba(16,24,40,0.12);
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-page);
    margin: 0;
    color: var(--text);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* --- Ikony inline (Lucide-style, 20px stroke) --- */
.icon { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ==========================================================================
   Strona formularza publicznego
   ========================================================================== */

.public-wrap {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 48px 16px;
}

.public-card {
    background: var(--card-bg);
    max-width: 640px;
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
    padding: 40px 40px 44px;
}

.public-card .logo { max-height: 44px; margin-bottom: 20px; }
.public-card .logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.01em;
}

.public-card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--text);
}
.public-card .subtitle { color: var(--text-secondary); margin: 0 0 28px; font-size: 0.92rem; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-grid .field-full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.field .hint { font-size: 0.75rem; color: var(--text-muted); font-weight: 400; }

.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="date"], .field input[type="password"], .field select, .field textarea {
    font-family: inherit;
    font-size: 0.92rem;
    padding: 11px 13px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
    width: 100%;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--navy); box-shadow: 0 0 0 3px rgba(22,35,60,0.08); outline: none;
}

.file-field {
    border: 1.5px dashed var(--border);
    border-radius: var(--radius-sm);
    background: #fafbfc;
    padding: 14px 16px;
    display: flex; align-items: center; gap: 12px;
    cursor: pointer; position: relative;
    transition: border-color .15s ease, background .15s ease;
}
.file-field:hover { border-color: var(--navy); background: var(--navy-soft); }
.file-field input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-field .file-icon {
    width: 36px; height: 36px; border-radius: var(--radius-sm); background: #eef1f6;
    display: flex; align-items: center; justify-content: center; color: var(--navy); flex-shrink: 0;
}
.file-field .file-text { font-size: 0.84rem; color: var(--text-muted); }
.file-field .file-text strong { display: block; color: var(--text); font-size: 0.9rem; }

.consents { margin: 20px 0 24px; padding-top: 18px; border-top: 1px solid var(--border-soft); display: flex; flex-direction: column; gap: 10px; }
.checkbox-label { display: flex; align-items: flex-start; gap: 10px; font-size: 0.84rem; color: var(--text-secondary); cursor: pointer; }
.checkbox-label input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--navy); flex-shrink: 0; }
.checkbox-label a { color: var(--navy); font-weight: 600; text-decoration: underline; }

.btn {
    font-family: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer;
    border-radius: var(--radius-sm); padding: 11px 18px; border: none;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    transition: background .12s ease, border-color .12s ease, color .12s ease, transform .08s ease;
    text-decoration: none;
}
.btn-block { width: 100%; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-hover); }
.btn-primary:active { transform: translateY(1px); }
.btn-secondary { background: #fff; color: var(--text); border: 1.5px solid var(--border); }
.btn-secondary:hover { border-color: var(--navy); color: var(--navy); }

.alert { padding: 13px 16px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 0.86rem; }
.alert ul { margin: 0; padding-left: 18px; }
.alert-error { background: var(--red-bg); color: var(--red-text); border: 1px solid #f3b9b9; }
.alert-success { background: var(--green-bg); color: var(--green-text); border: 1px solid #b9e5c5; }

dialog.info-modal {
    max-width: 560px; width: 90%; border: none; border-radius: var(--radius-lg);
    padding: 32px; box-shadow: var(--shadow-lift); font-family: inherit; color: var(--text);
}
dialog.info-modal::backdrop { background: rgba(15,20,30,0.55); }
dialog.info-modal form { margin-top: 18px; text-align: right; }

/* ==========================================================================
   Strona statusu / weryfikacji (verify.php)
   ========================================================================== */

.status-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    background: var(--bg-page);
}

.status-card {
    background: #fff;
    max-width: 480px;
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
    padding: 40px 40px 36px;
    text-align: center;
}

.status-icon {
    width: 64px; height: 64px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.6rem;
}
.status-icon.is-pending { background: var(--amber-icon-bg); color: #d97706; }
.status-icon.is-accepted { background: var(--green-bg); color: var(--green); }
.status-icon.is-rejected { background: var(--red-bg); color: var(--red); }
.status-icon svg { width: 30px; height: 30px; }

.status-card h1 { font-size: 1.3rem; font-weight: 700; margin: 0 0 10px; color: var(--text); }
.status-card p { color: var(--text-secondary); font-size: 0.9rem; margin: 0 0 8px; }
.status-card p strong { color: var(--text); }

.status-box {
    background: #fafbfc;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 22px;
    margin-top: 22px;
    text-align: left;
}
.status-box h2 { font-size: 0.95rem; font-weight: 700; margin: 0 0 4px; color: var(--text); }
.status-box .desc { font-size: 0.83rem; color: var(--text-secondary); margin: 0 0 14px; }
.status-box .row { display: flex; justify-content: space-between; align-items: baseline; padding: 7px 0; gap: 12px; }
.status-box .row .k { font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.status-box .row .v { font-size: 0.88rem; font-weight: 600; color: var(--text); text-align: right; }

/* ==========================================================================
   RWD
   ========================================================================== */

@media (max-width: 640px) {
    .field-grid { grid-template-columns: 1fr; }
    .public-card { padding: 28px 22px 32px; }
    .status-card { padding: 30px 24px; }
}
