/* 
 * css/components/modal.css
 * Styles for the registration popup modal.
 */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.is-active {
    opacity: 1;
    visibility: visible;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.modal__content {
    position: relative;
    width: 90%;
    max-width: 600px;
    background: #050A18; /* Dark theme background */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    z-index: 1001;
    border: 1px solid rgba(186, 146, 50, 0.3); /* Subtle gold border */
}

.modal.is-active .modal__content {
    transform: translateY(0);
}

.modal__header {
    background: linear-gradient(90deg, #050A18 0%, #0a1428 100%);
    padding: 24px 30px;
    border-bottom: 1px solid rgba(186, 146, 50, 0.4);
    text-align: center;
}

.modal__title {
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: #fff;
    letter-spacing: 0.1em;
    background: linear-gradient(180deg, #FFFFFF 30%, #ba9232 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__close:hover {
    background: #ba9232;
    color: #050A18;
    transform: rotate(90deg);
}

.modal__body {
    padding: 20px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    background: #050A18;
}

/* Adjustments for the iframe inside the modal */
#formIfram {
    flex: 1;
    width: 100%;
    min-height: 420px;
    border-radius: 8px;
    background: transparent;
}

@media (max-width: 640px) {
    .modal__content {
        width: 95%;
        max-width: 100%;
        margin: 10px;
    }
}
