/* ================================================================
   Healthcare Inspired – HCI Survey Tool Styles
   Brand: HCI Red #D31E24 + HCI Teal #2C7E83
   ================================================================ */

/* ── VARIABLES ──────────────────────────────────────────────── */
:root {
  --hci-red:        #D31E24;
  --hci-red-dk:     #a8181d;
  --hci-red-lt:     #fdf0f0;
  --hci-red-mid:    #e53030;

  --hci-teal:       #2C7E83;
  --hci-teal-dk:    #1e5c60;
  --hci-teal-lt:    #e8f5f5;
  --hci-teal-mid:   #3a9499;

  --hci-accent:     #D31E24;
  --hci-accent-lt:  #fdf0f0;
  --hci-accent-dk:  #a8181d;

  --hci-danger:     #e53e3e;
  --hci-success:    #38a169;
  --hci-warning:    #d69e2e;

  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --radius:    10px;
  --radius-sm:  6px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow:    0 4px 16px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.14);

  --font: 'Inter', system-ui, sans-serif;
  --transition: .2s ease;
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--gray-100);
  color: var(--gray-800);
  min-height: 100vh;
  line-height: 1.6;
}
a { color: var(--hci-teal); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ── HEADER ─────────────────────────────────────────────────── */
.site-header {
  background: #fff;
  border-bottom: 3px solid var(--hci-red);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.10);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Logo / Brand */
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.logo-img {
  height: 46px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name  { font-size: 15px; font-weight: 700; color: var(--gray-800); letter-spacing: -.2px; }
.brand-tagline { font-size: 11.5px; color: var(--hci-teal); font-weight: 500; }

/* Header Nav */
.header-nav { display: flex; gap: 6px; }
.nav-btn {
  background: transparent;
  border: 1.5px solid var(--gray-200);
  color: var(--gray-600);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all var(--transition);
}
.nav-btn:hover { background: var(--hci-teal-lt); border-color: var(--hci-teal-mid); color: var(--hci-teal-dk); }
.nav-btn.active {
  background: var(--hci-teal);
  border-color: var(--hci-teal);
  color: #fff;
}

/* ── MAIN / TABS ─────────────────────────────────────────────── */
.main-content {
  max-width: 1024px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.panel-header {
  margin-bottom: 28px;
}
.panel-header h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--gray-800);
  display: flex;
  align-items: center;
  gap: 10px;
}
.panel-header h1 i { color: var(--hci-red); }
.panel-header p {
  color: var(--gray-500);
  font-size: 15px;
  margin-top: 4px;
}

/* ── CARD ────────────────────────────────────────────────────── */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  margin-bottom: 20px;
}
.card-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-title i { color: var(--hci-red); }

/* ── FORM ELEMENTS ───────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-group:last-child { margin-bottom: 0; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.required { color: var(--hci-red); }
.optional-tag {
  font-size: 11px;
  font-weight: 400;
  color: var(--gray-400);
  margin-left: 4px;
}

input[type="text"],
input[type="email"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  color: var(--gray-800);
  background: #fff;
  transition: border var(--transition), box-shadow var(--transition);
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--hci-teal-mid);
  box-shadow: 0 0 0 3px rgba(44,126,131,.15);
}
textarea { resize: vertical; min-height: 80px; }
select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn-primary {
  background: var(--hci-teal);
  color: #fff;
}
.btn-primary:hover:not(:disabled) { background: var(--hci-teal-dk); box-shadow: 0 4px 12px rgba(44,126,131,.3); }

.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1.5px solid var(--gray-300);
}
.btn-secondary:hover:not(:disabled) { background: var(--gray-200); }

.btn-outline {
  background: transparent;
  color: var(--hci-teal);
  border: 1.5px solid var(--hci-teal);
}
.btn-outline:hover:not(:disabled) { background: var(--hci-teal-lt); }

.btn-red     { background: var(--hci-red); color: #fff; }
.btn-red:hover:not(:disabled) { background: var(--hci-red-dk); box-shadow: 0 4px 12px rgba(211,30,36,.3); }

.btn-danger  { background: var(--hci-danger); color: #fff; }
.btn-danger:hover:not(:disabled)  { background: #c53030; }

.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 36px; font-size: 16px; }
.btn-icon {
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--gray-400);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.btn-icon:hover { color: var(--hci-teal); background: var(--hci-teal-lt); }
.btn-icon.danger:hover { color: var(--hci-danger); background: #fff5f5; }

/* ── BUILDER LAYOUT ──────────────────────────────────────────── */
.builder-layout {}

/* Questions Card */
.questions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.questions-header .card-title { margin-bottom: 0; }

.empty-questions {
  text-align: center;
  padding: 48px 20px;
  color: var(--gray-400);
}
.empty-questions i { font-size: 40px; margin-bottom: 14px; display: block; color: var(--gray-300); }
.empty-questions p { font-size: 14px; }

/* Question Block */
.question-block {
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 14px;
  position: relative;
  transition: border-color var(--transition);
}
.question-block:hover { border-color: var(--hci-teal-mid); }

