/* Hildhouse Popup Styles */

.hildhouse-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
}

.hildhouse-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.hildhouse-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    max-width: 90%;
    max-height: 90vh;
    width: 700px;
    background-color: #EBE4D4;
    border-radius: 8px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hildhouse-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.hildhouse-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background-color 0.2s ease;
    border-radius: 50%;
    z-index: 10;
}

.hildhouse-popup-close svg {
    width: 100%;
    height: 100%;
    display: block;
}

.hildhouse-popup-close:hover {
    color: #000;
    background-color: rgba(0, 0, 0, 0.1);
}

.hildhouse-popup-body {
    padding: 0;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.hildhouse-popup-form-container {
    display: none;
}

.hildhouse-popup-form-container.active {
    display: block;
}

/* Responsive styles */
@media (max-width: 768px) {
    .hildhouse-popup {
        width: 95%;
        max-width: 95%;
        max-height: 95vh;
    }

    .hildhouse-popup-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 24px;
    }
}
