* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background: #f2eeeb;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* ── Full-bleed header ── */
.header {
  background: #1a1a1a;
  padding: 52px 24px 36px;
  text-align: center;
  flex-shrink: 0;
}

.logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fff;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
.logo img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.header h1 {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 5px;
  letter-spacing: -.2px;
}
.header p {
  color: rgba(255,255,255,.45);
  font-size: 13px;
  font-weight: 400;
}

/* Red bar */
.bar { height: 4px; background: #8b2020; flex-shrink: 0; }

/* ── Content ── */
.content {
  flex: 1;
  padding: 32px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Section blocks */
.block {
  background: #fff;
  border-radius: 14px;
  padding: 22px 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.block-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999;
  margin-bottom: 16px;
}

/* ── Stars ── */
.stars {
  display: flex;
  justify-content: space-between;
  gap: 4px;
}
.star {
  flex: 1;
  background: none;
  border: none;
  font-size: 42px;
  color: #e8e0d8;
  cursor: pointer;
  line-height: 1;
  padding: 4px 0;
  transition: color .15s, transform .15s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.star.active { color: #8b2020; }
.star.lit    { color: #c07070; }

.rating-label {
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #8b2020;
  min-height: 20px;
}

/* ── Textarea ── */
textarea {
  width: 100%;
  border: 1.5px solid #e8e2da;
  border-radius: 10px;
  padding: 14px 15px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: #1a1a1a;
  resize: none;
  height: 120px;
  outline: none;
  background: #fdfcfb;
  transition: border-color .2s;
  -webkit-appearance: none;
}
textarea:focus { border-color: #8b2020; }
textarea::placeholder { color: #bbb4ac; }

.char {
  text-align: right;
  font-size: 12px;
  color: #bbb4ac;
  margin-top: 6px;
}

/* ── Submit button ── */
.btn {
  width: 100%;
  padding: 17px;
  background: #8b2020;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: .1px;
  transition: background .2s, opacity .2s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:active:not(:disabled) { background: #6e1818; }
.btn:disabled {
  background: #d4cdc7;
  cursor: not-allowed;
}

.footer-note {
  text-align: center;
  font-size: 12px;
  color: #bbb4ac;
}

/* ── Success ── */
.success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 32px;
  text-align: center;
  flex: 1;
}
.success.show {
  display: flex;
  animation: fadeIn .4s ease both;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.check-circle {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 2px solid #8b2020;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  color: #8b2020;
  margin-bottom: 24px;
  animation: pop .5s cubic-bezier(.22,.68,0,1.3) both;
}
@keyframes pop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.success h2 { font-size: 22px; font-weight: 700; color: #1a1a1a; margin-bottom: 10px; }
.success p  { font-size: 15px; color: #8a8078; line-height: 1.65; }

/* ── Desktop: center card ── */
@media (min-width: 520px) {
  body {
    align-items: center;
    justify-content: center;
    padding: 32px;
  }
  .card {
    width: 420px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,.12);
    display: flex;
    flex-direction: column;
  }
  .header { padding: 40px 32px 30px; border-radius: 20px 20px 0 0; }
  .content { padding: 28px 28px 32px; overflow: auto; }
}