/* TC Home Popup styles (reuse tc-modal look & feel) */

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

.tc-modal--open {
    opacity: 1;
    visibility: visible;
}

.tc-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.tc-modal__content {
    position: relative;
    background-color: #e8ebef; /* same as .footer-newsletter */
    border-radius: 12px;
    padding: 2rem;
    max-width: 760px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    color: #1f3a5f;
}

.tc-modal--open .tc-modal__content {
    transform: scale(1);
}

.tc-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #1f3a5f;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: color 0.3s ease;
    z-index: 10;
}

.tc-modal__close:hover {
    color: #fff;
}

body.tc-modal-open {
    overflow: hidden;
}

.tc-home-popup__content > :first-child {
    margin-top: 0;
}

.tc-home-popup__content > :last-child {
    margin-bottom: 0;
}

.tc-home-popup__newsletter {
    margin-top: 1.5rem;
    background: transparent;
    box-shadow: none;
    padding-top: 1.5rem;
    border-top: 1px solid #fff;
}

@media screen and (max-width: 768px) {
    .tc-modal__content {
        padding: 1.5rem;
        width: 95%;
    }
}

