/* ===============================
   OVERLAY (SCREEN CENTER)
================================ */
#tm-popup-overlay {
    position: fixed;
    inset: 0;
    display: none; /* JS control */
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.6);
    z-index: 99999;
    padding: 20px;
}

/* ===============================
   POPUP BOX
================================ */
.tm-popup {
    width: 100%;
    max-width: 920px;
    min-height: 600px;

    padding: 180px;
    border-radius: 40px;
    position: relative;
    text-align: center;

    /* CONTENT POSITION (UPPER-CENTER LIKE REF) */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    background: 
        url('https://lawngreen-wren-264809.hostingersite.com/wp-content/uploads/2025/12/Frame-2.png');
    background-size: cover;
    background-position: center;

    box-shadow: 0 30px 90px rgba(0,0,0,0.35);
}

/* ===============================
   HEADINGS
================================ */
.tm-popup h2 {
    font-size: 50px !important;
    font-weight: 700;
    color: #111;
    margin: 10px 0 4px;
}

.tm-popup h3 {
    font-size: 40px !important;
    font-weight: 900;
    color: #4c5cff;
    margin-bottom: 35px;
}

/* ===============================
   FORM (ONE LINE CENTER)
================================ */
.tm-popup form {
    width: 100%;
    max-width: 560px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    margin: 0 auto 22px;
}

#tm-popup-overlay .tm-popup input.tm-input {
    background-color: #ffffff !important;
    padding: 15px !important;
    border-radius: 15px !important;
    border: none !important;
    border-bottom: none !important;
}


.tm-popup button {
    padding: 16px 34px;
    background: #4c5cff;
    color: #fff;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: 0.25s ease;
}

.tm-popup button:hover {
    background: #3646ff;
}

/* ===============================
   DESCRIPTION
================================ */
.tm-desc {
    max-width: 520px;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin: 0 auto;
}

/* ===============================
   CLOSE BUTTON
================================ */
.tm-close {
    position: absolute;
    top: 22px;
    right: 26px;
    font-size: 26px;
    cursor: pointer;
    color: #222;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 768px) {

    .tm-popup {
        min-height: 480px;
        padding: 50px 25px;
        border-radius: 26px;
    }

    .tm-popup h2 {
        font-size: 26px;
    }

    .tm-popup h3 {
        font-size: 28px;
        margin-bottom: 25px;
    }

    .tm-popup form {
        flex-direction: column;
        gap: 12px;
    }

    .tm-popup input,
    .tm-popup button {
        width: 100%;
    }
}
