.recruitment-dialog {
    width: min(720px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #f8f8f8;
    box-shadow: 0 16px 60px rgba(0, 0, 0, .25);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.recruitment-dialog:not([open]) {
    display: none;
}

.recruitment-dialog::backdrop {
    background: rgba(0, 0, 0, .55);
}

body.recruitment-dialog-open {
    overflow: hidden;
}

.recruitment-dialog-toolbar {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    padding: 4px 8px;
    background: #f8f8f8;
}

.recruitment-dialog-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #292d30;
    font-size: 32px;
    cursor: pointer;
}

.recruitment-dialog-close:hover {
    background: #e9ecef;
}

.recruitment-dialog-close:focus-visible {
    outline: 2px solid #1476ff;
    outline-offset: -2px;
}

.recruitment-dialog .job-application-card {
    margin: 0;
    padding-top: 0;
}

.job-application-card {
    background: #f8f8f8;
    padding: 30px 24px;
    font-family: Arial, Helvetica, sans-serif;
    color: #292d30;
    scroll-margin-top: 110px;
}

.job-application-card .job-application-title {
    margin: 0 0 26px;
    color: #1476ff;
    font-family: inherit;
    font-size: clamp(24px, 2.25vw, 34px);
    line-height: 1.3;
    font-weight: 500;
    text-align: center;
}

.recruitment-form .form-group {
    margin-bottom: 30px;
}

.recruitment-form .control-label {
    display: block;
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.5;
    font-weight: 700;
    color: #292d30;
}

.recruitment-form .form-control,
.recruitment-form .recruitment-file {
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 10px 14px;
    border: 1px solid #cdd3d8;
    border-radius: 7px;
    background-color: #fff;
    box-shadow: 0 0 0 1px rgba(205, 211, 216, .12);
    color: #303438;
    font-family: inherit;
    font-size: 18px;
    font-weight: 400;
    line-height: 26px;
    transition: border-color .15s, box-shadow .15s;
}

.recruitment-form .form-control::placeholder {
    color: #7a8187;
    opacity: 1;
    font-size: inherit;
    font-family: inherit;
}

.recruitment-form .form-control:focus,
.recruitment-form .recruitment-file:focus-within {
    outline: none;
    border-color: #1476ff;
    box-shadow: 0 0 0 3px rgba(20, 118, 255, .15);
}

.recruitment-form select.recruitment-select {
    display: block;
    appearance: none;
    -webkit-appearance: none;
    padding-right: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m3 6 5 5 5-5' fill='none' stroke='%23474d52' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}

.recruitment-form input[type="date"] {
    appearance: none;
    -webkit-appearance: none;
}

.recruitment-form .recruitment-file {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0;
    overflow: hidden;
}

.recruitment-file input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.recruitment-file-button {
    display: flex;
    align-items: center;
    align-self: stretch;
    flex-shrink: 0;
    padding: 0 14px;
    border-right: 1px solid #cdd3d8;
    background: #e9ecef;
    white-space: nowrap;
}

.recruitment-file-name {
    min-width: 0;
    padding: 0 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recruitment-form .help-block {
    margin: 6px 0 0;
    color: #ba2525;
    font-size: 14px;
    line-height: 1.5;
}

.recruitment-form .help-block:empty {
    display: none;
}

.recruitment-form .has-error .form-control,
.recruitment-form .has-error .recruitment-file {
    border-color: #ba2525;
}

.recruitment-form .recruitment-hint {
    margin: -16px 0 28px;
    color: #656d73;
    font-size: 13px;
    line-height: 1.5;
}

.recruitment-form .recruitment-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 50px;
    padding: 12px 20px;
    border: 0;
    border-radius: 7px;
    background: #1476ff;
    color: #fff;
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
}

.recruitment-form .recruitment-submit:hover {
    background: #0862dd;
}

.recruitment-form .recruitment-submit:focus-visible {
    outline: 3px solid #8ebdff;
    outline-offset: 3px;
}

.recruitment-form .recruitment-submit:disabled {
    opacity: .7;
    cursor: wait;
}

@media (max-width: 991.98px) {
    .job-application-card {
        max-width: 720px;
        margin: 0 auto;
    }

    .job-application-card .job-application-title {
        font-size: clamp(23px, 6.1vw, 34px);
    }
}

@media (max-width: 575.98px) {
    .job-application-card {
        padding: 30px 16px;
        margin-right: -12px;
        margin-left: -12px;
    }

    .recruitment-form .control-label,
    .recruitment-form .form-control,
    .recruitment-form .recruitment-file {
        font-size: clamp(16px, 3.7vw, 20px);
    }

    .job-application-card .job-application-title {
        margin-bottom: 14px;
    }
}
