/*****************************
 * GENERAL FORM ELEMENTS
 *****************************/
.input,
.input-bo-account {
    position: relative;
    margin: 1em;
    width: calc(30% - 0em) !important;
    height: 30px !important;
}

.input__field,
textarea,
select {
    display: block;
    width: 100%;
    height: 40px;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 6px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Focused state */
.input__field:focus,
textarea:focus,
select:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Placeholder style */
.input__field::placeholder,
textarea::placeholder {
    color: #6c757d;
    opacity: 1;
}

/* Label style */
.input__label {
    display: block;
    margin-bottom: 6px;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    position: static;
    padding: 0;
}

/*****************************
 * TEXTAREA
 *****************************/
.message,
textarea {
    width: calc(100% - 2em);
    height: auto;
    min-height: 120px;
    resize: vertical;
    padding: 10px 14px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #ced4da;
    background-color: #fff;
}

/*****************************
 * SELECT INPUT
 *****************************/
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='gray' class='bi bi-caret-down-fill' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 16px;
}

/*****************************
 * RADIO BUTTONS
 *****************************/
.radio-input {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 10px 5px;

    height: 43px !important;
}

.radio-label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.radio-input-btn {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    border: 1px solid #999;
    border-radius: 50%;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    cursor: pointer;
    position: relative;
    background-color: #fff;
    transition: all 0.2s ease;
}

.radio-input-btn:checked {
    border-color: #007bff;
    background-color: #007bff;
}

.radio-input-btn:checked::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
}

.input__label::before,
.input__label:after {
    display: none;
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #b8daff;
    -webkit-transition: -webkit-transform 0.3s;
    transition: transform 0.3s;
}

/*****************************
 * BUTTONS
 *****************************/
.document-btn button {
    min-width: 85px;
    margin: 5px;
    border: 1px solid #007bff;
    background-color: #007bff;
    color: #fff;
    border-radius: 5px;
    padding: 8px 14px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.document-btn button:hover {
    background-color: #0056b3;
    border-color: #004b9a;
}

/*****************************
 * RESPONSIVE
 *****************************/
@media (max-width: 768px) {

    .input,
    .input-bo-account {
        width: 100%;
        margin: 0.5em 0;
    }
}

/* Remove old styles and make it match Bootstrap form-control */
.select-option {
    width: 100%;
    height: auto;
    padding: 10px 14px;
    border-radius: 6px;
    background-color: unset;
    font-size: 14px;
    color: #212529;
    line-height: 1.5;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='gray' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 16px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    margin-top: 0px !important;
}

/* Focus effect just like Bootstrap */
.select-option:focus {
    border-color: unset;
    outline: 0;
    box-shadow: unset;
}

.input__field {
    margin: 0px !important;
}

.input__label {
    height: unset !important;
}












/* Dark mode */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #5c6270;
        --fg: #e3e4e8;
    }

    .radio-label:first-child .radio-input-btn {
        box-shadow: none !important;
    }

    .radio-label:last-child .radio-input-btn {
        box-shadow: none !important;
    }

    .radio-label:first-child .radio-input-btn:checked {
        box-shadow: none !important;
    }

    .radio-label:last-child .radio-input-btn:checked {
        box-shadow: none !important;
    }
}

.radio-label:first-child .radio-input-btn {
    border-radius: 50%;
    box-shadow: none !important;
    outline: none;
}

.radio-label:last-child .radio-input-btn {
    border-radius: 50%;
    box-shadow: none !important;
    outline: none;
}

.radio-label:first-child .radio-input-btn:checked {
    box-shadow: none !important;
    outline: none;
}

.radio-label:last-child .radio-input-btn:checked {
    box-shadow: none !important;
    outline: none;
}