:root {
    --color-yes: #2563eb;
    --color-no: #f97316;
    --color-text: #1f2937;
    --color-text-light: #ffffff;
    --color-background: #ffffff;
    --color-border: #d1d5db;
    --font-heading: 'Archivo Black', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html, body {
    height: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    background-image: url('https://offertabs.s3.amazonaws.com/offer/2o5fts/site/media/69f13648d98529.46109017.jpg');
    background-size: cover;
    background-position: center;
}

.hidden {
    display: none !important;
}

.container {
    width: 100%;
    max-width: 900px;
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 80vh;
}

.page-header {
    margin-bottom: 2rem;
}

.page-header p {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6b7280;
}

#main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.poll-section h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 3rem;
    max-width: 14ch;
    margin-left: auto;
    margin-right: auto;
}

.poll-choices {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.choice-button {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    color: var(--color-text-light);
    border: none;
    padding: 3rem 1rem;
    cursor: pointer;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    border-radius: 12px;
}

.choice-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.choice-button:active {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.choice-button[data-choice-index="0"] {
    background-color: var(--color-yes);
}

.choice-button[data-choice-index="1"] {
    background-color: var(--color-no);
}

.choice-count {
    font-size: 1.25rem;
    font-family: var(--font-body);
    font-weight: 600;
    margin-top: 1rem;
    opacity: 0.8;
}


/* Results Styling */
.results-section {
    margin-top: 3rem;
}

.percentage-bar {
    display: flex;
    width: 100%;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
    background-color: #e5e7eb;
}

.percentage-segment {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-light);
    transition: flex-basis 0.5s ease-in-out;
}

.percentage-segment.yes {
    background-color: var(--color-yes);
}
.percentage-segment.no {
    background-color: var(--color-no);
}

/* Email Capture */
.email-capture {
    margin-top: 2rem;
}

.email-prompt {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: #4b5563;
}

#email-form {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

#email-input {
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    min-width: 280px;
}
#email-input:focus {
    outline: none;
    border-color: var(--color-yes);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

#email-form button {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    background-color: var(--color-text);
    color: var(--color-text-light);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#email-form button:hover {
    background-color: #374151;
}

#email-success-message {
    font-weight: 600;
    color: var(--color-yes);
    margin-top: 1rem;
}

/* Share Panel */
.share-panel {
    margin-top: 3rem;
}
.share-panel h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.share-btn {
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-text);
    transition: all 0.2s ease;
    background: none;
    font-family: var(--font-body);
    font-size: 0.875rem;
    cursor: pointer;
}
.share-btn:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

.copy-success {
    font-size: 0.875rem;
    color: var(--color-yes);
    margin-top: 0.5rem;
}

/* Status Message */
.status-section {
    padding: 2rem;
}

#status-message {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #4b5563;
}


/* Powered by */
#wbx-powered-by-slot {
    margin-top: auto;
    padding-top: 2rem;
}

/* Responsive */
@media (min-width: 768px) {
    .poll-choices {
        grid-template-columns: 1fr 1fr;
    }
}
