:root {
    --primary: #7cb342;
    --primary-dark: #558b2f;
    --secondary: #fbc02d;
    --secondary-light: #fff59d;
    --bg-color: #f1f8e9;
    --text-main: #1b5e20;
    --text-muted: #4caf50;
    --card-bg: rgba(255, 255, 255, 0.95);
    --error: #e53935;
    
    --font-heading: 'Balsamiq Sans', cursive;
    --font-body: 'Nunito', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hidden {
    display: none !important;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

.text-center {
    text-align: center;
}

/* Layout */
.site-wrapper {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-shadow: 0 0 40px rgba(0,0,0,0.05);
    background-color: #fff;
    overflow: hidden;
}

/* Hero Section */
.hero-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: #fff;
}

.hero-full-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Main Content */
.main-content {
    flex-grow: 1;
    padding: 40px 20px;
    background: linear-gradient(180deg, var(--bg-color) 0%, #fff 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-container {
    width: 100%;
    max-width: 800px;
    background: var(--card-bg);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(124, 179, 66, 0.1);
    margin-bottom: 30px;
    border: 1px solid rgba(124, 179, 66, 0.2);
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.section-header p {
    color: #555;
    font-size: 1.1rem;
}

/* Status Banner */
.status-banner {
    background: var(--secondary-light);
    color: #f57f17;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 30px;
    width: 100%;
    max-width: 800px;
    border: 2px solid var(--secondary);
}

/* Poll Grid */
.poll-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.choice-card {
    background: #fff;
    border: 3px solid #e8f5e9;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.choice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(124, 179, 66, 0.15);
    border-color: #c5e1a5;
}

.choice-card.is-selected {
    border-color: var(--secondary);
    background-color: var(--secondary-light);
    box-shadow: 0 8px 25px rgba(251, 192, 45, 0.3);
    transform: scale(1.02);
}

.choice-card.is-selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--secondary);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 2;
}

.choice-img-wrap {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f1f8e9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.choice-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.choice-card:hover .choice-img-wrap img {
    transform: scale(1.05);
}

.choice-img-placeholder {
    font-size: 3rem;
}

.choice-title {
    padding: 15px 10px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Form Styles */
.form-wrapper {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px dashed #c5e1a5;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

@media (min-width: 600px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-dark);
}

input[type="text"],
input[type="email"] {
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s;
    background-color: #fafafa;
}

input[type="text"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color: var(--primary);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(124, 179, 66, 0.1);
}

/* Submit Button */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 1.2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    border-radius: 999px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
    box-shadow: 0 6px 15px rgba(85, 139, 47, 0.3);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(85, 139, 47, 0.4);
    background: linear-gradient(135deg, #8bc34a 0%, var(--primary) 100%);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    position: absolute;
    right: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-msg {
    color: var(--error);
    background: #ffebee;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
    border: 1px solid #ffcdd2;
}

/* Results Section */
.results-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.result-item {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 15px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    z-index: 1;
}

.result-item.is-pick {
    background: #fff;
    border: 2px solid var(--secondary);
    box-shadow: 0 4px 10px rgba(251, 192, 45, 0.15);
}

.result-bar-bg {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #e0e0e0;
    z-index: -1;
    width: 0;
    transition: width 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.result-item.is-pick .result-bar-bg {
    background: var(--secondary-light);
}

.result-content {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.result-title {
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-title img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pick-badge {
    background: var(--secondary);
    color: #3e2723;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 999px;
    font-weight: 800;
    text-transform: uppercase;
}

.result-stats {
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--primary-dark);
}

/* Bonus / Share Section */
.share-container {
    background: linear-gradient(135deg, #fff 0%, var(--bg-color) 100%);
    border-color: var(--primary);
}

.share-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.bonus-actions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 10px;
}

@media (min-width: 600px) {
    .bonus-actions-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.bonus-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.bonus-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-color: #c5e1a5;
}

.bonus-card h3 {
    margin-bottom: 8px;
    color: var(--primary-dark);
    font-size: 1.3rem;
}

.bonus-card p {
    font-size: 0.95rem;
    color: #555;
    flex-grow: 1;
    margin-bottom: 15px;
}

.ig-link {
    color: #E1306C;
    text-decoration: underline;
    font-weight: bold;
}

.ig-link:hover {
    color: #C13584;
}

.share-controls {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.share-controls input {
    flex-grow: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    color: #555;
    background: #fff;
}

.btn-secondary {
    background: #e0e0e0;
    color: #333;
    border: none;
    padding: 0 20px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: #bdbdbd;
}

.social-shares {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.btn-social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 999px;
    color: white;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s;
}

.btn-social:hover {
    transform: translateY(-2px);
}

.btn-social.fb { background: #1877f2; }
.btn-social.tw { background: #000000; }

/* Rules Footer */
.site-footer {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    text-align: center;
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    font-family: var(--font-body);
    transition: color 0.3s;
}

.btn-text:hover {
    color: var(--primary-dark);
}

.rules-container {
    margin-top: 20px;
    padding: 25px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    text-align: left;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
    max-height: 400px;
    overflow-y: auto;
}

.rules-container p {
    margin-bottom: 12px;
}

.rules-container strong {
    color: #333;
}

/* Powered By Placeholder */
#wbx-powered-by-slot {
    margin: 30px auto;
    text-align: center;
}

@media (max-width: 600px) {
    .card-container { padding: 25px 15px; border-radius: 16px; }
    .poll-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
    .share-controls { flex-direction: column; }
    .btn-secondary { padding: 12px; }
}