.join-form-popup {
    position: fixed;
    inset: 0;
    z-index: 1000;
    visibility: hidden;
    font-family: "Inter", sans-serif;
}

.join-form-popup[aria-hidden="false"] {
    visibility: visible;
}

.join-form-popup__overlay {
    position: fixed;
    inset: 0;
    background: var(--c-black-transparent-overlay);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.join-form-popup[aria-hidden="false"] .join-form-popup__overlay {
    opacity: 1;
}

.join-form-popup__content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(100%, -50%);
    background: var(--c-white);
    padding: 5rem 0rem 0rem 0rem;
    border-radius: 0.25rem;
    max-width: 595px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0s;
}

.join-form-popup[aria-hidden="false"] .join-form-popup__content {
    transform: translate(-50%, -50%);
}

.join-form-popup[aria-hidden="true"] .join-form-popup__content {
    transform: translate(50vw, -50%);
    transition-delay: 0s;
}

.join-form-popup[aria-hidden="true"] .join-form-popup__overlay {
    transition-delay: 0.5s;
}

.join-form-popup__content .join-form-popup__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
    background: var(--c-background-dark);
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.25rem;
}

.join-form-popup__content .join-form-popup__close span {
    position: absolute;
    width: 2rem;
    height: 1px;
    background: var(--c-white);
    left: 50%;
    top: 50%;
    transition: transform 0.3s ease;
}

.join-form-popup__content .join-form-popup__close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.join-form-popup__content .join-form-popup__close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.join-form-popup__content .join-form-popup__close:hover span:first-child {
    transform: translate(-50%, -50%) rotate(135deg);
}

.join-form-popup__content .join-form-popup__close:hover span:last-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.join-form-popup h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 45px;
    margin-bottom: 0.5rem;
    color: var(--c-text);
}

.join-form-popup h4 {
    margin-bottom: 0;
    font-size: 20px;
    font-weight: 400;
    color: var(--c-grey);
}

.join-form-popup p {
    margin-bottom: 0;
    margin-bottom: 0;
    font-size: 20px;
    font-weight: 400;
    color: var(--c-grey);
}

.join-form-popup h3 {
    font-size: var(--fs-20);
    color: var(--c-grey);
    margin-bottom: 1.5rem;
    font-family: 'Inter', sans-serif;
}

/* Styles pour l'iframe */
.join-form-popup-iframe-container {
    width: 100%;
    height: auto;
    overflow: hidden;
    position: relative;
}

.join-form-popup-iframe {
    width: 100%;
    min-height: 500px;
    border: none;
    transition: height 0.3s ease;
}

/* Styles pour les appareils mobiles */
@media (max-width: 768px) {
    .join-form-popup__content {
        padding: 5rem 1.5rem 1.5rem 1.5rem;
        width: 95%;
    }
    
    .join-form-popup-iframe {
        min-height: 600px;
    }
}

/* Ajustements pour éviter les problèmes de défilement */
.join-form-popup[aria-hidden="false"] {
    overflow: hidden;
}

/* Masquer les barres de défilement de l'iframe si nécessaire */
.join-form-popup-iframe::-webkit-scrollbar {
    display: none;
}

.join-form-popup-iframe {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.newsletter-popup-titles {
    padding: 0px 62px;
    margin-bottom: -30px;
}