/*
 * Regulamin, zgoda i formularz wypowiedzenia.
 * Kolory i krój pisma zgodne z resztą witryny: czerwień #ab1616, granat #2a488f,
 * Quicksand. Projektowane najpierw pod telefon, zgodnie z briefem.
 */

.poc-regulamin,
.poc-wypowiedzenie {
    font-family: Quicksand, "Trebuchet MS", sans-serif;
    color: #333;
    max-width: 62rem;
    margin: 0 auto;
    padding: 1rem;
    line-height: 1.65;
}

/* --- nagłówek regulaminu --- */
.poc-regulamin__nazwa {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ab1616;
    line-height: 1.25;
    margin: 0 0 1rem;
}
.poc-regulamin__nazwa span {
    display: block;
    font-size: 1.05rem;
    font-weight: 500;
    color: #2a488f;
}
.poc-regulamin__obowiazuje {
    background: #f4f4f4;
    border-left: 4px solid #2a488f;
    padding: 0.6rem 0.9rem;
    margin: 1.2rem 0;
}

/* --- spis treści --- */
.poc-regulamin__spis {
    background: #fafafa;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    padding: 1rem 1.2rem;
    margin: 1.5rem 0;
}
.poc-regulamin__spis-tytul {
    margin: 0 0 0.5rem;
    font-weight: 700;
    color: #2a488f;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.85rem;
}
.poc-regulamin__spis ol { margin: 0; padding-left: 1.2rem; }
.poc-regulamin__spis li { margin: 0.2rem 0; }
.poc-regulamin__spis a { color: #333; text-decoration: none; }
.poc-regulamin__spis a:hover,
.poc-regulamin__spis a:focus { color: #ab1616; text-decoration: underline; }

/* --- paragrafy zwijane --- */
.poc-regulamin__paragraf {
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    margin: 0.6rem 0;
    background: #fff;
}
.poc-regulamin__paragraf > summary {
    cursor: pointer;
    padding: 0.85rem 1rem;
    font-weight: 700;
    color: #2a488f;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.poc-regulamin__paragraf > summary::-webkit-details-marker { display: none; }
.poc-regulamin__paragraf > summary::before {
    content: "+";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    height: 1.4rem;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #ab1616;
    color: #fff;
    font-weight: 700;
    line-height: 1;
}
.poc-regulamin__paragraf[open] > summary::before { content: "\2212"; }
.poc-regulamin__paragraf > summary:hover { background: #fafafa; }
.poc-regulamin__tresc { padding: 0 1rem 1rem 3rem; }
.poc-regulamin__punkt { margin: 0.55rem 0; }
.poc-regulamin__numer { font-weight: 700; color: #ab1616; margin-right: 0.25rem; }

/* --- zgoda --- */
.poc-zgoda {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    font-family: Quicksand, "Trebuchet MS", sans-serif;
}
.poc-zgoda input { margin-top: 0.3rem; flex: 0 0 auto; }
.poc-zgoda a { color: #ab1616; }

/* --- formularz wypowiedzenia --- */
.poc-wypowiedzenie__rodzaj {
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    padding: 1rem;
    margin: 0 0 1.2rem;
}
.poc-wypowiedzenie__rodzaj legend { font-weight: 700; color: #2a488f; padding: 0 0.4rem; }
.poc-wypowiedzenie__rodzaj label {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    margin: 0.5rem 0;
    cursor: pointer;
}
.poc-wypowiedzenie label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.poc-wypowiedzenie input[type="text"],
.poc-wypowiedzenie input[type="email"],
.poc-wypowiedzenie textarea {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border: 1px solid #d6d6d6;
    border-radius: 5px;
    font: inherit;
    background: #fbfbfb;
}
.poc-wypowiedzenie input:focus,
.poc-wypowiedzenie textarea:focus {
    outline: 2px solid #2a488f;
    outline-offset: 1px;
    background: #fff;
}
.poc-wypowiedzenie__wyslij {
    background: #ab1616;
    color: #fff;
    border: 0;
    border-radius: 5px;
    padding: 0.85rem 1.8rem;
    font: inherit;
    font-weight: 700;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.25s;
}
.poc-wypowiedzenie__wyslij:hover { background: #2a488f; }
.poc-wypowiedzenie__nota { font-size: 0.9rem; color: #666; }

/* --- komunikaty --- */
.poc-komunikat {
    border-radius: 6px;
    padding: 1rem 1.2rem;
    margin: 0 0 1.5rem;
    border-left: 4px solid;
}
.poc-komunikat--sukces { background: #eef5ee; border-color: #2f7a34; }
.poc-komunikat--blad   { background: #fdeeee; border-color: #ab1616; }
.poc-komunikat p:last-child { margin-bottom: 0; }

@media (max-width: 600px) {
    .poc-regulamin, .poc-wypowiedzenie { padding: 0.5rem; }
    .poc-regulamin__tresc { padding-left: 1rem; }
    .poc-regulamin__nazwa { font-size: 1.25rem; }
}

/* Numer wersji i data ostatniej aktualizacji pod data wejscia w zycie. */
.poc-regulamin__aktualizacja{display:inline-block;margin-top:.35rem;font-size:.88rem;color:#666}
