.form-controls {
    display: flex;
    flex-wrap: wrap;
}

.form-controls > * {
    width: 100%;
}

.form-controls-horizontal {
    display: flex;
    align-items: center;
    gap: 1.6rem;
}

.form-horizontal {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form-section {
    margin-top: 4rem;
}

.form-controls > * {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
    margin-top: 2rem;
}

.form-section-title {
    width: 100%;
    font-size: 1.8rem;
    font-weight: bold;
}

.form-label,
.form-control-title {
    display: inline-block;
    margin-bottom: 0.8rem;
    font-size: 1.6rem;
    line-height: 1.5;
}

.form-input {
    display: block;
    width: 100%;
    line-height: 1.5;
    font-size: 1.6rem;
    padding: 0.8rem 1.2rem;
    background-clip: padding-box;
    color: var(--black);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: var(--white);
    background-clip: padding-box;
    border: solid 1px var(--input-border-grey);
    border-radius: 0.6rem;
}

.form-input:disabled {
    background-color: var(--input-disabled);
}

.form-check-label,
.form-radio-label {
    display: inline-block;
    font-size: 1.6rem;
}

.form-check,
.form-radio {
    display: block;
    min-height: 3.2rem;
    padding-left: 4rem;
    margin-bottom: .2rem;
}

.form-check .form-check-input,
.form-radio .form-radio-input {
    float: left;
    margin-left: -3.2rem;
}

.form-check-input,
.form-radio-input {
    width: 2rem;
    height: 2rem;
    vertical-align: top;
    border: solid 1px var(--input-border-grey);
    appearance: none;
    background-color: var(--white);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.form-check-input {
    background-image: var(--form-check-bg-image);
}

.form-radio-input {
    background-image: var(--form-radio-bg-image);
}

.form-check-input {
    border-radius: 0.4rem;
}

.form-check-input:checked,
.form-radio-input:checked {
    background-color: var(--blue);
    border-color: var(--blue);
}

.form-check-input:checked {
    --form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

.form-radio-input {
    border-radius: 50%;
}

.form-radio-input:checked {
    --form-radio-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e");
}

.form-select {
    --form-select-bg-arrow-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    display: block;
    width: 100%;
    padding: 0.8rem 3.6rem 0.8rem 1.2rem;
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--black);
    appearance: none;
    background-color: var(--white);
    background-image: var(--form-select-bg-arrow-img, none);
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    background-size: 1.6rem 1.2rem;
    border: solid 1px var(--input-border-grey);
    border-radius: 0.6rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

@media (min-width: 768px) {
    .form-check-center {
        padding-top: 4.4rem;
    }
}

.form-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 28px;
    margin-bottom: 0.8rem;
}

.form-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.form-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 28px;
    -webkit-transition: .4s;
    transition: .4s;
}

.form-switch-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    -webkit-transition: .4s;
    transition: .4s;
}

.form-switch input:checked + .form-switch-slider {
    background-color: #2196F3;
}

.form-switch input:checked + .form-switch-slider:before {
    -webkit-transform: translateX(20px);
    -ms-transform: translateX(20px);
    transform: translateX(20px);
}

.form-invalid-feedback {
    width: 100%;
    margin-top: 0.4rem;
    font-size: 1.3rem;
    color: var(--red);
}

.form-input-invalid {
    border-color: var(--red);
}

.form-text {
    font-size: 1.6rem;
    line-height: 1.5;
}

.btn {
    padding: 0.8rem 1.2rem;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    user-select: none;
    border: none;
    border-radius: 0.6rem;
    cursor: pointer;
    font-size: 1.6rem;
    color: var(--black);
    display: inline-block;
}

.btn-primary {
    border: solid 1px var(--blue);
    background-color: var(--blue);
    color: var(--white);
}

.btn-primary--delete {
    background-color: var(--red);
    color: var(--white);
    border: solid 1px var(--red);
}

.btn-primary:hover {
    background-color: var(--blue-700);
    color: var(--white);
}

.btn-large {
    padding: 0.8rem 1.6rem;
    font-size: 2rem;
}

.btn-hollow {
    border: solid 1px var(--grey);
    background-color: transparent;
}

.btn-hollow:hover {
    background-color: var(--blue-500);
    color: var(--white);
    border: solid 1px var(--blue-500);
}

.btn-remove {
    color: var(--grey);
}

.btn-remove:hover {
    color: var(--red);
}

.btn-back {
    width: 100%;
    color: var(--blue);
    font-size: 2rem;
    text-decoration: none;
    text-align: center;
    display: block;
    margin-top: 4rem;
}

.btn-icon {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-height: 4.2rem;
}

.btn-icon svg {
    width: auto;
    height: 1.8rem;
    object-fit: cover;
    fill: white;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.form-w-15 {
    width: 15% !important;
}

.form-w-25 {
    width: 25% !important;
}

.form-w-33 {
    width: 33.333333% !important;
}

.form-w-50 {
    width: 50% !important;
}

.form-w-75 {
    width: 75% !important;
}

.form-w-85 {
    width: 85% !important;
}