/* --- Taaza Kitchen Custom Login Popup Styles --- */

/* * 1. The main overlay (the dark background) 
 * THESE LINES ARE THE FIX: opacity: 0 and visibility: hidden
 * This makes the popup invisible by default.
*/
.tk-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;                 /* <-- Hides it */
    visibility: hidden;           /* <-- Hides it */
    transition: all 0.3s ease;
}

/* * 2. The visible state (added by our JavaScript when the button is clicked)
 * This makes the popup visible again.
*/
.tk-popup-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* 3. The white popup "card" */
.tk-popup-card {
    background-color: #ffffff;
    padding: 24px;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    text-align: left;
    transform: scale(0.9);
    transition: all 0.3s ease;
}
.tk-popup-overlay.is-visible .tk-popup-card {
    transform: scale(1);
}

/* 4. The 'X' close button */
.tk-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 20px;
    line-height: 1;
    color: #888;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
}

/* 5. The "Welcome" title styles */
.tk-popup-card h2 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-top: 10px;
    margin-bottom: 5px;
}
.tk-popup-card p {
    font-size: 16px;
    color: #555;
    margin-bottom: 25px;
}

/* 6. The legal disclaimer links */
.tk-popup-legal {
    font-size: 13px;
    color: #999;
    text-align: center;
    margin-top: 20px;
}
.tk-popup-legal a {
    color: #777;
    font-weight: 600;
    text-decoration: none;
}

/* --- STYLING YOUR FLUENT FORM TO MATCH --- */

/* 7. Style the Fluent Form submit button to look like the "Continue" button */
.tk-popup-card .fluentform .ff-btn-submit {
    background-color: #c9b48f !important; /* The beige/tan color */
    color: #4a4a4a !important;
    width: 100% !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    padding: 15px !important;
    border: none !important;
    border-radius: 8px !important;
}
.tk-popup-card .fluentform .ff-btn-submit:hover {
    background-color: #bfa87e !important;
}

/* 8. Style the phone input to match */
.tk-popup-card .fluentform .ff-el-phone {
    padding: 15px !important;
    font-size: 16px !important;
    border-radius: 8px !important;
}
.tk-popup-card .fluentform .iti--show-flags {
    width: 100% !important;
}

/* --- Taaza Kitchen Custom Login Popup Styles --- */

/* * 1. The main overlay (the dark background) 
 * THESE LINES ARE THE FIX: opacity: 0 and visibility: hidden
 * This makes the popup invisible by default.
*/
.tk-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;                 /* <-- Hides it */
    visibility: hidden;           /* <-- Hides it */
    transition: all 0.3s ease;
}

/* * 2. The visible state (added by our JavaScript when the button is clicked)
 * This makes the popup visible again.
*/
.tk-popup-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* 3. The white popup "card" */
.tk-popup-card {
    background-color: #ffffff;
    padding: 24px;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    text-align: left;
    transform: scale(0.9);
    transition: all 0.3s ease;
}
.tk-popup-overlay.is-visible .tk-popup-card {
    transform: scale(1);
}

/* 4. The 'X' close button */
.tk-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 20px;
    line-height: 1;
    color: #888;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
}

/* 5. The "Welcome" title styles */
.tk-popup-card h2 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-top: 10px;
    margin-bottom: 5px;
}
.tk-popup-card p {
    font-size: 16px;
    color: #555;
    margin-bottom: 25px;
}

/* 6. The legal disclaimer links */
.tk-popup-legal {
    font-size: 13px;
    color: #999;
    text-align: center;
    margin-top: 20px;
}
.tk-popup-legal a {
    color: #777;
    font-weight: 600;
    text-decoration: none;
}

/* --- STYLING YOUR FLUENT FORM TO MATCH --- */

/* 7. Style the Fluent Form submit button to look like the "Continue" button */
.tk-popup-card .fluentform .ff-btn-submit {
    background-color: #c9b48f !important; /* The beige/tan color */
    color: #4a4a4a !important;
    width: 100% !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    padding: 15px !important;
    border: none !important;
    border-radius: 8px !important;
}
.tk-popup-card .fluentform .ff-btn-submit:hover {
    background-color: #bfa87e !important;
}

/* 8. Style the phone input to match */
.tk-popup-card .fluentform .ff-el-phone {
    padding: 15px !important;
    font-size: 16px !important;
    border-radius: 8px !important;
}
.tk-popup-card .fluentform .iti--show-flags {
    width: 100% !important;
}