/* Pellenc × eBottli Customer Experience Survey */

:root {
  --pellenc-orange: #f2921c;
  --pellenc-orange-deep: #d9780a;
  --pellenc-orange-soft: #fff4e6;
  --pellenc-black: #232325;
  --pellenc-ink: #1a1a1c;
  --ebottli-teal: #3d8fad;
  --ebottli-teal-light: #6baec9;
  --ebottli-navy: #15202b;
  --ebottli-mist: #e8f1f6;
  --ebottli-slate: #3a4a5a;
  --surface: #ffffff;
  --surface-muted: #f6f6f6;
  --border: #e2e6ea;
  --text: #232325;
  --text-muted: #5c6670;
  --success: #2f8f5b;
  --danger: #c0392b;
  --shadow: 0 12px 40px rgba(21, 32, 43, 0.12);
  --radius: 14px;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --max: 820px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(242, 146, 28, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 45% at 95% 10%, rgba(61, 143, 173, 0.14), transparent 50%),
    linear-gradient(180deg, #f8fafb 0%, #eef3f6 45%, #f6f6f6 100%);
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--ebottli-teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

button,
input,
textarea,
select {
  font: inherit;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(21, 32, 43, 0.08);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pellenc-black);
  line-height: 1;
}

.brand-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
}

.ebottli-mark {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ebottli-navy);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.ebottli-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ebottli-teal), var(--ebottli-teal-light));
  box-shadow: 0 0 0 3px rgba(61, 143, 173, 0.18);
}

.header-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: right;
}

.header-meta strong {
  display: block;
  color: var(--ebottli-navy);
  font-size: 0.82rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  min-height: min(68vh, 560px);
  display: grid;
  align-items: end;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: url("../assets/hero-machine.jpg") center 40% / cover no-repeat;
  transform: scale(1.04);
  animation: hero-drift 22s ease-in-out infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 35%, rgba(242, 146, 28, 0.18), transparent 42%),
    linear-gradient(115deg, rgba(21, 32, 43, 0.78) 0%, rgba(21, 32, 43, 0.38) 52%, rgba(21, 32, 43, 0.28) 100%),
    linear-gradient(180deg, rgba(21, 32, 43, 0.2) 0%, transparent 28%, rgba(21, 32, 43, 0.88) 100%);
  pointer-events: none;
}

@keyframes hero-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.2%, -0.8%, 0); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 2.5rem;
  animation: rise-in 0.9s ease both;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1rem;
}

.hero-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--pellenc-orange);
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 0.95;
  max-width: 14ch;
}

.hero h1 .hero-subline {
  display: block;
  margin-top: 0.15em;
  font-size: 0.72em;
  letter-spacing: 0.03em;
  color: var(--pellenc-orange);
}

.hero-lead {
  max-width: 38rem;
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.time-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.92);
}

/* —— Layout —— */
.main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.survey-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
  margin-top: -2.5rem;
  position: relative;
  z-index: 2;
}

@media (max-width: 900px) {
  .survey-shell {
    grid-template-columns: 1fr;
  }
}

.progress-panel {
  align-self: start;
  position: sticky;
  top: 5.5rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(21, 32, 43, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem;
  animation: rise-in 0.7s 0.15s ease both;
}

@media (max-width: 900px) {
  .progress-panel {
    position: static;
  }
}

.progress-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.progress-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--ebottli-mist);
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.progress-bar > span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--pellenc-orange), var(--ebottli-teal));
  border-radius: inherit;
  transition: width 0.45s ease;
}

.progress-pct {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ebottli-navy);
  margin-bottom: 1rem;
}

.step-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.step-nav button {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  color: var(--text-muted);
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: start;
  transition: background 0.2s ease, color 0.2s ease;
}

.step-nav button:hover {
  background: var(--surface-muted);
  color: var(--text);
}

.step-nav button.active {
  background: var(--pellenc-orange-soft);
  color: var(--pellenc-black);
}

.step-nav button.done .step-index {
  background: var(--ebottli-teal);
  color: #fff;
}

.step-index {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-top: 1px;
}

.step-nav button.active .step-index {
  background: var(--pellenc-orange);
  color: #fff;
}

.step-title {
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.25;
}

.panel {
  background: var(--surface);
  border: 1px solid rgba(21, 32, 43, 0.08);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 3vw, 2rem);
  animation: rise-in 0.75s 0.2s ease both;
}

.panel[hidden] {
  display: none !important;
}

.section-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ebottli-teal);
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.panel h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--pellenc-black);
}

.section-intro {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  max-width: 46rem;
}

.privacy-note {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0 1.75rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(61, 143, 173, 0.08), rgba(242, 146, 28, 0.08));
  border: 1px solid rgba(61, 143, 173, 0.18);
}

.privacy-note p {
  margin: 0;
  font-size: 0.95rem;
}

.privacy-note strong {
  color: var(--ebottli-navy);
}

.question {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.question:last-of-type {
  border-bottom: 0;
  margin-bottom: 0.5rem;
  padding-bottom: 0;
}

.question-label {
  display: block;
  font-weight: 700;
  color: var(--pellenc-black);
  margin-bottom: 0.85rem;
  font-size: 1.02rem;
}

.question-label .q-num {
  color: var(--pellenc-orange);
  margin-right: 0.35rem;
}

.option-grid {
  display: grid;
  gap: 0.55rem;
}

.option-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 640px) {
  .option-grid.two {
    grid-template-columns: 1fr;
  }
}

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice span {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.choice span::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 2px solid #c5ced6;
  flex-shrink: 0;
  background: #fff;
  transition: all 0.2s ease;
}

