:root {
  color-scheme: light;
  --primary: #1e3a8a; /* Trust Blue */
  --primary-light: #2563eb; 
  --primary-dark: #172554;
  --accent: #f59e0b; /* Wealth Gold/Amber */
  --accent-hover: #d97706;
  --text-main: #1c1917;
  --text-muted: #57534e;
  --bg-color: #eff6ff; /* Soft Blue-tinted white */
  --white: #ffffff;
  --error: #ef4444;
  --success: #22c55e;
  
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

* {
  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;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

/* Layout */
.campaign-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center 30%;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.85) 0%, rgba(37, 99, 235, 0.7) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  color: var(--white);
}

.logo-placeholder {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 30px;
  color: var(--white);
}

.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
}

.text-gradient {
  background: linear-gradient(to right, #fde68a, #f59e0b) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  forced-color-adjust: none;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 400;
  opacity: 0.95;
  max-width: 650px;
  margin: 0 auto;
}

/* Countdown */
.countdown-wrapper {
  margin-top: 40px;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 20px 30px;
  display: inline-block;
}

.countdown-label {
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.draw-countdown {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.cd-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 12px 15px;
  min-width: 75px;
}

.cd-box span:first-child {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
  color: #fff;
}

.cd-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 480px) {
  .draw-countdown { gap: 10px; }
  .cd-box { min-width: 65px; padding: 10px; }
  .cd-box span:first-child { font-size: 1.5rem; }
}

/* Main Content */
.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  width: 100%;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.status-message {
  text-align: center;
  padding: 60px 20px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  max-width: 600px;
  margin: 0 auto 60px auto;
}

.status-message h2 {
  font-family: var(--font-heading);
  color: var(--primary);
  margin-bottom: 15px;
}

.single-col-layout {
  display: flex;
  justify-content: center;
  width: 100%;
}

.form-col {
  width: 100%;
  max-width: 650px;
}

/* Tabs Navigation */
.tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
  width: 100%;
}

.tab-btn {
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-muted);
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.8);
}

.tab-btn.active {
  background: var(--white);
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Glass Card */
.glass-card {
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.05);
}

.form-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.form-desc {
  color: var(--text-muted);
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
  font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: all 0.3s ease;
  background-color: var(--bg-color);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* File Upload Customization */
.file-drop-area {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  background-color: var(--bg-color);
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
}

.file-drop-area:hover, .file-drop-area.dragover {
  background-color: rgba(37, 99, 235, 0.05);
  border-color: var(--primary);
}

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

.file-msg {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 5px;
}

.file-name {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-drop-area input[type="file"] {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  cursor: pointer;
  opacity: 0;
}

/* Buttons */
.btn-primary {
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

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

.btn-secondary {
  padding: 10px 24px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--accent-hover);
}

/* Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 1s ease-in-out infinite;
  margin-left: 10px;
}

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

/* Alerts */
.alert {
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-weight: 600;
  font-size: 0.95rem;
}

.alert-error {
  background-color: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* Success State */
.success-icon {
  width: 80px;
  height: 80px;
  background: #dcfce7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
}

.share-panel {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #e2e8f0;
  text-align: center;
}

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

.share-panel p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

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

.share-input-group input {
  flex-grow: 1;
  padding: 12px;
  background: var(--bg-color);
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.success-tiny-footer {
  margin-top: 24px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.gallery-card {
  background: var(--bg-color);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  transition: transform 0.2s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.gallery-img-container {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f1f5f9;
  display: block;
}

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

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

.gallery-info {
  padding: 12px;
  text-align: center;
}

.uploader {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
  margin: 0;
}

/* Product Showcase */
.product-showcase {
  margin-top: 60px;
  text-align: center;
  width: 100%;
}

.product-showcase-title {
  font-family: var(--font-heading);
  color: var(--primary);
  margin-bottom: 30px;
  font-size: 1.8rem;
}

.product-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
}

.product-item {
  flex: 0 1 180px;
  background: var(--white);
  padding: 15px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0,0,0,0.03);
}

.product-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(30, 58, 138, 0.1);
}

.product-item img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  .product-item {
    flex: 0 1 140px;
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .product-item {
    flex: 0 1 120px;
  }
}

/* Powered By */
#wbx-powered-by-slot {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  width: 100%;
}