/* static/css/user/form.css */

.content-area {
    max-width: 500px;
}

.form-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
}

.form-group {
    width: 100%;
}

.form-group label {
    font-size: 14px;
    color: #636363;
}

/* Custom Input */
input[type=text],
input[type=email],
input[type=password],
textarea {
    width: 100%;
    min-height: 44px;
    line-height: 28px;
    margin-top: 6px;
    margin-bottom: 10px;
    padding: 10px 1rem;
    border: 2px solid transparent;
    border-radius: 8px;
    outline: none;
    background-color: #f3f3f4;
    color: #303030;
    transition: 0.3s ease;
}

input[type=text]::-moz-placeholder,
input[type=email]::-moz-placeholder,
input[type=password]::-moz-placeholder,
textarea::-moz-placeholder {
    color: #9e9ea7;
}

input[type=text]::placeholder,
input[type=email]::placeholder,
input[type=password]::placeholder,
textarea::placeholder {
    color: #9e9ea7;
}

input[type=text]:focus,
input[type=text]:hover,
input[type=password]:focus,
input[type=password]:hover,
input[type=email]:focus,
input[type=email]:hover,
textarea:focus,
textarea:hover {
    outline: none;
    border-color: #3DA8E5 !important;
    background-color: #fff;
    box-shadow: 0 0 0 5px rgba(61, 168, 229, 0.1607843137);
}

.agreement-checkbox {
    display: flex;
    align-items: center;
    line-height: normal;
    gap: 10px;
}

.agreement-checkbox input[type=checkbox] {
    min-width: 24px !important;
    min-height: 24px !important;
}

/* Custom checkbox */
@supports (-webkit-appearance: none) or (-moz-appearance: none) {
    .agreement-checkbox input[type=checkbox] {
        --focus: 2px rgba(61, 168, 229, 0.1607843137);
        --border: #BBC1E1;
        --background: #fff;
        --disabled: #F6F8FF;
        --disabled-inner: #E1E6F9;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        height: 22px;
        outline: none;
        display: inline-block;
        vertical-align: top;
        position: relative;
        margin: 0;
        cursor: pointer;
        border: 1px solid var(--bc, var(--border));
        background: var(--b, var(--background));
        transition: background 0.3s, border-color 0.3s, box-shadow 0.2s;
    }

    .agreement-checkbox input[type=checkbox]:after {
        content: "";
        display: block;
        left: 0;
        top: 0;
        position: absolute;
        transition: transform var(--d-t, 0.3s) var(--d-t-e, ease), opacity var(--d-o, 0.2s);
    }

    .agreement-checkbox input[type=checkbox]:checked {
        --b: $light-blue;
        --bc: $light-blue;
        --d-o: .3s;
        --d-t: .6s;
        --d-t-e: cubic-bezier(.2, .85, .32, 1.2);
    }

    .agreement-checkbox input[type=checkbox]:disabled {
        --b: var(--disabled);
        cursor: not-allowed;
        opacity: 0.9;
    }

    .agreement-checkbox input[type=checkbox]:disabled:checked {
        --b: var(--disabled-inner);
        --bc: var(--border);
    }

    .agreement-checkbox input[type=checkbox]:hover:not(:checked):not(:disabled) {
        --bc: $light-blue;
        border: 1px solid var(--border);
    }

    .agreement-checkbox input[type=checkbox]:focus {
        box-shadow: 0 0 0 var(--focus);
    }

    .agreement-checkbox input[type=checkbox]:not(.switch) {
        width: 22px !important;
        height: 22px !important;
    }

    .agreement-checkbox input[type=checkbox]:not(.switch):after {
        opacity: var(--o, 0);
    }

    .agreement-checkbox input[type=checkbox]:not(.switch):checked {
        --o: 1;
        background: aliceblue;
    }
}

.agreement-checkbox input[type=checkbox]+label {
    display: inline-block;
    vertical-align: middle;
    cursor: pointer;
    margin-left: 4px;
}

.agreement-checkbox input[type=checkbox]:not(.switch) {
    border-radius: 4px;
}

.agreement-checkbox input[type=checkbox]:not(.switch):after {
    width: 7px;
    height: 12px;
    border: 2px solid #274285;
    border-top: 0;
    border-left: 0;
    left: 9px;
    top: 4px;
    transform: rotate(var(--r, 20deg));
}

.agreement-checkbox input[type=checkbox]:not(.switch):checked {
    --r: 43deg;
}

.agreement-checkbox * {
    box-sizing: inherit;
}

.agreement-checkbox *:before,
.agreement-checkbox *:after {
    box-sizing: inherit;
}

/* Select CSS */

.select {
    position: relative;
    min-width: 200px;
}

.select svg {
    position: absolute;
    right: 12px;
    top: calc(50% - 3px);
    width: 10px;
    height: 6px;
    stroke-width: 2px;
    stroke: #9098A9;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.select select {
    -webkit-appearance: none;
    appearance: none;
    min-height: 44px;
    padding: 10px 1rem;
    margin-top: 6px;
    margin-bottom: 10px;
    width: 100%;
    border: 1px solid #E8EAED;
    border-radius: 5px;
    background: white;
    box-shadow: 0 1px 3px -2px #9098A9;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    transition: all 150ms ease;
}

.select select:required:invalid {
    color: #5A667F;
}

.select select option {
    color: #223254;
}

.select select option[value=""][disabled] {
    display: none;
}

.select select:focus {
    outline: none;
    border-color: #274285;
    box-shadow: 0 0 0 5px rgba(0, 119, 255, 0.2);
}

.select select:hover+svg {
    stroke: #274285;
}

.sprites {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
    user-select: none;
}

/* Custom Button Transparent */

.btn-transparent {
    padding: 0;
}

.btn-transparent:hover {
    background: transparent;
}

@media only screen and (max-width: 768px) {

    .btn-transparent{
        justify-content: normal;
    }

}