/* Vacancy Modal Styles */
html.modal-open,
body.modal-open {
    overflow: hidden !important;
}

.vacancy-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.vacancy-modal.active {
    opacity: 1;
    visibility: visible;
}

.vacancy-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
}

.vacancy-modal-container {
    position: relative;
    background: #FFFFFF;
    border-radius: 24px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2;
    box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.vacancy-modal.active .vacancy-modal-container {
    transform: translateY(0);
}

.vacancy-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 40px 0 40px;
}

.vacancy-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    padding: 0;
}

.vacancy-modal-close svg {
    width: 24px;
    height: 24px;
}

.vacancy-modal-close:hover {
    opacity: 0.7;
}

.vacancy-modal-content {
    display: flex;
    min-height: auto;
    padding-bottom: 24px;
    gap: 80px; /* Use gap for spacing between columns */
}

.vacancy-modal-left {
    flex: 1;
    padding: 24px 0 0 40px; /* Remove right padding, use gap */
    display: flex;
    flex-direction: column;
}

.vacancy-modal-right {
    flex: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: auto;
    /* Use self-stretch implicitly via flexbox default align-items: stretch on parent */
    border-radius: 24px; /* Rounded corners for image itself */
    margin: 24px 40px 0 0; /* Margin top to align with content, margin right for spacing from edge */
    overflow: hidden;
}

/* Adjust layout for mobile */
@media (max-width: 768px) {
    .vacancy-modal-content {
        flex-direction: column-reverse;
        gap: 24px;
        padding-bottom: 24px;
    }
    
    .vacancy-modal-header {
        padding: 24px 24px 0 24px;
    }

    .vacancy-modal-left {
        padding: 0 24px;
    }
    
    .vacancy-modal-right {
        min-height: 200px;
        margin: 0 24px;
        border-radius: 24px;
    }
}

.vacancy-modal-title {
    font-size: 24px;
    font-weight: 500;
    /* Gradient Text */
    background: linear-gradient(180deg, #14284E 5.65%, #2E5CB4 92.34%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #14284E; /* Fallback */
    margin: 0;
    line-height: 1.2;
}

.vacancy-modal-desc {
    font-size: 14px;
    color: #000000; /* Black as requested */
    font-weight: 500; /* 500 as requested */
    line-height: 1.5;
    margin: 0 0 20px 0;
    max-width: 400px;
}

.vacancy-modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vacancy-modal .form-group label {
    font-size: 14px;
    font-weight: 400;
    color: #334155;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    background: transparent; /* Transparent as requested */
    border: 1px solid #E4E4E4; /* #E4E4E4 as requested */
    border-radius: 12px;
    font-size: 14px;
    color: #0F172A;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #13519C;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(19, 81, 156, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #898989; /* #898989 as requested */
    font-weight: 400; /* 400 as requested */
}

.form-actions {
    margin-top: 10px;
}

/* Submit Button Group */
.vacancy-submit-group {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vacancy-submit-btn {
    background: #13519C; /* #13519C as requested */
    color: #FFFFFF; /* White as requested */
    padding: 16px 40px; /* Increased top/bottom padding as requested (was 12px) */
    border-radius: 100px;
    font-weight: 400;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.vacancy-submit-arrow {
    width: 50px; /* Slightly larger to match increased button height */
    height: 50px;
    background: #13519C; /* Match button bg */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF; /* White text/icon */
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.vacancy-submit-group:hover .vacancy-submit-btn,
.vacancy-submit-group:hover .vacancy-submit-arrow {
    background: #0F4285; /* Darker shade on hover */
}

/* Responsive */
@media (max-width: 768px) {
    .vacancy-modal-content {
        flex-direction: column-reverse;
    }

    .vacancy-modal-right {
        min-height: 150px;
        flex: none;
        border-radius: 24px 24px 0 0; /* Adjust border radius for top image on mobile */
    }

    .vacancy-modal-left {
        padding: 24px;
    }

    .vacancy-modal-title {
        font-size: 24px;
    }
    
    .vacancy-modal-desc {
        font-size: 14px;
        margin-bottom: 24px;
    }
    
    .vacancy-submit-btn {
        width: 100%;
        text-align: center;
    }
    
    .vacancy-submit-group {
        width: 100%;
    }
}
