/* styles for the archive publication popups */

.publication-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.publication-popup-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.publication-popup-content {
    background: #fff;
    padding: 2.5rem;
    border-radius: 4px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.publication-popup-overlay.hidden .publication-popup-content {
    transform: translateY(-20px);
}

.publication-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #cc0000;
    font-size: 1.25rem;
    font-weight: bold;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

.publication-popup-close:hover {
    color: #ff0000;
}

.publication-popup-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.publication-popup-telecharger {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 0.5rem 1rem;
    display: inline-block;
    color: white!important;
    font-weight: 500;
    font-size: 1.1rem;
    text-decoration: none;
    
    border-radius: 2px;
    &:hover{
        background: rgb(238, 238, 238);
        color: var(--primary-color)!important;
    }       

}


.publication-popup-separator {
    width: 100%;
    border: none;
    border-top: 1px solid #ccc;
    margin: 1rem 0;
}

.publication-popup-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-title-color);
    margin: 0;
}

.publication-popup-desc {
    font-size: 0.95rem;
    color: var(--text-color);
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.publication-popup-form-wrapper {
    width: 100%;
    text-align: left; /* Form fields usually look better left-aligned */
}

/* Adjustments for WP/CF7 forms inside the popup */
.publication-popup-form-wrapper input[type="text"],
.publication-popup-form-wrapper input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 1rem;
    color: #333; /* Darker text for input */
}

.publication-popup-form-wrapper input[type="submit"] {
    width: 100%;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    padding: 12px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.publication-popup-form-wrapper input[type="submit"]:hover {
    background-color: #d89f33; /* A slightly darker shade of the accent color */
}

/* For the checkbox area */
.publication-popup-form-wrapper .wpcf7-list-item {
    margin: 0;
}

.publication-popup-form-wrapper label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-color);
}