.question-block-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.q-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--hci-teal);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.q-text-input { flex: 1; }
.q-actions { display: flex; gap: 4px; margin-left: auto; }

.q-meta-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.q-type-select { max-width: 200px; flex-shrink: 0; }
.q-required-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-600);
  cursor: pointer;
}
.q-required-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--hci-teal);
  cursor: pointer;
}

.q-options-area { margin-top: 14px; }
.option-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.option-row input[type="text"] { flex: 1; }
.add-option-btn {
  background: transparent;
  border: 1.5px dashed var(--hci-teal-mid);
  color: var(--hci-teal-mid);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 13px;
  cursor: pointer;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
  margin-top: 4px;
}
.add-option-btn:hover { background: var(--hci-teal-lt); }

/* Actions Card */
.actions-card {
  background: linear-gradient(135deg, #fff8f8 0%, #f0f9f9 100%);
  border-color: var(--gray-200);
}
.actions-row { display: flex; gap: 12px; margin-bottom: 12px; }
.actions-note {
  font-size: 13px;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: 6px;
}
.actions-note i { color: var(--hci-teal); }

/* ── SURVEYS GRID ─────────────────────────────────────────────── */
.surveys-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.survey-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1.5px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.survey-card:hover { box-shadow: var(--shadow); border-color: var(--hci-teal-mid); }

.survey-card-header { margin-bottom: 12px; }
.survey-card-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.badge-published { background: #d1fae5; color: #065f46; }
.badge-draft     { background: var(--gray-100); color: var(--gray-600); }

.survey-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-800);
  line-height: 1.3;
}
.survey-card-meta {
  font-size: 12.5px;
  color: var(--gray-400);
  margin-top: 6px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.survey-card-meta span { display: flex; align-items: center; gap: 4px; }

.survey-card-body {
  flex: 1;
  font-size: 13.5px;
  color: var(--gray-500);
  margin: 12px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.survey-card-footer {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--gray-100);
}

/* ── RESPONSES ────────────────────────────────────────────────── */
.responses-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.responses-filter label { font-weight: 600; font-size: 14px; white-space: nowrap; margin: 0; }
.responses-filter select { max-width: 280px; }

.response-row {
  background: #fff;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all var(--transition);
}
.response-row:hover { border-color: var(--hci-teal-mid); box-shadow: var(--shadow-sm); }

.response-row-icon {
  width: 42px;
  height: 42px;
  background: var(--hci-teal-lt);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hci-teal);
  font-size: 18px;
  flex-shrink: 0;
}
.response-row-info { flex: 1; }
.response-row-title { font-weight: 600; font-size: 15px; color: var(--gray-800); }
.response-row-sub   { font-size: 12.5px; color: var(--gray-400); margin-top: 2px; }
.response-row-date  { font-size: 12px; color: var(--gray-400); white-space: nowrap; }

/* ── MODALS ───────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }

.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.modal-lg { max-width: 700px; }
.modal-sm { max-width: 380px; }

.modal-header {
  background: var(--hci-teal);
  color: #fff;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header.danger { background: var(--hci-danger); }
.modal-header h3 { font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.modal-close { background: transparent; border: none; color: rgba(255,255,255,.8); font-size: 18px; cursor: pointer; padding: 4px; }
.modal-close:hover { color: #fff; }

.modal-body { padding: 24px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

.share-link-box {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}
.share-link-box input { flex: 1; background: var(--gray-50); font-size: 13px; }
.share-note { font-size: 13px; color: var(--gray-500); display: flex; align-items: center; gap: 6px; margin-top: 8px; }

/* Response detail */
.response-detail-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 16px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--gray-600);
}
.response-detail-meta span { display: flex; align-items: center; gap: 6px; }