.choice input[type="radio"] + span::before {
  border-radius: 50%;
}

.choice:hover span {
  border-color: var(--ebottli-teal-light);
  transform: translateY(-1px);
}

.choice input:checked + span {
  border-color: var(--pellenc-orange);
  background: var(--pellenc-orange-soft);
  box-shadow: 0 0 0 3px rgba(242, 146, 28, 0.12);
}

.choice input:checked + span::before {
  border-color: var(--pellenc-orange);
  background: var(--pellenc-orange);
  box-shadow: inset 0 0 0 3px #fff;
}

.choice input:focus-visible + span {
  outline: 2px solid var(--ebottli-teal);
  outline-offset: 2px;
}

/* Rating scales */
.rating-row {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.rating-row:last-child {
  margin-bottom: 0;
}

.rating-criteria {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ebottli-slate);
}

.scale {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.scale label {
  cursor: pointer;
}

.scale input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.scale span {
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: all 0.18s ease;
}

.scale label:hover span {
  border-color: var(--pellenc-orange);
  color: var(--pellenc-orange);
}

.scale input:checked + span {
  background: var(--pellenc-orange);
  border-color: var(--pellenc-orange);
  color: #fff;
  transform: translateY(-1px);
}

.scale-legend {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.nps-scale {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 0.3rem;
}

@media (max-width: 700px) {
  .nps-scale {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.nps-scale label span {
  min-width: 0;
  width: 100%;
}

.nps-scale input:checked + span {
  background: var(--ebottli-teal);
  border-color: var(--ebottli-teal);
}

.stars-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

textarea,
.text-input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: #fff;
  color: var(--text);
  resize: vertical;
  min-height: 110px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.text-input {
  min-height: auto;
}

textarea:focus,
.text-input:focus {
  outline: none;
  border-color: var(--ebottli-teal);
  box-shadow: 0 0 0 3px rgba(61, 143, 173, 0.15);
}

.conditional {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 12px;
  background: var(--ebottli-mist);
  border: 1px dashed rgba(61, 143, 173, 0.35);
}

.conditional[hidden] {
  display: none !important;
}

.nav-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--pellenc-orange), var(--pellenc-orange-deep));
  color: #fff;
  box-shadow: 0 8px 20px rgba(242, 146, 28, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 10px 24px rgba(242, 146, 28, 0.36);
}

.btn-secondary {
  background: #fff;
  color: var(--ebottli-navy);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--ebottli-teal-light);
}

.btn-teal {
  background: linear-gradient(135deg, var(--ebottli-teal), #2f7390);
  color: #fff;
  box-shadow: 0 8px 20px rgba(61, 143, 173, 0.28);
}

.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.error-banner {
  display: none;
  margin-bottom: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: #fdecea;
  color: var(--danger);
  border: 1px solid rgba(192, 57, 43, 0.2);
  font-size: 0.9rem;
}

.error-banner.visible {
  display: block;
}

/* Thank you */
.thanks {
  text-align: center;
  padding: 2rem 0.5rem 1rem;
}

.thanks-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--pellenc-orange), var(--ebottli-teal));
  color: #fff;
  font-size: 2rem;
  animation: pop 0.55s ease both;
}

@keyframes pop {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.thanks h2 {
  text-transform: uppercase;
}

.thanks p {
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0.5rem auto 1.5rem;
}

.site-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.site-footer a {
  color: var(--ebottli-navy);
  font-weight: 600;
}

/* —— Dashboard —— */
.dash-body {
  background:
    radial-gradient(ellipse 60% 40% at 0% 0%, rgba(61, 143, 173, 0.16), transparent 50%),
    radial-gradient(ellipse 50% 35% at 100% 0%, rgba(242, 146, 28, 0.12), transparent 45%),
    linear-gradient(180deg, #f4f7f9, #eef2f5);
}

.dash-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.25rem 1rem;
}

.dash-hero h1 {
  margin: 0.25rem 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ebottli-navy);
}

.dash-hero p {
  margin: 0;
  color: var(--text-muted);
  max-width: 42rem;
}

.dash-toolbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.kpi-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 900px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
}

.kpi {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(21, 32, 43, 0.08);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.2rem;
}

.kpi-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.kpi-value {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--ebottli-navy);
  line-height: 1;
}

.kpi-sub {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.dash-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 900px) {
  .dash-grid {
    grid-template-columns: 1fr;
  }
}

.dash-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(21, 32, 43, 0.08);
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.dash-card.wide {
  grid-column: 1 / -1;
}

.dash-card h3 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--pellenc-black);
}

.bar-list {
  display: grid;
  gap: 0.7rem;
}

.bar-item {
  display: grid;
  gap: 0.25rem;
}

.bar-item-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.bar-track {
  height: 8px;
  border-radius: 999px;
  background: var(--ebottli-mist);
  overflow: hidden;
}

.bar-track > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--ebottli-teal), var(--pellenc-orange));
  border-radius: inherit;
}

.comment-list {
  display: grid;
  gap: 0.75rem;
  max-height: 320px;
  overflow: auto;
}

.comment {
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  background: var(--surface-muted);
  font-size: 0.9rem;
  color: var(--ebottli-slate);
}

.empty-state {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 1rem 0;
}

.table-wrap {
  overflow: auto;
}

.response-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.response-table th,
.response-table td {
  text-align: left;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.response-table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
