/* Salesedge Feedback Platform — shared CSS */

:root {
  --cream: #F3E4D0;
  --cream-dk: #E8D2B8;
  --teal: #0D393A;
  --teal-lt: #174F50;
  --taupe: #A1907A;
  --gold: #ECAA56;
  --gold-dk: #d4923c;
  --red: #EF4444;
  --green: #22C55E;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream); color: var(--teal);
  font-family: 'Abhaya Libre', serif;
  overflow-x: hidden; min-height: 100vh;
}
a { text-decoration: none; color: inherit; }

/* ─── TYPOGRAPHY ─── */
.kicker {
  font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase; color: var(--taupe);
  display: flex; align-items: center; gap: 10px; margin-bottom: 24px;
}
.kicker::before { content: ''; display: block; width: 28px; height: 1px; background: var(--gold); }
.kicker-lt { color: rgba(243,228,208,.55); }

/* ─── BUTTONS ─── */
.btn {
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 0 28px; height: 46px; line-height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; border: none; transition: all .2s;
  text-align: center;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--gold); color: var(--teal); font-weight: 700; }
.btn-primary:hover:not(:disabled) { background: var(--gold-dk); transform: translateY(-2px); }
.btn-secondary { background: var(--teal); color: var(--cream); }
.btn-secondary:hover:not(:disabled) { background: var(--teal-lt); transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--teal);
  border: 1.5px solid rgba(13,57,58,.25);
}
.btn-ghost:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.btn-block { width: 100%; }
.btn-lg { height: 54px; line-height: 54px; padding: 0 36px; font-size: 13px; }
.btn-sm { height: 36px; line-height: 36px; padding: 0 18px; font-size: 11px; }

