:root {
  --primary-color: #E3000F;
  --primary-dark: #b8000c;
  --accent-color: #FFC107;
  --bg-body: #f4f6f9;
  --bg-card: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-light: #e2e8f0;
  --radius-lg: 24px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-lg: 0 20px 40px -10px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background-color: var(--bg-body); color: var(--text-main); min-height: 100vh; padding: 2rem 1rem; display: flex; justify-content: center; align-items: flex-start; }

.app-container { width: 100%; max-width: 850px; }
.main-card { background: var(--bg-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }

.brand-header { background-color: var(--primary-color); padding: 1.2rem 2.5rem; display: flex; justify-content: space-between; align-items: center; color: white; }
.logo-area { display: flex; align-items: center; gap: 1rem; }
.logo-image { height: 35px; width: auto; }
.foodies-tag { background: var(--accent-color); color: #000; padding: 0.2rem 0.7rem; border-radius: 20px; font-weight: 700; font-size: 0.7rem; text-transform: uppercase; white-space: nowrap; }
.header-badge { background: rgba(0,0,0,0.15); padding: 0.5rem 1rem; border-radius: 20px; font-size: 0.8rem; }

.hero-section { padding: 3rem 2rem 1rem; text-align: center; }
.hero-section h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 0.5rem; }
.accent { color: var(--primary-color); }
.fresh-message { font-size: 1.1rem; font-weight: 600; color: var(--text-muted); margin-bottom: 1.2rem; }
.description { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; max-width: 650px; margin: 0 auto; }
.reward-chip { display: inline-flex; align-items: center; gap: 0.5rem; background: #fef2f2; color: var(--primary-dark); padding: 0.7rem 1.4rem; border-radius: 50px; margin-top: 1.5rem; border: 1px solid #fee2e2; font-size: 0.9rem; }

.survey-form { padding: 1.5rem 3rem 3rem; }
.form-row { display: flex; gap: 1.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.form-group { flex: 1; min-width: 200px; display: flex; flex-direction: column; }
.form-group label { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
select, input, textarea { width: 100%; padding: 0.85rem; border: 1px solid var(--border-light); border-radius: var(--radius-sm); font-family: inherit; font-size: 0.95rem; background: #fafafa; transition: all 0.2s; }
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--primary-color); background: white; box-shadow: 0 0 0 3px rgba(227, 0, 15, 0.1); }


.checkbox-group { 
  margin: 1.5rem 0; 
  background: #f8fafc; 
  padding: 1rem 1.5rem; 
  border-radius: var(--radius-sm); 
  border: 1px solid var(--border-light); 
}

.checkbox-label { 
  display: flex; 
  align-items: center; 
  justify-content: flex-start;
  gap: 1rem; 
  cursor: pointer; 
}

.checkbox-label input { 
  width: 1.2rem; 
  height: 1.2rem; 
  accent-color: var(--primary-color); 
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-text {
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text-main);
}

.btn-submit { background-color: var(--primary-color); width: 100%; padding: 1.1rem; border: none; border-radius: var(--radius-md); color: white; font-weight: 700; font-size: 1rem; display: flex; align-items: center; justify-content: center; gap: 0.8rem; cursor: pointer; transition: all 0.2s; }
.btn-submit:hover { background-color: var(--primary-dark); transform: translateY(-1px); }

.success-card { margin: 0 3rem 3rem; background: #f0fdf4; border: 1px solid #bbf7d0; padding: 1.5rem; border-radius: var(--radius-md); display: flex; gap: 1rem; align-items: center; }
.success-icon { background: #22c55e; color: white; width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.coupon { background: white; padding: 0.2rem 0.5rem; border: 1px dashed #22c55e; font-weight: bold; }

.footer-note { text-align: center; margin: 2rem 0; }
#openAdminBtn { color: var(--text-muted); font-size: 0.85rem; transition: color 0.2s; cursor: pointer; }
#openAdminBtn:hover { color: var(--text-main); }

.admin-panel { margin-top: 2rem; background: white; border-radius: var(--radius-md); border: 1px solid var(--border-light); padding: 1.5rem; box-shadow: var(--shadow-lg); }
.admin-header { display: flex; justify-content: space-between; border-bottom: 1px solid #eee; padding-bottom: 1rem; margin-bottom: 1rem; }
.admin-btn { background: #f1f5f9; border: 1px solid var(--border-light); padding: 0.5rem 1rem; border-radius: var(--radius-sm); cursor: pointer; font-size: 0.8rem; }
.admin-btn.danger { color: #ef4444; background: #fef2f2; }
.table-responsive { overflow-x: auto; margin-top: 1rem; }
#adminTable { width: 100%; border-collapse: collapse; font-size: 0.8rem; min-width: 700px; }
#adminTable th { background: #f8fafc; padding: 0.8rem; text-align: left; border-bottom: 2px solid #eee; }
#adminTable td { padding: 0.8rem; border-bottom: 1px solid #eee; }

@media (max-width: 650px) {
  .form-row { flex-direction: column; gap: 1rem; }
  .survey-form { padding: 1.5rem; }
  .success-card { margin: 0 1.5rem 1.5rem; }
}
