body * {
    box-sizing: border-box;
}

body {
    font-family: "Montserrat", sans-serif;
    background-color: #f4f4f9;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    font-size: 1em;
}

.text-center {
    text-align: center;
}

main {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 80rem;
}

/* Formulář */
form {
    background: white;
    padding: 1.25rem;
    border-radius: 0.75rem;
    margin-top: 1rem;
    box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.1);
    max-width: 25rem;
    width: 100%;
    text-align: center;
    position: relative;
}

form p {
    font-size: 1rem;
    text-align: left;
    opacity: 0.6;
}

form p:last-child {
    font-size: 0.75rem;
}

/* Nadpis */
h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #222;
}

p {
    font-size: 1.25rem;
    padding-bottom: 0.25em;
}

/* Inputy */
.form_name {
    display: none;
}

input[type="email"],
button {
    width: 100%;
    padding: 0.625rem;
    margin-top: 0.625rem;
    border-radius: 0.375rem;
    border: 1px solid #ccc;
    font-size: 1rem;
}

input[type="checkbox"]+label {
    position: relative;
    padding-left: 1.5625rem;
    cursor: pointer;
    user-select: none;
    line-height: 1.125rem;
}

input[type="checkbox"]+label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 1.125rem;
    height: 1.125rem;
    border: 2px solid #3A5A40;
    border-radius: 0.25rem;
    background-color: white;
}

input[type="checkbox"]:checked+label::before {
    background-color: #3A5A40;
    border-color: #3A5A40;
}

input[type="checkbox"]:checked+label::after {
    content: "";
    position: absolute;
    left: 0.4375rem;
    top: 0.1875rem;
    width: 0.3125rem;
    height: 0.625rem;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Labely */
label {
    font-size: 0.875rem;
    display: block;
    text-align: left;
    margin-top: 0.625rem;
}

/* Tlačítko */
a {
    color: #3A5A40;
}

a:hover {
    color: #537c5b;
}

button {
    background-color: #1B1B1B;
    color: white;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background-color: #5f5f5f;
}

/* Odpověď po odeslání */
#response {
    margin-top: 0.9375rem;
    font-size: 1rem;
    padding: 0.625rem;
    border-radius: 0.375rem;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

footer {
    margin-top: 2rem;
    text-align: center;
}

footer p {
    font-size: 0.75rem;
}

/* Responsivita */
@media (max-width: 500px) {
    form {
        padding: 0.9375rem;
    }

    p {
        font-size: 0.9rem;
    }

    h1 {
        font-size: 2rem;
    }

    input[type="email"],
    button {
        font-size: 0.875rem;
    }
}