* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --accent: #197577;
  --accent-dark: #145a5c;
  --black: #000000;
  --white: #ffffff;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-500: #737373;
  --gray-700: #404040;
  --red: #ef4444;
  --green: #22c55e;
  --blue: #3b82f6;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--white);
  color: var(--black);
  min-height: 100vh;
  line-height: 1.5;
}

/* Logo Header */
.logo-header {
  text-align: center;
  padding: 20px 0 10px;
}

.logo-header img {
  height: 48px;
  width: auto;
}

/* Survey Container */
.survey-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 20px 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.survey-header {
  margin-bottom: 32px;
}

.survey-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--black);
}

.survey-title span {
  color: var(--accent);
}

.survey-promise {
  font-size: 14px;
  color: var(--gray-500);
  margin-top: 8px;
}

/* Progress */
.progress-bar {
  height: 4px;
  background: var(--gray-200);
  border-radius: 2px;
  margin-bottom: 32px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.3s ease;
}

/* Steps */
.step {
  display: none;
  flex-direction: column;
  flex: 1;
  animation: fadeIn 0.3s ease;
}

.step.active {
  display: flex;
}

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

/* Question */
.question-label {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.question-text {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--black);
}

/* Visit Type Cards */
.visit-type-grid {
  display: grid;
  gap: 16px;
}

.visit-type-card {
  border: 2px solid var(--accent);
  border-radius: 16px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--white);
}

.visit-type-card:hover {
  background: rgba(25, 117, 119, 0.05);
}

.visit-type-card:active {
  transform: scale(0.98);
}

.visit-type-card.selected {
  background: var(--accent);
  color: var(--white);
}

.visit-type-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.visit-type-card p {
  font-size: 14px;
  color: var(--gray-500);
}

.visit-type-card.selected p {
  color: rgba(255, 255, 255, 0.8);
}

/* Rating Buttons */
.rating-row {
  margin-bottom: 32px;
}

.rating-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.rating-label span {
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
}

.rating-label .required {
  font-size: 12px;
  color: var(--gray-500);
  text-transform: uppercase;
}

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

.rating-btn {
  flex: 1;
  aspect-ratio: 1;
  max-width: 64px;
  border: 2px solid var(--gray-300);
  border-radius: 50%;
  background: var(--white);
  font-size: 18px;
  font-weight: 600;
  color: var(--black);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.rating-btn:active {
  transform: scale(0.95);
}

.rating-btn.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  animation: pulse 0.3s ease;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.rating-anchors {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: var(--gray-500);
  text-transform: uppercase;
}

/* Highlights Pills */
.highlights-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.highlight-pill {
  padding: 12px 20px;
  border: 2px solid var(--gray-300);
  border-radius: 100px;
  background: var(--white);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--black);
  cursor: pointer;
  transition: all 0.15s ease;
}

.highlight-pill:hover {
  border-color: var(--accent);
}

.highlight-pill:active {
  transform: scale(0.97);
}

.highlight-pill.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  animation: pulse 0.3s ease;
}

/* Text Input */
.text-input-group {
  margin-bottom: 24px;
}

.text-input-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  color: var(--black);
}

.text-input {
  width: 100%;
  padding: 16px;
  border: 2px solid var(--gray-300);
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s;
  background: var(--gray-100);
  color: var(--black);
}

.text-input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
}

textarea.text-input {
  min-height: 120px;
  resize: vertical;
}

/* NPS Scale */
.nps-scale {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.nps-btn {
  flex: 1;
  padding: 14px 0;
  border: 2px solid var(--gray-300);
  border-radius: 8px;
  background: var(--white);
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  cursor: pointer;
  transition: all 0.15s ease;
}

.nps-btn:hover {
  border-color: var(--accent);
}

.nps-btn:active {
  transform: scale(0.95);
}

.nps-btn.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  animation: pulse 0.3s ease;
}

.nps-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--gray-500);
  text-transform: uppercase;
}

/* Buttons */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 18px 24px;
  border: 2px solid var(--accent);
  border-radius: 100px;
  background: var(--white);
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: auto;
}

.btn:hover {
  background: rgba(25, 117, 119, 0.05);
}

.btn:active {
  transform: scale(0.98);
}

.btn.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn.btn-primary:hover {
  background: var(--accent-dark);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn:disabled:active {
  transform: none;
}

.btn-icon {
  font-size: 20px;
}

/* Thank You Screen */
.thank-you-screen {
  text-align: center;
  padding: 32px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.pineapple-animation {
  width: 150px;
  height: 200px;
  margin-bottom: 24px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

.thank-you-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--black);
}

.thank-you-text {
  font-size: 16px;
  color: var(--gray-500);
  margin-bottom: 32px;
}

.discount-box {
  background: rgba(25, 117, 119, 0.1);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  width: 100%;
}

.discount-code {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  color: var(--accent);
}

.discount-text {
  font-size: 14px;
  color: var(--gray-500);
}

/* Review Platforms */
.review-platforms {
  width: 100%;
  margin-top: 24px;
}

.review-prompt {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.review-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.review-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border: 2px solid var(--gray-300);
  border-radius: 12px;
  background: var(--white);
  color: var(--black);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.review-btn:hover {
  border-color: var(--accent);
  background: rgba(25, 117, 119, 0.05);
}

.review-btn:active {
  transform: scale(0.98);
}

.review-btn svg {
  flex-shrink: 0;
}

/* Conditional Follow-up Input */
.conditional-input {
  margin-top: 12px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: all 0.3s ease;
}

.conditional-input.visible {
  max-height: 150px;
  opacity: 1;
}

.conditional-input textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--gray-300);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  resize: none;
  min-height: 80px;
  background: var(--gray-100);
}

.conditional-input textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
}

.conditional-input textarea::placeholder {
  color: var(--gray-500);
}

/* Loading */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Responsive */
@media (max-width: 380px) {
  .rating-btn {
    max-width: 52px;
    font-size: 16px;
  }
  
  .nps-btn {
    padding: 10px 0;
    font-size: 12px;
  }
  
  .highlight-pill {
    padding: 10px 16px;
    font-size: 12px;
  }
}
