/* Modal Styles */
#thank-you-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    justify-content: center;
    align-items: center;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(12, 28, 48, 0.6);
}

.modal-card {
    background-color: #0c1c30;
    /* Removed padding to let image sit flush */
    padding: 0;
    border-radius: 20px;
    text-align: center;
    max-width: 650px;
    width: 90%;
    position: relative;
    z-index: 1000000;
    color: white;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Ensures image corners follow border radius */
}

.modal-header-image {
    width: 100%;
    height: 250px;
    /* Using a placeholder. Replace 'modal-image.jpg' with your actual image file */
    background-image: url('../images/modal-thankyou-img.png');
    background-size: cover;
    background-position: center;
}

.modal-content-wrapper {
    padding: 40px 50px 50px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.modal-title {
    color: #effc3d;
    font-family: inherit;
    font-weight: 800;
    font-size: 36px;
    margin-bottom: 15px;
    text-transform: uppercase;
    line-height: 1.1;
    margin-top: 0;
}

.modal-subtitle {
    color: #ffffff;
    font-size: 32px;
    margin-bottom: 40px;
    font-weight: 300;
    line-height: 1.2;
}

.modal-info {
    color: #e2e2e2;
    font-size: 16px;
    margin-bottom: 40px;
}

.modal-close-btn {
    background-color: #7aca8c;
    color: white;
    padding: 15px 50px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    text-decoration: none;
    display: inline-block;
}

.modal-close-btn:hover {
    transform: scale(1.05);
    background-color: #6fb57e;
}

/* Blur Transition */
.blur-content {
    filter: blur(8px);
    -webkit-filter: blur(8px);
    transition: filter 0.5s ease;
}

/* Mobile Responsive */
@media screen and (max-width: 479px) {
    .modal-content-wrapper {
        padding: 30px;
    }

    .modal-header-image {
        height: 180px;
    }

    .modal-title {
        font-size: 26px;
    }

    .modal-subtitle {
        font-size: 20px;
    }
}