body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
    padding: 0;
    transition: background-color 0.2s, color 0.2s;
}

.page-container {
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: background-color 0.2s, box-shadow 0.2s;
}

h1 {
    color: #2c3e50;
    font-size: 1.6em;
    border-bottom: 3px solid #007bff;
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 25px;
}

.intro-text {
    font-size: 0.95em;
    line-height: 1.5;
    color: #555;
    margin-bottom: 30px;
}

h2.section-title {
    margin-top: 35px;
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #007bff;
    font-weight: 700;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

select,
input[type="text"],
input[type="email"],
input[type="tel"] {
    width: 100%;
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1em;
    background-color: #fafafa;
    transition: border 0.3s, box-shadow 0.3s, background-color 0.3s, color 0.3s;
}

select:focus,
input:focus {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
    outline: none;
    background-color: #fff;
}

.rodo-container {
    background: #fdfdfd;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 6px;
    font-size: 0.85em;
    color: #666;
    margin-bottom: 15px;
}

h1 {
    color: #2c3e50;
    font-size: 1.6em;
    border-bottom: 3px solid #007bff;
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 25px;
    margin-top: 0;
}

h2.section-title {
    margin: 0;
    margin-top: 35px;
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #007bff;
    font-weight: 700;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.rodo-container h3.rodo-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #333;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f0f8ff;
    border: 1px solid #cce5ff;
    border-radius: 6px;
}

.checkbox-group label {
    font-weight: 500;
    font-size: 0.9em;
    margin-bottom: 0;
    color: #333;
}

button[type="submit"] {
    width: 100%;
    padding: 18px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

.main-header {
    background: #fff;
    padding: 0 0 30px 0;
    text-align: center;
    width: 100%;
    display: block;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.eu-logos img {
    display: block;
    max-width: 100%;
    height: auto;
}

.company-logo img {
    display: block;
    max-width: 250px;
    width: 100%;
    height: auto;
}

footer {
    background: #333;
    color: #fff;
    padding: 20px 20px;
    margin-top: 50px;
    width: 100%;
    box-sizing: border-box;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
}

.footer-logo-box {
    background: #fff;
    padding: 10px;
    border-radius: 4px;
}

/* ==========================================================================
   PASEK DOSTĘPNOŚCI (WCAG BAR)
   ========================================================================== */
.a11y-bar {
    background-color: #e5e7eb;
    padding: 10px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    font-size: 14px;
    border-bottom: 1px solid #d1d5db;
    box-sizing: border-box;
}

.a11y-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #fff;
    border: 1px solid #9ca3af;
    color: #111827;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: background-color 0.2s;
}

.a11y-btn:hover {
    background-color: #f3f4f6;
}

.a11y-btn.active {
    background-color: #007bff;
    color: #fff;
    border-color: #0069d9;
}

/* ==========================================================================
   STYLE POWIĘKSZONEGO TEKSTU (.large-text)
   ========================================================================== */
html.large-text body {
    font-size: 1.5em !important;
    /* Globalne zwiększenie czcionki o 50% */
}

html.large-text h1 {
    font-size: 1.7em !important;
    /* Proporcjonalne dostosowanie nagłówka głównego */
}

html.large-text h2.section-title {
    font-size: 1.25em !important;
    /* Dostosowanie nagłówków sekcji */
}

html.large-text select,
html.large-text input[type="text"],
html.large-text input[type="email"],
html.large-text input[type="tel"] {
    font-size: 0.95em !important;
    padding: 16px !important;
    /* Większe, wygodniejsze pola do klikania */
}

html.large-text button[type="submit"] {
    font-size: 1em !important;
    padding: 20px !important;
}

html.large-text .checkbox-group label {
    font-size: 0.85em !important;
}

/* Powiększenie samego paska WCAG, by ułatwić powrót do standardowego rozmiaru */
html.large-text .a11y-bar {
    font-size: 16px !important;
}

html.large-text .a11y-btn {
    font-size: 15px !important;
    padding: 8px 16px !important;
}

/* ==========================================================================
   STYLE WYSOKIEGO KONTRASTU (.high-contrast)
   ========================================================================== */
html.high-contrast body {
    background-color: #000000 !important;
    color: #ffffff !important;
}

html.high-contrast .a11y-bar {
    background-color: #000000 !important;
    border-bottom: 2px solid #ffffff !important;
}

html.high-contrast .a11y-btn {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
}

html.high-contrast .a11y-btn.active {
    background-color: #ffff00 !important;
    color: #000000 !important;
    border-color: #ffffff !important;
}

html.high-contrast .a11y-btn:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
}

html.high-contrast .page-container {
    background-color: #000000 !important;
    border: 2px solid #ffffff !important;
    box-shadow: none !important;
}

html.high-contrast h1 {
    color: #ffff00 !important;
    border-bottom-color: #ffff00 !important;
}

html.high-contrast .section-title {
    color: #ffff00 !important;
    border-bottom-color: #ffffff !important;
}

html.high-contrast h2.section-title {
    color: #ffff00 !important;
    border-bottom-color: #ffffff !important;
}

html.high-contrast select,
html.high-contrast input[type="text"],
html.high-contrast input[type="email"],
html.high-contrast input[type="tel"] {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
}

html.high-contrast select:focus,
html.high-contrast input:focus {
    border-color: #ffff00 !important;
    box-shadow: none !important;
}

html.high-contrast .rodo-container {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
}

html.high-contrast .rodo-container h3.rodo-title {
    color: #ffff00 !important;
}

html.high-contrast .checkbox-group {
    background-color: #000000 !important;
    border: 2px solid #ffff00 !important;
}

html.high-contrast .checkbox-group label {
    color: #ffff00 !important;
}

html.high-contrast button[type="submit"] {
    background-color: #ffff00 !important;
    color: #000000 !important;
    border: 2px solid #ffff00 !important;
}

html.high-contrast button[type="submit"]:hover {
    background-color: #000000 !important;
    color: #ffff00 !important;
}

html.high-contrast footer {
    background-color: #000000 !important;
    border-top: 2px solid #ffffff !important;
}

html.high-contrast img {
    filter: grayscale(100%) contrast(150%);
    /* Zwiększenie czytelności grafik */
}

html.high-contrast .footer-logo-box,
html.high-contrast .main-header {
    background-color: #000000 !important;
}

/* Rozjaśnienie tekstu wprowadzającego (opisy i listy) */
html.high-contrast .intro-text,
html.high-contrast .intro-text p,
html.high-contrast .intro-text li,
html.high-contrast .intro-text strong {
    color: #ffffff !important;
}

/* Rozjaśnienie etykiet pól formularza (Powiat, Gmina, Miejscowość itd.) */
html.high-contrast label {
    color: #ffffff !important;
}