/* West Chester Market brand colors, pulled from WCT-Market_2C.svg:
   blue #00567D, green #76BC21, white #FFFFFF */
:root {
  --brand-blue: #00567D;
  --brand-blue-dark: #00405e;
  --brand-green: #76BC21;
  --brand-green-dark: #5e9a18;
  --ink: #1c2b33;
  --paper: #ffffff;
  --wash: #f2f7f5;
  --border: #cdddE5;
  --error: #b3261e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--wash);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background: var(--paper);
  border-bottom: 4px solid var(--brand-green);
  padding: 16px;
  display: flex;
  justify-content: center;
}

.logo { height: 96px; width: auto; }

.survey-shell {
  flex: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.progress-track {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  margin-bottom: 24px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: var(--brand-green);
  border-radius: 4px;
  transition: width 0.25s ease;
}

.step { display: none; }
.step.active { display: block; animation: rise 0.25s ease; }

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

h1 { color: var(--brand-blue); font-size: 1.7rem; margin: 0 0 12px; }
h2 { color: var(--brand-blue); font-size: 1.3rem; margin: 0 0 16px; }
h3 { color: var(--brand-blue); font-size: 1.05rem; margin: 20px 0 10px; }

.lead { font-size: 1.05rem; line-height: 1.5; margin: 0 0 14px; }
.hint { color: #51646e; font-size: 0.92rem; margin: 0 0 14px; line-height: 1.4; }

.rating-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.rating-btn {
  flex: 1 1 100px;
  min-width: 100px;
  background: var(--paper);
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 14px 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}

.rating-btn .rating-face {
  width: 34px;
  height: 34px;
  color: var(--brand-blue);
}

.rating-btn.selected .rating-face { color: var(--brand-green-dark); }

.rating-btn .rating-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-blue);
}

.rating-btn .rating-label {
  font-size: 0.78rem;
  color: #51646e;
  text-align: center;
}

.rating-btn:hover { border-color: var(--brand-blue); }

.rating-btn.selected {
  border-color: var(--brand-green);
  background: #f1f9e6;
}

.rating-btn.selected .rating-num { color: var(--brand-green-dark); }

.option-list { display: flex; flex-direction: column; gap: 10px; }

.option-btn {
  background: var(--paper);
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.option-btn:hover { border-color: var(--brand-blue); }

.option-btn.selected {
  border-color: var(--brand-green);
  background: #f1f9e6;
  font-weight: 600;
}

.conditional {
  margin-top: 18px;
  padding: 16px;
  background: var(--paper);
  border-left: 4px solid var(--brand-green);
  border-radius: 0 10px 10px 0;
}

label {
  display: block;
  font-weight: 600;
  color: var(--brand-blue);
  margin: 14px 0 6px;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}

input:focus, textarea:focus, .option-btn:focus-visible, .rating-btn:focus-visible, .btn:focus-visible {
  outline: 3px solid rgba(0, 86, 125, 0.35);
  outline-offset: 1px;
}

textarea { resize: vertical; }

.nav-row {
  display: flex;
  gap: 10px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.btn {
  border: none;
  border-radius: 10px;
  padding: 13px 22px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-primary {
  background: var(--brand-blue);
  color: var(--paper);
  flex: 1;
}

.btn-primary:hover { background: var(--brand-blue-dark); }
.btn-primary:disabled { background: #8aa6b3; cursor: wait; }

.btn-secondary {
  background: var(--paper);
  color: var(--brand-blue);
  border: 2px solid var(--brand-blue);
}

.btn-secondary:hover { background: #e8f1f6; }

.btn-tertiary {
  background: transparent;
  color: #51646e;
  text-decoration: underline;
}

.field-error {
  color: var(--error);
  font-weight: 600;
  margin: 12px 0 0;
}

.thanks-card {
  background: var(--paper);
  border-top: 6px solid var(--brand-green);
  border-radius: 12px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 64, 94, 0.08);
}

.coupon-intro { font-size: 1.02rem; margin: 18px 0 10px; }

.coupon-box {
  display: inline-block;
  background: var(--brand-blue);
  color: var(--paper);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 14px 28px;
  border-radius: 10px;
  border: 3px dashed var(--brand-green);
  margin: 6px 0 14px;
  user-select: all;
}

.site-footer {
  background: var(--brand-blue);
  color: var(--paper);
  text-align: center;
  padding: 14px;
  font-size: 0.9rem;
}

.site-footer p { margin: 0; }

@media (max-width: 480px) {
  .logo { height: 72px; }
  .rating-btn { min-width: 56px; flex: 1 1 56px; padding: 10px 4px; }
  .rating-btn .rating-label { display: none; }
  .rating-btn .rating-face { width: 28px; height: 28px; }
}
