/* Base resets and variables */
:root {
  --primary: #f59e0b; /* Amber */
  --primary-hover: #d97706;
  --bg-dark: #0f172a; /* Slate 900 */
  --bg-darker: #020617; /* Slate 950 */
  --card-bg: rgba(30, 41, 59, 0.7); /* Slate 800 with opacity */
  --text-main: #f8fafc; /* Slate 50 */
  --text-muted: #94a3b8; /* Slate 400 */
  --border-color: rgba(255, 255, 255, 0.1);
  --error: #ef4444;
  --success: #10b981;
}

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

body {
  font-family: 'Open Sans', sans-serif;
  background-color: var(--bg-darker);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

/* Utilities */
.hidden { display: none !important; }
.text-center { text-align: center; }
.optional { font-weight: 300; font-size: 0.85em; opacity: 0.7; }

/* Hero Section */
.hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('https://offertabs.s3.amazonaws.com/offer/tskzfq/site/media/6a4fd1c0e3d401.26128818.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 4rem 2rem;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.5), rgba(2, 6, 23, 1));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.business-name {
  display: inline-block;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: #fff;
  text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.hero .subtitle {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto;
}

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

/* Tabs */
.tabs-container {
  display: flex;
  background: var(--card-bg);
  border-radius: 12px;
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  gap: 0.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.tab-btn {
  flex: 1;
  padding: 1rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
}
.tab-btn:hover {
  color: var(--text-main);
  background: rgba(255,255,255,0.05);
}
.tab-btn.active {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Card Style (Forms & Panels) */
.card {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

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

.card-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #fff, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  width: 100%; padding: 0.75rem 1rem; padding-right: 2.5rem;
  font-size: 1rem; font-family: inherit;
  border: 1px solid rgba(255,255,255,0.3); border-radius: 12px;
  background-color: rgba(255,255,255,0.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}
select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}
select option {
  background-color: var(--bg-dark);
  color: #fff;
}

/* Multi-Section Upload Grid */
.user-info-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.upload-sections-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1rem;
}

.upload-section {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.upload-section h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  text-align: center;
  color: var(--primary);
}

.upload-section textarea {
  resize: vertical;
  min-height: 80px;
}

/* Custom File Upload */
.file-upload-wrapper {
  position: relative;
  overflow: hidden;
  border: 2px dashed var(--border-color);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.3);
  transition: all 0.3s ease;
  margin-bottom: 0.5rem;
}

.file-upload-wrapper:hover, .file-upload-wrapper.dragover {
  border-color: var(--primary);
  background: rgba(245, 158, 11, 0.05);
}

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

.file-upload-label {
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
}

.exif-display {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  min-height: 1.2rem;
  transition: all 0.3s ease;
  font-weight: 600;
}

/* Legal Agreements Checkboxes */
.legal-agreements {
  margin-top: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: 400;
  margin-bottom: 0;
  color: var(--text-main);
}

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

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

.checkbox-text a {
  color: var(--primary);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.checkbox-text a:hover {
  color: var(--primary-hover);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15);
}

/* Alerts */
.alert {
  max-width: 900px;
  margin: 0 auto 2rem;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  border-left: 4px solid;
}

.alert.error {
  background: rgba(239, 68, 68, 0.1);
  border-left-color: var(--error);
  color: #fca5a5;
}

.alert.info {
  background: rgba(59, 130, 246, 0.1);
  border-left-color: #3b82f6;
  color: #93c5fd;
}

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

.share-controls {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
}

.share-controls input {
  flex: 1;
}

.share-controls .btn {
  width: auto;
  padding: 0 1.5rem;
}

.social-share {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-social {
  flex: 1;
  padding: 0.75rem;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  transition: opacity 0.2s;
}

.btn-social:hover { opacity: 0.9; }
.btn-social.fb { background: #1877f2; }
.btn-social.tw { background: #0f1419; border: 1px solid #333; }

/* Gallery Controls */
.gallery-controls {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 2rem;
}
.gallery-controls select {
  max-width: 250px;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}
.gallery-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  border-color: var(--primary);
}
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-card:hover img {
  transform: scale(1.05);
}
.gallery-card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  padding: 2rem 1rem 1rem;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-card:hover .gallery-card-overlay {
  opacity: 1;
}
.gallery-card-name {
  font-size: 0.95rem;
  font-weight: 600;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gallery-card-cat {
  font-size: 0.75rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
  display: block;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(8px);
}
.lightbox-close {
  position: absolute;
  top: 1rem; right: 1.5rem;
  background: none; border: none;
  color: #fff; font-size: 3rem;
  cursor: pointer; z-index: 10000;
  transition: color 0.2s;
  padding: 0;
  line-height: 1;
}
.lightbox-close:hover { color: var(--primary); }
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff; font-size: 2rem;
  width: 50px; height: 50px;
  border-radius: 50%;
  cursor: pointer; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.lightbox-prev:hover, .lightbox-next:hover {
  background: var(--primary);
  border-color: var(--primary);
}
.lightbox-prev { left: 2rem; }
.lightbox-next { right: 2rem; }
.lightbox-content {
  position: relative;
  z-index: 10000;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-darker);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  border: 1px solid var(--border-color);
}
.lightbox-content img {
  max-width: 100%;
  max-height: calc(90vh - 120px);
  object-fit: contain;
  background: #000;
}
.lightbox-info {
  padding: 1.5rem;
  background: var(--bg-dark);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.lightbox-info-text {
  flex: 1;
}
.lightbox-info h4 { margin-bottom: 0.25rem; font-size: 1.1rem; }
.lightbox-info p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.4; margin: 0; }
.category-badge {
  background: rgba(245, 158, 11, 0.15);
  color: var(--primary);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(245, 158, 11, 0.3);
  white-space: nowrap;
}

/* Powered by SDK styling */
#wbx-powered-by-slot {
  margin: 3rem auto 0;
  display: flex;
  justify-content: center;
  width: 100%;
}

@media (max-width: 768px) {
  .hero { padding: 3rem 1.5rem; min-height: 40vh; }
  .hidden-mobile { display: none; }
  .card { padding: 1.5rem; }
  .user-info-row { grid-template-columns: 1fr; gap: 0; padding-bottom: 1rem; }
  .upload-sections-grid { grid-template-columns: 1fr; }
  .social-share { flex-direction: column; }
  
  .tabs-container { margin-bottom: 1.5rem; gap: 0.25rem; }
  .tab-btn { padding: 0.75rem 0.5rem; font-size: 0.95rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  
  .lightbox { padding: 0; }
  .lightbox-content { border-radius: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; justify-content: center; border: none; }
  .lightbox-content img { max-height: calc(100vh - 120px); }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 1.5rem; transform: none; width: 44px; height: 44px; }
  .lightbox-prev { left: 1rem; }
  .lightbox-next { right: 1rem; }
  .lightbox-info { position: absolute; bottom: 0; left: 0; right: 0; padding-bottom: 5rem; }
  .lightbox-close { top: 1rem; right: 1rem; font-size: 2.5rem; }
}