/* Registrační systém pro KČT Lanškroun
 * Autor: Petr Kaška
 * Datum: 19.2.2025
 */

body {
    font-family: Arial, sans-serif;
    margin: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 10px;
}

p {
    text-align: center;
    margin-bottom: 20px;
}

form {
    max-width: 645px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    margin: 10px 0;
}



#registrationForm {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;
    align-items: start;
}

label {
    font-weight: bold;
    margin-bottom: 5px;
    display: inline-block;
}

input,
select,
textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.participant {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;
    align-items: start;
}

.participant button {
    display: inline-block;
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
    color: #fff;
}

button:disabled {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
}

.checkbox-container {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
}


.checkbox-container label {
    margin-left: 5px;
    font-size: 14px;
}

.footnote {
    font-size: 0.9em;
    color: gray;
    text-align: center;
    margin-top: 20px;
}

.spinner {
    display: none;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #000;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.custom-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.custom-modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    text-align: center;
    margin: 20% auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#eventInfo {
    max-width: 645px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
    line-height: 1.6;
    text-align: justify;
    border: 1px solid #ddd;
}


/* (telefon, menší tablety)  */
@media (max-width: 768px) {

    body {
        margin: 5px;
    }

    form {
        max-width: 95%;
        margin: 0 auto;
        padding: 10px;
    }

    #registrationForm {
        display: block;
    }

    label {
        display: block;
        margin-top: 10px;
    }

    input,
    select,
    textarea {
        width: 100%;
        margin-bottom: 15px;
    }

    .participant {
        display: block;
        margin-bottom: 20px;
    }

    .participant label {
        margin-top: 10px;
    }

    #eventInfo {
        max-width: 95%;
        margin: 10px auto;
        text-align: left;
    }

    #cancelButton {
        margin-top: 15px;
    }
}