/* ================================================
   SECTION: JOB OFFERS
   ================================================ */
.section-job-offers {
    padding: 140px 0;
    overflow: hidden;
    background: #f7f7f7;
}

.section-job-offers .section-title {
    text-transform: uppercase;
    font-size: 50px;
    line-height: 60px;
    font-weight: 900;
    margin: 8px 0 20px 0;
    color: #1a1a1a;
    text-align: center;
}

.section-job-offers .section-divider {
    width: 80px;
    height: 4px;
    background: #f30101;
    margin: 10px auto;
}

.section-job-offers__empty {
    text-align: center;
    font-family: var(--aniro-font-body);
    color: #707070;
    margin: 40px 0;
}

.section-job-offers__wrapper {
    margin: 50px auto;
    width: 75vw;
    max-width: 75vw;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 5%;
    left: 50%;
    transform: translateX(-50%);
}

.section-job-offers__swiper {
    overflow: hidden;
    flex: 1;
}

.section-job-offers__swiper .swiper-slide {
    height: auto;
}

.section-job-offers__prev,
.section-job-offers__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 27px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    color: #1a1a1a;
    opacity: 0.2;
    padding: 0;
    transition: opacity 0.3s;
    z-index: 10;
    flex-shrink: 0;
}

.section-job-offers__prev { left: 0; }
.section-job-offers__next { right: 0; }

.section-job-offers__prev:hover,
.section-job-offers__next:hover {
    opacity: 0.5;
}

.section-job-offers__prev svg,
.section-job-offers__next svg {
    width: 27px;
    height: 44px;
}

.section-job-offers__card {
    background: var(--aniro-color-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 40px 50px;
    min-height: 280px;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: box-shadow 0.3s ease;
}

.section-job-offers__card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.section-job-offers__card:focus-visible {
    outline: 2px solid var(--aniro-color-primary);
    outline-offset: 2px;
}

.section-job-offers__card-title {
    font-family: var(--aniro-font-heading);
    font-size: 28px;
    line-height: 36px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 10px;
    padding: 0 0 16px;
    position: relative;
    text-transform: uppercase;
}

.section-job-offers__card-title::before {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: #ccc;
    position: absolute;
    left: 0;
    bottom: 0;
}

.section-job-offers__card-title::after {
    content: '';
    display: block;
    width: 25%;
    height: 2px;
    background: #f30101;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    z-index: 3;
    transition: width 0.4s ease;
}

.section-job-offers__card:hover .section-job-offers__card-title::after {
    width: 100%;
}

.section-job-offers__card-cta {
    font-family: var(--aniro-font-body);
    font-size: 14px;
    font-weight: 400;
    color: #999999;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.section-job-offers__card-cta::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12' fill='none'%3E%3Cpath d='M10 1L15 6L10 11' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M1 6H15' stroke='%23999' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.section-job-offers__card:hover .section-job-offers__card-cta {
    color: var(--aniro-color-primary);
}

.section-job-offers__card:hover .section-job-offers__card-cta::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12' fill='none'%3E%3Cpath d='M10 1L15 6L10 11' stroke='%23d62a1a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M1 6H15' stroke='%23d62a1a' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ====== DIALOG / POPUP ====== */
.section-job-offers__dialog[hidden] { display: none; }

.section-job-offers__dialog {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.section-job-offers__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
    animation: jobOffersFade 0.2s ease;
}

.section-job-offers__modal {
    position: relative;
    background: var(--aniro-color-white);
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 50px 60px;
    box-sizing: border-box;
    animation: jobOffersScale 0.25s ease;
}

@keyframes jobOffersFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes jobOffersScale {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.section-job-offers__modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.section-job-offers__close {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #1a1a1a;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.section-job-offers__close:hover {
    color: var(--aniro-color-primary);
}

.section-job-offers__modal-title {
    font-family: var(--aniro-font-heading);
    font-size: 32px;
    line-height: 38px;
    font-weight: 900;
    color: #1a1a1a;
    margin: 0;
    text-transform: uppercase;
    position: relative;
    flex: 1;
    min-width: 0;
}

.section-job-offers__modal-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--aniro-color-primary);
    margin-top: 16px;
}

