/* the review form (/review, app/review/ReviewForm.tsx) */

.rf-page {
  max-width: 600px;
  margin: 0 auto;
}

.rf-header {
  text-align: center;
  margin-bottom: 28px;
}

.rf-header h1 {
  font-size: 2.6em;
  color: #4fc3ff;
  margin-bottom: 8px;
}

.rf-header p {
  font-size: 1.1em;
  color: #ccc;
}

.rf-notice {
  margin: 0 auto 18px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 201, 64, 0.35);
  background: rgba(255, 201, 64, 0.08);
  color: #ffe3a3;
  font-size: 0.92em;
}

.rf-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.rf-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rf-section h2 {
  font-size: 1.25em;
  color: #fff;
}

.rf-section--private {
  padding: 18px;
  border-radius: 12px;
  border: 1px dashed rgba(79, 195, 255, 0.35);
  background: rgba(79, 195, 255, 0.05);
}

.rf-section--private h2 {
  color: #4fc3ff;
}

.rf-hint {
  margin-top: -4px;
  font-size: 0.88em;
  color: #8aa0ad;
}

.rf-section label {
  margin-top: 8px;
  font-size: 0.8em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #9fb3c0;
}

.rf-section input,
.rf-section textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font: inherit;
  font-size: 1em;
  resize: vertical;
}

.rf-section input:focus,
.rf-section textarea:focus {
  outline: none;
  border-color: #4fc3ff;
}

.rf-section ::placeholder {
  color: #6f8390;
}

.rf-count {
  align-self: flex-end;
  font-size: 0.8em;
  color: #8aa0ad;
}

/* stars */
.rf-stars {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 4px 0 2px;
}

.rf-star {
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: none;
  color: rgba(255, 255, 255, 0.2);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.12s, transform 0.12s;
}

.rf-star--on {
  color: #ffc940;
}

.rf-star:focus-visible {
  outline: 2px solid #4fc3ff;
  outline-offset: 1px;
}

@media (hover: hover) {
  .rf-star:hover {
    transform: scale(1.1);
  }
}

.rf-stars__label {
  margin-left: 8px;
  font-size: 0.92em;
  color: #c9d6de;
}

/* only bots see it */
.rf-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.rf-check {
  min-height: 65px;
}

.rf-error {
  color: #ff8a8a;
  font-size: 0.92em;
}

.rf-button {
  display: inline-block;
  padding: 13px;
  border: none;
  border-radius: 12px;
  background: #00ffcc;
  color: #0f2027;
  font: inherit;
  font-weight: 700;
  font-size: 1em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.rf-button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.rf-button:focus-visible {
  outline: 2px solid #4fc3ff;
  outline-offset: 2px;
}

.rf-button--quiet {
  align-self: center;
  padding: 11px 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.rf-foot {
  font-size: 0.85em;
  color: #8aa0ad;
  text-align: center;
}

.rf-foot a,
.rf-done a:not(.rf-button) {
  color: #4fc3ff;
}

.rf-done {
  text-align: center;
  font-size: 1.05em;
  color: #dbe5ec;
}

@media (max-width: 520px) {
  .rf-header h1 {
    font-size: 2em;
  }
  .rf-card {
    padding: 20px 16px;
  }
  .rf-section--private {
    padding: 14px;
  }
  .rf-star {
    width: 40px;
    height: 40px;
    font-size: 30px;
  }
}
