:root {
    --primary: #04326D;
    --primary-light: #064b9f;
    --accent: #3BAF89;
    --accent-hover: #2d8f6f;
    --bg-color: #f7f9fc;
    --surface: #ffffff;
    --text-main: #2d3748;
    --text-muted: #718096;
    --border: #e2e8f0;
    --error: #e53e3e;
    --success: #3BAF89;
    
    --font-heading: 'Libre Baskerville', serif;
    --font-body: 'Montserrat', sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.01);
    --shadow-lg: 0 20px 40px -10px rgba(0,0,0,0.1);
}

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

.text-accent {
    color: var(--accent);
}

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

/* Hero Section */
.hero {
    position: relative;
    padding: 80px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: var(--primary);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://offertabs.s3.amazonaws.com/offer/byuf37/site/media/6a695a69a2ec10.20294414.png');
    background-size: cover;
    background-position: center;
    opacity: 0.8;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(4, 50, 109, 0.4), rgba(4, 50, 109, 0.85));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.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;
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: #fff;
    margin-bottom: 30px;
}

.hero-title span {
    color: var(--accent);
    font-style: italic;
}

.hero-instructions {
    max-width: 600px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    text-align: left;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    padding: 24px 32px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-subtitle {
    font-weight: 600;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 16px;
    text-align: center;
    font-family: var(--font-body);
}

.hero-text {
    line-height: 1.6;
}

/* Main Container */
.container {
    max-width: 1000px;
    margin: -40px auto 40px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
    flex-grow: 1;
    width: 100%;
}

/* Cards & Sections */
.card {
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 40px;
    margin-bottom: 60px;
}

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

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

.section-header p {
    color: var(--text-muted);
}

/* Forms */
form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

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

label {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--primary);
}

input[type="text"],
input[type="email"] {
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #f8fafc;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(4, 50, 109, 0.1);
}

/* Checkbox */
.checkbox-group {
    margin-top: 10px;
    margin-bottom: 10px;
    flex-direction: row;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-weight: 400;
    color: var(--text-main);
}

.checkbox-label input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-text {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* File Upload */
.hidden-input {
    opacity: 0;
    position: absolute;
    z-index: -1;
}

.file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
}

.file-label:hover {
    border-color: var(--primary-light);
    background: #f1f5f9;
}

.file-label.has-file {
    border-color: var(--success);
    border-style: solid;
    background: #f0fdf4;
}

.file-icon {
    color: var(--text-muted);
    margin-bottom: 12px;
}

.file-label.has-file .file-icon {
    color: var(--success);
}

#file-name {
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 4px;
    text-align: center;
    word-break: break-all;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    position: relative;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 6px rgba(59, 175, 137, 0.2);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(59, 175, 137, 0.3);
}

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

.btn-secondary {
    background: #edf2f7;
    color: var(--primary);
}

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

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Spinner */
.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;
}

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

.submitting .btn-text { opacity: 0; }
.submitting .spinner { display: block !important; }

/* Messages */
.error-message {
    padding: 12px 16px;
    background: #fff5f5;
    border-left: 4px solid var(--error);
    color: #c53030;
    border-radius: 4px;
    font-size: 0.95rem;
}

.success-message {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    color: var(--success);
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.success-message h2 {
    margin-bottom: 12px;
}

.success-message p {
    color: var(--text-muted);
    max-width: 400px;
    margin: 0 auto;
}

/* Gallery */
.gallery-section {
    padding: 20px 0 60px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.gallery-item {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    aspect-ratio: 4/5;
}

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

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 20px 20px;
    background: linear-gradient(to top, rgba(4, 50, 109, 0.9) 0%, rgba(4, 50, 109, 0) 100%);
    color: #fff;
    transform: translateY(10px);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

.gallery-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--font-body);
}

.gallery-caption {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.gallery-empty {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px dashed var(--border);
    color: var(--text-muted);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 50, 109, 0.95);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-content {
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    background: #000;
}

.lightbox-info {
    padding: 20px 30px;
    background: #fff;
}

.lightbox-info h3 {
    margin-bottom: 4px;
    font-size: 1.25rem;
}

.lightbox-info p {
    color: var(--text-muted);
}

/* Share Panel */
.share-panel {
    margin-top: 30px;
    padding: 20px;
    background: #f8fafc;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.share-input-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.share-input-group input {
    flex: 1;
    min-width: 0;
}

#wbx-powered-by-slot {
    margin-top: auto;
    padding: 40px 0 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 60px 20px;
    }
    
    .card {
        padding: 24px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    
    .hero-instructions {
        padding: 20px;
        font-size: 1rem;
    }
}