/* File: survey.css */

/* ───────────────────────────────────────────────────────────
   Headings / base layout
   ─────────────────────────────────────────────────────────── */

.ll-question-heading {
  font-size: 20px !important;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1rem;
  font-size:1.5rem; 
  margin-bottom:16px;
}

/* Centered wrappers used in some steps */
#ll-client-survey .ll-radio-wrapper,
#ll-client-survey .ll-centered-options {
  display: flex;
  justify-content: center;
  margin: 15px 0;
  flex-direction: column;
  align-items: center;
}

#ll-client-survey .ll-radio-wrapper label,
#ll-client-survey .ll-centered-options label {
  font-size: 20px;
  font-weight: 500;
  text-align: left;
  width: 100%;
  max-width: 350px;
  margin: 0;
}

#ll-client-survey .ll-next-button-wrapper {
  text-align: center;
  margin-top: 20px;
}

/* Center all "(Select all that interest you)" style notes */
.ll-sub-note {
  display: block;
  text-align: center;
  font-style: italic;
  margin: 6px 0 12px;
  width: 100%;
}

/* ───────────────────────────────────────────────────────────
   Survey Intro Step Layout
   ─────────────────────────────────────────────────────────── */

.ll-survey-intro {
  text-align: center;
}

.ll-survey-intro .ll-question-heading,
.ll-survey-intro .ll-sub-note {
  text-align: center;
}

/* Body copy (normal paragraphs) left-aligned, optionally constrained */
.ll-survey-intro p:not(.ll-question-heading):not(.ll-sub-note) {
  text-align: left;
  /* max-width: 720px; */
}

/* Buttons centered */
.ll-survey-intro .ll-intro-buttons {
  display: flex;
  justify-content: center !important;
  margin-top: 2rem;
}

/* Skip link centered as well */
.ll-survey-intro .ll-skip-link {
  text-align: center;
  margin-top: 1rem;
  font-size: 15px;
}

/* ───────────────────────────────────────────────────────────
   Lists / checklist
   ─────────────────────────────────────────────────────────── */

.ll-list-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

#ll-client-survey .ll-list-wrapper ul {
  text-align: left;
  padding-left: 3px;
  margin: 0 0 0 10px;
}

.ll-checklist-free {
  list-style: disc;
  padding-left: 20px;
  font-size: 16px;
  max-width: 400px;
}

.ll-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 18px;
  max-width: 800px;
}

.ll-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 20px;
}

.ll-checklist i {
  font-size: 22px;
  min-width: 24px;
  text-align: center;
  color: #0000ff;
}

/* ───────────────────────────────────────────────────────────
   Yes / Maybe / No radios & generic answer groups
   ─────────────────────────────────────────────────────────── */

.ll-answer-group {
  max-width: 600px;
  width: 100%;
  margin: 0 auto 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.ll-answer-group label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
}

.ll-answer-group input[type="radio"],
.ll-answer-group input[type="checkbox"] {
  margin: 0;
  flex-shrink: 0;
  transform: none;
}

.ll-answer-group span {
  line-height: 1;
}

/* Error highlight for required groups */
.ll-answer-group.ll-has-error {
  outline: 2px solid #dc2626;
  outline-offset: 4px;
  border-radius: 8px;
}

.ll-answer-group.ll-has-error::after {
  content: attr(data-error-msg);
  display: block;
  margin-top: 8px;
  font-size: 0.95rem;
  color: #b91c1c;
}

/* ───────────────────────────────────────────────────────────
   Multi-select checkbox wrapper
   ─────────────────────────────────────────────────────────── */

#ll-client-survey .ll-checkbox-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}

#ll-client-survey .ll-checkbox-wrapper label {
  font-size: 18px;
  font-weight: 500;
  width: 100%;
  max-width: 630px;
  margin: 5px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
}

#ll-client-survey .ll-checkbox-wrapper input[type="checkbox"] {
  margin-top: 8px;
  transform: scale(1.2);
}

.ll-checkbox-wrapper strong {
  white-space: nowrap;
  color: #0073e6;
}

#ll-client-survey .ll-left {
  text-align: left !important;
}

#ll-client-survey .ll-left strong {
  color: #0073e6;
  font-weight: 700;
}

#ll-client-survey .ll-next-button-wrapper .next-step {
  font-size: 18px;
  font-weight: 600;
  padding: 10px 20px;
}

/* ───────────────────────────────────────────────────────────
   Postcard city grid (3 columns → 1 column on small screens)
   ─────────────────────────────────────────────────────────── */

#ll-client-survey .ll-postcard-city-grid {
  /* Override ll-answer-group’s flex column */
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 16px;
  max-width: 900px; /* wider than 600 so 3 cols fit */
  width: 100%;
  margin: 0 auto 1rem;
  align-items: start;
}

@media (min-width: 720px) {
  #ll-client-survey .ll-postcard-city-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

#ll-client-survey .ll-postcard-city-grid .ll-city-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
  text-align: left;
  margin: 0;
  width: 100%;
}

#ll-client-survey .ll-postcard-city-grid .ll-city-option input[type="checkbox"] {
  margin-top: 6px;
  transform: scale(1.15);
}

#ll-client-survey .ll-postcard-city-grid .ll-city-option__text {
  line-height: 1.2;
}

#ll-client-survey .ll-postcard-city-grid .ll-city-option__type {
  font-style: normal; /* treat it like a chip label, not italic */
  font-size: 0.85em;
  opacity: 0.75;
  margin-left: 8px;
  white-space: nowrap;
}

