﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
}

.no-vacancies-message {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-top: 20px;
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 5px;
}
.productcategory-container {
    text-align: center;
    padding: 20px;
}

.product-title {
    font-size: 1.5rem;
    color: white;
}

.vacancies-section {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}

.vacancy-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    padding: 20px;
    transition: transform 0.2s;
}

    .vacancy-card:hover {
        transform: translateY(-5px);
    }

    .vacancy-card h3 {
        font-size: 1.5rem;
        color: rgb(51, 176, 100);
        margin-bottom: 10px;
    }

    .vacancy-card p {
        margin: 5px 0;
        line-height: 1.6;
        color: #666;
    }

    .vacancy-card ul {
        margin: 10px 0 10px 20px;
        color: #666;
    }

.apply-btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(to right, rgb(51, 176, 100), rgb(127, 101, 162));
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin: 15px 0;
    transition: opacity 0.3s;
    font-size: 1rem;
}

    .apply-btn:hover {
        opacity: 0.9;
    }

/* Mobile  */
@media (max-width: 768px) {
    .product-title {
        font-size: 1.8rem;
    }

    .vacancies-section {
        padding: 0 10px;
    }

    .vacancy-card {
        padding: 15px;
    }

        .vacancy-card h3 {
            font-size: 1.2rem;
        }

        .vacancy-card p, .vacancy-card ul {
            font-size: 0.9rem;
        }

    .apply-btn {
        padding: 10px 20px;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .product-title {
        font-size: 1.5rem;
    }

    .vacancy-card {
        margin-bottom: 15px;
    }

        .vacancy-card h3 {
            font-size: 1.1rem;
        }

        .vacancy-card p, .vacancy-card ul {
            font-size: 0.85rem;
        }

    .apply-btn {
        font-size: 0.9rem;
    }
}
  .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            justify-content: center;
            align-items: center;
        }

        .modal-content {
            background: linear-gradient(to right, rgba(0, 158, 61), rgba(99, 60, 139));
            border-radius: 15px;
            padding: 30px;
            width: 90%;
            max-width: 500px;
            position: relative;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }

        .close-btn {
            position: absolute;
            top: 10px;
            right: 15px;
            font-size: 24px;
            color: #fff;
            cursor: pointer;
        }

        .modal-content h2 {
            font-size: 30px;
            font-weight: 700;
            color: #fff;
            margin-bottom: 15px;
            text-align: center;
        }

        .modal-content p {
            font-size: 16px;
            color: #fff;
            line-height: 1.6;
            margin-bottom: 20px;
            text-align: center;
        }

        #applyForm {
            display: flex;
            flex-direction: column;
        }

        #applyForm input,
        #applyForm textarea {
            width: 100%;
            padding: 10px;
            font-size: 16px;
            border: 1px solid rgb(51, 176, 100);
            border-radius: 5px;
            margin-bottom: 15px;
            box-sizing: border-box;
            background: #fff;
        }

        #applyForm input::placeholder,
        #applyForm textarea::placeholder {
            color: #999;
            font-size: 14px;
        }

        #applyForm .input-row {
            display: flex;
            justify-content: space-between;
            gap: 10px;
        }

        #applyForm .input-row input {
            width: 48%;
        }

        #applyForm textarea {
            resize: vertical;
            min-height: 100px;
        }

        #applyForm button {
            width: 100%;
            padding: 10px;
            font-size: 16px;
            background: #fff;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            color: #fff;
            background-image: linear-gradient(to right, rgba(0, 158, 61), rgba(99, 60, 139));
            transition: transform 0.3s ease;
        }

        #applyForm button:hover {
            transform: translateY(-2px);
        }

        @media (max-width: 768px) {
            .modal-content {
                width: 90%;
                padding: 20px;
            }

            .modal-content h2 {
                font-size: 24px;
            }

            .modal-content p {
                font-size: 14px;
            }

            #applyForm input,
            #applyForm textarea {
                font-size: 14px;
                padding: 8px;
            }

            #applyForm .input-row {
                flex-direction: column;
                gap: 10px;
            }

            #applyForm .input-row input {
                width: 100%;
            }

            #applyForm button {
                font-size: 14px;
                padding: 8px;
            }
        }

        @media (max-width: 480px) {
            .modal-content {
                padding: 15px;
            }

            .modal-content h2 {
                font-size: 20px;
            }

            .modal-content p {
                font-size: 12px;
            }

            #applyForm input,
            #applyForm textarea {
                font-size: 12px;
                padding: 6px;
            }

            #applyForm button {
                font-size: 12px;
                padding: 6px;
            }
        }
.file-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-bottom: 15px;
}

    .file-input-wrapper input[type="file"] {
        width: 100%;
        padding: 10px;
        font-size: 16px;
        border: 1px solid rgb(51, 176, 100);
        border-radius: 5px;
        box-sizing: border-box;
        background: #fff;
        opacity: 0; 
        position: absolute;
        top: 0;
        left: 0;
    }

    .file-input-wrapper label {
        display: block;
        width: 100%;
        padding: 10px;
        font-size: 16px;
        border: 1px solid rgb(51, 176, 100);
        border-radius: 5px;
        background: #fff;
        color: #999;
        text-align: left;
        cursor: pointer;
    }

        .file-input-wrapper label::before {
            content: "Фото";
            color: #333;
            margin-right: 10px;
        }

    .file-input-wrapper span {
        margin-left: 10px;
        color: #999;
        font-size: 14px;
    }