.section-job-offers__modal-content {
    font-family: var(--aniro-font-body);
    font-size: 15px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 36px;
}

.section-job-offers__modal-content p { margin: 0 0 12px; }
.section-job-offers__modal-content ul,
.section-job-offers__modal-content ol { margin: 0 0 12px; padding-left: 20px; }
.section-job-offers__modal-content li { margin-bottom: 4px; }
.section-job-offers__modal-content h3,
.section-job-offers__modal-content h4 {
    font-family: var(--aniro-font-heading);
    font-size: 16px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 18px 0 8px;
    text-transform: uppercase;
}

.section-job-offers__modal-form-title {
    font-family: var(--aniro-font-heading);
    font-size: 22px;
    font-weight: 900;
    color: #1a1a1a;
    margin: 0 0 24px;
    text-transform: uppercase;
    padding-top: 24px;
    border-top: 1px solid #ddd;
}

/* ====== CF7 form styles inside modal ====== */
.section-job-offers__modal-form .wpcf7-form .form_row {
    margin-bottom: 28px;
}

.section-job-offers__modal-form .wpcf7-form input[type="text"],
.section-job-offers__modal-form .wpcf7-form input[type="email"],
.section-job-offers__modal-form .wpcf7-form input[type="tel"],
.section-job-offers__modal-form .wpcf7-form input[type="file"] {
    width: 100%;
    border: none;
    border-bottom: 1px solid #D8D8D8;
    background: transparent;
    color: var(--aniro-color-black);
    font-family: var(--aniro-font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 27px;
    padding: 8px 0;
    outline: none;
    box-sizing: border-box;
    border-radius: 0;
    -webkit-appearance: none;
}

.section-job-offers__modal-form .wpcf7-form input[type="file"] {
    width: 100%;
    border: 1px dashed #ccc;
    border-radius: 0;
    background: #fafafa;
    padding: 14px 16px;
    font-family: var(--aniro-font-body);
    font-size: 13px;
    color: #707070;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.section-job-offers__modal-form .wpcf7-form input[type="file"]:hover {
    border-color: var(--aniro-color-primary);
    background: var(--aniro-color-white);
}

.section-job-offers__modal-form .wpcf7-form input[type="file"]:focus-visible {
    outline: 2px solid var(--aniro-color-primary);
    outline-offset: 2px;
    border-style: solid;
}

.section-job-offers__modal-form .wpcf7-form input[type="file"]::-webkit-file-upload-button,
.section-job-offers__modal-form .wpcf7-form input[type="file"]::file-selector-button {
    margin-right: 14px;
    padding: 8px 16px;
    border: 1px solid var(--aniro-color-primary);
    background: transparent;
    color: var(--aniro-color-black);
    font-family: var(--aniro-font-body);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
}

.section-job-offers__modal-form .wpcf7-form input[type="file"]:hover::-webkit-file-upload-button,
.section-job-offers__modal-form .wpcf7-form input[type="file"]:hover::file-selector-button {
    background: var(--aniro-color-primary);
    color: var(--aniro-color-white);
}

.section-job-offers__modal-form .wpcf7-form .wpcf7-form-control-wrap[data-name="your-file"] {
    display: block;
    position: relative;
}

.section-job-offers__modal-form .wpcf7-form .wpcf7-form-control-wrap[data-name="your-file"]::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 14px;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='17 8 12 3 7 8'/%3E%3Cline x1='12' y1='3' x2='12' y2='15'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    transition: filter 0.2s ease;
}

.section-job-offers__modal-form .wpcf7-form .wpcf7-form-control-wrap[data-name="your-file"]:hover::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f30101' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='17 8 12 3 7 8'/%3E%3Cline x1='12' y1='3' x2='12' y2='15'/%3E%3C/svg%3E");
}

