/* ===========================
   KARRIERÚT-TERVEZŐ APP
   Design: Sipos Évi Coaching&Styling
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;600;700&family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=Cormorant+Garamond:wght@300;400;500;600&display=swap');

/* ── CSS Variables ── */
:root {
  --bg: #FAF8F5;
  --bg-card: #FFFFFF;
  --text: #4A4A5A;
  --text-light: #7A7A8A;
  --heading: #3D3D4A;
  --primary: #1A5F6E;
  --primary-light: #E8F4F6;
  --primary-hover: #14505D;
  --accent: #C2185B;
  --accent-light: #FDE8F0;
  --accent-hover: #A01549;
  --border: #E8E4DF;
  --shadow: rgba(0, 0, 0, 0.06);
  --shadow-hover: rgba(0, 0, 0, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Lora', Georgia, serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── App Container ── */
.app-container {
  max-width: 520px;
  margin: 0 auto;
  padding: 20px 16px 40px;
  min-height: 100vh;
  position: relative;
}

/* ── Header / Branding ── */
.app-header {
  text-align: center;
  padding: 30px 0 10px;
  margin-bottom: 10px;
}

.brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.1rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--heading);
  margin-bottom: 2px;
}

.brand-tagline {
  font-family: 'Dancing Script', cursive;
  font-size: 1.15rem;
  color: var(--accent);
  font-weight: 400;
}

/* ── Progress Bar ── */
.progress-container {
  margin: 20px 0 30px;
  position: relative;
}

.progress-bar-bg {
  width: 100%;
  height: 3px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}

.progress-label {
  font-size: 0.72rem;
  color: var(--text-light);
  text-align: right;
  margin-top: 6px;
  letter-spacing: 0.04em;
}

/* ── Phase Indicators ── */
.phase-indicator {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 28px;
}

.phase-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.35;
  transition: var(--transition);
}

.phase-dot.active {
  opacity: 1;
}

.phase-dot.completed {
  opacity: 0.7;
}

.phase-dot-circle {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  transition: var(--transition);
}

.phase-dot.active .phase-dot-circle {
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.phase-dot.completed .phase-dot-circle {
  background: var(--accent);
}

.phase-dot-label {
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
}

/* ── Section Titles ── */
.section-title {
  font-family: 'Dancing Script', cursive;
  font-size: 1.75rem;
  color: var(--primary);
  text-align: center;
  margin-bottom: 8px;
  font-weight: 600;
}

.section-subtitle {
  font-size: 0.85rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 32px;
  line-height: 1.6;
}

/* ── Question Card ── */
.question-screen {
  display: none;
  animation: fadeSlideIn 0.5s ease forwards;
}

.question-screen.active {
  display: block;
}

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

@keyframes fadeSlideOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-24px);
  }
}

.question-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: 0 2px 20px var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.question-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 500;
}

.question-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--heading);
  line-height: 1.5;
  margin-bottom: 24px;
}

/* ── Tiles ── */
.tiles-container {
  display: grid;
  gap: 10px;
}

.tiles-container.single-select {
  grid-template-columns: 1fr;
}

.tiles-container.multi-select {
  grid-template-columns: 1fr 1fr;
}

.tile {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 8px; /* Slightly reduced horizontal padding */
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  font-family: 'Lora', serif;
  font-size: 0.85rem; /* Slightly smaller base font */
  color: var(--text);
  position: relative;
  overflow: hidden;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.tile:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--shadow);
}

.tile.selected {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(26, 95, 110, 0.25);
}

.tile.selected:hover {
  background: var(--primary-hover);
}

.tile-icon {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.tile-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 8px;
  border: 2px solid var(--border);
  background: #eee;
}

.tile.selected .tile-img {
  border-color: #fff;
}

.tile-label {
  font-weight: 500;
  font-size: 0.82rem;
  line-height: 1.2;
  display: block;
  width: 100%;
}

.tile-desc {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 3px;
  line-height: 1.3;
}

.tile.selected .tile-desc {
  color: rgba(255, 255, 255, 0.75);
}

/* Custom Input Tile */
.tile-custom-input {
  display: none;
  margin-top: 10px;
}

.tile-custom-input.visible {
  display: block;
  animation: fadeSlideIn 0.3s ease forwards;
}

/* ── Text Inputs ── */
.input-field {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: var(--transition);
  outline: none;
}

.input-field:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
  background: #fff;
}

textarea.input-field {
  min-height: 120px;
  resize: vertical;
  line-height: 1.7;
}

.input-hint {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 8px;
  font-style: italic;
}

/* ── Sliders ── */
.slider-container {
  padding: 10px 0;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.78rem;
  color: var(--text-light);
}

.slider-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--primary-light), var(--primary));
  outline: none;
  transition: var(--transition);
}