/* ─── HERO ─── */
.hero {
  background: var(--teal);
  padding: 96px max(48px, calc((100% - 720px) / 2)) 80px;
  text-align: center;
}
.hero h1 {
  font-family: 'Cormorant', serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600; line-height: 1.05; letter-spacing: -1.5px;
  color: var(--cream); margin-bottom: 24px;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p {
  font-family: 'Abhaya Libre', serif; font-size: 18px;
  color: rgba(243,228,208,.78); line-height: 1.6;
  max-width: 560px; margin: 0 auto 32px;
}
.hero-meta {
  font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(243,228,208,.5); margin-top: 18px;
}

/* ─── FORM SECTION ─── */
.form-section {
  background: var(--cream);
  padding: 72px max(24px, calc((100% - 680px) / 2));
}
.form-card {
  max-width: 680px; margin: 0 auto;
}
.form-card h2 {
  font-family: 'Cormorant', serif;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 600; color: var(--teal);
  letter-spacing: -1px; line-height: 1.1;
  text-align: center; margin-bottom: 48px;
}

.field { margin-bottom: 36px; }
.field-label {
  display: block;
  font-family: 'Inter', sans-serif; font-size: 13px;
  font-weight: 600; color: var(--teal);
  margin-bottom: 14px; letter-spacing: 0.3px;
}
.field-label .req { color: var(--gold); }
.field-help {
  font-family: 'Abhaya Libre', serif; font-size: 14px;
  color: rgba(13,57,58,.55); margin-top: 8px;
}

.select, .text-input, .textarea {
  width: 100%; padding: 14px 16px;
  background: var(--cream-dk);
  border: 1.5px solid rgba(13,57,58,.12);
  font-family: 'Abhaya Libre', serif; font-size: 16px;
  color: var(--teal);
  transition: border-color .2s, background .2s;
}
.select { appearance: none; cursor: pointer; padding-right: 40px;
  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 d='M1 1l5 5 5-5' stroke='%230D393A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
.select:focus, .text-input:focus, .textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(243,228,208,.7);
}

/* ─── RATING SCALE (1-10 circles) ─── */
.rating-row {
  display: flex; gap: 6px; flex-wrap: wrap;
  justify-content: space-between;
}
.rating-btn {
  width: 44px; height: 44px;
  border: 1.5px solid rgba(13,57,58,.18);
  background: transparent;
  border-radius: 50%;
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600;
  color: rgba(13,57,58,.6); cursor: pointer;
  transition: all .15s;
  display: flex; align-items: center; justify-content: center;
}
.rating-btn:hover {
  border-color: var(--gold); color: var(--gold);
  transform: translateY(-2px);
}
.rating-btn.selected {
  background: var(--gold); border-color: var(--gold);
  color: var(--teal); font-weight: 700;
}
.rating-labels {
  display: flex; justify-content: space-between;
  margin-top: 10px;
  font-family: 'Inter', sans-serif; font-size: 11px;
  color: rgba(13,57,58,.5);
}

/* ─── CHECKBOX ─── */
.checkbox-row {
  display: flex; gap: 14px; align-items: flex-start;
  margin: 32px 0;
}
.checkbox-row input[type="checkbox"] {
  width: 20px; height: 20px;
  margin-top: 2px;
  accent-color: var(--gold);
  cursor: pointer; flex-shrink: 0;
}
.checkbox-row label {
  font-family: 'Abhaya Libre', serif; font-size: 15px;
  color: rgba(13,57,58,.75); line-height: 1.55;
  cursor: pointer;
}

/* ─── FORM STATUS ─── */
.form-status {
  margin-top: 24px; padding: 16px 20px;
  font-family: 'Inter', sans-serif; font-size: 13px;
  display: none;
}
.form-status.success {
  display: block;
  background: rgba(34,197,94,.1); border-left: 3px solid var(--green);
  color: var(--teal);
}
.form-status.error {
  display: block;
  background: rgba(239,68,68,.08); border-left: 3px solid var(--red);
  color: var(--teal);
}

/* ─── REFLECTION-STRIP ─── */
.reflection {
  background: var(--cream-dk);
  padding: 64px max(48px, calc((100% - 720px) / 2));
  text-align: center;
}
.reflection h3 {
  font-family: 'Cormorant', serif;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 600; color: var(--teal);
  letter-spacing: -0.5px; line-height: 1.15; margin-bottom: 16px;
}
.reflection h3 em { font-style: italic; color: var(--gold); }
.reflection p {
  font-family: 'Abhaya Libre', serif; font-size: 16px;
  color: rgba(13,57,58,.7); line-height: 1.6;
  max-width: 520px; margin: 0 auto;
}

/* ─── FOOTER ─── */
footer {
  background: var(--cream);
  padding: 32px max(24px, calc((100% - 720px) / 2));
  text-align: center;
  border-top: 1px solid rgba(13,57,58,.08);
}
.footer-copy {
  font-family: 'Inter', sans-serif; font-size: 12px;
  color: rgba(13,57,58,.45);
}
.footer-copy a {
  color: rgba(13,57,58,.65); text-decoration: underline;
  text-decoration-color: rgba(13,57,58,.2);
  text-underline-offset: 3px; margin-left: 12px;
}
.footer-copy a:hover { color: var(--gold); text-decoration-color: var(--gold); }

/* ─── SUCCESS-VIEW (after submit) ─── */
.success-view {
  background: var(--cream); padding: 96px 22px;
  text-align: center; min-height: 60vh;
  display: none;
}
.success-view.active { display: block; }
.success-icon {
  width: 64px; height: 64px; margin: 0 auto 24px;
  background: var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--teal);
}
.success-view h2 {
  font-family: 'Cormorant', serif; font-size: 40px;
  font-weight: 600; color: var(--teal); margin-bottom: 16px;
  letter-spacing: -1px;
}
.success-view p {
  font-family: 'Abhaya Libre', serif; font-size: 18px;
  color: rgba(13,57,58,.7); max-width: 480px; margin: 0 auto;
}

/* ─── ADMIN LAYOUT ─── */
.auth-bg {
  min-height: 100vh; background: var(--cream-dk);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.auth-card {
  background: var(--cream);
  border: 1px solid rgba(13,57,58,.08);
  padding: 48px 40px;
  width: 100%; max-width: 400px;
  text-align: center;
}
.auth-icon {
  width: 52px; height: 52px; margin: 0 auto 24px;
  border: 1.5px solid rgba(13,57,58,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--teal);
}
.auth-card h1 {
  font-family: 'Cormorant', serif; font-size: 32px;
  font-weight: 600; color: var(--teal); margin-bottom: 28px;
  letter-spacing: -0.5px;
}
.auth-card .text-input {
  margin-bottom: 14px;
}
.auth-card .btn { width: 100%; margin-top: 6px; }
.auth-error {
  margin-top: 16px; padding: 12px;
  background: rgba(239,68,68,.08); border-left: 3px solid var(--red);
  font-family: 'Inter', sans-serif; font-size: 13px;
  color: var(--teal); text-align: left;
  display: none;
}
.auth-error.active { display: block; }

/* ─── DASHBOARD ─── */
.admin-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--teal); color: var(--cream);
  padding: 18px max(24px, calc((100% - 1200px) / 2));
  display: flex; justify-content: space-between; align-items: center;
}
.admin-nav h1 {
  font-family: 'Cormorant', serif; font-size: 22px;
  font-weight: 600; letter-spacing: -0.5px;
}
.admin-nav h1 em { font-style: italic; color: var(--gold); }
.admin-nav nav { display: flex; gap: 24px; align-items: center; }
.admin-nav nav a {
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500;
  color: rgba(243,228,208,.6); letter-spacing: 1px; text-transform: uppercase;
  transition: color .2s; cursor: pointer;
}
.admin-nav nav a:hover, .admin-nav nav a.active { color: var(--gold); }

