div.news-list {
    word-wrap: break-word;
}
div.news-list img.preview_picture {
    float: left;
    margin: 0 4px 6px 0;
}
.news-date-time {
    color: #486DAA;
}
.vacancy-form-container {
    padding: 20px;
    max-width: 500px; 
    margin: 0 auto; 
    overflow-x: hidden; 
    overflow-y: auto; 
    max-height: 90vh; 
}
.popup__content {
    border-left-style: solid;
    border-bottom-style: solid;
    border-top-style: solid;
    border-right-style: solid;
    border-radius: 20px;
    max-height: 866px;
}
.popup__content .h1 {
    font-size: 24px;
    font-weight: bold;
    text-align: left;
    margin-bottom: 10px;
    text-transform: uppercase;
    padding-top: 20px;
    padding-left: 30px;
}
.popup__content .h2 {
    font-size: 24px;
    text-align: left;
    text-transform: uppercase;
    font-weight: bold;
    padding-left: 30px;
    padding-bottom: 20px;
}
.vacancy-form {
    display: flex;
    flex-direction: column;
    padding: 30px;
}
.form-group {
    position: relative;
    margin-bottom: 20px; 
}
.form-group label {
    display: block;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 8px;
}
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group select {
    width: 100%; 
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid #000;
    background: transparent;
    font-size: 16px;
    outline: none;
}
.form-group input[type="tel"] {
    letter-spacing: 1px;
}
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 12px;
    padding-right: 25px;
}
.file-upload {
    border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    margin-top: 20px;
}
.file-upload label {
    font-weight: normal;
    cursor: pointer;
    display: block;
    margin-bottom: 5px;
}
.file-info {
    font-size: 12px;
    color: #666;
}
.checkbox {
    display: flex;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 20px;
}
.checkbox input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    margin-left: 0px;
}
.checkbox label {
    font-weight: normal;
    font-size: 14px;
}
.form-group label[required]::after,
.form-group label:has(+ input[required])::after,
.form-group label:has(+ div input[required])::after {
    content: " *";
    color: red;
}
.checkbox input[required] + label::before {
    content: "* ";
    color: red;
}
.phone-number.invalid {
    border-color: red;
}
.phone-hint {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    display: none;
}
.phone-input-container:focus-within .phone-hint {
    display: block;
}
.phone-input-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 8px;
}
.phone-region {
    flex: 0 0 75px;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid #000;
    background: transparent;
    font-size: 16px;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    padding-right: 30px;
}
.phone-number {
    flex: 1;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid #000;
    background: transparent;
    font-size: 16px;
    outline: none;
    letter-spacing: 1px;
}
@media (max-width: 768px) {
    .vacancy-form-container {
        max-width: 100%; 
        padding: 15px;
    }
    .popup__content .h1,
    .popup__content .h2 {
        font-size: 22px;
        padding-left: 20px;
    }
    .vacancy-form {
        padding: 20px;
    }
    .form-group label {
        font-size: 13px;
        margin-top: 15px;
    }
    .form-group input[type="text"],
    .form-group input[type="tel"],
    .form-group input[type="email"],
    .form-group select {
        font-size: 14px;
        padding: 10px 0;
    }
    .file-upload {
        padding: 15px;
    }
    .checkbox label {
        font-size: 13px;
    }
    .phone-input-container {
        gap: 8px;
    }
    .phone-region {
        flex: 0 0 100px;
        padding-right: 20px;
    }
    .custom-phone-region img,
    .phone-flag img {
        width: 18px;
        height: 13px;
    }
    .selected-option {
        width: 60px;
    }
    .popup.active {
    height: auto;
    max-height: 90vh;
    position: fixed;
    top: 35%;
    left: 28%;
    transform: translate(-50%, -50%);
    max-width: 350px;
    border-radius: 20px;
    padding: 0px;
    z-index: 1000;
  }
}
@media (max-width: 480px) {
    .popup {
        width: 90%; 
        max-width: 350px;
        padding: 15px;
        box-sizing: border-box; 
    }

    .bx-core.bx-android.bx-touch.bx-retina.bx-chrome {
        position: relative; 
        width: 100%; 
        height: 100%; 
    }
   .popup.active {
        
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 400px;
        width: 90%;
        max-height: 65vh;
        border-radius: 20px;
        padding: 0;
        height: 90%;
        z-index: 1000;
    } 
}
@media (max-width: 400px) {

.popup.active {
	max-height: 70vh;
}

}
    .vacancy-form-container {
        max-width: 100%;
        padding: 15px;
    }
    .popup__content .h1,
    .popup__content .h2 {
        font-size: 22px;
        padding-left: 20px;
    }
    .vacancy-form {
        padding: 20px;
    }
    .form-group label {
        font-size: 13px;
        margin-top: 0px;
    }
    .form-group input[type="text"],
    .form-group input[type="tel"],
    .form-group input[type="email"],
    .form-group select {
        font-size: 14px;
        padding: 10px 0;
    }
    .file-upload {
        padding: 15px;
    }
    .checkbox label {
        font-size: 13px;
    }
    .phone-input-container {
        gap: 8px;
    }
    .phone-region {
        flex: 0 0 100px;
        padding-right: 20px;
    }
    .custom-phone-region img,
    .phone-flag img {
        width: 18px;
        height: 13px;
    }
    .selected-option {
        width: 60px;
    }
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    max-width: 500px;
    padding: 20px;
    z-index: 1000;
}
.popup.active {
    display: block;
}
.custom-phone-region {
    display: flex;
    align-items: center;
    cursor: pointer;
}
.custom-phone-region img {
    width: 20px;
    height: 15px;
    margin-right: 5px;
    border: 1px solid #eee;
    border-radius: 2px;
}
.phone-flag {
    margin-left: 5px;
}
.phone-flag img {
    width: 20px;
    height: 15px;
    border: 1px solid #eee;
    border-radius: 2px;
}
.custom-phone-select {
    position: relative;
    display: inline-block;
    margin-right: 10px;
}
.selected-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px 10px;
    background: #f5f5f5;
    border-radius: 4px;
    width: 70px;
}
.dropdown-options {
    display: none;
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    z-index: 1000;
}
.option {
    padding: 5px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
}
.option:hover {
    background: #f0f0f0;
}
.country-flag {
    width: 20px;
    height: 15px;
    margin-right: 5px;
    border: 1px solid #eee;
    border-radius: 2px;
}
.arrow {
    margin-left: auto;
    font-size: 12px;
}
@media (min-width:768px) {
    .popup {
        z-index: 1000 !important;
    }
}
.comment
    {
  max-width: 430px;
  width: 100%;
  max-height: 100px;
  height: 100%;
}


.popup__overlay_project {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 92, 175, 0.2);
    backdrop-filter: blur(5px);
    display: none;
    z-index: 1000;
}

.test{
    max-width: 460px;
	height: 700px;
}

.margt{
margin-top: -40px;
}