.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(26, 95, 110, 0.3);
  transition: var(--transition);
}

.slider-input::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 3px 12px rgba(26, 95, 110, 0.4);
}

.slider-value {
  text-align: center;
  margin-top: 12px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--primary);
}

/* ── Multi-slider group ── */
.slider-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.slider-item {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 16px;
  border: 1px solid var(--border);
}

.slider-item-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--heading);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slider-item-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  min-width: 24px;
  text-align: right;
}

/* ── Buttons ── */
.nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  gap: 12px;
}

.btn {
  font-family: 'Lora', serif;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 13px 28px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(26, 95, 110, 0.25);
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 20px rgba(26, 95, 110, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-light);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(194, 24, 91, 0.25);
}

.btn-accent:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 20px rgba(194, 24, 91, 0.35);
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ── Evaluation Section ── */
.evaluation-container {
  animation: fadeSlideIn 0.6s ease forwards;
}

.eval-block {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px var(--shadow);
  animation: fadeSlideIn 0.5s ease forwards;
}

.eval-block:nth-child(2) { animation-delay: 0.1s; }
.eval-block:nth-child(3) { animation-delay: 0.2s; }
.eval-block:nth-child(4) { animation-delay: 0.3s; }
.eval-block:nth-child(5) { animation-delay: 0.4s; }
.eval-block:nth-child(6) { animation-delay: 0.5s; }

.eval-block-icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.eval-block-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eval-block-content {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text);
}

.eval-block-content ul {
  list-style: none;
  padding: 0;
}

.eval-block-content li {
  padding: 4px 0;
  padding-left: 18px;
  position: relative;
}

.eval-block-content li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
}

.eval-jobs {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.eval-job-tag {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ── Gate Question ── */
.gate-section {
  text-align: center;
  padding: 40px 0;
}

.gate-title {
  font-family: 'Dancing Script', cursive;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 24px;
}

.gate-tiles {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 300px;
  margin: 0 auto;
}

.gate-tile {
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  font-family: 'Lora', serif;
  font-size: 0.92rem;
  color: var(--text);
  transition: var(--transition);
  text-align: center;
}

.gate-tile:first-child:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(194, 24, 91, 0.25);
}

.gate-tile:last-child:hover {
  border-color: var(--text-light);
  color: var(--text);
}

/* ── Flowchart ── */
.flowchart-container {
  padding: 20px 0;
  animation: fadeSlideIn 0.6s ease forwards;
}

.flowchart-title {
  font-family: 'Dancing Script', cursive;
  font-size: 1.8rem;
  color: var(--primary);
  text-align: center;
  margin-bottom: 32px;
  font-weight: 600;
}

.flowchart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
}

.flow-node {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  width: 100%;
  max-width: 380px;
  position: relative;
  box-shadow: 0 2px 12px var(--shadow);
  animation: fadeSlideIn 0.5s ease forwards;
  opacity: 0;
}

.flow-node:nth-child(1) { animation-delay: 0.1s; }
.flow-node:nth-child(3) { animation-delay: 0.2s; }
.flow-node:nth-child(5) { animation-delay: 0.3s; }
.flow-node:nth-child(7) { animation-delay: 0.4s; }
.flow-node:nth-child(9) { animation-delay: 0.5s; }
.flow-node:nth-child(11) { animation-delay: 0.6s; }
.flow-node:nth-child(13) { animation-delay: 0.7s; }
.flow-node:nth-child(15) { animation-delay: 0.8s; }

.flow-node.highlight {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(194, 24, 91, 0.15);
}

.flow-node-icon {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.flow-node-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 4px;
}

.flow-node-value {
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  color: var(--heading);
  font-weight: 500;
  line-height: 1.5;
}

.flow-connector {
  width: 2px;
  height: 28px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  flex-shrink: 0;
}

/* ── Ending ── */
.ending-section {
  text-align: center;
  padding: 40px 0 20px;
  animation: fadeSlideIn 0.6s ease forwards;
}

