﻿.form-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
    align-items: center;
}

.form-content {
    flex: 1;
    color: white;
}

.form-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    line-height: 1.1;
}

.form-subtitle {
    font-size: 1.6rem;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.4;
}

.contact-form {
    flex: 1;
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-size: 1.4rem;
    font-weight: 600;
    color: #003c96;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

    .form-input:focus {
        outline: none;
        border-color: #ffba00;
        box-shadow: 0 0 0 3px rgba(255, 186, 0, 0.1);
    }

    .form-input::placeholder {
        color: #999;
    }

.modal .form-select, .form-select-site {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1.4rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    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='none' stroke='%23003c96' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

    .modal .form-select:focus, .form-select-site:focus {
        outline: none;
        border-color: #ffba00;
        box-shadow: 0 0 0 3px rgba(255, 186, 0, 0.1);
    }

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 30px;
}

.form-checkbox {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    accent-color: #ffba00;
    cursor: pointer;
}

.checkbox-label {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.4;
    cursor: pointer;
}

    .checkbox-label a {
        color: #003c96;
        text-decoration: none;
        font-weight: 600;
    }

        .checkbox-label a:hover {
            text-decoration: underline;
        }

.modal-content {
    border-radius: 34px;
    border: none;
    overflow: hidden;
}

.modal-header {
    border: none;
    padding: 0;
    position: relative;
}

.modal-job-image {
    height: 500px;
    width: 100%;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    font-size: 1.8rem;
    color: #003c96;
    transition: all 0.3s ease;
}

    .modal-close:hover {
        background: #FFD700;
        transform: rotate(90deg);
    }

.modal-body {
    padding: 30px;
}

.modal-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #003c96;
    margin-bottom: 20px;
}

.modal-salary {
    font-size: 2.8rem;
    font-weight: 600;
    color: #FFD700;
    margin-bottom: 15px;
}

.modal-info {
    font-size: 1.4rem;
    color: #666;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

    .modal-info i {
        margin-right: 10px;
        color: #003c96;
        min-width: 20px;
    }

.modal-section {
    margin-top: 25px;
}

.modal-section-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #003c96;
    margin-bottom: 12px;
}

.modal-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .modal-list li {
        font-size: 1.4rem;
        color: #666;
        margin-bottom: 8px;
        padding-left: 40px;
        position: relative;
    }

        .modal-list li:before {
            content: "•";
            position: absolute;
            left: 0px;
            color: #FFD700;
            font-weight: bold;
        }

.modal-footer {
    border: none;
    padding: 25px 30px;
    background: #f8f9fa;
}

.modal-btn {
    background: #FFD700;
    border: none;
    color: #000;
    font-weight: 600;
    padding: 15px 30px;
    border-radius: 16px;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    width: 100%;
}

    .modal-btn:hover {
        background: #ffed4a;
        transform: translateY(-2px);
    }

.modal-backdrop {
    backdrop-filter: blur(5px);
}

.submit-btn {
    width: 100%;
    background: #ffba00;
    border: none;
    color: #000;
    font-weight: 700;
    padding: 18px;
    font-size: 1.6rem;
    border-radius: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: inherit;
}

    .submit-btn:hover {
        background: #ffed4a;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
    }

    .submit-btn:active {
        transform: translateY(0);
    }

.form-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .form-image img {
        max-width: 100%;
        height: auto;
        filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    }

#applyModal .modal-dialog {
    max-width: 1200px;
    margin: 20px auto;
}

#applyModal .modal-content {
    background: linear-gradient(135deg, #003c96 0%, #002c6d 100%);
    border: none;
    border-radius: 24px;
    padding: 60px;
}

#applyModal .modal-header {
    border: none;
    padding: 0;
    margin-bottom: 40px;
    position: relative;
    display: none; /* Скрываем стандартный header */
}

#applyModal .modal-body {
    padding: 0;
}

#applyModal .form-container {
    display: flex;
    gap: 60px;
    align-items: center;
    margin: 0;
}

#applyModal .form-content {
    flex: 1;
    color: white;
}

#applyModal .modal-title-custom {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    line-height: 1.1;
    color: white;
}

