/* Custom styling to make Choices.js select look like input fields in the registration form */

.registrace-div .choices {
    border-radius: 12px;
    border: 1.5px solid #b7e2b0;
    background: #f8fff5;
    box-shadow: 0 1.5px 4px 0 rgba(0, 0, 0, 0.03);
    padding: 0.3em 0.5em !important;
    min-height: 38px;
    font-size: 16px;
}

/* Inside DOB wrapper we don't want extra bottom margin from Choices-style rules (defensive reset) */
#dob-wrapper .choices {
    margin-bottom: 0 !important;
    padding: 0.3em 0.5em !important;
    /* match other select padding */
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: visible !important;
}

#dob-wrapper .choices:not(:last-child) {
    border-right: 1px solid #b7e2b0;
    padding-right: 0.35em !important;
    /* keep divider visible while padding */
}

#dob-wrapper .choices__inner {
    padding: 0.3em 0.2em !important;
    /* slight horizontal pad to mirror native */
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    min-height: 38px !important;
    background: transparent !important;
    display: flex;
    align-items: center;
}

#dob-wrapper .choices__list--dropdown,
#dob-wrapper .choices__list[aria-expanded] {
    z-index: 3000 !important;
    max-height: 240px !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    /* don't bounce page scroll */
    border: 1.5px solid #b7e2b0 !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px 0 rgba(100, 180, 100, 0.10) !important;
    background: #fff !important;
}

#dob-wrapper .choices__list--single {
    padding: 0 !important;
}

.registrace-div .choices__inner {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    min-height: 38px;
    align-items: center;
    display: flex;
}

.registrace-div .choices__list--single {
    padding: 0 !important;
}

.registrace-div .choices__input,
.registrace-div .choices__item {
    background: transparent !important;
    color: inherit !important;
    font-size: inherit !important;
}

.registrace-div .choices__list--dropdown,
.registrace-div .choices__list[aria-expanded] {
    border-radius: 12px !important;
    border: 1.5px solid #b7e2b0 !important;
    background: #fff !important;
    box-shadow: 0 2px 8px 0 rgba(100, 180, 100, 0.10) !important;
    font-size: 1.08em !important;
}

.registrace-div .choices.is-focused {
    border-color: #5dbc00 !important;
    background: #f3fbe9 !important;
}

.registrace-div .choices__list--dropdown .choices__item--selectable.is-highlighted {
    background: #f3fbe9 !important;
    color: #222 !important;
}

/* Flatpickr calendar header keeps its native styles (no overrides) */

/* On screens <370px, reduce padding for selects in 4th column of second table */
@media (max-width: 370px) {
    .registrace-div .choices {
        padding: 0.3em 0.1em !important;
    }
}