.landing-container {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.public-reviews-section,
.public-contact-section {
  color: var(--landing-text, var(--text));
  border-top: 1px solid var(--landing-border, var(--border-soft));
}

.public-reviews-section {
  padding: 5rem 0;
  background: var(--landing-bg-soft, var(--surface-2));
}

.public-contact-section {
  padding: 4rem 0;
  background: var(--landing-bg, var(--surface));
}

.public-section-heading {
  margin-bottom: 2rem;
  text-align: center;
}

.public-section-heading h2,
.public-reviews-intro h1 {
  margin: 0.6rem 0 0;
  color: var(--features-title-color, var(--text));
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
}

.public-section-heading > p,
.public-reviews-intro p {
  margin: 0.8rem auto 0;
  color: var(--landing-muted, var(--muted));
}

.public-reviews-intro {
  padding: 7rem 0 3.5rem;
  text-align: center;
  background: var(--landing-bg, var(--surface));
}

.public-review-average {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: var(--landing-muted, var(--muted));
}

.public-stars,
.public-review-card-stars {
  color: #f59e0b;
  direction: ltr;
  letter-spacing: 0.08em;
}

.public-reviews-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.75fr);
  gap: 1.5rem;
  align-items: start;
}

.public-review-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.public-review-card,
.public-review-form-card,
.public-reviews-empty {
  border: 1px solid var(--features-card-border, var(--border-soft));
  border-radius: 18px;
  background: var(--features-card-bg, var(--surface));
  box-shadow: var(--features-card-shadow, var(--shadow-sm));
}

.public-review-card {
  display: flex;
  flex-direction: column;
  min-height: 190px;
  padding: 1.3rem;
}

.public-review-card p {
  flex: 1;
  margin: 0.9rem 0 1.2rem;
  color: var(--features-sub-color, var(--muted));
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.public-review-card footer {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--landing-muted, var(--muted));
  font-size: 0.82rem;
}

.public-review-card footer strong {
  color: var(--features-card-text, var(--text));
}

.public-reviews-empty {
  grid-column: 1 / -1;
  padding: 2rem;
  color: var(--landing-muted, var(--muted));
  text-align: center;
}

.public-review-form-card {
  position: sticky;
  top: 88px;
  padding: 1.5rem;
}

.public-review-form-card h3 {
  margin: 0;
  color: var(--features-card-text, var(--text));
  font-size: 1.3rem;
}

.public-review-form-card > p {
  margin: 0.45rem 0 1.2rem;
  color: var(--features-sub-color, var(--muted));
  line-height: 1.7;
}

.public-review-form {
  display: grid;
  gap: 0.8rem;
}

.public-review-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.public-review-form legend,
.public-review-form > label {
  margin-bottom: 0.4rem;
  color: var(--features-card-text, var(--text));
  font-size: 0.88rem;
  font-weight: 800;
}

.public-rating-selector {
  display: inline-flex;
  direction: rtl;
}

.public-rating-selector input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.public-rating-selector label {
  color: #64748b;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}

.public-rating-selector label:hover,
.public-rating-selector label:hover ~ label,
.public-rating-selector input:checked ~ label {
  color: #f59e0b;
}

.public-rating-selector input:focus-visible + label {
  outline: 2px solid var(--landing-accent, #3b82f6);
  outline-offset: 2px;
}

.public-rating-selector label:hover {
  transform: scale(1.08);
}

.public-review-form textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--features-card-border, var(--border-soft));
  border-radius: 12px;
  padding: 0.85rem;
  color: var(--features-card-text, var(--text));
  background: var(--landing-bg-soft, var(--surface-2));
  font: inherit;
  line-height: 1.7;
}

.public-review-form textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--landing-accent, #3b82f6) 35%, transparent);
  border-color: var(--landing-accent, #3b82f6);
}

.public-review-form-footer {
  display: grid;
  gap: 0.75rem;
}

.public-review-form-footer small {
  color: var(--landing-muted, var(--muted));
}

.public-review-form-footer .landing-btn,
.public-review-login {
  justify-content: center;
  width: 100%;
}

.public-review-flash {
  margin-bottom: 1rem;
  border-radius: 10px;
  padding: 0.75rem;
  font-size: 0.88rem;
}

.public-review-flash.is-success {
  color: #047857;
  background: rgba(16, 185, 129, 0.13);
}

.public-review-flash.is-error {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.12);
}

.public-contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.public-contact-grid a {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  min-width: 0;
  border: 1px solid var(--features-card-border, var(--border-soft));
  border-radius: 16px;
  padding: 1.25rem;
  color: var(--features-card-text, var(--text));
  background: var(--features-card-bg, var(--surface));
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.public-contact-grid a:hover {
  transform: translateY(-3px);
  border-color: var(--landing-accent, #3b82f6);
}

.public-contact-grid .material-symbols-outlined {
  color: var(--landing-accent, #3b82f6);
  font-size: 1.8rem;
}

.public-contact-grid small {
  max-width: 100%;
  color: var(--landing-muted, var(--muted));
  direction: ltr;
  overflow-wrap: anywhere;
}

.landing-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--landing-border, var(--border-soft));
  background: var(--footer-bg, var(--surface-2));
}

.landing-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--landing-muted, var(--muted));
  font-size: 0.85rem;
}

@media (max-width: 960px) {
  .public-reviews-layout {
    grid-template-columns: 1fr;
  }

  .public-review-form-card {
    position: static;
  }

  .public-contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .public-review-cards,
  .public-contact-grid {
    grid-template-columns: 1fr;
  }

  .public-reviews-section,
  .public-contact-section {
    padding: 3.5rem 0;
  }

  .public-review-average {
    flex-wrap: wrap;
  }
}
