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

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

/* Powered by SDK styling - ensure it's centered at bottom */
#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; }
}
