/**
 * Current Vacancies Block Styles
 */

.acv-block-vacancies {
    padding: 60px 0;
    background-color: #ffffff;
}

.acv-vacancies-title {
    color: #000000;
    margin-bottom: 20px;
    font-size: 2.5rem;
    font-weight: 400;
}

.acv-vacancies-intro {
    margin-bottom: 40px;
    max-width: 800px;
}

.acv-vacancies-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Accordion */
.acv-vacancies-list {
    border-top: 1px solid #eee;
}

.acv-vacancy-item {
    border-bottom: 1px solid #eee;
}

.acv-vacancy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.acv-vacancy-header:hover {
    color: var(--acvalve-accent-color, #ed8936);
}

.acv-vacancy-name {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 400;
    color: inherit;
}

.acv-vacancy-toggle {
    position: relative;
    width: 20px;
    height: 20px;
    color: var(--acvalve-primary-color, #0d4f5c);
}

.acv-vacancy-item.is-active .acv-vacancy-toggle {
    color: var(--acvalve-accent-color, #ed8936);
}

.acv-vacancy-toggle i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.acv-vacancy-toggle .fa-minus {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-90deg);
}

.acv-vacancy-item.is-active .acv-vacancy-toggle .fa-plus {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg);
}

.acv-vacancy-item.is-active .acv-vacancy-toggle .fa-minus {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0);
}

.acv-vacancy-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.acv-vacancy-item.is-active .acv-vacancy-body {
    transition: max-height 0.5s ease-in;
}

.acv-vacancy-content {
    padding-bottom: 30px;
}

.acv-vacancy-subtitle {
    color: #1d6b81;
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.acv-vacancy-section {
    margin-bottom: 25px;
}

.acv-vacancy-section ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.acv-vacancy-section li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #555;
}

.acv-vacancy-meta {
    margin-bottom: 30px;
}

.acv-vacancy-detail {
    margin-bottom: 5px;
    font-size: 0.95rem;
    color: #555;
}

.acv-vacancy-actions {
    margin-top: 20px;
}

/* Button styles moved to /css/buttons.css */

/* Modal */
.acv-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.acv-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.acv-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.acv-modal-container {
    position: relative;
    background: #f4f6f7;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    /* overflow: visible needed for close button to hang outside */
    overflow: visible;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.acv-modal.is-open .acv-modal-container {
    transform: translateY(0);
}

.acv-modal-close {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--acv-btn-primary-bg, #ee7f2d);
    border: none;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

/* Removed hover background change per consolidation */

.acv-modal-content {
    padding: 50px 60px;
    overflow-y: auto;
    /* Allow content to scroll inside container */
    max-height: 100%;
}

.acv-modal-title {
    margin: 0 0 24px;
    font-size: 2rem;
    font-weight: 500;
    color: #0d4f5c;
}

/* Gravity Forms styles moved to /css/gravity-forms.css */

@media (max-width: 768px) {
    .acv-modal-content {
        padding: 30px;
    }

    .acv-modal-close {
        top: 10px;
        left: 10px;
    }

    .acv-modal-title {
        font-size: 1.5rem;
    }
}