.response-answer-block { margin-bottom: 18px; }
.response-answer-q {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.response-answer-q .q-idx {
  width: 22px;
  height: 22px;
  background: var(--hci-teal);
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.response-answer-a {
  font-size: 14px;
  color: var(--gray-800);
  padding: 8px 12px;
  background: var(--hci-teal-lt);
  border-left: 3px solid var(--hci-teal-mid);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ── TAKE SURVEY PAGE ─────────────────────────────────────────── */
.survey-take-body {
  background: linear-gradient(160deg, #fdf0f0 0%, #f0f9f9 60%, #f9f9f9 100%);
}

.take-header {
  background: #fff;
  border-bottom: 3px solid var(--hci-red);
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

.take-main {
  max-width: 740px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.take-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--gray-500);
}
.take-state i { display: block; margin-bottom: 20px; color: var(--hci-teal); }
.take-state h2 { font-size: 22px; color: var(--gray-700); margin-bottom: 10px; }
.hidden { display: none !important; }

/* Survey Hero */
.take-hero {
  background: linear-gradient(135deg, var(--hci-teal-dk) 0%, var(--hci-teal) 60%, #3a9499 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 36px 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.take-hero::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
}
.take-hero::after {
  content: '';
  position: absolute;
  bottom: -20px; left: 30px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(211,30,36,.15);
}
.take-category-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  background: rgba(255,255,255,.2);
  border-radius: 20px;
  margin-bottom: 14px;
  letter-spacing: .8px;
  text-transform: uppercase;
  position: relative; z-index:1;
}
.take-hero h1 {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 10px;
  position: relative; z-index:1;
}
.take-desc { font-size: 15px; opacity: .9; line-height: 1.6; position: relative; z-index:1; }

/* Take Cards */
.take-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.take-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.take-card h3 i { color: var(--hci-teal); }

/* Take Question */
.take-question-block {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: border-color .2s;
}
.take-question-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}
.take-q-num {
  width: 24px;
  height: 24px;
  background: var(--hci-red);
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.req-star { color: var(--hci-red); margin-left: 2px; }

/* Radio / Checkbox */
.take-options { display: flex; flex-direction: column; gap: 10px; }
.take-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 14px;
  color: var(--gray-700);
}
.take-option:hover { border-color: var(--hci-teal-mid); background: var(--hci-teal-lt); }
.take-option input[type="radio"],
.take-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--hci-teal);
  cursor: pointer;
  flex-shrink: 0;
}
.take-option.selected { border-color: var(--hci-teal); background: var(--hci-teal-lt); }

/* Rating */
.rating-row { display: flex; gap: 8px; flex-wrap: wrap; }
.rating-btn {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-200);
  background: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  color: var(--gray-600);
  transition: all var(--transition);
}
.rating-btn:hover, .rating-btn.active {
  background: var(--hci-teal);
  color: #fff;
  border-color: var(--hci-teal);
  box-shadow: 0 2px 8px rgba(44,126,131,.3);
}
.rating-labels { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--gray-400); }

/* Submit area */
.take-submit-area {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-top: 10px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.submit-note {
  font-size: 13px;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 8px;
}
.submit-note i { color: var(--hci-teal); }

/* Thank you */
.thankyou-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-width: 480px;
  margin: 0 auto;
}
.thankyou-icon {
  font-size: 64px;
  color: var(--hci-success);
  margin-bottom: 20px;
  line-height: 1;
}
.thankyou-card h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--gray-800);
  margin-bottom: 10px;
}
.thankyou-card p { font-size: 15px; color: var(--gray-500); margin-bottom: 8px; }
.thankyou-email {
  font-size: 13.5px;
  color: var(--hci-teal-dk);
  background: var(--hci-teal-lt);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 24px;
}
.thankyou-actions { margin-bottom: 30px; }
.thankyou-brand {
  font-size: 13px;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.thankyou-brand img { height: 28px; width: auto; opacity: .6; }
.thankyou-brand-img { height: 40px; width: auto; opacity: .75; margin-top: 4px; }

/* ── TOAST ────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--gray-800);
  color: #fff;
  padding: 13px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  z-index: 999;
  box-shadow: var(--shadow-lg);
  transition: transform .3s ease, opacity .3s ease;
  opacity: 0;
  white-space: nowrap;
  max-width: 90vw;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.success { background: var(--hci-success); }
.toast.error   { background: var(--hci-danger); }
.toast.info    { background: var(--hci-teal); }

/* ── MISC ─────────────────────────────────────────────────────── */
.loading-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-400);
  font-size: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.loading-state i { font-size: 28px; color: var(--hci-teal); }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-400);
}
.empty-state i { font-size: 48px; display: block; margin-bottom: 16px; color: var(--gray-300); }
.empty-state p { font-size: 15px; margin-bottom: 20px; }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 680px) {
  .header-inner {
    padding: 0 12px;
    height: auto;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .logo-img { height: 34px; }
  .brand-name { font-size: 13px; }
  .brand-tagline { display: none; }
  .header-nav { width: 100%; justify-content: space-between; gap: 4px; }
  .nav-btn {
    padding: 7px 10px;
    font-size: 12px;
    flex: 1;
    justify-content: center;
  }
  .nav-btn span.nav-label { display: none; }
  /* Show short labels on mobile using data attribute trick */
  #navBuilder::after { content: ' Create'; font-size: 11px; }
  #navSurveys::after { content: ' Surveys'; font-size: 11px; }
  #navResponses::after { content: ' Results'; font-size: 11px; }

  .main-content { padding: 20px 14px 60px; }
  .panel-header h1 { font-size: 20px; }
  .card { padding: 20px; }

  .form-row { grid-template-columns: 1fr; }
  .actions-row { flex-direction: column; }
  .actions-row .btn { justify-content: center; }

  .take-hero { padding: 24px 20px; }
  .take-hero h1 { font-size: 20px; }
  .take-card, .take-question-block, .take-submit-area { padding: 18px 16px; }
  .take-submit-area { flex-direction: column; align-items: stretch; }
  .take-submit-area .btn-lg { text-align: center; justify-content: center; }
  .thankyou-card { padding: 40px 24px; }

  .surveys-grid { grid-template-columns: 1fr; }
  .q-meta-row { flex-direction: column; align-items: flex-start; }
  .q-type-select { max-width: 100%; width: 100%; }
  .rating-btn { width: 38px; height: 38px; font-size: 14px; }
}