.ending-title {
  font-family: 'Dancing Script', cursive;
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.ending-text {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 24px;
}

.ending-brand {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.ending-brand .brand-name {
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.ending-brand .brand-tagline {
  font-size: 1rem;
}

/* ── Welcome Screen ── */
.welcome-screen {
  text-align: center;
  padding: 40px 0;
}

.welcome-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.welcome-title {
  font-family: 'Dancing Script', cursive;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 4px;
  font-weight: 600;
}

.welcome-badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.welcome-desc {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

.welcome-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
  text-align: left;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

.welcome-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text);
}

.welcome-feature-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ── Multi-select hint ── */
.select-hint {
  font-size: 0.75rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 12px;
  font-style: italic;
}

/* ── Validation ── */
.validation-msg {
  color: var(--accent);
  font-size: 0.78rem;
  margin-top: 8px;
  display: none;
}

.validation-msg.visible {
  display: block;
  animation: fadeSlideIn 0.3s ease forwards;
}

/* ── Responsive ── */

@media (max-width: 480px) {
  .app-container {
    padding: 15px 12px 30px;
  }

  .question-card {
    padding: 24px 16px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .brand-name {
    font-size: 0.95rem;
    letter-spacing: 0.25em;
  }

  .flow-node {
    padding: 16px;
  }
}

@media (max-width: 360px) {
  :root {
    --radius: 12px;
  }

  .brand-name {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
  }

  .welcome-title {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.35rem;
  }

  .btn {
    padding: 12px 20px;
    font-size: 0.85rem;
  }

  .tile {
    min-height: 85px;
    padding: 10px 5px;
  }
  
  .tile-label {
    font-size: 0.78rem;
  }
}

@media (min-width: 768px) {
  .app-container {
    padding: 40px 20px 80px;
  }

  .question-card {
    padding: 48px 40px;
  }

  .tiles-container.multi-select {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .section-title {
    font-size: 2.2rem;
  }
}

/* ── Utility ── */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.mt-16 {
  margin-top: 16px;
}

.mb-16 {
  margin-bottom: 16px;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-light);
}

/* ── Welcome Form ── */
.welcome-form {
  max-width: 380px;
  margin: 0 auto;
  text-align: left;
}

.welcome-form .input-field {
  margin-bottom: 16px;
  text-align: center;
}

/* ── Consent Checkbox ── */
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  margin-bottom: 20px;
  padding: 12px 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  user-select: none;
}

.consent-label:hover {
  border-color: var(--primary);
}

.consent-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.consent-checkmark {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: var(--bg-card);
  transition: var(--transition);
  position: relative;
  margin-top: 2px;
}

.consent-label input[type="checkbox"]:checked ~ .consent-checkmark {
  background: var(--primary);
  border-color: var(--primary);
}

.consent-label input[type="checkbox"]:checked ~ .consent-checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.consent-text {
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ── AI Disclaimer ── */
.ai-disclaimer {
  font-size: 0.7rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 16px;
  line-height: 1.5;
  opacity: 0.7;
}

/* ── Loading Spinner ── */
.loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Sentence Builder ── */
.sentence-builder-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.word-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: var(--bg);
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
}

.word-pill {
  background: #fff;
  border: 1.5px solid var(--border);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.word-pill:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.word-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.sentence-display {
  background: #fff;
  padding: 24px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--primary);
  min-height: 80px;
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text);
  box-shadow: 0 4px 15px var(--shadow);
}

.sentence-display span.placeholder {
  color: var(--text-light);
  border-bottom: 1px dotted var(--text-light);
  padding: 0 4px;
}

.sentence-display span.filled {
  color: var(--primary);
  font-weight: 600;
}

.sb-toggle {
  display: block;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--primary);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
}

.sb-free-text {
  display: none;
}

.sb-free-text.visible {
  display: block;
}

.sb-builder.hidden {
  display: none;
}

/* ── Satisfaction Survey ── */
.survey-container {
  margin-top: 40px;
  padding: 32px 24px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px var(--shadow);
  text-align: center;
  animation: fadeSlideIn 0.6s ease forwards;
}

.survey-title {
  font-family: 'Dancing Script', cursive;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 24px;
}

.survey-item {
  margin-bottom: 30px;
}

.survey-question {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 12px;
  line-height: 1.4;
}

/* Star Rating */
.star-rating {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.star-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--border);
  transition: var(--transition);
  padding: 4px;
}

.star-btn:hover,
.star-btn.active {
  color: #FFB300;
  transform: scale(1.1);
}

/* Fixed Options */
.survey-options {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.survey-opt-btn {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-family: 'Lora', serif;
  font-size: 0.85rem;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
}

.survey-opt-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.survey-opt-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ── Newsletter Section ── */
.newsletter-box {
  margin-top: 40px;
  padding: 32px 24px;
  background: var(--primary-light);
  border-radius: var(--radius);
  border: 1px solid var(--primary);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter-box::before {
  content: '✉️';
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 5rem;
  opacity: 0.05;
  transform: rotate(15deg);
}

.newsletter-title {
  font-family: 'Dancing Script', cursive;
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.newsletter-text {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 24px;
}

.newsletter-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(194, 24, 91, 0.25);
}

.newsletter-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(194, 24, 91, 0.35);
}

.thanks-msg {
  display: none;
  margin-top: 20px;
  color: var(--primary);
  font-weight: 600;
  font-style: italic;
  animation: fadeSlideIn 0.5s ease;
}

