﻿body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    padding: 24px;
    line-height: 1.5;
    color: #111;
}

form {
    max-width: 720px;
    margin: 18px auto;
}

.field {
    position: relative;
    margin-bottom: 12px;
}


#hp_field {
display:none

}

.telefon-field {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .telefon-field .prefix {
        width: 50px;
        height: 30px;
        border: 1px solid #ccc;
        border-radius: 6px;
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: white;
    }

    .telefon-field input {
        height: 33px;
        font-size: 16px;
        padding: 4px 8px;
        margin-left: -11px;
        margin-bottom: 5px;
    }



label {
    font-size: 20px;
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

input[type="text"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 20px;
    font-weight: bold;
    box-sizing: border-box;
}

input[type="email"], input[type="tel"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 20px;
    font-weight: bold;
    box-sizing: border-box;

}


.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 12px;
}

#poznamka {
    width: 100%;
    min-height: 85px;
    resize: none; /*uživatel může měnit výšku */
    padding: 8px;
    font-size: 16px;
    font-family: Arial;
    line-height: 1.4;
    height: calc(1.4em * 3); /* přesně 3 řádky */
    box-sizing: border-box;
    border-radius: 10px;
    white-space: pre-wrap; /* zachová mezery a zalamuje */
    overflow-wrap: break-word; /* zalamuje dlouhá slova */
    overflow: hidden;
}


/*.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
}*/

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin:15px;
}

    .checkbox input {
        flex: 0 0 auto;
        margin: 5px 0 0;
        transform: scale(1.25);
/*        transform-origin: top left;*/
    }

    .checkbox label {
        line-height: 1.4;
    }


button {
    display: block;
    margin: 14px auto;
    padding: 15px 20px;
    font-size: 25px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    background: #0066cc;
    color: #fff;
    cursor: pointer;
}

    button:disabled {
        background: #9bbfe6;
        cursor: not-allowed;
    }

.hint {
    font-size: 13px;
    color: #555;
    margin-top: 6px;
}

.qr-icon {
    position: absolute;
    text-decoration: none;
    left: 180px; /* nebo třeba left: 200px; podle potřeby */
    top: 0px;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.zluty {
    color: black;
    font-weight: bold;
}

.zde {
    color: blue;
    font-weight: bold;
}

.tuk {
    font-weight: 600;
    background: linear-gradient(120deg, rgba(255,235,59,0.4) 0%, rgba(255,235,59,0.4) 100%);
}


.tukr {
    font-weight: 600;
    background: linear-gradient(120deg, rgb(225, 62, 17, 0.3) 0%, rgb(225, 62, 17, 0.3) 100%);
}




.modal-alert {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
}

    .modal-alert.show {
        display: flex;
    }

.modal-content {
    background: #ffffff;
    padding: 25px 30px;
    border-radius: 10px;
    width: 340px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    animation: fadeIn 0.25s ease-out;
}

.modal-icon {
    font-size: 100px;
    color: #d9534f;
    margin-bottom: 10px;
}

.modal-text {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.4;
}

#modalAlertBtn {
    background: #d9534f;
    color: white;
    border: none;
    padding: 10px 22px;
    font-size: 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

    #modalAlertBtn:hover {
        background: #c9302c;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


@media (max-width: 563px) {

    
    .grid .field:nth-child(n+6) {
        display: none;
    }

    .rp {
        height: auto; 
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"] {
        background-color: #FFFCF2;
        color: #111;
        border-color: #999;
        color-scheme: light;
    }

        #jmeno:focus,
        #prijmeni:focus,
        input[type="email"]:focus,
        input[type="tel"]:focus {
            background-color: #FFF9C4 !important;
        }
    




    .telefon-field .prefix {
        background-color: #fff;
        color: #111;
        border-color: #999;
    }

    .tuk {
        font-weight: 600;
        background: black;
        color: yellow;
    }


    .tukr {
        font-weight: 600;
        background: black;
        color: lightcoral;
    }

    .zluty {
        color: yellow;
        background: black;
        font-weight: bold;
    }

    .zde {
        color: lightblue;
        background: black;
        font-weight: bold;

    }

}



