.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all .3s ease;
}
.popup-overlay--open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.popup-container {
    position: relative;
    width: 100%;
    max-width: 820px;
    margin: 20px;
    background: #FFFFFF;
    border-radius: 14px;
    padding: 40px 27px 40px;
    max-height: 90vh;
    overflow-y: auto;
}
.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border-radius: 50%;
}
.popup-close:hover {
    background: rgba(0, 0, 0, 0.05);
}
.popup-content {
    width: 100%;
}
.popup-title {
    font-family: 'Jost';
    font-size: 24px;
    font-weight: 400;
    color: #1B1B1B;
    margin-bottom: 30px;
    text-align: left;
    text-transform: uppercase;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 40px;
}
.input-group {
    position: relative;
    width: 100%;
}
.input-group input,
.input-group textarea {
    width: 100%;
    font-size: 14px;
    font-weight: 400;
    color: #1B1B1B;
    background: transparent;
    border: none;
    border-bottom: 1px solid #DADADA;
    outline: none;
    transition: border-bottom 0.2s;
    font-family: 'WixMadeforDisplay';
}
.input-group input {
    height: 48px;
}
.input-group textarea {
    resize: vertical;
    padding-top: 15px;
    height: 48px;
    min-height: 48px;
}
.input-group input:focus,
.input-group textarea:focus {
    border-bottom: 1px solid #1B1B1B;
}
.input-group label {
    position: absolute;
    left: 0;
    top: 14px;
    font-size: 14px;
    font-weight: 400;
    color: #8D8D8D;
    pointer-events: none;
    transition: 0.2s ease all;
}
.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
    top: -6px;
    font-size: 11px;
}
.file-group {
    position: relative;
}
.custom-file-input {
    position: relative;
    width: 100%;
    height: 48px;
    border-bottom: 1px solid #DADADA;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}
.custom-file-input input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}
.file-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    pointer-events: none;
    z-index: 1;
}
.file-text {
    font-size: 14px;
    font-family: 'WixMadeforDisplay';
    color: #1B1B1B;
    opacity: 0.5;
}
.file-name {
    font-size: 14px;
    color: #1B1B1B;
    font-family: 'WixMadeforDisplay';
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 50%;
    direction: rtl;
    text-align: right;
    display: none;
}
.file-group.has-file .file-trigger {
    display: none;
}
.file-group.has-file .file-name {
    display: block;
}
.file-hint {
    font-size: 10px;
    color: #8D8D8D;
    margin-top: 6px;
}
.input-group.error input,
.input-group.error textarea,
.input-group.error .custom-file-input {
    border-bottom: 1px solid #CB0000;
}
.error-message {
    font-size: 10px;
    color: #CB0000;
    margin-top: 4px;
    display: none;
}
.error-message.show {
    display: block;
}
.empty-placeholder {
    visibility: hidden;
    pointer-events: none;
}
.bottom-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}
.submit-btn {
    opacity: 0.7;
    border: none;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: 400;
    color: #FFFFFF;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.2s;
    font-family: 'WixMadeforDisplay';
    width: 237px;
    height: 48px;
    background: conic-gradient(from 76deg at 15.02% 100%, rgba(48, 48, 48, 0.05) 0deg, rgba(255, 255, 255, 0.05) 360deg), #212121;
}
.submit-btn.active {
    opacity: 1;
}
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #1B1B1B;
}
.checkbox-custom {
    min-width: 16px;
    width: 16px;
    height: 16px;
    border: 1px solid #1B1B1B;
    border-radius: 2px;
    background: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}
.checkbox-custom.checked {
    background: #1B1B1B;
    border-color: #1B1B1B;
    position: relative;
}
.checkbox-custom.checked::after {
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg width='9' height='7' viewBox='0 0 9 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.365234 3.2131L3.79381 6.07024L8.36523 0.355957' stroke='%23EFEFEF' stroke-width='1.14031'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 9px;
    height: 7px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.checkbox-input {
    display: none;
}
.checkbox-label {
    cursor: pointer;
    line-height: 1.4;
    color: #404040;
}
.checkbox-label a {
    color: #404040;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.checkbox-error {
    font-size: 10px;
    color: #CB0000;
    margin-top: 16px;
    display: none;
    text-align: center;
}
.checkbox-error.show {
    display: block;
}
@keyframes vacancyPopupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
.popup-container {
    animation: vacancyPopupFadeIn 0.2s ease-out;
}
.popup-container::-webkit-scrollbar {
    width: 5px;
}
.popup-container::-webkit-scrollbar-track {
    background: rgba(27, 27, 27, 0.1);
    border-radius: 14px;
    margin: 8px 0;
}
.popup-container::-webkit-scrollbar-thumb {
    background: #303030;
    transition: all .3s;
    border-radius: 14px;
}
.popup-container::-webkit-scrollbar-thumb:hover {
    background: #1B1B1B;
}
.success-popup {
    max-width: 500px;
    text-align: center;
    padding: 56px 20px;
}
.success-title {
    font-family: 'Jost', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #1B1B1B;
    margin-bottom: 20px;
    text-transform: uppercase;
}
.success-description {
    font-size: 14px;
    color: #161616;
    font-weight: 400;
    font-family: 'WixMadeforDisplay';
}
.full-width-textarea {
    margin-top: -12px;
}
@media (max-width: 768px) {
    .checkbox-label br {
        display: none;
    }
    .popup-container {
        padding: 52px 20px 40px;
        margin: 60px 15px 30px;
    }
    .popup-title {
        text-align: center;
    }
    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .empty-placeholder {
        display: none;
    }
    .bottom-row {
        flex-direction: column-reverse;
        align-items: stretch;
        margin-top: 30px;
    }
    .submit-btn {
        width: 100%;
    }
    .full-width-textarea {
        margin-top: 0;
    }
}
