/*
Theme Name: MagPlus Theme
Author: Your Name
Description: A custom theme for the MagPlus service.
Version: 1.0
*/

/* --- PASTE ALL CSS FROM YOUR index.html HERE --- */
:root {
    --price-top: #8c8c8c;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    min-height: 100vh;
    background: #fff;
    display: flex;
    flex-direction: column;
}

/* TOP TEXT */
.top-bar {
    text-align: center;
    font-size: 13px;
    padding: 6px 0;
    color: var(--price-top);
}

/* HEADER */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px 0;
}

.menu {
    font-size: 22px;
    cursor: pointer;
}

.lang {
    border: 1px solid #000;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
}

/* LOGO */
.logo {
    text-align: center;
}

.logo img {
    display: block;
    width: 120px;
    margin: 0 auto;
}

/* MAIN CONTENT */
.main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 0 15px;
}

.main h1 {
    font-size: 26px;
    margin: 8px 0 18px;
}

/* BUBBLE */
.bubble {
    background: #cfcfcf;
    padding: 4px 18px;
    width: 100%;
    max-width: 402px;
    min-height: 29.2px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 22px;
    font-size: 14px;
    position: relative;
    animation: shake 3s ease-in-out infinite;
}

.bubble::after {
    content: "";
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 7px 7px 0;
    border-style: solid;
    border-color: #cfcfcf transparent transparent;
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }

    100% {
        transform: translateX(0);
    }
}

.bubble.active {
    background: #006994;
    color: #fff;
}

.bubble.active::after {
    border-color: #006994 transparent transparent;
}

/* INPUT WRAPPER */
.input-wrapper {
    position: relative;
    width: 100%;
    max-width: 402px;
    margin: 14px 0;
}

/* INPUT */
.input-box {
    background: #f1f1f1;
    border-radius: 30px;
    padding: 0 50px;
    height: 48px;
    font-size: 18px;
    width: 100%;
    letter-spacing: 2px;
    border: none;
    outline: none;
    text-align: center;
    font-family: inherit;
}

/* GREEN ARROWS - PROPER INLINE ALIGNMENT */
.input-wrapper::before,
.input-wrapper::after {
    content: "➜";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #2ecc71;
    font-size: 45px;
    font-weight: bold;
    line-height: 1;
    pointer-events: none;
}

.input-wrapper::before {
    left: 0px;
    animation: move-left 0.6s ease-in-out infinite;
}

.input-wrapper::after {
    right: 0px;
    transform: translateY(-50%) rotate(180deg);
    animation: move-right 0.6s ease-in-out infinite;
}

/* LEFT ARROW → moves RIGHT (inward) */
@keyframes move-left {
    0% {
        transform: translateY(-50%) translateX(0);
    }

    40% {
        transform: translateY(-50%) translateX(6px);
    }

    60% {
        transform: translateY(-50%) translateX(6px);
    }

    100% {
        transform: translateY(-50%) translateX(0);
    }
}

/* RIGHT ARROW → moves LEFT (inward) */
@keyframes move-right {
    0% {
        transform: translateY(-50%) rotate(180deg) translateX(0);
    }

    40% {
        transform: translateY(-50%) rotate(180deg) translateX(6px);
    }

    60% {
        transform: translateY(-50%) rotate(180deg) translateX(6px);
    }

    100% {
        transform: translateY(-50%) rotate(180deg) translateX(0);
    }
}


/* BUTTON */
.subscribe {
    width: 100%;
    max-width: 402px;
    height: 60px;
    background: #808080;
    color: #fff;
    border: none;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    font-weight: bold;
    border-radius: 40px;
}

/* NOTES */
.note {
    font-size: 12px;
    margin-top: 10px;
    line-height: 1.4;
    color: var(--price-top);
}

.exit {
    font-size: 15px;
    margin-top: 30px;
    color: #010000;
    opacity: 0.8;
    font-weight: bold;
    cursor: pointer;
}

.error-msg {
    background: #F88484;
    color: #000000;
    width: 100%;
    max-width: 402px;
    padding: 4px 8px;
    text-align: left;
    border-radius: 4px;
    margin: 10px 0;
    display: none;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.25;
}

.success-msg {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 12px;
    border-radius: 10px;
    margin-top: 25px;
    font-size: 14px;
    line-height: 1.5;
    width: 100%;
    max-width: 402px;
    display: none;
    font-weight: bold;
}

.resend-timer {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.5;
    display: none;
}

.subscribe.highlight {
    background: #006994;
    border: 3px solid #28a745;
    animation: zoom-in-out 1.5s infinite ease-in-out;
}

@keyframes zoom-in-out {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* TERMS */
.terms {
    font-size: 12px;
    line-height: 1.4;
    padding: 8px 14px;
    text-align: center;
    width: 100%;
    max-width: 648px;
    height: auto;
    margin: 0 auto;
}

.terms ul {
    display: inline-block;
    padding-left: 20px;
    margin: 6px 0 0;
    list-style-type: disc;
    text-align: left;
}

.terms a {
    color: #000;
    text-decoration: underline;
}

/* MENU OVERLAY */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 9999;
    display: none;
    flex-direction: column;
}

.menu-overlay.open {
    display: flex;
}

.overlay-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 16px 0;
    position: relative;
    height: 60px;
}

.close-menu {
    position: absolute;
    right: 16px;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

.overlay-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 60px;
    gap: 25px;
}

.overlay-options a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
}

.error-msg {
    display: none;
}
#SignupForm.valid .bubble,
#the_form_phone_number.valid .bubble,
#verification_form.valid .bubble
{
    background-color: #006994;
    color: #fff;
}
#SignupForm.valid .bubble::after, 
#the_form_phone_number.valid .bubble::after,
#verification_form.valid .bubble::after
{
    border-color: #006994 transparent transparent;
}
#SignupForm.valid  #next-btn, 
#the_form_phone_number.valid  #the_phone_btn,
#verification_form.valid  #the_verification_btn
{
    background: #006994;
    animation: highlight_animation_scale 2s infinite;
}


@keyframes highlight_animation_scale {
    0% {
        transform: scale(1);
        box-shadow: 0 0 3px #FFF;
    }

    50% {
        transform: scale(1.03);
        box-shadow: 0 0 20px #3a0;
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 3px #FFF;
    }
}