:root {
    --primary-color: #00f2a2;
    --secondary-color: #00c7e0;
    --background-dark: #0a101a;
    --text-light: #e0f7ff;
    --text-dark: #050a10;
    --card-bg: rgba(20, 35, 55, 0.5);
    --border-color: rgba(255, 255, 255, 0.2);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--text-light);
    background-color: var(--background-dark);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: linear-gradient(160deg, rgba(10, 16, 26, 0.8) 0%, rgba(10, 16, 26, 1) 100%), url('https://offertabs.s3.amazonaws.com/offer/c7rrbo/69bec3405930e7.40690428.jpg');
    background-size: cover;
    background-position: center;
}

.bubbles {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.bubbles span {
    position: absolute;
    bottom: -100px;
    width: 30px;
    height: 30px;
    background: rgba(0, 242, 162, 0.1);
    border-radius: 50%;
    animation: bubble-rise 15s infinite ease-in;
}

.bubbles span:nth-child(2) { left: 10%; animation-duration: 8s; width: 20px; height: 20px; }
.bubbles span:nth-child(3) { left: 20%; animation-duration: 12s; animation-delay: 2s; width: 40px; height: 40px; }
.bubbles span:nth-child(4) { left: 35%; animation-duration: 18s; animation-delay: 1s; width: 15px; height: 15px; background: rgba(0, 199, 224, 0.15);}
.bubbles span:nth-child(5) { left: 50%; animation-duration: 7s; }
.bubbles span:nth-child(6) { left: 65%; animation-duration: 11s; animation-delay: 3s; width: 25px; height: 25px; }
.bubbles span:nth-child(7) { left: 80%; animation-duration: 16s; width: 35px; height: 35px; background: rgba(0, 199, 224, 0.2);}
.bubbles span:nth-child(8) { left: 90%; animation-duration: 9s; animation-delay: 1s; }
.bubbles span:nth-child(9) { left: 5%; animation-duration: 13s; animation-delay: 4s; width: 22px; height: 22px; }
.bubbles span:nth-child(10) { left: 85%; animation-duration: 19s; animation-delay: 2s; width: 18px; height: 18px; }

@keyframes bubble-rise {
    0% {
        transform: translateY(0) scale(1) translateX(0);
        opacity: 1;
    }
    99% {
        transform: translateY(-120vh) scale(1.5) translateX(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(-120vh) scale(1.5) translateX(20px);
        opacity: 0;
        bottom: -100px;
    }
}

.container {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
}

.content-wrapper {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    animation: fade-in 0.8s ease-out;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.intro {
    text-align: center;
    margin-bottom: 2rem;
}

.title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(2.5rem, 8vw, 4rem);
    line-height: 1.1;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.1rem;
    max-width: 450px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.8);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

input[type="email"] {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    font-family: var(--font-body);
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-light);
    transition: all 0.3s ease;
}

input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 242, 162, 0.3);
}

.choices-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.choice-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-color);
    color: var(--text-light);
    padding: 1rem;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.choice-btn:hover {
    background: rgba(0, 242, 162, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.choice-btn.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-dark);
    box-shadow: 0 0 20px rgba(0, 242, 162, 0.5);
    transform: translateY(-3px);
}

button[type="submit"] {
    display: block;
    width: 100%;
    padding: 1rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button[type="submit"]:hover:not(:disabled) {
    transform: scale(1.02);
    box-shadow: 0 5px 25px rgba(0, 242, 162, 0.4);
}

button[type="submit"]:disabled {
    background: grey;
    cursor: not-allowed;
    opacity: 0.5;
}

.hidden {
    display: none !important;
}

.error {
    background-color: rgba(255, 82, 82, 0.1);
    border: 1px solid rgba(255, 82, 82, 0.5);
    color: #ff8a8a;
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 1rem;
}

#results-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.result-item {
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 1rem;
    overflow: hidden;
}

.result-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.result-bar-container {
    width: 100%;
    height: 12px;
    background: rgba(0,0,0,0.3);
    border-radius: 6px;
}

.result-bar {
    height: 100%;
    width: 0;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 1s ease-out;
}

.share-panel {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.share-panel h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.share-controls {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.share-controls input {
    flex-grow: 1;
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
}

.share-controls button {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: var(--text-dark);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s ease;
}
.share-controls button:hover {
    background: var(--secondary-color);
}

#status-screen h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    text-align: center;
    color: var(--primary-color);
}
#status-screen p {
    text-align: center;
    font-size: 1.1rem;
}

#wbx-powered-by-slot {
    margin-top: 2rem;
    text-align: center;
    width: 100%;
}


@media (min-width: 576px) {
    .choices-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .content-wrapper {
        padding: 1.5rem;
    }
    .title {
        font-size: 2rem;
    }
    .subtitle {
        font-size: 1rem;
    }
}
