:root {
    /* Timberland Bank Theme Colors */
    --color-primary: #174A27;    /* Deep Forest Green */
    --color-primary-light: #286C3D;
    --color-accent: #D4AF37;     /* Gold */
    --color-accent-hover: #E5C354;
    --color-bg: #F5F7F5;         /* Soft Sand/Green tint */
    --color-surface: #FFFFFF;
    --color-text: #2A332C;
    --color-text-muted: #64746A;
    --color-error: #D32F2F;
    --color-border: #E0E6E2;
    
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    
    --shadow-sm: 0 2px 4px rgba(23, 74, 39, 0.05);
    --shadow-md: 0 8px 24px rgba(23, 74, 39, 0.08);
    --shadow-lg: 0 16px 32px rgba(23, 74, 39, 0.12);
}

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

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

/* Typography */
h1, h2, h3, .brand-badge {
    font-family: 'Merriweather', serif;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #FFF;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

p {
    font-size: 1.05rem;
    color: var(--color-text-muted);
}

.req {
    color: var(--color-error);
}

/* Utility */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.content-container {
    max-width: 760px;
    width: 100%;
    margin: -80px auto 40px auto; /* Overlaps hero */
    padding: 0 20px;
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Hero Section */
.hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 20px 140px 20px;
    text-align: center;
    position: relative;
}

.hero-inner {
    max-width: 800px;
    margin: 0 auto;
}

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

.brand-badge {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-primary);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Cards */
.card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    margin-bottom: 30px;
}

.card-header {
    text-align: center;
    margin-bottom: 32px;
}

/* Social Banner */
.social-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #1877F2 0%, #bc1888 100%);
    color: white;
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.social-banner .social-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.25);
    padding: 12px 16px;
    border-radius: 999px;
    flex-shrink: 0;
}

.social-banner .social-text p {
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    font-size: 0.95rem;
}

.social-banner .social-title {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 4px;
    font-weight: 700;
}

.social-banner .social-text p strong {
    color: #FFF;
}

.form-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 32px 0;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--color-border);
}

.form-divider::before {
    margin-right: 16px;
}

.form-divider::after {
    margin-left: 16px;
}

/* Forms */
.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 24px;
}

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

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-text);
    background: #FFF;
    transition: all 0.2s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(23, 74, 39, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: #A0ABA4;
}

/* File Upload Custom Styling */
.file-upload {
    position: relative;
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    transition: all 0.2s ease;
    overflow: hidden;
}

.file-upload.drag-over {
    border-color: var(--color-primary);
    background: rgba(23, 74, 39, 0.05);
}

.file-upload input[type="file"] {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 5;
}

.upload-state {
    padding: 40px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.upload-state svg {
    color: var(--color-primary-light);
    margin-bottom: 8px;
}

.upload-title {
    font-weight: 600;
    color: var(--color-text);
}

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

.preview-state {
    position: relative;
    width: 100%;
    background: #000;
}

.preview-state img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    display: block;
}

.remove-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.6);
    color: #FFF;
    border: none;
    border-radius: 50%;
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}

.remove-btn:hover {
    background: var(--color-error);
}

/* Buttons */
.btn-primary {
    width: 100%;
    background: var(--color-primary);
    color: #FFF;
    border: none;
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-primary:hover {
    background: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(23, 74, 39, 0.2);
}

.btn-primary:disabled {
    background: #A0ABA4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #FFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.error-msg {
    background: #FEEBEE;
    color: var(--color-error);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-size: 0.95rem;
    border-left: 4px solid var(--color-error);
}

/* Thank You Section */
#thank-you-section {
    text-align: center;
}

.success-illustration {
    background: rgba(43, 138, 62, 0.1);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
}

/* Share Panel */
.share-box {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}

.share-box h3 {
    margin-bottom: 12px;
    color: var(--color-primary);
}

.share-input-group {
    display: flex;
    gap: 8px;
    margin: 20px 0;
}

.share-input-group input {
    background: var(--color-bg);
}

.btn-secondary {
    background: var(--color-accent);
    color: var(--color-primary);
    border: none;
    padding: 0 20px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.2s;
}

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

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

.btn-social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    border: none;
    color: #FFF;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

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

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

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

@media (min-width: 600px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 1;
    background: #E0E6E2;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.load-more-container {
    text-align: center;
    margin-top: 24px;
}

/* Learn More Section */
.learn-more-section {
    text-align: center;
    margin: 10px 0 30px 0;
}

.btn-outline {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--color-primary);
    color: #FFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(23, 74, 39, 0.2);
}

/* Status Screens */
.fullscreen-msg {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #000 100%);
}

.status-card {
    background: var(--color-surface);
    padding: 50px 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 30px;
}

.time-block {
    display: flex;
    flex-direction: column;
    background: var(--color-bg);
    padding: 12px;
    border-radius: var(--radius-sm);
    min-width: 70px;
}

.time-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    font-family: 'Merriweather', serif;
}

.time-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--color-text-muted);
    font-weight: 600;
    margin-top: 4px;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    z-index: 1001;
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
}

.close-btn:hover {
    color: var(--color-error);
}

.rules-scroll-area {
    overflow-y: auto;
    padding-right: 15px;
    margin-top: 20px;
}

.rules-scroll-area::-webkit-scrollbar {
    width: 6px;
}

.rules-scroll-area::-webkit-scrollbar-track {
    background: var(--color-bg);
    border-radius: 4px;
}

.rules-scroll-area::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}

.rules-scroll-area::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-muted);
}

.rules-scroll-area h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: var(--color-primary);
    margin: 20px 0 8px 0;
}

.rules-scroll-area h3:first-child {
    margin-top: 0;
}

.rules-scroll-area p {
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.rules-group {
    margin-bottom: 24px;
}

.rules-link {
    text-align: center;
    font-size: 0.85rem;
    margin-bottom: 0;
}

.rules-link a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
}

.rules-link a:hover {
    color: var(--color-primary-light);
}

/* Responsive */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .card {
        padding: 30px 20px;
    }
    
    .hero {
        padding: 80px 20px 120px 20px;
    }
    
    .countdown-timer {
        gap: 8px;
    }
    .time-block {
        min-width: 60px;
        padding: 8px;
    }
    .social-banner {
        flex-direction: column;
        text-align: center;
    }
}

#wbx-powered-by-slot {
    margin-top: auto;
    padding: 40px 0;
    display: flex;
    justify-content: center;
}