:root {
    --primary: #1e3a8a; /* Deep Navy */
    --primary-light: #3b82f6;
    --secondary: #d97706; /* Golden/Amber */
    --secondary-hover: #b45309;
    --bg-color: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --card-bg: #ffffff;
    --error: #ef4444;
    --success: #10b981;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    line-height: 1.2;
}

.hidden {
    display: none !important;
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    padding: 80px 20px;
    background-image: url('https://offertabs.s3.amazonaws.com/offer/9xdzir/site/media/6aad4502439320.10358707.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: #ffffff;
}

.hero-content .badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    color: var(--secondary);
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #ffffff;
    margin-bottom: 24px;
    font-weight: 800;
}

.hero-content p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Main Content Layout --- */
.main-content {
    flex: 1;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

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

.section-header.text-left {
    text-align: left;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

/* --- Candidates Grid --- */
.candidates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.candidate-card {
    display: block;
    cursor: pointer;
}

.candidate-card input[type="radio"] {
    display: none;
}

.card-content {
    background: var(--card-bg);
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    height: 100%;
}

.card-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.image-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--bg-color);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.check-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: bold;
    border: 3px solid white;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.candidate-card input[type="radio"]:checked + .card-content {
    border-color: var(--secondary);
    background: #fffbeb;
    box-shadow: 0 10px 25px rgba(217, 119, 6, 0.15);
    transform: translateY(-5px);
}

.candidate-card input[type="radio"]:checked + .card-content img {
    border-color: var(--secondary);
}

.candidate-card input[type="radio"]:checked + .card-content .check-icon {
    opacity: 1;
    transform: scale(1);
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.slogan {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Form Card --- */
.form-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin: 0 auto;
    max-width: 700px;
}

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

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

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="number"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background: #f8fafc;
}

input:focus {
    outline: none;
    border-color: var(--primary-light);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* --- Vote Calculator --- */
.vote-calculator {
    background: #f1f5f9;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.vote-calculator .input-group {
    margin-bottom: 0;
    flex: 1;
    min-width: 200px;
}

.number-input-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    overflow: hidden;
}

.number-input-wrapper input {
    border: none;
    border-radius: 0;
    text-align: center;
    font-weight: 600;
    font-size: 1.125rem;
    padding: 14px 0;
    background: transparent;
}

.number-input-wrapper input:focus {
    box-shadow: none;
}

.qty-btn {
    background: transparent;
    border: none;
    padding: 0 20px;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    transition: background 0.2s;
    height: 100%;
    display: flex;
    align-items: center;
}

.qty-btn:hover {
    background: #f1f5f9;
}

/* Hide native number spin buttons */
input[type="number"]::-webkit-inner-spin-button, 
input[type="number"]::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}
input[type="number"] { -moz-appearance: textfield; }

.total-display {
    text-align: right;
    display: flex;
    flex-direction: column;
}

.total-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.total-value {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1;
}

.disclaimer {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 16px;
}

/* --- Buttons --- */
.btn-primary {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--secondary) 0%, #f59e0b 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.35);
}

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

.btn-secondary {
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: var(--primary-light);
}

/* --- Messages / Banners --- */
.status-banner, .error-banner {
    width: 100%;
    max-width: 900px;
    padding: 16px 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    text-align: center;
    font-weight: 500;
}

.status-banner {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.error-banner {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* --- Success Section --- */
.success-icon {
    width: 80px;
    height: 80px;
    background: #dcfce7;
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0 auto 24px;
}

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

.share-panel {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
}

.share-input-group {
    display: flex;
    gap: 12px;
    max-width: 400px;
    margin: 20px auto 0;
}

.share-input-group input {
    flex: 1;
    background: #f1f5f9;
}

/* --- Powered By Slot --- */
#wbx-powered-by-slot {
    margin: 40px auto 0;
    width: 100%;
    display: flex;
    justify-content: center;
}
