:root {
    --primary: #004C97; /* PBS Blue */
    --primary-light: #2B6EB3;
    --primary-dark: #002B5E;
    --accent: #FFB81C; /* Gold */
    --accent-hover: #FFC94D;
    --text-main: #FFFFFF;
    --text-body: #E5E7EB;
    --bg-overlay: rgba(10, 25, 47, 0.7);
    --panel-bg: rgba(255, 255, 255, 0.1);
    --panel-border: rgba(255, 255, 255, 0.2);
    --error: #EF4444;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

.hidden {
    display: none !important;
}

/* Background Setup */
.page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.page-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(8px);
    z-index: -1;
}

/* Layout */
.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.header {
    text-align: center;
    margin-bottom: 3rem;
}

.campaign-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #FFFFFF;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.campaign-subtitle {
    font-size: 1.125rem;
    color: var(--text-body);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Content Grid */
.content-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 800px) {
    .content-layout {
        grid-template-columns: 1fr 1fr;
    }
}

/* Wheel Styles */
.wheel-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.wheel-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1/1;
}

.wheel-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%) rotate(180deg);
    width: 40px;
    height: 40px;
    z-index: 10;
    filter: drop-shadow(0 -4px 6px rgba(0,0,0,0.3));
}

#wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 6px solid #808080;
    background: #fff;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.wheel-center-graphic {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 25%;
    height: 25%;
    z-index: 5;
    pointer-events: none;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    background-color: transparent;
}

.wheel-center-graphic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Panels */
.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.glass-panel h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.glass-panel p {
    color: var(--text-body);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
}

.form-group input {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(255, 184, 28, 0.1);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Buttons */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-family: inherit;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.primary-btn {
    width: 100%;
    padding: 1.25rem;
    font-size: 1.125rem;
    background: var(--accent);
    color: var(--primary-dark);
    margin-top: 1rem;
}

.primary-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 184, 28, 0.2);
}

.small-btn {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    background: var(--primary);
    color: #fff;
}

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

.secondary-btn {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}

.secondary-btn:hover {
    background: rgba(255,255,255,0.2);
}

/* Loader */
.btn-loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,0.1);
    border-top-color: var(--primary-dark);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Error Alert */
.error-alert {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error);
    color: #FFB3B3;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

/* Results */
.result-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.prize-title {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 2rem;
    text-transform: capitalize;
}

.retry-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--accent);
}

.code-box {
    background: rgba(0,0,0,0.2);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.code-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.code-display span {
    flex: 1;
    font-family: monospace;
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--accent);
    background: rgba(255,255,255,0.05);
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
}

.qr-box {
    text-align: center;
    margin-top: 2rem;
}

.qr-box img {
    max-width: 150px;
    border-radius: 12px;
    border: 4px solid #fff;
    margin: 1rem auto;
    display: block;
}

/* Share Section */
.share-section hr {
    border: none;
    border-top: 1px solid var(--panel-border);
    margin: 2.5rem 0 1.5rem;
}

.share-section h3 {
    font-size: 1.25rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.share-box {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.share-box input {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--panel-border);
    background: rgba(0,0,0,0.2);
    color: #fff;
    font-size: 0.875rem;
}

.social-share {
    display: flex;
    gap: 0.75rem;
}

.social-btn {
    flex: 1;
    text-align: center;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.3s;
}

.social-btn:hover {
    opacity: 0.85;
}

.fb-btn { background: #1877F2; }
.tw-btn { background: #000000; border: 1px solid rgba(255,255,255,0.2); }

/* Animation Utils */
.pulsing-text {
    animation: pulse 1.5s ease-in-out infinite alternate;
}

@keyframes pulse {
    from { opacity: 0.6; }
    to { opacity: 1; }
}

@keyframes tick-bounce {
    0% { transform: translateX(-50%) rotate(180deg); }
    30% { transform: translateX(-50%) rotate(180deg) translateY(6px) rotate(15deg); }
    100% { transform: translateX(-50%) rotate(180deg); }
}

.wheel-pointer.tick {
    animation: tick-bounce 0.15s ease;
}

/* Footer & Disclaimer */
.site-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--panel-border);
    text-align: center;
}

.disclaimer-text {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.disclaimer-text a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.disclaimer-text a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Footer / Powered By */
#wbx-powered-by-slot {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .campaign-title { font-size: 2.5rem; }
    .glass-panel { padding: 1.5rem; }
    .social-share { flex-direction: column; }
}
