
/* =========================
LAYOUT FORMULARZA
========================= */

.form-section {
    margin: 60px 0;
}

.form-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 40px;
    align-items: stretch;
}

/* =========================
   FORMULARZ
========================= */

.form-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.form-box h2 {
    margin-bottom: 30px;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field label {
    font-weight: 500;
    margin-bottom: 6px;
}

.form-field input,
.form-field textarea {
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid #cfd8e3;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #005fcc;
    box-shadow: 0 0 0 3px rgba(0,95,204,0.15);
}

textarea {
    resize: vertical;
}

.form-hint {
    color: #6b7280;
    margin-top: 6px;
}

/* =========================
   CHECKBOXY
========================= */

.form-checkbox {
    margin-top: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-checkbox input {
    margin-top: 4px;
}

.form-checkbox label {
    line-height: 1.4;
}

.form-checkbox a {
    color: #005fcc;
    text-decoration: underline;
}

.form-required {
    color: #6b7280;
    margin-top: 12px;
}

/* =========================
   PRZYCISK
========================= */

.btn-primary {
    margin-top: 30px;
    background: #005fcc;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 14px 26px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover {
    background: #004bb0;
}

.btn-primary:active {
    transform: translateY(1px);
}

/* =========================
   PANEL INFORMACYJNY
========================= */

.info-panel {
    background: linear-gradient(180deg, #0a5fa5, #083e73);
    color: #ffffff;
    border-radius: 14px;
    padding: 40px 30px;
}

.info-panel ul {
    list-style: disc;
    padding-left: 18px;
    margin-bottom: 20px;
}

.info-panel li {
    margin-bottom: 16px;
    line-height: 1.5;
}

.info-panel strong {
    font-weight: 600;
}

.info-panel p {
    line-height: 1.5;
    opacity: 0.95;
}

/* =========================
   HERO
========================= */

.hero-simple {
    margin: 40px 0 20px;
}

.hero-text h1 {
    margin-bottom: 10px;
}

.hero-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #005fcc;
    margin-bottom: 8px;
}

/* =========================
   RESPONSYWNOŚĆ
========================= */

@media (max-width: 992px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .info-panel {
        order: -1;
    }
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .form-box {
        padding: 28px 22px;
    }
}

/* =========================
   KOMUNIKAT SERWISOWY
========================= */

.service-notice {
    margin: 40px 0 30px;
    padding: 24px 28px;
    border-left: 6px solid #e5533d;
    background: #fff6f4;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.service-notice-inner strong {
    display: block;
    margin-bottom: 10px;
    color: #b42318;
}

.service-notice-inner p {
    margin: 0 0 10px;
    line-height: 1.6;
    color: #3a3a3a;
}

/* =========================================
   HIGH CONTRAST – NAPISZ DO PRAWNIKA
========================================= */

html.high-contrast .page-content {
    background: #000 !important;
    color: #fff !important;
}

/* formularz */
html.high-contrast .form-box,
html.high-contrast .info-panel,
html.high-contrast .service-notice {
    background: #000 !important;
    color: #fff !important;
    border: 2px solid #fff !important;
    box-shadow: none !important;
}

/* tekst */
html.high-contrast .page-content h1,
html.high-contrast .page-content h2,
html.high-contrast .page-content p,
html.high-contrast .page-content span,
html.high-contrast .page-content li,
html.high-contrast .page-content label,
html.high-contrast .page-content strong {
    color: #fff !important;
}


html.high-contrast input,
html.high-contrast textarea {
    background: #000 !important;
    color: #fff !important;
    border: 2px solid #fff !important;
}


html.high-contrast ::placeholder {
    color: #ccc !important;
}


html.high-contrast .btn-primary {
    background: #000 !important;
    color: #fff !important;
    border: 2px solid #fff !important;
}

.form-loading {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 9999;
}

.form-loading p {
    margin-top: 16px;
    font-size: 1rem;
    font-weight: 500;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 5px solid #cfd8e3;
    border-top-color: #005fcc;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
html.high-contrast .form-loading {
    background: rgba(0,0,0,0.9) !important;
}

html.high-contrast .spinner {
    border-color: #666 !important;
    border-top-color: #fff !important;
}

html.high-contrast .form-loading p {
    color: #fff !important;
}
