/*
Theme Name: KMGP Basic
Theme URI:  https://example.com/
Author:     KMGP
Author URI: https://example.com/
Description: Motyw KMGP z layoutem zgodnym ze zrzutami.
Version:    1.1.0
Text Domain: kmgp-basic
*/

html.wcag-mode {
    font-size: 112.5%;
}

html.wcag-mode body {
    line-height: 1.75;
}

html.wcag-mode .wcag-surface {
    background: #000 !important;
    border-color: #fff !important;
    color: #fff !important;
    box-shadow: none !important;
}

html.wcag-mode a,
html.wcag-mode button {
    color: #fff !important;
    font-weight: 700 !important;
    text-decoration-thickness: 2px;
}

.kmgp-page-shell {
    min-height: 100vh;
}

.kmgp-councillor-box table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.kmgp-councillor-box th,
.kmgp-councillor-box td {
    border-bottom: 1px solid #e2e8f0;
    padding: 0.5rem;
    vertical-align: top;
}

.kmgp-councillor-box button {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    padding: 0.4rem 0.7rem;
    font-size: 0.85rem;
    cursor: pointer;
}

[data-kmgp-form-url] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
    padding: 0.45rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

[data-kmgp-form-url]:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
    text-decoration: none;
}

[data-kmgp-form-url]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px #0284c7;
}

[data-kmgp-form-url] + [data-kmgp-form-url] {
    margin-left: 0.5rem;
}

.kmgp-zgloszenie-form {
    display: grid;
    gap: 1rem;
}

.kmgp-zgloszenie-form label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: #334155;
}

.kmgp-zgloszenie-form input,
.kmgp-zgloszenie-form select,
.kmgp-zgloszenie-form textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    background: #fff;
    padding: 0.62rem 0.75rem;
}

.kmgp-zgloszenie-form-row {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.kmgp-modal-open {
    overflow: hidden;
}

.kmgp-form-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(2, 6, 23, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.kmgp-form-modal[hidden] {
    display: none !important;
}

.kmgp-form-modal__dialog {
    width: min(1100px, 96vw);
    height: min(90vh, 920px);
    background: #fff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35);
    display: grid;
    grid-template-rows: auto 1fr;
}

.kmgp-form-modal__close {
    justify-self: end;
    margin: 0.5rem 0.5rem 0 0;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #0f172a;
    width: 2rem;
    height: 2rem;
    cursor: pointer;
    line-height: 1;
}

.kmgp-form-modal__frame {
    width: 100%;
    height: 100%;
    border: 0;
    background: #f8fafc;
}

@media (min-width: 768px) {
    .kmgp-zgloszenie-form-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
