/* Main Container */
.vacancy-form-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 50px 100px;
    background: var(--p2);
    color: #fff;
    border-radius: 16px;
    font-family: "Geologica", sans-serif;

}

.vacancy-image {
    background-image: url('../img/vacancy-form-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* width: 388px; */
    border-radius: 8px;
    min-height: 281px;
    margin-bottom: 58px;
}

.vacancy-form-header {
    width: 100%;
    margin-bottom: 26px;
}

.vacancy-form-header h2 {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 38px;
    line-height: 110%;
    color: var(--p4-zagolovok-1);
    margin-bottom: 12px !important;
}

.vacancy-form-header p {
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
    color: var(--text-4-svetlyy-dlya-temnogo);
}

.vacancy-form-content {
    display: flex;
    flex-wrap: wrap;
    gap: 38px;
    align-items: flex-start;
}

.vacancy-form-inputs {
    flex: 1;
    min-width: 300px;
    max-width: 448px;
}

.vacancy-info-block {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Form Elements */
.form-field {
    position: relative;
    margin-bottom: 27px;
}

.resume_url-field {
    margin-bottom: 20px !important;
}

.upload-field {
    margin-bottom: 20px !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vacancy-area {
    max-height: 114px !important;
    margin-bottom: 24px !important;
}

.form-field label {
    position: absolute;
    top: 16px;
    left: 22px;
    font-size: 16px;
    transition: all 0.2s ease;
    pointer-events: none;
    display: block;
    font-family: "Geologica", sans-serif;
    font-weight: 300 !important;
    font-size: 16px;
    color: #a9a7a3 !important;
}

.form-field label.active {
    top: -15px;
    left: 0;
    font-size: 10px;
    color: #e8e6e2;
}

.form-field input:focus+label,
.form-field input:not(:placeholder-shown)+label,
.form-field textarea:focus+label,
.form-field textarea:not(:placeholder-shown)+label {
    top: -15px;
    left: 0;
    font-size: 10px;
    color: #e8e6e2;
}

.form-field input:focus-visible,
.form-field textarea:focus-visible {
    outline: none !important;
}

.form-field input[type="text"],
.form-field input[type="tel"],
.form-field input[type="email"],
.form-field textarea {
    width: 100%;
    max-height: 50px;
    padding: 12px 20px;
    background-color: #fbfbfb;
    color: #272725;
    border-radius: 10px;
    font-family: "Geologica", sans-serif;
    font-weight: 300;
    font-size: 16px;
    box-sizing: border-box;
    transition: border .3s linear;
    border: 2px solid transparent;
}

.form-field input:hover {
    border: 2px solid var(--p1);
}

/* Styles for validation errors */
.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #a9a7a3;
    opacity: 1;
}

/* .form-field input:not(:focus):not(:placeholder-shown):invalid,
.form-field textarea:not(:focus):not(:placeholder-shown):invalid {
    border: 2px solid #F93428;
} */

/* Error label styles */
.form-field label.error,
.form-field label.error a {
    color: #F93428 !important;
}

/* Consent error style */
.consent-field.error input[type="checkbox"] {
    border: 2px solid #F93428;
}

.form-field textarea {
    min-height: 114px;
    resize: vertical;
}


.upload-wrapper {
    display: flex;
    flex-direction: column;
}

.upload-button {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: color 0.3s;
}

/* 
.upload-button:hover {
    color: #FFA800;
} */

.upload-button svg path {
    transition: stroke .3s linear;
}


.upload-button span {
    color: #FFA800;
    font-size: 16px;
    font-weight: 400;
    transition: color .3s linear;
}

.upload-button:hover svg path {
    stroke: #e18701;
}

.upload-button:hover span {
    color: #e18701;
}


.upload-format {
    font-weight: 300;
    font-size: 12px;
    line-height: 130%;
    color: var(--p3);
}

/* Highlight style for drag and drop */
.upload-field.highlight {
    background-color: rgba(255, 168, 0, 0.1);
    border-radius: 10px;
    padding: 10px;
}

/* Uploaded files container */
.uploaded-files-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.uploaded-file {
    display: flex;
    align-items: center;
}

.file-name {
    font-weight: 300;
    font-size: 14px;
    line-height: 130%;
    color: var(--text-4-svetlyy-dlya-temnogo);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    color: var(--text-2);
    margin-left: 5px;
    font-size: 14px;
    flex: 1;
}

.file-remove {
    margin-left: 10px;
    color: var(--text-2);
    font-size: 20px;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.3s linear;
}

.file-remove:hover {
    color: var(--p4-zagolovok-1);
}

/* Consent Field */
.consent-field {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px !important;
}

.consent-field input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border: 1px solid transparent;
    border-radius: 3px;
    transition: background-color 0.3s, border-color 0.3s;
    cursor: pointer;
}

.consent-field input[type="checkbox"]:hover {
    border-color: #e18701;
}

.consent-field input[type="checkbox"]:checked {
    background-color: #ffa800;
    border-color: #ffa800;
    position: relative;
}

.consent-field input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.consent-field label {
    position: static;
    color: #a9a7a3 !important;
    margin: 0;
    transition: none;
    cursor: pointer;
    pointer-events: auto;
    font-weight: 300 !important;
    font-size: 14px !important;
}

.consent-field a {
    text-decoration: underline !important;
    color: #e8e6e2 !important;
    transition: color .3s linear;
    cursor: pointer;
}

.consent-field a:hover {
    text-decoration: none !important;
    color: #fbfbfb !important;
}

/* Submit Button */
.submit-field button {
    width: 100%;
    padding: 12px;
    background-color: #ffa800;
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
    text-align: center;
    color: #fbfbfb;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-field button:focus {
    background-color: #ffa800 !important;
}

.submit-field button:hover {
    background-color: #e18701;
}

.submit-field button:disabled {
    background-color: #7a6943;
    cursor: not-allowed;
}

.submit-field {
    margin-bottom: 0 !important;
}

/* Form Messages */
.form-messages {
    margin-top: 15px;
}

.success-message {
    padding: 10px;
    background-color: rgba(39, 174, 96, 0.2);
    border-left: 3px solid #27ae60;
    color: #2ecc71;
}

.error-message {
    padding: 10px;
    background-color: rgba(231, 76, 60, 0.2);
    border-left: 3px solid #e74c3c;
    color: #e74c3c;
}

/* Vacancy Info Block */
.vacancy-info-block h3 {
    font-weight: 700;
    font-size: 16px;
    line-height: 130%;
    color: var(--p4-zagolovok-1);
    margin-bottom: 20px !important;
}

.vacancy-phone a {
    font-family: "Geologica", sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 120%;
    color: var(--text-4-svetlyy-dlya-temnogo);
    text-decoration: none;
    transition: color .3s linear;
}

.vacancy-phone:hover a {
    /* color: #e18701; */
    color: var(--text-4-svetlyy-dlya-temnogo) !important;
}

.vacancy-worktime {
    margin-bottom: 12px;
}

.vacancy-worktime p {
    font-family: var(--font-family);
    font-weight: 300;
    font-size: 14px;
    line-height: 130%;
    color: var(--text-3);
}

.vacancy-email a {
    font-weight: 300;
    font-size: 16px;
    line-height: 130%;
    color: #e8e6e2;
    transition: color .3s linear;
    display: flex;
    align-items: center;
}

.vacancy-email:hover a {
    color: #e18701;
}

.vacancy-email svg {
    stroke: #FFA800;
    width: 24px;
    height: 24px;
    margin-right: 6px;
    transition: stroke .3s linear;
}

.vacancy-email:hover svg {
    stroke: #e18701;
}

.field-help-text {
    font-weight: 300;
    font-size: 10px;
    color: #F93428;
}



@media screen and (max-width: 1023px) {
    .vacancy-form-container {
        padding: 30px;
    }

    .vacancy-form-content {
        gap: 12px;
    }

    .vacancy-form-header h2 {
        font-size: 30px;
    }
}

@media screen and (max-width: 768px) {
    .vacancy-form-header h2 {
        font-size: 26px;
        margin-bottom: 10px !important;
    }

    .vacancy-form-header {
        margin-bottom: 30px;
    }

    .vacancy-form-content {
        gap: 30px;
    }

    .vacancy-image {
        min-height: 193px;
        min-width: 100% !important;
        margin-bottom: 16px !important;
        background-position-y: 20%;
    }

    .vacancy-info-block h3 {
        margin-bottom: 16px !important;
    }

    .vacancy-worktime {
        margin-bottom: 16px;
    }

    .vacancy-form-container {
        padding: 16px;
    }

    .vacancy-form-content {
        flex-direction: column;
    }

    .vacancy-form-inputs {
        max-width: 100% !important;
        width: 100% !important;
    }

    .vacancy-info-block {
        width: 100% !important;
    }
}

@media screen and (max-width: 550px) {
    .vacancy-form-header h2 {
        max-width: 225px !important;
    }

    .vacancy-form-header p {
        max-width: 270px !important;
    }

    .vacancy-form-inputs {
        flex: 1;
        min-width: 100% !important;
        max-width: 448px;
    }

}