:root {
  --primary-color: #E85D04;
  --primary-hover: #DC2F02;
  --bg-color: #FAEDCD;
  --text-dark: #370617;
  --text-light: #F8EDEB;
  --white: #FFFFFF;
  --gray-200: #E5E7EB;
  --gray-400: #9CA3AF;
  --gray-600: #4B5563;
  --error: #DC2626;
  --success: #16A34A;
  
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-color);
  line-height: 1.6;
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

.split-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

.image-panel {
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: var(--bg-color);
}

.hero-image {
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
  display: block;
}

.image-overlay {
  background: var(--text-dark);
  color: var(--text-light);
  padding: 2rem 1.5rem;
  text-align: center;
}

.image-overlay h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.image-overlay p {
  font-size: 1rem;
  opacity: 0.9;
}

.form-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
  background-color: var(--white);
}

.form-container {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
}

#entry-view, #success-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.headline {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.subtitle {
  font-size: 1rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
}

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

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

.required {
  color: var(--error);
}

.optional {
  color: var(--gray-400);
  font-weight: 400;
  font-size: 0.8rem;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background-color: var(--white);
  transition: all 0.3s ease;
}

input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.1);
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon .icon {
  position: absolute;
  left: 1rem;
  color: var(--gray-400);
  font-weight: 500;
}

.input-with-icon input {
  padding-left: 2.25rem;
}

.btn-primary {
  width: 100%;
  padding: 1rem;
  background-color: var(--primary-color);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232, 93, 4, 0.2);
}

.btn-primary:disabled {
  background-color: var(--gray-400);
  cursor: not-allowed;
}

.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;
}

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

.error-alert {
  padding: 0.875rem;
  background-color: rgba(220, 38, 38, 0.1);
  color: var(--error);
  border-radius: 8px;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.status-message {
  padding: 1.5rem;
  background-color: var(--gray-200);
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  margin-bottom: 2rem;
}

/* Success View */
#success-view {
  text-align: center;
  padding: 2rem 0;
}

.success-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(22, 163, 74, 0.1);
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

#success-view h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 1rem;
}

#success-view p {
  color: var(--gray-600);
  margin-bottom: 2rem;
}

.share-panel {
  background-color: #f8fafc;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2rem;
}

.share-panel h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.share-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.share-actions input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  font-family: var(--font-body);
  background-color: var(--white);
}

.btn-secondary {
  padding: 0 1.25rem;
  background-color: var(--text-dark);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-secondary:hover {
  background-color: var(--gray-600);
}

/* Powered by slot */
#wbx-powered-by-slot {
  margin-top: auto;
  padding: 1rem 0;
  text-align: center;
}

/* Desktop Styles */
@media (min-width: 768px) {
  .split-layout {
    flex-direction: row;
    height: 100vh;
    overflow: hidden;
  }

  .image-panel {
    flex: 1.2;
    height: 100%;
  }

  .hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
  }

  .image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: left;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    padding: 4rem 3rem 3rem;
  }

  .image-overlay h2 {
    font-size: 2.5rem;
  }

  .image-overlay p {
    font-size: 1.125rem;
  }
  
  .form-panel {
    flex: 1;
    padding: 3rem;
    overflow-y: auto;
    height: 100%;
  }
}