/* File: smart-site-builder.css */

/* ───────────────────────────────────────────────────────────
   Smart / Business Listing Builder Shell
   ─────────────────────────────────────────────────────────── */

.ll-smart-site-builder__preview-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ll-smart-site-builder__preview-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ll-smart-site-builder__view-listing,
.ll-smart-site-builder__change-plan {
  display: none; /* JS decides which one is visible */
}

.ll-smart-site-builder__view-listing {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 13px;
  font-weight: 400;
  color: #111827;
  text-decoration: none;
}

.ll-smart-site-builder__view-listing:hover {
  text-decoration: underline;
}

.ll-smart-site-builder__view-listing-icon {
  width: 13px;
  height: 13px;
}

.ll-smart-site-builder {
  width: 100%;
  max-width: 1440px;
  margin: 2rem auto;
  padding-left: 30px;
  padding-right: 30px;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0f172a;
  font-size: 1.4rem; /* NEW: base size for builder UI */
}

.ll-smart-site-builder__header {
  margin-bottom: 1.5rem;
}

.ll-smart-site-builder__header h1 {
  margin: 0 0 0.5rem;
  font-size: 1.7rem;
  font-weight: 700;
}

.ll-smart-site-builder__header p {
  margin: 0 0 0.3rem;
}

.ll-smart-site-builder__current-status {
  font-size: 1.4rem;
  color: #4b5563;
}

.ll-smart-site-builder__business-label {
  font-size: 1.4rem;
  color: #4b5563;
}

/* Layout: left form vs right preview */

.ll-smart-site-builder__layout {
  display: grid;
grid-template-columns: 0.9fr 2.5fr;
  gap: 2rem;
}

/* Panels */

.ll-smart-site-builder__panel {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.ll-smart-site-builder__panel--form {
  padding: 1.25rem 1.5rem;
}

.ll-smart-site-builder__panel--preview {
  padding: 1.25rem 1.5rem;
}

/* ───────────────────────────────────────────────────────────
   Form groups
   ─────────────────────────────────────────────────────────── */

.ll-smart-site-builder__group {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px dashed #e5e7eb;
}

.ll-smart-site-builder__group:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.ll-smart-site-builder__group legend {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.ll-smart-site-builder__group p {
  margin: 0 0 0.65rem;
}

.ll-smart-site-builder__group label {
  display: block;
  font-size: 1.4rem;
}

.ll-smart-site-builder__group input[type="text"],
.ll-smart-site-builder__group input[type="number"],
.ll-smart-site-builder__group textarea,
.ll-smart-site-builder__group select {
  width: 100%;
  max-width: 100%;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  font-size: 1.4rem;
  margin-top: 0.25rem;
  box-sizing: border-box;
}

.ll-smart-site-builder__group textarea {
  min-height: 80px;
  resize: vertical;
}

.ll-smart-site-builder__group small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: #6b7280;
}

/* Plan toggle radio group */

.ll-smart-site-builder__group--plan-toggle label {
  display: inline-flex;
  align-items: center;
  margin-right: 1.4rem;
  margin-top: 0.25rem;
  font-size: 1.4rem;
}

.ll-smart-site-builder__group--plan-toggle input[type="radio"] {
  margin-right: 0.35rem;
}

/* Team slots */

.ll-smart-site-builder__team-slot {
  margin: 1.4rem 0 1.1.4rem;
  padding: 0.8rem 1.4rem;
  border-radius: 8px;
  background: #f9fafb;
  border: 1px dashed #d1d5db;
}

.ll-smart-site-builder__team-slot h4 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
  font-weight: 600;
}

/* Read-only core info */

.ll-smart-site-builder__core-info {
  margin-top: 1.25rem;
  padding-top: 1.1.4rem;
  border-top: 1px dashed #e5e7eb;
  font-size: 1.4rem;
}

.ll-smart-site-builder__core-info h3 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
  font-weight: 600;
}

.ll-smart-site-builder__core-info ul {
  margin: 0 0 0.5rem;
  padding-left: 1.1.4rem;
}

/* Price summary */

.ll-smart-site-builder__price-summary {
  font-size: 1.4rem;
}

#ll-smart-site-price-display {
  font-weight: 700;
}

/* Status messages */

.ll-smart-site-builder__status {
  margin-top: 0.75rem;
  font-size: 1.4rem;
}

.ll-status-ok {
  color: #166534;
}

.ll-status-error {
  color: #b91c1c;
}

/* Actions row */

.ll-smart-site-builder__actions {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* WP button tweaks (so they look okay inside this panel) */

.ll-smart-site-builder__actions .button {
  font-size: 1.4rem;
  padding: 0.45rem 1.4rem;
}

/* ───────────────────────────────────────────────────────────
   Right-hand preview panel
   ─────────────────────────────────────────────────────────── */

.ll-smart-site-builder__preview-header h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1.4rem;
  font-weight: 600;
}

.ll-smart-site-builder__preview-header p {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
  color: #6b7280;
}

.ll-smart-site-builder__preview-surface {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border-radius: 10px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  max-height: 500vh;
  overflow: auto;
}

/* ───────────────────────────────────────────────────────────
   Simple “plan visibility” helpers if you use them
   (optional – class-based hiding instead of display:none in JS)
   ─────────────────────────────────────────────────────────── */

.ll-blb-plan-hidden {
  display: none !important;
}

/* ───────────────────────────────────────────────────────────
   Responsive
   ─────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .ll-smart-site-builder__layout {
    grid-template-columns: 1fr;
  }

  .ll-smart-site-builder__panel--preview {
    margin-top: 1.5rem;
  }
}

@media (max-width: 640px) {
  .ll-smart-site-builder__panel--form,
  .ll-smart-site-builder__panel--preview {
    padding: 1.4rem;
  }
}

/* ───────────────────────────────────────────────────────────
   Plan Change Modal
   ─────────────────────────────────────────────────────────── */

#ll-plan-change-modal {
  position: fixed;
  inset: 0;
  display: none;            /* jQuery .show() will override this */
  z-index: 9999;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.4rem;
}

.ll-plan-change-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.ll-plan-change-modal__dialog {
  position: relative;
  max-width: 480px;
  width: 100%;
  margin: 10vh auto;
  background: #ffffff;
  border-radius: 12px;
  padding: 1.75rem 2rem;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
  z-index: 1;
}

.ll-plan-change-modal__title {
  margin: 0 0 0.75rem;
  font-size: 1.6rem;
  font-weight: 700;
}

.ll-plan-change-modal__message,
.ll-plan-change-modal__summary {
  margin: 0 0 0.75rem;
}

.ll-plan-change-modal__summary strong {
  font-weight: 700;
}

.ll-plan-change-modal__actions {
  margin-top: 1.25rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.ll-plan-change-modal__actions .button {
  font-size: 1.4rem;
  padding: 0.45rem 1.4rem;
}
