﻿.apply-form {
    background-color: var(--bg-theme-light-color);
}

    .apply-form h2 {
        font-size: 24px;
        line-height: 30px;
        font-weight: bold;
        margin-bottom: 32px;
    }

.form-cell {
    margin-bottom: 24px;
}

    .form-cell label {
        font-size: 14px;
        margin-bottom: 3px;
        font-weight: 500;
    }

    .form-cell .form-control {
        font-size: 18px;
        padding: 0;
        padding-bottom: 4px;
        border: none;
        border-radius: 0;
        border-bottom: 1px solid var(--theme-text-color);
        background-color: transparent !important;
    }

        .form-cell .form-control:focus,
        .was-validated .form-cell .form-control:focus,
        .was-validated .form-cell .form-control:focus {
            box-shadow: none;
            border-bottom: 1px solid var(--text-hover-color);
        }

    .form-cell textarea.form-control {
        resize: none;
        overflow: hidden;
        transition: all 0.2s ease;
        min-height: 32px;
    }

.required::after {
    content: '*';
}

.cv-wrapper {
    border: 1px dashed var(--theme-text-color);
    border-radius: 6px;
    margin-bottom: 14px;
}

.was-validated .cv-wrapper.empty:not(.not-required) {
    border-color: var(--red-theme-color);
}

.cv-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 82px;
    overflow: hidden;
    padding: 12px;
}

    .cv-container label {
        display: flex;
    }

.file-upload {
    position: absolute;
    left: 0px;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.request-form .file-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

    .request-form .file-container .file-wrapper {
        padding: 1px 10px;
        word-break: break-all;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .request-form .file-container .file-wrapper i.btn-close {
            float: right;
            padding: 0;
            width: 10px;
            height: 10px;
            flex-shrink: 0;
        }

.file-wrapper .file-name {
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 8px;
    font-size: 14px;
}

.clip::before {
    content: url(/images/paperclip.svg);
    margin-right: 12px;
    margin-top: 1px;
}

.i-have-read.form-group {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 12px;
    line-height: 20px;
}

.i-have-read .cae-checkbox {
    flex-shrink: 0;
}

.form-check-input:focus {
    box-shadow: none;
}

/*VALIDATION*/
.was-validated .form-control:invalid:focus,
.form-control.is-invalid:focus,
.was-validated .form-control:valid:focus,
.form-control.is-valid:focus {
    border-color: none;
    box-shadow: none;
}

.was-validated textarea.form-control:valid,
textarea.form-control.is-valid {
    background-position: right calc(.375em + .1875rem) center;
}

.was-validated .form-check-input:valid ~ .form-check-label,
.form-check-input.is-valid ~ .form-check-label {
    color: var(--theme-text-color);
}

.was-validated .form-check-input:valid,
.form-check-input.is-valid {
    border-color: var(--blue-theme-color);
}

    .was-validated .form-check-input:valid:checked,
    .form-check-input.is-valid:checked {
        background-color: var(--blue-theme-color);
    }

    .was-validated .form-check-input:valid:focus,
    .form-check-input.is-valid:focus {
        box-shadow: none;
    }

.was-validated .form-check-input:invalid:focus,
.form-check-input.is-invalid:focus {
    box-shadow: none;
}

.was-validated .form-control:valid,
.form-control.is-valid {
    border-color: var(--theme-text-color);
    background-image: none;
    padding-right: 0;
}

.was-validated .form-control:invalid,
.form-control.is-invalid {
    border-color: var(--red-theme-color) !important;
    background-image: none !important;
    padding-right: 0 !important;
}

.was-validated textarea.form-control:valid,
textarea.form-control.is-valid {
    padding-right: 0;
}

@media (min-width: 768px) {
    .request-form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-column-gap: 32px;
    }

    .position-form-group,
    .message-form-group,
    .cv-wrapper,
    .i-have-read,
    .cae-button {
        grid-column: span 2;
    }
}

.input-phone-group:before {
    content: '+375';
    position: absolute;
    font-size: 18px;
}

.input-phone-group input {
    padding-left: 44px !important;
}