*, *::before, *::after {
    box-sizing: border-box;
}

/* kontejner formuláře */
.form-card {
    background: #ffffff;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    max-width: 1220px;
}

/* skupina pole */
.form-group {
    margin-bottom: 1.2rem;
}

/* popisky */
.form-label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    color: #355e35;
    font-size: 0.95rem;
}

/* vstupy */
.form-control {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #cfe3cf;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.15s, box-shadow 0.15s;
    background-color: #fbfdfb;
}

/* focus */
.form-control:focus {
    outline: none;
    border-color: #4A7A4A;
    box-shadow: 0 0 0 3px rgba(74,122,74,0.15);
    background-color: #ffffff;
}

/* textarea */
textarea.form-control {
    min-height: 110px;
    resize: vertical;
}

/* select */
select.form-control {
    cursor: pointer;
}

/* checkbox + radio */
.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.form-check-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* nápověda pod polem */
.form-help {
    font-size: 0.85rem;
    color: #6b7d6b;
    margin-top: 0.25rem;
}

/* validační chyba */
.form-error {
    color: #b42318;
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

/* řádek formuláře */
.form-row {
    display: flex;
    gap: 2rem;          /* mezera mezi poli */
    align-items: flex-start;
}

/* pole v řádku */
.form-row .form-group {
    flex: 1;            /* všechna pole stejně široká */
    margin-bottom: 0;   /* zruší svislé odsazení */
	min-width:0;
}

/* užší pole */
.form-group.w-25 { flex: 1 1 0; }
.form-group.w-33 { flex: 1 1 0; }
.form-group.w-50 { flex: 1 1 0; }
.form-group.w-75 { flex: 0 0 75%; }

/* responzivita – na mobilu pod sebe */
@media (max-width: 720px) {
    .form-row {
        flex-direction: column;
    }
}

/* kontejner celého seznamu */
.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

/* řádek jedné položky */
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.6rem;
    border-radius: 6px;
    transition: background-color 0.15s ease;
}

/* hover efekt */
.checkbox-item:hover {
    background-color: #f3faf3;
}

/* samotný checkbox */
.checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #4A7A4A;   /* moderní prohlížeče */
    cursor: pointer;
}

/* label */
.checkbox-item label {
    cursor: pointer;
    font-size: 0.95rem;
    color: #2f4f2f;
}

/* zaškrtnutá položka */
.checkbox-item input[type="checkbox"]:checked + label {
    font-weight: 600;
    color: #355e35;
}

/* pokud chceš oddělovací linky */
.checkbox-list.divided .checkbox-item:not(:last-child) {
    border-bottom: 1px solid #e3efe3;
    padding-bottom: 0.6rem;
}

/* varianta do formulářové karty */
.form-card .checkbox-list {
    margin-top: 0.3rem;
}

/* více sloupců (např. hodně položek) */
.checkbox-list.columns-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 1.5rem;
}

.checkbox-list.columns-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem 1.5rem;
}

/* blok sekce */
.form-fieldset {
    border: 1px solid #d7e6d7;
    border-radius: 8px;
    padding: 1.2rem 1.4rem 1.4rem;
    margin-bottom: 1.5rem;
    background-color: #fcfefc;
    position: relative;
}

/* nadpis sekce */
.form-fieldset legend {
    padding: 0 0.6rem;
    font-weight: 600;
    color: #355e35;
    font-size: 1rem;
}

/* jemná horní linka přes celou šířku */
.form-fieldset::before {
    content: "";
    position: absolute;
    top: 0;
    left: 1rem;
    right: 1rem;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        #e3efe3 10%,
        #e3efe3 90%,
        transparent
    );
}

/* odsazení prvků uvnitř */
.form-fieldset .form-group:last-child {
    margin-bottom: 0;
}

.checkbox-row input[type="checkbox"] {
    transform: scale(1.2);
    margin-right: 6px;
}

.row-click {
    cursor: pointer;
}

.row-click:hover {
    background: #f5f7fa;
}