:root {
  --bg-color: #0f0f14;
  --card-bg: #1c1c24;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --error: #ef4444;
  --success: #10b981;
  --border: rgba(255, 255, 255, 0.1);
  --input-bg: rgba(0, 0, 0, 0.2);
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Inter', 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;
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

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

.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Hero Section */
.hero-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-text {
  text-align: center;
  padding: 3rem 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-content {
  width: 100%;
  max-width: 800px;
}

.title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.subtitle {
  font-size: 1.125rem;
  color: #cbd5e1;
  max-width: 600px;
  margin: 0 auto;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 650px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  margin-bottom: 3rem;
}

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

.card h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  color: var(--accent);
}

.card p {
  color: var(--text-muted);
}

/* Forms */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: #e2e8f0;
}

input[type="text"],
input[type="email"],
select {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 0.875rem 1rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.2s;
}

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

input::placeholder {
  color: #64748b;
}

/* Custom Select styling */
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
}

select option {
  background-color: var(--card-bg);
  color: var(--text-main);
}

.form-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 2rem 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border);
}

.form-divider span {
  padding: 0 1rem;
}

/* Buttons */
.btn-primary {
  width: 100%;
  background: var(--accent);
  color: #000;
  border: none;
  padding: 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-heading);
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

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

.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: var(--text-main);
  border: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.2);
}

/* Status & Errors */
.error-text {
  color: var(--error);
  font-size: 0.875rem;
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 6px;
  border: 1px solid rgba(239, 68, 68, 0.2);
  text-align: center;
}

.status-message {
  text-align: center;
  margin-bottom: 2rem;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--border);
  width: 100%;
  max-width: 650px;
}

.status-message h2 {
  font-family: var(--font-heading);
  color: var(--accent);
}

/* Thank You Screen */
.success-icon {
  width: 64px;
  height: 64px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.success-icon svg {
  width: 32px;
  height: 32px;
}

.thank-you-desc {
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

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

.share-panel h3 {
  color: var(--text-main);
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
}

.share-panel p {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

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

.share-input-group input {
  flex: 1;
  background: rgba(0,0,0,0.3);
  color: var(--accent);
}

.copy-success {
  color: var(--success);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

#wbx-powered-by-slot {
  margin-top: auto;
  padding: 2rem 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .title {
    font-size: 2.5rem;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .share-input-group {
    flex-direction: column;
  }
  
  .btn-secondary {
    width: 100%;
  }

  .hero-image {
    max-height: none;
    object-fit: contain;
  }
}
