/* Stekker ERE Machtigingsformulier */
.stekker-ere-form {
  max-width: 640px;
  margin: 2rem auto;
  padding: 1rem;
  font-family: 'Inter', -apple-system, sans-serif;
  color: #000538;
}

.ere-hero {
  text-align: center;
  padding: 1.5rem 0 2rem;
}
.ere-hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: #000538;
}
.ere-hero p {
  font-size: 1.05rem;
  color: #4a4a60;
  margin: 0;
  line-height: 1.5;
}

.ere-card {
  background: #fff;
  border: 1px solid #cfd0d7;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 0 4px rgba(0,5,56,.04), 0 4px 16px rgba(0,5,56,.04);
}

.ere-step {
  margin-bottom: 1.75rem;
}
.ere-step:last-child { margin-bottom: 0; }

.ere-step h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: #000538;
}

.ere-field {
  margin-bottom: 1rem;
}
.ere-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #000538;
  margin-bottom: 0.4rem;
}
.ere-field .ere-help {
  font-size: 0.8rem;
  color: #767676;
  margin-top: 0.3rem;
  font-weight: 400;
  line-height: 1.4;
}

.ere-input,
.ere-select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid #cfd0d7;
  border-radius: 8px;
  background: #fff;
  color: #000538;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.ere-input:focus,
.ere-select:focus {
  outline: none;
  border-color: #0cc170;
  box-shadow: 0 0 0 3px rgba(12, 193, 112, 0.15);
}
.ere-input[readonly] {
  background: #f7f7fb;
  color: #4a4a60;
}

.ere-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.ere-address-lookup {
  padding: 0.75rem;
  background: #f7f7fb;
  border-radius: 8px;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #4a4a60;
  min-height: 1.5em;
}
.ere-address-lookup.ere-loading { color: #0cc170; }
.ere-address-lookup.ere-error { color: #d73a4a; }
.ere-address-lookup.ere-success { color: #000538; }

.ere-toggle {
  display: inline-flex;
  background: #f7f7fb;
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}
.ere-toggle button {
  padding: 0.5rem 1.25rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: #767676;
  cursor: pointer;
  transition: all 0.15s;
}
.ere-toggle button.ere-toggle-active {
  background: #0cc170;
  color: #fff;
}

.ere-terms {
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid #cfd0d7;
  border-radius: 8px;
  padding: 1rem;
  background: #f7f7fb;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #000538;
  font-family: inherit;
}
.ere-terms h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  text-transform: none;
}
.ere-terms h3:not(:first-child) { margin-top: 1rem; }
.ere-terms p { margin: 0 0 0.6rem; }

.ere-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1rem;
  padding: 0.85rem;
  background: #f7f7fb;
  border-radius: 8px;
  cursor: pointer;
}
.ere-consent input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #0cc170;
  flex-shrink: 0;
  margin-top: 1px;
  cursor: pointer;
}
.ere-consent label {
  font-size: 0.9rem;
  line-height: 1.45;
  color: #000538;
  cursor: pointer;
  margin: 0;
}

.ere-submit {
  width: 100%;
  padding: 0.9rem;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #fff;
  background: #0cc170;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  margin-top: 1rem;
}
.ere-submit:hover:not(:disabled) { background: #0aa85f; }
.ere-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ere-success-message {
  text-align: center;
  padding: 2rem 1rem;
}
.ere-success-message h2 {
  font-family: 'Poppins', sans-serif;
  color: #0cc170;
  margin: 0 0 0.75rem;
}
.ere-success-message p { color: #4a4a60; margin: 0 0 0.5rem; }

.ere-error-msg {
  background: #fff0f0;
  color: #c92a2a;
  padding: 0.75rem;
  border-radius: 8px;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  display: none;
}
.ere-error-msg.ere-show { display: block; }

@media (max-width: 520px) {
  .ere-row { grid-template-columns: 1fr; }
  .ere-card { padding: 1.25rem; }
  .ere-hero h1 { font-size: 1.6rem; }
}