.admin-main {
  padding: 56px max(24px, calc((100% - 1200px) / 2)) 96px;
  max-width: 100%;
}
.admin-tab { display: none; }
.admin-tab.active { display: block; }

.admin-section { margin-bottom: 56px; }
.admin-section h2 {
  font-family: 'Cormorant', serif; font-size: 32px;
  font-weight: 600; color: var(--teal); margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.admin-section .section-sub {
  font-family: 'Abhaya Libre', serif; font-size: 16px;
  color: rgba(13,57,58,.6); margin-bottom: 32px;
}

/* Responses table */
.responses-grid {
  display: grid; grid-template-columns: 1fr; gap: 12px;
}
.response-card {
  background: var(--cream-dk);
  border-left: 3px solid var(--gold);
  padding: 24px 28px;
  display: grid; grid-template-columns: 1fr auto; gap: 16px;
}
.response-meta {
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 500;
  color: rgba(13,57,58,.5); letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.response-meta strong { color: var(--teal); font-weight: 600; }
.response-ratings { display: flex; gap: 18px; margin-bottom: 14px; flex-wrap: wrap; }
.response-rating {
  font-family: 'Inter', sans-serif; font-size: 12px;
  color: rgba(13,57,58,.6);
}
.response-rating span {
  display: inline-block; padding: 2px 8px;
  background: var(--cream); color: var(--teal);
  font-weight: 700; margin-left: 4px;
}
.response-quote {
  font-family: 'Cormorant', serif; font-style: italic;
  color: var(--teal); font-size: 17px; line-height: 1.5;
  border-left: 2px solid var(--gold); padding-left: 14px;
  margin-top: 12px;
}
.response-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.badge {
  display: inline-block; padding: 3px 10px;
  font-family: 'Inter', sans-serif; font-size: 9px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase;
}
.badge-gold { background: var(--gold); color: var(--teal); }
.badge-grey { background: rgba(13,57,58,.1); color: rgba(13,57,58,.6); }

/* Editor lists (questions, companies) */
.editor-list {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--cream-dk); padding: 4px;
}
.editor-row {
  background: var(--cream); padding: 16px 20px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center;
}
.editor-row .label {
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600;
  color: rgba(13,57,58,.5); letter-spacing: 1px; text-transform: uppercase;
}
.editor-row .text {
  font-family: 'Abhaya Libre', serif; font-size: 16px;
  color: var(--teal);
}
.editor-row .actions { display: flex; gap: 6px; }
.add-row {
  background: var(--cream); padding: 14px 20px;
  display: grid; grid-template-columns: 1fr auto; gap: 12px;
  border: 1.5px dashed rgba(13,57,58,.18);
}

.empty {
  background: var(--cream-dk); padding: 48px 24px;
  text-align: center;
  font-family: 'Abhaya Libre', serif; font-size: 16px;
  color: rgba(13,57,58,.5);
}

/* ─── RESPONSIVE ─── */
@media(max-width: 720px) {
  .hero { padding: 64px 22px 56px; }
  .form-section, .reflection, footer { padding-left: 22px; padding-right: 22px; }
  .rating-btn { width: 36px; height: 36px; font-size: 13px; }
  .rating-row { gap: 4px; }
  .admin-nav { padding: 16px 22px; flex-wrap: wrap; gap: 12px; }
  .admin-main { padding: 32px 22px 64px; }
  .response-card { grid-template-columns: 1fr; }
  .response-actions { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
}