#applyModal .modal-subtitle {
    font-size: 1.6rem;
    opacity: 0.9;
    margin-bottom: 0;
    line-height: 1.4;
    color: white;
}

#applyModal .contact-form {
    flex: 1;
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    position: relative;
}

#applyModal .form-group {
    margin-bottom: 25px;
}

#applyModal .form-label {
    display: block;
    font-size: 1.4rem;
    font-weight: 600;
    color: #003c96;
    margin-bottom: 8px;
}

#applyModal .form-control {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

    #applyModal .form-control:focus {
        outline: none;
        border-color: #ffba00;
        box-shadow: 0 0 0 3px rgba(255, 186, 0, 0.1);
    }

    #applyModal .form-control::placeholder {
        color: #999;
    }

#applyModal .form-select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1.4rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    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='none' stroke='%23003c96' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

    #applyModal .form-select:focus {
        outline: none;
        border-color: #ffba00;
        box-shadow: 0 0 0 3px rgba(255, 186, 0, 0.1);
    }

#applyModal .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 30px;
}

#applyModal .form-checkbox {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    accent-color: #ffba00;
    cursor: pointer;
}

#applyModal .checkbox-label {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.4;
    cursor: pointer;
}

    #applyModal .checkbox-label a {
        color: #003c96;
        text-decoration: none;
        font-weight: 600;
    }

        #applyModal .checkbox-label a:hover {
            text-decoration: underline;
        }

#applyModal .submit-btn {
    width: 100%;
    background: #ffba00;
    border: none;
    color: #000;
    font-weight: 700;
    padding: 18px;
    font-size: 1.6rem;
    border-radius: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: inherit;
}

    #applyModal .submit-btn:hover {
        background: #ffed4a;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
    }

    #applyModal .submit-btn:active {
        transform: translateY(0);
    }

#applyModal .btn-close-custom {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #003c96;
    border: 2px solid #ffba00;
    border-radius: 50%;
    color: white;
    font-size: 2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

    #applyModal .btn-close-custom:hover {
        background: #ffba00;
        color: #000;
        transform: rotate(90deg);
    }

@media (max-width: 1199.98px) {
    .form-title {
        font-size: 3rem;
    }

    .form-subtitle {
        font-size: 1.4rem;
    }

    .form-container {
        gap: 40px;
    }
}

@media (max-width: 991.98px) {
    .form-container {
        flex-direction: column;
        gap: 40px;
    }

    .form-content {
        text-align: center;
    }

    .form-title {
        font-size: 2.5rem;
    }

    .form-image {
        order: -1;
    }

        .form-image img {
            max-width: 300px;
        }
}

@media (max-width: 575.98px) {
    .modal-body {
        padding: 20px;
    }

    .modal-title {
        font-size: 1.8rem;
    }

    .form-title {
        font-size: 2.2rem;
    }

    .form-subtitle {
        font-size: 1.2rem;
    }

    .contact-form {
        padding: 25px 20px;
        border-radius: 20px;
    }

    .form-input,
    .form-select {
        padding: 14px 16px;
        font-size: 1.2rem;
    }

    .form-label {
        font-size: 1.2rem;
    }

    .submit-btn {
        padding: 16px;
        font-size: 1.4rem;
    }

    .form-image img {
        max-width: 250px;
    }

    .checkbox-label {
        font-size: 1.1rem;
    }

    #applyModal .modal-content {
        padding: 30px 20px;
        border-radius: 20px;
    }

    #applyModal .modal-title-custom {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }

    #applyModal .modal-subtitle {
        font-size: 1.2rem;
    }

    #applyModal .contact-form {
        padding: 25px 20px;
        border-radius: 20px;
    }

    #applyModal .form-control,
    #applyModal .form-select {
        padding: 14px 16px;
        font-size: 1.2rem;
    }

    #applyModal .form-label {
        font-size: 1.2rem;
    }

    #applyModal .submit-btn {
        padding: 16px;
        font-size: 1.4rem;
    }

    #applyModal .checkbox-group {
        flex-direction: column;
        gap: 8px;
    }

    #applyModal .checkbox-label {
        font-size: 1.1rem;
    }

    #applyModal .btn-close-custom {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 1.8rem;
    }
}