:root {
  --primary: #3E6C3B;      /* Sophisticated, grounding natural green */
  --primary-hover: #2d4f2b;
  --secondary: #D4AF37;    /* Subtle gold for premium feel */
  --bg-color: #F8F7F3;     /* Warm, slightly off-white background */
  --card-bg: #FFFFFF;
  --text-main: #333333;
  --text-muted: #666666;
  --border: #E0E0E0;
  --error: #D32F2F;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  background-image: radial-gradient(circle at 10% 20%, rgba(62, 108, 59, 0.05) 0%, transparent 50%),
                    radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hidden {
  display: none !important;
}

.page-wrapper {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
  width: 100%;
}

/* Card Container */
.card {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
  padding: 40px;
  margin-bottom: 40px;
}

/* Header */
.survey-header {
  text-align: center;
  margin-bottom: 30px;
}
.logo {
  margin-bottom: 20px;
}
.logo-img {
  max-width: 200px;
  height: auto;
}
.survey-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: #111;
  margin-bottom: 10px;
}
.survey-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Progress Bar */
.progress-container {
  width: 100%;
  height: 6px;
  background-color: #F0F0F0;
  border-radius: 99px;
  margin-bottom: 40px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background-color: var(--primary);
  transition: width 0.4s ease;
}

/* Typography & Layout */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 25px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 600px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Forms */
.form-group {
  margin-bottom: 25px;
}
label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #222;
  font-size: 0.95rem;
}
.question-label {
  font-size: 1.05rem;
  margin-bottom: 12px;
  line-height: 1.4;
}
.required {
  color: var(--error);
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: #FAFAFA;
  transition: all 0.3s ease;
}
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(62, 108, 59, 0.1);
  background-color: #FFF;
}
.other-input {
  margin-top: 10px;
}

/* Custom Radios and Checkboxes */
.radio-grid, .checkbox-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 600px) {
  .radio-grid, .checkbox-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.radio-grid input[type="radio"],
.checkbox-grid input[type="checkbox"] {
  display: none;
}
.radio-grid label,
.checkbox-grid label {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  background: #FFF;
  font-weight: 500;
  transition: all 0.2s ease;
  margin: 0;
}
.radio-grid label:hover,
.checkbox-grid label:hover {
  background: #f9f9f9;
  border-color: #ccc;
}
.radio-grid input:checked + label,
.checkbox-grid input:checked + label {
  border-color: var(--primary);
  background: rgba(62, 108, 59, 0.05);
  box-shadow: inset 0 0 0 1px var(--primary);
  color: var(--primary);
}

/* Buttons */
.step-actions {
  display: flex;
  gap: 15px;
  margin-top: 35px;
}
button {
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  border: none;
}
.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(62, 108, 59, 0.2);
}
.btn-secondary {
  background: #EEEEEE;
  color: #333;
}
.btn-secondary:hover {
  background: #E0E0E0;
}
button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

/* Errors */
.error-box {
  background: #FEE;
  color: var(--error);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 25px;
  font-weight: 500;
  border: 1px solid #FCC;
}
.error {
  border-color: var(--error) !important;
}
.error-group label {
  border-color: var(--error) !important;
}
.error-text {
  color: var(--error);
  font-size: 0.9rem;
  margin-top: 15px;
  font-weight: 500;
}

/* Thank You Screen */
.thank-you {
  text-align: center;
  padding: 20px 0;
}
.success-icon {
  width: 80px;
  height: 80px;
  background: rgba(62, 108, 59, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  color: var(--primary);
}
.success-icon svg {
  width: 40px;
  height: 40px;
}

/* SDK slot at very bottom center */
#wbx-powered-by-slot {
  margin: auto auto 40px auto;
  display: flex;
  justify-content: center;
}