:root {
    --navy: #053040;
    --navy-light: #0a4d66;
    --red: #D22027;
    --red-hover: #B01A20;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-600: #4B5563;
    --gray-800: #1F2937;
    --white: #FFFFFF;
    
    --font-heading: 'Meursault Ultra Condensed', 'Playfair Display', serif;
    --font-body: 'Figtree', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--gray-800);
    background-color: transparent; /* Transparent for clean embedding */
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    padding: 2rem 1rem;
}

.hidden {
    display: none !important;
}

/* Main Container */
.content-inner {
    margin: 0 auto;
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.nav-tab {
    background: transparent;
    border: 2px solid var(--gray-300);
    padding: 0.75rem 2rem;
    border-radius: 999px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
}

.nav-tab:hover {
    border-color: var(--navy);
    color: var(--navy);
}

.nav-tab.active {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

/* Cards & Containers */
.card {
    background: var(--white);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.card-header {
    margin-bottom: 2.5rem;
}

.card-header h2 {
    font-family: var(--font-heading);
    color: var(--navy);
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.card-header p {
    color: var(--gray-600);
    font-size: 1.05rem;
}

/* Form Styles */
form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy);
}

.required {
    color: var(--red);
}

input[type="text"],
input[type="email"],
input[type="url"],
textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--gray-800);
    background-color: var(--white);
    transition: all 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(5, 48, 64, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* File Upload Custom Style */
.file-upload-wrapper {
    position: relative;
    width: 100%;
}

.file-input-hidden {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
}

.file-upload-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    border: 2px dashed var(--gray-300);
    border-radius: 8px;
    background-color: var(--gray-50);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.file-upload-box:hover {
    border-color: var(--navy);
    background-color: rgba(5, 48, 64, 0.02);
}

.file-upload-box svg {
    color: var(--navy);
    margin-bottom: 0.75rem;
    width: 32px;
    height: 32px;
}

.upload-text {
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.file-name {
    font-size: 0.85rem;
    color: var(--gray-600);
    word-break: break-all;
    max-width: 100%;
}

.help-text {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-top: 0.25rem;
    display: block;
}

.disclaimer-text {
    color: var(--navy);
    font-weight: 500;
}

/* Checkboxes */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--navy);
    cursor: pointer;
}

.checkbox-group label {
    font-weight: 400;
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.5;
    cursor: pointer;
}

.checkbox-group label a {
    color: var(--navy);
    text-decoration: underline;
    font-weight: 600;
}

.checkbox-group label a:hover {
    color: var(--navy-light);
}

/* Buttons */
.btn-primary {
    background-color: var(--navy);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    width: 100%;
    margin-top: 1rem;
}

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

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary:disabled {
    background-color: var(--gray-300);
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background-color: var(--gray-200);
    color: var(--navy);
    border: none;
    border-radius: 8px;
    padding: 0.85rem 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

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

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

/* Alerts and Errors */
.alert-box {
    background-color: var(--gray-100);
    border-left: 4px solid var(--gray-600);
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.alert-info {
    border-left-color: var(--navy);
}

.alert-box h3 {
    color: var(--gray-800);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.alert-box p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

.error-text {
    color: var(--red);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.75rem;
    background-color: rgba(210, 32, 39, 0.1);
    border-radius: 6px;
    border-left: 3px solid var(--red);
}

/* Success State */
.success-header {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(5, 48, 64, 0.1);
    color: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.success-header h2 {
    font-family: var(--font-heading);
    color: var(--navy);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.success-header p {
    color: var(--gray-600);
    font-size: 1.1rem;
    max-width: 400px;
    margin: 0 auto;
}

/* Share Panel */
.share-panel {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.share-panel h3 {
    color: var(--navy);
    margin-bottom: 0.5rem;
}

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

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

.share-input-group input {
    flex: 1;
    background-color: var(--white);
}

.copy-success {
    color: #059669;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.75rem;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.gallery-item {
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
    position: relative;
    background: var(--gray-100);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--gray-600);
    background: var(--gray-50);
    border-radius: 8px;
    border: 1px dashed var(--gray-300);
}

.loader {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--gray-600);
    font-weight: 500;
}

.loader::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 2px solid var(--gray-300);
    border-top-color: var(--navy);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    vertical-align: middle;
}

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

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 48, 64, 0.85); /* Navy overlay */
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: relative;
    z-index: 1001;
    background: var(--white);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,0.9);
    color: var(--gray-800);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.lightbox-close:hover {
    background: var(--white);
    transform: scale(1.05);
}

.lightbox-layout {
    display: flex;
    flex-direction: row;
    height: 100%;
    max-height: 90vh;
}

.lightbox-image-container {
    flex: 1;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.lightbox-image-container img,
.lightbox-image-container video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    outline: none;
}

.lightbox-details {
    width: 380px;
    padding: 2.5rem 2rem;
    overflow-y: auto;
    background: var(--white);
    border-left: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
}

.lightbox-details h3 {
    font-family: var(--font-heading);
    color: var(--navy);
    font-size: 1.75rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.lightbox-caption {
    font-size: 1.05rem;
    color: var(--gray-800);
    line-height: 1.7;
    white-space: pre-wrap;
}

/* Powered By Slot */
#wbx-powered-by-slot {
    margin-top: 2rem;
    width: 100%;
}

/* Responsive Styles */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    .nav-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-tab {
        width: 100%;
        text-align: center;
    }
    
    .card {
        padding: 1.5rem;
    }

    .form-row {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .share-input-group {
        flex-direction: column;
    }
    
    .lightbox-layout {
        flex-direction: column;
    }
    
    .lightbox-image-container {
        height: 50vh;
        flex: none;
    }
    
    .lightbox-details {
        width: 100%;
        height: 40vh;
        padding: 1.5rem;
    }
}