.section-job-offers__modal-form .wpcf7-form input[type="file"] {
    padding-right: 44px;
}

.section-job-offers__modal-form .wpcf7-form input[type="text"]:focus,
.section-job-offers__modal-form .wpcf7-form input[type="email"]:focus,
.section-job-offers__modal-form .wpcf7-form input[type="tel"]:focus {
    border-bottom-color: var(--aniro-color-primary);
}

.section-job-offers__modal-form .wpcf7-form .form_acceptance {
    font-family: var(--aniro-font-body);
    font-size: 11px;
    line-height: 1.5;
    color: #555;
    margin: 16px 0 24px;
}

.section-job-offers__modal-form .wpcf7-form .form_acceptance .wpcf7-list-item {
    margin: 0 0 12px;
    display: block;
}

.section-job-offers__modal-form .wpcf7-form .form_acceptance label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.section-job-offers__modal-form .wpcf7-form .form_acceptance input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    min-width: 14px;
    min-height: 14px;
    border: 1px solid var(--aniro-color-primary);
    background: var(--aniro-color-white);
    margin: 2px 0 0 0;
    cursor: pointer;
    position: relative;
    border-radius: 0;
    padding: 0;
    flex-shrink: 0;
}

.section-job-offers__modal-form .wpcf7-form .form_acceptance input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: var(--aniro-color-primary);
}

.section-job-offers__modal-form .wpcf7-form .form_submit {
    margin-top: 24px;
}

.section-job-offers__modal-form .wpcf7-form .wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    height: 44px;
    padding: 8px 24px;
    border: 1px solid var(--aniro-color-primary);
    background: transparent;
    color: var(--aniro-color-black);
    font-family: var(--aniro-font-body);
    font-size: 15px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    border-radius: 0;
    -webkit-appearance: none;
}

.section-job-offers__modal-form .wpcf7-form .wpcf7-submit:hover {
    background: var(--aniro-color-primary);
    color: var(--aniro-color-white);
}

.section-job-offers__modal-form .wpcf7-form .wpcf7-not-valid-tip {
    font-size: 11px;
    margin-top: 4px;
    color: var(--aniro-color-primary);
}

.section-job-offers__modal-form .wpcf7-form .wpcf7-response-output {
    margin: 16px 0 0;
    font-size: 13px;
    border-width: 1px;
}

.section-job-offers__modal-form .wpcf7-form .wpcf7-spinner { display: none; }

.section-job-offers__modal-form .quiz-email { display: none; }

/* Body scroll lock when popup open */
body.has-job-offers-popup-open {
    overflow: hidden;
}

/* ====== Responsive ====== */
@media (max-width: 1700px) {
    .section-job-offers__wrapper {
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding: 50px 50px !important;
    }
    .section-job-offers__prev { left: 10px !important; }
    .section-job-offers__next { right: 10px !important; }
}

@media (max-width: 1100px) {
    .section-job-offers__card {
        padding: 30px;
        min-height: 220px;
    }
}

@media (max-width: 800px) {
    .section-job-offers {
        padding: 50px 0 !important;
    }
    .section-job-offers .section-title {
        font-size: 30px !important;
        line-height: 40px !important;
    }
    .section-job-offers__card {
        padding: 24px 20px;
    }
    .section-job-offers__card-title {
        font-size: 22px;
        line-height: 28px;
    }
    .section-job-offers__modal {
        padding: 36px 24px;
        max-height: 95vh;
    }
    .section-job-offers__modal-title {
        font-size: 24px;
        line-height: 30px;
    }
    .section-job-offers__modal-form-title {
        font-size: 18px;
    }
}

@media (max-width: 500px) {
    .section-job-offers__prev,
    .section-job-offers__next {
        width: 20px !important;
        height: 30px !important;
    }
    .section-job-offers__prev svg,
    .section-job-offers__next svg {
        width: 20px !important;
        height: 30px !important;
    }
}
