/* ========== BAZA (Twoje style) ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Nexa Book';
    src: url('scc/light.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Nexa Book', Arial, sans-serif;
    color: #fff;
    text-align: center;
    background: linear-gradient(185deg, #4ba9f6 0%, #1d35d1 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Hero/typografia */
.hero-like h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    letter-spacing: 2px;
    text-shadow:
        0 0 5px rgba(255, 255, 255, 0.9),
        0 0 5px rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
}

.intro-text {
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    line-height: 1.6;
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.9),
        0 0 25px rgba(255, 255, 255, 0.7);
    max-width: 900px;
    margin: 0 auto;
}

/* ========== ELEMENTY STRONY ========== */
.home-button {
    position: absolute;
    top: 18px;
    left: 18px;
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.home-button:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

header {
    padding-top: 70px;
    padding-bottom: 10px;
}

main {
    width: 100%;
    display: grid;
    place-items: center;
    padding: 30px 20px 50px;
    flex: 1;
}

/* ========== KARTA FORMULARZA (glassmorphism) ========== */
.form-container {
    width: min(680px, 92vw);
    margin: 20px auto 0;
    text-align: left;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 22px;
    padding: clamp(18px, 4vw, 28px);
}

.form-container label {
    display: block;               /* klasyczne etykiety jako blok */
    font-weight: 700;
    margin: 14px 0 8px;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
}

/* Pola tekstowe */
.form-container input,
.form-container textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    outline: none;
    transition: box-shadow .2s ease, border-color .2s ease, background .2s ease;
    font-size: 1rem;
}

/* ✅ Wyjątek: checkboxy i radio NIE mają mieć width:100% */
.form-container input[type="checkbox"],
.form-container input[type="radio"] {
    width: auto;
    padding: 0;
    display: inline-block;
    vertical-align: middle;
}

/* ✅ Label w jednej linii dla RODO (użyj class="inline-label") */
.form-container .inline-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;            /* odstęp między checkboxem a tekstem */
    font-weight: 400;    /* lżejszy od klasycznych labeli, możesz zmienić */
    margin: 10px 0 0;
    text-shadow: none;   /* czytelniejszy długi tekst */
}

.form-container .inline-label input[type="checkbox"] {
    margin: 0;
}

.form-container textarea {
    resize: vertical;
    min-height: 120px;
}

.form-container input::placeholder,
.form-container textarea::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.form-container input:focus,
.form-container textarea:focus {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.22);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.15);
}

.form-container button[type="submit"] {
    display: block;
    margin: 18px auto 0;
    padding: 15px 28px;
    background: #4fc3f7;
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.form-container button[type="submit"]:hover {
    background: #29b6f6;
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.32);
}

.form-container button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Status (scalona definicja) */
#status {
    min-height: 36px;
    user-select: none;
    font-size: 1.3rem;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 10px;
    margin: 20px auto 0;
    text-align: center;
    display: block;
}

.status-error {
    color: #fff;
    background: #ff2e2e;
    border: 2px solid #cc0000;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
}

.status-success {
    color: #fff;
    background: #00c853;
    border: 2px solid #009624;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
}

footer {
    text-align: center;
    padding: 20px;
    background: #eee;
    color: black;
}

/* ========== RESPONSYWNOŚĆ ========== */
@media (max-width: 768px) {
    .home-button {
        top: 12px;
        left: 12px;
        padding: 9px 12px;
    }

    header {
        padding-top: 64px;
    }

    .hero-like {
        padding: 0 10%;
        margin-top: 80px;
    }
}

/* ========== MULTISELECT ========== */
.multiselect button {
    width: 100%;
    padding: 10px 12px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.15);
    /* półprzezroczyste */
    color: #fff;
    /* biały tekst */
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background .2s ease, border-color .2s ease;
}

.multiselect button:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
}

.multiselect-content {
    position: static;
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    /* półprzezroczyste tło */
    color: #fff;
    /* biały tekst */
    padding: 6px 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
    backdrop-filter: blur(10px);
}

/* gdy otwarte */
.multiselect.open .multiselect-content {
    display: block;
    max-height: 1020px;
}

.multiselect-content label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 400;
    color: #fff;
    /* tekst biały */
}

.multiselect-content label:hover {
    background: rgba(255, 255, 255, 0.2);
    /* lekko jaśniejsze przy hover */
}

.multiselect-content input[type="checkbox"] {
    accent-color: #4fc3f7;
    /* kolor checkboxa */
}

.is-invalid {
    border-color: #e53935;
    outline: none;
}