.panel-footer {
    position: inherit !important;
}

.popup .popup-modal {
    padding: 0;
    border: none;
    box-shadow: 0px 55px 54px 0px #00000040, var(--shadow);
    animation: slideUp 0.4s ease-out;
    position: fixed;
    bottom: -100%;
    right: 0;
    left: auto;
    margin: 0;
    z-index: 10;
    border-radius: 10px 0 0;
    background-color: #241F21;
}

.popup .popup-modal[open] {
    bottom:0;
    width: 100%;
}

.popup .popup-modal::backdrop {
    background-color: #FFFFFF99;
    animation: fadeIn 0.3s ease-out;
}

.popup .popup-modal.closing {
    animation: fadeOut 0.4s ease-in;
}

.popup .popup-modal.closing::backdrop {
    animation: fadeOut 0.3s ease-in;
}

.popup .popup-content {
    position: relative;
    display: flex;
    flex-direction: column-reverse;
}

@media (min-width: 64em) {
    .popup .popup-content {
        flex-direction: row;
    }
}

.popup .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
    padding-inline: var(--space-6);
}

@media (min-width: 64em) {
    .popup .content {
        flex-basis: 100%;
    }
}

.popup .close-button {
    position: absolute;
    inset-block-start: 6px;       /* Top position (no change) */
    inset-inline-start: 12px;     /* Changed from inset-inline-end to move it to the left */
    z-index: 1;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 22px;
    color: #fff;
}

.popup .details .title {
    font-family: inherit;
    color: #fff;
    line-height: calc(22 / 20);
    margin-bottom: 0;
}

.popup .details .description {
    font-family: inherit;
    color: #fff;
}


@keyframes slideUp {
    from {
        bottom: -100%;
    }
    to {
        bottom: 0;
    }
}

@keyframes slideDown {
    from {
        bottom: 0;
    }
    to {
        bottom: -100%;
    }
}

.popup-wrapper {
    display: flex;
    margin: 0 auto;
    width: 100%;
    max-width: 700px;
    padding: 24px 24px;
    align-items: center;
    gap: 40px;
}

.popup-wrapper .popup-left i.fa-envelope {
    display: block;
    font-size: 64px;
    opacity: 0.75;
    color: #fff;
}

.custom-button button {
    display: inline !important;
    margin-top: var(--space-2) !important;
}

.form-field {
    width: 100%;
}

.field-control {
    display: block;
    width: 100% !important;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 16px;
}