@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@500;600&display=swap');

:root {
  --em-primary: #24a58f;
  --em-primary-dark: #1c8271;
  --em-surface: #ffffff;
  --em-border-subtle: #e5e7eb;
  --em-text-main: #102a43;
  --em-text-muted: #6b7280;
}

.em-el-widget {
  font-family: "Inter", sans-serif;
  max-width: 820px;
}

.em-card {
  background: var(--em-surface);
  border-radius: 24px;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04), 0 12px 30px rgba(15, 23, 42, 0.12);
  padding: 20px 24px 20px;
  border: 1px solid #e2e8f0;
}

/* TABS */
.em-tabs {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #edf0f7;
  margin: -8px -24px 16px;
  padding: 8px 24px 0;
  gap: 18px;
}

.em-tab {
  position: relative;
  border: none;
  background: transparent;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 500;
  color: #9ca3af;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
}

.em-tab-active { color: var(--em-primary-dark); }
.em-tab-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  background: var(--em-primary);
  border-radius: 999px 999px 0 0;
}

/* VIEWS */
.em-view { display: none; }
.em-view-active { display: block; animation: emFadeIn 0.3s ease; }

@keyframes emFadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.em-section { margin-top: 18px; }
.em-label { display: block; font-size: 13px; font-weight: 600; color: #111827; margin-bottom: 6px; font-family: "Poppins", sans-serif; }

/* OPTION CARDS */
.em-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.em-option-card {
  border-radius: 14px;
  border: 1px solid var(--em-border-subtle);
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  transition: all 0.16s ease;
}
.em-option-card-inner { padding: 10px 12px; display: flex; align-items: center; gap: 8px; }
.em-option-card:hover { background: #f9fafb; border-color: #d1d5db; }
.em-option-card-selected { background: #f0fdf9; border-color: var(--em-primary); box-shadow: 0 0 0 1px rgba(36,165,143,0.14); }
.em-option-icon { font-size: 18px; color: var(--em-primary); }
.em-option-title { font-size: 13px; font-weight: 600; font-family: "Poppins", sans-serif; }

/* SLIDER */
.em-slider-wrapper { padding-top: 8px; }
.em-slider { -webkit-appearance: none; width: 100%; height: 4px; border-radius: 999px; background: #e5e7eb; }
.em-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--em-primary); cursor: pointer; margin-top: -7px; }
.em-slider-footer { display: flex; justify-content: space-between; font-size: 11px; color: var(--em-text-muted); margin-top: 8px; }
.em-chip { font-size: 14px; font-weight: 600; background: #f9fafb; border: 1px solid #e5e7eb; padding: 5px 16px; border-radius: 999px; }

/* INPUTS */
.em-input { width: 100%; border-radius: 999px; border: 1px solid var(--em-border-subtle); padding: 11px 16px; font-size: 14px; }
.em-input:focus { outline: none; border-color: var(--em-primary); box-shadow: 0 0 0 1px rgba(36,165,143,0.16); }

/* BUTTONS */
.em-btn {
  border-radius: 999px; border: none; padding: 11px 22px; font-size: 14px; font-weight: 500; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: "Poppins", sans-serif; transition: all 0.16s ease;
}
.em-btn-primary { background: var(--em-primary); color: #fff; box-shadow: 0 2px 4px rgba(15,23,42,0.18); }
.em-btn-primary:hover { background: var(--em-primary-dark); transform: translateY(-1px); }
.em-btn-text { background: transparent; color: var(--em-primary); padding: 0; }
.em-btn-text:hover { text-decoration: underline; }
.em-btn-full { width: 100%; }

/* UTILS */
.em-section-submit { margin-top: 20px; display: flex; flex-direction: column; align-items: center; }
.em-error { margin-top: 4px; font-size: 12px; color: #dc2626; }