/* ───────────────────────────────────────────────────────────
   Utilities
   ─────────────────────────────────────────────────────────── */

.highlight-blue {
  font-weight: 700;
  color: #0a66c2;
}

#ll-client-survey .ll-center { text-align: center; }
#ll-client-survey .ll-mb-10 { margin-bottom: 10px; }
#ll-client-survey .ll-mb-18 { margin-bottom: 18px; }
#ll-client-survey .ll-mt-18 { margin-top: 18px; }

#ll-client-survey .ll-img-rounded {
  border-radius: 12px;
  display: block;
  margin: 20px auto 30px;
  height: auto;
}

.ll-onboard-banner::before {
  content: "➤";
  color: #c00;
  margin-right: 6px;
  font-weight: bold;
}

#dashboard-modal ol li {
  margin-bottom: 0;
}

/* ───────────────────────────────────────────────────────────
   Step container / layout (from step-buttons.css)
   ─────────────────────────────────────────────────────────── */

/* Step base */
.ll-step {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ll-step.ll-step-active {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ll-gap, 16px);
  opacity: 1;
  animation: llFadeIn 0.3s ease;
}

@keyframes llFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Progress bar (shared for steps/survey) */
.ll-progress-bar {
  width: 100%;
  height: 8px;
  margin-bottom: 20px;
  overflow: hidden;
  background: #eee;
  border-radius: 5px;
}

.ll-progress-indicator {
  height: 100%;
  width: 0;
  background: var(--ll-accent, #0b5c7a);
  transition: width 0.3s ease;
}

/* Step labels */
.ll-step-labels {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  display: flex;
  justify-content: space-between;
}

.ll-step-labels li {
  flex: 1;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: #999;
  position: relative;
}

.ll-step-labels li.active,
.ll-step-labels li.completed {
  color: var(--ll-accent, #0b5c7a);
}

.ll-step-labels li.completed {
  opacity: 0.6;
}

.ll-step-labels li::after {
  content: "";
  display: block;
  margin: 4px auto 0;
  width: 8px;
  height: 8px;
  background: currentColor;
  border-radius: 50%;
}

.ll-final-step {
  font-size: 1.1rem;
  text-align: center;
  padding: 2rem;
}

/* Headings inside steps */
.ll-step .ll-question-heading:first-of-type {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 1.2rem;
  text-align: center;
}

/* Per-step tweaks */
.ll-step .ll-premium-options {
  margin-top: 6px;
}

.ll-step .ll-step-buttons {
  margin-top: 10px;
}

.ll-premium-step-note,
.ll-step-premium-note {
  margin-top: 12px;
  font-size: 13px;
  opacity: 0.85;
  color: var(--ll-muted, #64748b);
  border-top: 1px dashed #e5e7eb;
  padding-top: 8px;
}

/* ───────────────────────────────────────────────────────────
   Responsive grid layout for steps
   ─────────────────────────────────────────────────────────── */

@media (min-width: 720px) {
  .ll-step.ll-step-active[data-step="1"],
  .ll-step.ll-step-active[data-step="2"] {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  /* Full-width elements inside any active grid step */
  .ll-step.ll-step-active > .ll-premium-step-note,
  .ll-step.ll-step-active > .ll-step-premium-note,
  .ll-step.ll-step-active > .ll-step-buttons,
  .ll-step.ll-step-active > h3 {
    grid-column: 1 / -1;
  }
}

/* Optional: tighter spacing for fields on steps 1–2 */
.ll-step.ll-step-active[data-step="1"] > .ll-field,
.ll-step.ll-step-active[data-step="2"] > .ll-field {
  margin: 0;
}

/* Address/Phone/Website layout helpers when a step is 2-col */
@media (min-width: 720px) {
  .ll-step.ll-step-active > .ll-field:has(#ll_address) {
    grid-column: 1 / -1;
  }

  .ll-step.ll-step-active > .ll-field:has(#ll_phone),
  .ll-step.ll-step-active > .ll-field:has(#ll_website) {
    grid-column: auto;
  }
}

/* ───────────────────────────────────────────────────────────
   Step navigation buttons
   ─────────────────────────────────────────────────────────── */

.ll-step-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

/* Natural sizes */
.ll-step-buttons button {
  flex: 0 0 auto;
}

/* Always allow Next to float right */
.ll-step-buttons .next-step {
  margin-left: auto;
}

.ll-step-buttons .prev-step {
  margin-right: auto;
}

/* Right-justify when Back is absent or hidden (no :has needed) */
.ll-step-buttons > .prev-step[hidden] + .next-step,
.ll-step-buttons > .prev-step[style*="display:none"] + .next-step,
.ll-step-buttons > .prev-step.hidden + .next-step,
.ll-step-buttons > .prev-step.is-hidden + .next-step,
.ll-step-buttons > .prev-step[aria-hidden="true"] + .next-step {
  margin-left: auto !important;
}

/* :has() variants for modern engines */
.ll-step-buttons:not(:has(.prev-step)),
.ll-step-buttons:has(.prev-step[hidden]),
.ll-step-buttons:has(.prev-step[style*="display:none"]),
.ll-step-buttons:has(.prev-step.hidden),
.ll-step-buttons:has(.prev-step.is-hidden),
.ll-step-buttons:has(.prev-step[aria-hidden="true"]) {
  justify-content: flex-end !important;
}

/* When we intentionally omit Back, force Next to the right */
.ll-step-buttons.ll-no-prev {
  justify-content: flex-end !important;
}
