/* ==========================================================================
   NEMEVORA — customer reviews page
   Extends css/styles.css. The quote card itself lives there, because the
   homepage teaser uses the same card. This file adds the page's intro and the
   "شارك تجربتك" form.
   ========================================================================== */

/* --- Intro ----------------------------------------------------------------- */

.reviews-intro { padding-block: clamp(3rem, 6vw, 5.5rem) clamp(2rem, 4vw, 3rem); }
.reviews-intro h1 {
  margin-block: 1.1rem 1.3rem;
  font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4rem);
}

/* Said once, quietly: these are excerpts, and nothing was embellished */
.reviews-honesty {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  max-width: 46rem;
  margin-top: clamp(2.25rem, 4vw, 3.25rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-soft);
  color: var(--text-faint);
  font-size: 0.95rem;
  line-height: 1.75;
}
.reviews-honesty .mark { margin-top: 0.75rem; }

/* --- Share your experience -------------------------------------------------- */

.share-grid {
  display: grid;
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

/* The form is a preview until there is somewhere to put a review */
.form-preview-note {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  background: rgba(175, 129, 67, 0.07);
  font-size: 0.96rem;
  line-height: 1.75;
}
.form-preview-note strong { color: var(--navy); }
.form-preview-note p { color: var(--text-soft); }

.review-form {
  display: grid;
  gap: 1.35rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--glass-strong);
  box-shadow: var(--shadow-sm);
}

.field { display: grid; gap: 0.5rem; }

.field > label,
.field-legend {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
}

.field-hint {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-faint);
}

.review-form input[type="text"],
.review-form select,
.review-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-cream);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.7;
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.review-form textarea { min-height: 8.5rem; resize: vertical; }

.review-form input[type="text"]:focus-visible,
.review-form select:focus-visible,
.review-form textarea:focus-visible {
  outline: none;
  border-color: var(--navy);
  box-shadow: inset 0 -2px 0 var(--gold);
}

.review-form :disabled { opacity: 0.62; cursor: not-allowed; }

/* Rating: radio buttons that read as a row of choices, keyboard included */
.rating-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  border: 0;
}
.rating-row .field-legend { width: 100%; margin-bottom: 0.15rem; }

.rating-option { position: relative; }
.rating-option input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.rating-option span {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-cream);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease),
              border-color var(--fast) var(--ease);
}
.rating-option input:checked + span {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--on-navy);
}
.rating-option input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 3px; }
.rating-option input:disabled + span { opacity: 0.62; }

/* Consent: two plain checkboxes, no dark patterns */
.check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.7rem;
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--text-soft);
}
.check input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.32rem 0 0;
  accent-color: var(--navy);
}

.char-count {
  justify-self: start;
  font-size: 0.85rem;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

.form-status {
  min-height: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-soft);
}
/* The palette has no red, and this file does not invent one: gold carries the
   warning, weight and an icon carry the urgency. */
.form-status.is-error { color: var(--gold); font-weight: 600; }
.form-status.is-error::before { content: "▲  "; }
.form-status.is-ok { color: var(--teal); font-weight: 600; }

/* The honeypot must stay in the DOM and out of everyone's way */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* What the owner still has to decide, kept honest and in view */
.share-aside {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}
.share-aside h3 { margin-bottom: 0.6rem; font-size: 1.5rem; }
.share-aside p { color: var(--text-soft); font-size: 0.99rem; }
.share-aside .channels { margin-top: 1.5rem; }

/* --- Responsive ------------------------------------------------------------- */

@media (max-width: 900px) {
  .share-grid { grid-template-columns: minmax(0, 1fr); }
  .share-aside { position: static; }
}

@media (max-width: 640px) {
  .reviews-honesty { align-items: flex-start; }
  .rating-option span { width: 2.6rem; height: 2.6rem; }
}
