/* Center the popup */
.eft-popup-overlay,
.eft-form-popup * {
    box-sizing: border-box;
}

/* Popup form */
.eft-form-popup {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 800px;
    width: auto;
    max-height: calc(100vh - 2 * clamp(15px, 5vw, 60px));
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    position: relative;

}

/* Overlay: Blur the entire screen */
.eft-popup-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(15px, 5vw, 60px);
}

/* Form container (contents) */
.eft-form-container {
    padding: 10px;
    background-color: white;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

/* Close button */
.eft-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;

    width: 36px;
    height: 36px;

    border: none;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;

    border-radius: 50%;
}

.eft-popup-close:hover {
    background: rgba(0, 0, 0, 0.06);
}

.eft-popup-close:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
}

.eft-pf-result-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    /* Abstand zwischen Bild und Text */
    margin-bottom: 20px;
    flex-wrap: wrap;
    /* erlaubt Umbruch bei kleinen Displays */
}

.eft-pf-result-item img {
    max-width: 120px;
    /* feste Bildbreite, damit nichts springt */
    height: auto;
    flex-shrink: 0;
    /* verhindert, dass das Bild gequetscht wird */
}

.eft-pf-result-item .desc {
    flex: 1;
    /* Text nimmt den restlichen Platz */
    min-width: 200px;
    /* verhindert zu frühes Umbrechen */
}

.eft-pf-step {
    display: none;
}

.eft-pf-step.is-active {
    display: block;
}