/* CSS Reset & Variables */
:root {
    --primary-color: #002b5c;     /* Wellman Navy */
    --accent-color: #ff7900;      /* Wellman Vibrant Orange */
    --accent-hover: #e66d00;
    --text-light: #ffffff;
    --text-dark: #1a202c;
    --text-muted: #cbd5e1;
    --bg-overlay: rgba(0, 43, 92, 0.85);
    --card-bg: rgba(255, 255, 255, 0.95);
    --border-radius: 16px;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #051121;
    background-image: url('https://offertabs.s3.amazonaws.com/offer/ramett/site/media/6a0c666f6a6848.71571069.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
}

.hidden {
    display: none !important;
}

/* Layout */
.page-wrapper {
    min-height: 100vh;
    background: var(--bg-overlay);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

.brand-name {
    color: var(--text-light);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.nav-tabs {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    padding: 0.75rem 2rem;
    border-radius: 99px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.tab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.2);
}

.main-content {
    flex: 1;
    width: 100%;
}

#view-home {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

#view-gallery {
    width: 100%;
}

/* Hero Section */
.hero-section {
    flex: 1;
    min-width: 300px;
    color: var(--text-light);
}

.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.hero-section h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.text-highlight {
    color: var(--accent-color);
    background: linear-gradient(135deg, #ff7900, #ffb347);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.feature-item svg {
    color: var(--accent-color);
    flex-shrink: 0;
}

/* Form Section */
.form-section {
    flex: 1;
    min-width: 340px;
    max-width: 500px;
    width: 100%;
}

.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.card p {
    color: #64748b;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

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

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
}

input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 121, 0, 0.1);
}

.file-group {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.file-group:hover, .file-group:focus-within {
    border-color: var(--accent-color);
    background: #fffaf5;
}

input[type="file"] {
    width: 100%;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.file-hint {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 0.5rem;
}

.error-message {
    background: #fef2f2;
    color: #ef4444;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    border: 1px solid #fca5a5;
}

.status-message {
    background: var(--card-bg);
    color: var(--primary-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: bold;
    font-size: 1.25rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Gallery Styles */
.gallery-container {
    width: 100%;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.gallery-container h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-align: center;
}

.gallery-container p {
    text-align: center;
    color: #64748b;
    margin-bottom: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.gallery-item {
    background: #f8fafc;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

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

.gallery-item-info {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
}

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

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 1rem;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 121, 0, 0.3);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 121, 0, 0.4);
}

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

.btn-secondary {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: #001f42;
}

/* Success & Share Panel */
.text-center {
    text-align: center;
}

.success-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

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

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

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

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

/* Footer & Attribution */
.footer {
    margin-top: 4rem;
    padding-bottom: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: #fff;
}

.divider {
    margin: 0 0.5rem;
}

#wbx-powered-by-slot {
    margin: 0 auto;
    width: 100%;
}

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

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

.modal-content {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    z-index: 1001;
}

.modal-content h2 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.rules-body {
    overflow-y: auto;
    white-space: pre-wrap;
    font-size: 0.9rem;
    color: #475569;
    padding-right: 1rem;
}

.rules-body::-webkit-scrollbar {
    width: 8px;
}
.rules-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}
.rules-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s;
}

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

/* Lightbox Modal */
.lightbox-content {
    background: transparent;
    box-shadow: none;
    padding: 0;
    max-width: 800px;
}
.lightbox-img-container {
    background: #000;
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}
.lightbox-img-container img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}
.lightbox-caption {
    color: #fff;
    text-align: center;
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-heading);
}
.lightbox-content .close-btn {
    top: -2.5rem;
    right: 0;
    color: #fff;
}
.lightbox-content .close-btn:hover {
    color: var(--accent-color);
}

/* Responsive */
@media (max-width: 900px) {
    #view-home {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
    }
    
    .hero-section h1 {
        font-size: 3.5rem;
    }
    
    .subtitle {
        margin: 0 auto 2rem;
    }
    
    .features {
        align-items: center;
    }
    
    .feature-item {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .card {
        padding: 1.5rem;
    }
    .modal-content {
        padding: 1.5rem;
    }
    .nav-tabs {
        flex-direction: column;
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }
}