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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #f5f3f0;
  color: #1a1a1a;
  min-height: 100vh;
}

/* Header / Logo */
.header {
  text-align: center;
  padding: 32px 20px 24px;
  background: #fff;
  border-bottom: 3px solid var(--primary-color, #e63946);
}

.header .logo-text {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #1a1a1a;
}

.header .logo-text .accent {
  color: var(--primary-color, #e63946);
}

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

/* Main content */
.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 20px;
}

/* Sections */
.section {
  padding: 48px 0 32px;
  text-align: center;
}

.section h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  color: #1a1a1a;
  margin-bottom: 16px;
}

.section p.sub {
  font-size: 1.05rem;
  color: #777;
  margin-bottom: 36px;
}

/* Sentiment cards */
.sentiment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.sentiment-card {
  background: #f0edea;
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 36px 16px 28px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.sentiment-card:hover {
  border-color: #ccc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.sentiment-card.selected {
  border-color: var(--primary-color, #e63946);
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.sentiment-card .emoji {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 14px;
}

.sentiment-card .label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #888;
  text-transform: uppercase;
}

/* Checkbox */
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f0edea;
  border-radius: 12px;
  padding: 18px 24px;
  margin-bottom: 24px;
}

.checkbox-row input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--primary-color, #e63946);
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-row label {
  font-size: 0.95rem;
  color: #555;
  cursor: pointer;
}

/* Feedback form */
.feedback-section {
  display: none;
  animation: fadeIn 0.3s ease;
}

.feedback-section.visible {
  display: block;
}

.feedback-section h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.feedback-section p.sub {
  font-size: 0.95rem;
  color: #777;
  margin-bottom: 24px;
}

.feedback-section textarea {
  width: 100%;
  min-height: 140px;
  padding: 16px;
  border: 2px solid #ddd;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
  transition: border-color 0.2s;
  background: #fff;
}

.feedback-section textarea:focus {
  outline: none;
  border-color: var(--primary-color, #e63946);
}

.feedback-section .btn-submit {
  display: inline-block;
  margin-top: 16px;
  padding: 14px 40px;
  background: var(--primary-color, #e63946);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.feedback-section .btn-submit:hover {
  opacity: 0.9;
}

/* Thank you message */
.thank-you {
  display: none;
  text-align: center;
  padding: 48px 20px;
  animation: fadeIn 0.3s ease;
}

.thank-you.visible {
  display: block;
}

.thank-you .check-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
}

.thank-you h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.thank-you p {
  color: #777;
  font-size: 1rem;
}

/* Redirect overlay */
.redirect-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(245, 243, 240, 0.95);
  z-index: 100;
  justify-content: center;
  align-items: center;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.redirect-overlay.visible {
  display: flex;
}

.redirect-overlay .inner {
  padding: 40px;
}

.redirect-overlay .emoji {
  font-size: 3rem;
  margin-bottom: 16px;
}

.redirect-overlay h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.redirect-overlay p {
  color: #777;
  font-size: 1rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 480px) {
  .section h1 {
    font-size: 1.5rem;
  }

  .sentiment-card .emoji {
    font-size: 2.8rem;
  }

  .sentiment-card {
    padding: 24px 10px 20px;
  }

  .sentiment-grid {
    gap: 10px;
  }

  .header .logo-text {
    font-size: 1.8rem;
  }
}
