:root {
    --primary-color: #0d1d7c;
    --secondary-color: #3C40C6;
    --border-color: #ff5e57;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number]{
    -moz-appearance: textfield;
}

.baptiste_form {
    background-color: white;
    padding: 2em;
    border-radius: 20px;
    color: var(--primary-color);
}

.baptiste_form, .form_section, .main_form, #hiddenform, .hiddenrow {
    display: flex;
}

.baptiste_form .form_section, #hiddenform {
    flex-direction: column;
}

#extend, .baptiste_form, .main_form, .hiddenrow {
    gap: 20px;
}

.input-wrapper input {
    width: 100%
}

.main_form > *, .hiddenrow > *:not(.checkbox_container) {
    width: 27%;
}

/* Inputs */
/* Not checkbox */
.baptiste_form input:not([type='checkbox']), .baptiste_form .input {
    border-radius: 999px;
    padding: 1em 1.5em;
    border: solid 2px var(--primary-color);
    color: var(--primary-color);
    background-color: white;
    min-width: 0;
    appearance: none;
    line-height: normal;
    height: 100%;
}

.baptiste_form input[type=submit] {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: .2s all;
    flex-grow: 1;
    height: fit-content;
}

.baptiste_form input[type=submit]:hover {
    background-color: white;
    color: var(--secondary-color);
}

.hiddenrow > * {
    margin-top: 1em;
    height: 100%;
}

/* Checkbox */
.checkbox_container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 27%;
    width: fit-content;
}

.checkbox_list {
    display: flex;
    column-gap: 25px;
    flex-wrap: wrap;
}

/* Units */
.baptiste_form .input-wrapper {
    position: relative;
}

.baptiste_form .unit {
    position: absolute;
    right: 30px;
    top: 54%;
    transform: translateY(-50%);
    color: var(--primary-color);
    pointer-events: none;
    font-weight: bold;
}

.baptiste_form .select.unit {
    transform: translateY(-60%);
}

/* Extend button */
#extend {
    background-color: white;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    color: var(--border-color);
    font-size: 32px;
    font-weight: bold;
    height: 50px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: .2s all;
}

#extend span {
    padding-top: 8px;
}

#extend:hover {
    background-color: var(--border-color);
    color: white;
}

/* Other */
#hiddenform, .responsive_submit {
    display: none;
}

#hiddenform h6 {
    font-size: 16px;
}

.baptiste_form label {
    cursor: pointer;
    display: flex;
    gap: 5px;
    align-items: baseline;
}

.baptiste_form.unset-width .checkbox_container {
    max-width: unset;
}

.baptiste_form .space-between {
    justify-content: space-between;
}

.baptiste_form .input-group {
    position: relative;
    cursor: pointer;
}

.baptiste_form .input-group .input {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    padding-right: 50px;
}

.baptiste_form .options-list {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    margin: .5em 0;
    padding: 1em;
    width: 100%;
    background-color: white;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    z-index: 10;
}

.baptiste_form .options-list li {
    cursor: pointer;
    padding: .8em .5em .7em .5em;
    transition: .2s all;
    border-radius: 10px;
    line-height: normal;
}

.baptiste_form .options-list li:hover {
    background-color: var(--primary-color);
    color: white;
}

.main_section {
    width: 75%;
}

.secondary_section {
    display: flex;
    width: 25%;
    gap: 20px;
}

/* Responsive */
@media screen and (max-width: 980px) {
    .main_form > *, .hiddenrow > * {
        width: 100% !important;
        max-width: 100%;
    }

    #extend, .baptiste_form, .main_form, .hiddenrow {
        flex-direction: column;
    }

    #extend {
        width: 100%;
        border-radius: 99px;
    }

    .responsive_submit {
        display: block;
        width: 100%
    }

    input[type=submit]:not(.responsive_submit) {
        display: none;
    }

    .hiddenrow {
        gap: unset;
    }

    .main_section, .secondary_section {
        width: 100%;
    }
}