:root {
  --primary: #15803d; /* Golf Green */
  --primary-hover: #166534;
  --secondary: #b45309; /* Badlands rust */
  --bg-color: #f8fafc;
  --text-dark: #0f172a;
  --text-light: #475569;
  --surface: #ffffff;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hidden {
  display: none !important;
}

.page-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.container {
  max-width: 1000px;
  width: 100%;
  background: var(--surface);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.06), 0 10px 15px -3px rgba(0,0,0,0.03);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .container {
    flex-direction: row;
    min-height: 640px;
  }
}

.hero-side {
  background-image: url('https://offertabs.s3.amazonaws.com/offer/hi67n5/site/media/6a5684b6e83541.19031128.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
  min-height: 300px;
}

@media (min-width: 768px) {
  .hero-side {
    width: 45%;
    padding: 4rem 3rem;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.8) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--secondary);
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 1.25rem 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-p {
  font-size: 1.125rem;
  line-height: 1.6;
  opacity: 0.9;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.content-side {
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 768px) {
  .content-side {
    width: 55%;
    padding: 4rem;
  }
}

.form-header {
  margin-bottom: 2rem;
}

.form-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  color: var(--text-dark);
}

.form-header p {
  color: var(--text-light);
  margin: 0;
  line-height: 1.6;
  font-size: 1.0625rem;
}

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

label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-size: 0.9375rem;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
  box-sizing: border-box;
  background-color: #f8fafc;
  color: var(--text-dark);
}

input[type="text"]:focus,
input[type="email"]:focus {
  outline: none;
  border-color: var(--primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(21, 128, 61, 0.1);
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.btn-submit:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(21, 128, 61, 0.2);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.error-message {
  background: #fef2f2;
  color: #ef4444;
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  border: 1px solid #f87171;
  font-weight: 500;
}

/* Success Screen */
.success-header {
  text-align: center;
  margin-bottom: 2rem;
}

.success-icon {
  width: 72px;
  height: 72px;
  background: #dcfce7;
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

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

.success-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin: 0 0 0.5rem;
  color: var(--text-dark);
}

.success-header p {
  color: var(--text-light);
  font-size: 1.0625rem;
  margin: 0;
}

.code-box {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 2px dashed #94a3b8;
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.code-box h3 {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.the-code {
  font-family: monospace;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.1em;
}

.instructions-box {
  background: #f8fafc;
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
}

.instructions-box h4 {
  font-size: 1.125rem;
  margin: 0 0 1rem;
  color: var(--text-dark);
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.75rem;
}

.instructions-box p {
  color: var(--text-dark);
  font-size: 0.9375rem;
  margin: 0 0 1rem;
  line-height: 1.6;
}

.instructions-box p:last-child {
  margin-bottom: 0;
}

.instructions-box ul {
  margin: 0.5rem 0 0 1.5rem;
  color: var(--text-dark);
  font-size: 0.9375rem;
  padding: 0;
  line-height: 1.6;
}

/* Share Panel */
.share-panel {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.share-panel h3 {
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
}

.share-panel p {
  font-size: 0.9375rem;
  color: var(--text-light);
  margin: 0 0 1rem;
}

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

.share-input-group input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--text-dark);
  font-size: 0.9375rem;
}

.btn-copy {
  padding: 0.75rem 1.5rem;
  background: var(--text-dark);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-copy:hover {
  background: #000000;
}

#wbx-powered-by-slot {
  margin-top: 2rem;
  width: 100%;
  max-width: 1000px;
}

/* Status screens */
.status-screen {
  text-align: center;
  padding: 2rem 0;
}

.status-screen h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin: 0 0 1rem;
  color: var(--text-dark);
}

.status-screen p {
  color: var(--text-light);
  line-height: 1.6;
}