.cfc-10 {
    flex: 1 1 10%;
    max-width: 10%;
}

.cfc-15 {
    flex: 1 1 15%;
    max-width: 15%;
}

.cfc-20 {
    flex: 1 1 20%;
    max-width: 20%;
}

.cfc-30 {
    flex: 1 1 30%;
    max-width: 30%;
}

.cfc-45 {
    flex: 1 1 45%;
    max-width: 45%;
}
.cfc-50 {
    flex: 1 1 50%;
    max-width: 50%;
}
.cfc-65 {
    flex: 1 1 65%;
    max-width: 65%;
}
.cfc-70 {
    flex: 1 1 70%;
    max-width: 70%;
}

.card-form{
    display:flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.card-form-card {
    display:flex;
    flex-direction: column;
    margin: 5px;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid black;
}

.card-form-card .card-full-row {
    display: flex;
    width:100%;
}

.card-form-card .card-half-row {
    display:flex;
    width: 100%;
    justify-content: space-between;
}

.card-form-last-line-only-trash {
    display:flex;
    justify-content: flex-end;
}

.card-form-last-line-text-and-trash {
    display:flex;
    justify-content: center;
    align-items: center;
}

.align-bottom {
    position: relative;
    bottom: 0;
    margin-top: auto;
}
.card-form-card .trash {
    width: fit-content;
}

.card-form-card.theme-light {
    border-color: var(--dark-blue);
    box-shadow: 1px 1px 10px var(--dark-blue);
}

.card-form-card.theme-dark {
    border-color: var(--medium-blue);
    box-shadow: 1px 1px 10px var(--medium-blue);
}

label {
    font-family: Gotham-medium, sans-serif;
}

label.theme-light {
    color: var(--dark-blue);
}

label.theme-dark {
    color: var(--medium-blue);
}

div.buttons {
    margin-top: 5px;
    display:flex;
    flex-direction: row;
    justify-content: space-between;
}

div.buttons-right {
    margin-top: 5px;
    display:flex;
    flex-direction: row;
    justify-content: flex-end;
}

div.member-status {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
div.member-status .checkbox {
    align-items: center;
}

.radio-option {
    margin-right: 1em;
}

div.radio label, div.checkbox label {
    display: grid;
    grid-template-columns: 2em 1fr;
    grid-template-areas: 'checkbox label';
    gap: .5em;
    align-items: baseline;
}

div.radio input, div.checkbox input {
    opacity: 0;
    position: absolute;
}

div.radio label::before,
div.radio label::after,
div.checkbox label::before,
div.checkbox label::after {
    grid-area: checkbox;
    content: '';
    display: block;
    margin-top: 1em;
    transition: background-color .3s, transform .3s;
}

div.radio label::before,
div.checkbox label::before {
    border: 1px solid var(--dark-blue);
    width: 100%;
    border-radius: 1em;
    height: 1em;
    margin-right: 1em;
}


div.radio input:focus + label::before,
div.checkbox input:focus + label::before {
    box-shadow: 0 0 .50em 0.15em var(--medium-blue);
}

div.radio label::after,
div.checkbox label::after {
    position:relative;
    top: -2px;
    left: 2px;
    width: calc(1em - 2px);
    height: calc(1em - 2px);
    border-radius: 50%;
    background-color: var(--dark-blue);
}

div.radio input:checked + label::before,
div.checkbox input:checked + label::before
{
    background-color: var(--dark-blue);
}

div.radio input:checked + label::after,
div.checkbox input:checked + label::after{
    background-color: #ffffff;
    transform: translateX(1em);
}

div.radio input:disabled + label:after,
div.checkbox input:disabled + label:after{
    background-color: #bbb;
}
div.radio input:disabled + label:before,
div.checkbox input:disabled + label:before {
    background-color: #333;
}

.open-registrations-active {
    display: flex;
    flex-direction: column;
    justify-content: start;
}

div.radio-switch {
    position: relative;
    display: flex;
    align-items: center;
    width: 40px;
    height: 21px;
    background: var(--dark-blue);
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.3s;
    flex-direction: row;
}

div.radio-switch .radio-input {
    opacity: 0;
    position: absolute;
}

div.radio-switch .toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 15px;
    height: 15px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

div.radio-switch .radio-label {
    position: absolute;
    font-size: 14px;
    font-weight: bold;
    color: var(--dark-pink-label);
    z-index: 2;
    transition: color 0.3s;
    cursor: pointer;
}

div.radio-switch .radio-label:nth-of-type(1) {
    left: 3em;
}
div.radio-switch .radio-label:nth-of-type(2) {
    right: 3em;
}

/* When 1 is checked */
.radio-input:nth-of-type(1):checked ~ .toggle-slider {
    left: 1.4em; /* Déplace le slider à droite */
}

/* Change selected text color */
.radio-input:nth-of-type(1):checked ~ .radio-label:nth-of-type(1),
.radio-input:nth-of-type(2):checked ~ .radio-label:nth-of-type(2) {
    color: var(--dark-blue);
}

#registration_form_gender_1+label {
    left: 4em;
}

@media (width < 1100px) {
    .card-form-card {
        flex: 1 1 45%;
        max-width: 45%;
    }
}

@media (width < 740px) {
    .card-form-card {
        flex: 1 1 100%;
        max-width: 50%;
    }
}
