:root {
    --primary: #4A453E;
    --primary-hover: #2C2925;
    --bg-color: #F9F8F6;
    --surface: #FFFFFF;
    --text-main: #2C2925;
    --text-muted: #7E786E;
    --border-color: #E8E3D9;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    
    --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.15);
}

* {
    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;
}

.hidden {
    display: none !important;
}

/* Layout */
.split-layout {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

@media (min-width: 900px) {
    .split-layout {
        flex-direction: row;
    }
}

/* Left Pane */
.image-pane {
    position: relative;
    width: 100%;
    height: 40vh;
    background-image: url('https://offertabs.s3.amazonaws.com/offer/hrkpsy/site/media/6a81ce31d56a16.72948448.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (min-width: 900px) {
    .image-pane {
        width: 45%;
        height: 100vh;
        position: sticky;
        top: 0;
    }
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    color: white;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.brand-subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.9;
}

/* Right Pane */
.content-pane {
    width: 100%;
    padding: 2rem 1.5rem;
    display: flex;
    justify-content: center;
    background-color: var(--bg-color);
}

@media (min-width: 900px) {
    .content-pane {
        width: 55%;
        padding: 4rem;
        align-items: center;
    }
}

.content-inner {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Header */
header {
    text-align: center;
}

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.main-title {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.main-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
}

/* Status Messages */
.message-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.message-card h2 {
    font-family: var(--font-heading);
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Interaction Area */
#interaction-area {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Spinning Gifts Section */
.gifts-section {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

.gifts-wrapper {
    position: relative;
    width: 260px;
    height: 260px;
    margin: 0 auto;
}

.gifts-wrapper::before {
    content: '';
    position: absolute;
    inset: 40px;
    border: 2px dashed var(--border-color);
    border-radius: 50%;
    z-index: 1;
}

.gifts-center-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: var(--surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    z-index: 5;
    border: 1px solid var(--border-color);
}

.gifts-ring {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 50%;
    z-index: 10;
    transform: rotate(0deg);
}

.gift-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 56px;
    height: 56px;
    margin: -28px 0 0 -28px; /* Center perfectly */
    background: var(--surface);
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 2px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.gift-item svg {
    width: 28px;
    height: 28px;
}

/* Form Styles */
.form-section {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--bg-color);
    color: var(--text-main);
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 69, 62, 0.1);
}

.btn-primary {
    width: 100%;
    padding: 1rem;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: inherit;
    color: white;
    background-color: var(--primary);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

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

.btn-secondary {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    background-color: transparent;
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

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

/* Consent Checkbox Styles */
.consent-group {
    margin-top: 1rem;
    margin-bottom: 0;
}

.checkbox-label {
    display: flex !important;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8rem !important;
    font-weight: 400 !important;
    color: var(--text-muted) !important;
    cursor: pointer;
    text-transform: none;
    letter-spacing: normal;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 0.15rem;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-text {
    line-height: 1.4;
}

/* Result Section */
.result-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.result-card {
    background: var(--surface);
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.result-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.result-card h2 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.result-message {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.prize-box {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px dashed #C5BFA5;
    margin-bottom: 1.5rem;
}

.prize-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.prize-name {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

.prize-code-box {
    display: inline-block;
    background: var(--surface);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.code-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-right: 0.5rem;
}

.prize-code {
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}

.prize-expiration {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Share Panel */
.share-panel {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    text-align: center;
}

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

.share-panel p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.share-input-group {
    display: flex;
    gap: 0.5rem;
}

.share-input-group input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

#wbx-powered-by-slot {
    margin-top: auto;
    padding-top: 2rem;
    display: flex;
    justify-content: center;
}
