/* NetServe Leave a Review — focused enterprise composition */

body.ns-review-standalone,
body.page-template-template-leave-review {
  margin: 0;
  background: #f4f6f8;
}

body.ns-review-standalone {
  min-height: 100vh;
}

.ns-review-page {
  --ns-navy: #0a1b2b;
  --ns-blue: #0a66c2;
  --ns-gold: #f5a623;
  --ns-surface: rgba(255, 255, 255, 0.92);
  --ns-bg: #f4f6f8;
  --ns-line: rgba(10, 27, 43, 0.08);
  --ns-text: #101828;
  --ns-muted: #667085;
  --ns-radius: 22px;
  --ns-ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ns-text);
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.ns-review-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -12%, rgba(10, 102, 194, 0.11), transparent 58%),
    radial-gradient(ellipse 45% 35% at 100% 100%, rgba(10, 27, 43, 0.05), transparent 50%),
    linear-gradient(180deg, #eef2f6 0%, #f6f8fa 48%, #ffffff 100%);
}

.ns-review-page .ns-skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 40;
  background: #fff;
  color: var(--ns-navy);
  padding: 12px 16px;
  border-radius: 0 0 12px 12px;
  font-weight: 700;
  text-decoration: none;
}
.ns-review-page .ns-skip-link:focus { top: 0; }

.ns-review-page .ns-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* Top bar — brand only (logo matches home .site-logo) */
.ns-review-topbar {
  position: relative;
  z-index: 2;
  padding: 8px 24px 4px;
}
.ns-review-topbar-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 90px;
}
.ns-review-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}
.ns-review-logo {
  display: block;
  width: 240px;
  max-width: 240px;
  height: 90px;
  max-height: 90px;
  padding: 6px 0;
  box-sizing: border-box;
  object-fit: contain;
  object-position: left center;
}
.ns-review-logo[src$=".svg"] {
  filter: brightness(0) saturate(100%) invert(10%) sepia(18%) saturate(1800%) hue-rotate(175deg);
}
.ns-review-topbar-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px 22px;
}
.ns-review-text-link {
  color: var(--ns-muted);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  transition: color 0.2s var(--ns-ease);
}
.ns-review-text-link:hover { color: var(--ns-navy); }
.ns-review-text-link.is-wa {
  color: var(--ns-blue);
  font-size: 1.05rem;
}

/* Single centered stage */
.ns-review-stage {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0 auto;
  padding: 28px 20px 72px;
}
@media (min-height: 820px) {
  .ns-review-page {
    display: flex;
    flex-direction: column;
  }
  .ns-review-stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 12px;
    padding-bottom: 80px;
  }
}

.ns-review-intro {
  text-align: center;
  margin-bottom: 24px;
}
.ns-review-intro h1 {
  margin: 0 0 10px;
  font-size: clamp(1.85rem, 5vw, 2.55rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: var(--ns-navy);
}
.ns-review-lead {
  margin: 0 auto 14px;
  max-width: 26rem;
  color: var(--ns-muted);
  font-size: 1.02rem;
  line-height: 1.55;
  font-weight: 500;
}
.ns-review-step-label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #98a2b3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Panel — interaction surface only */
.ns-review-panel {
  background: var(--ns-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--ns-line);
  border-radius: var(--ns-radius);
  padding: clamp(28px, 5vw, 36px);
  box-shadow: 0 1px 2px rgba(10, 27, 43, 0.03), 0 18px 40px rgba(10, 27, 43, 0.05);
  text-align: center;
}

.ns-review-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100px;
  margin: 0 auto 26px;
}
.ns-review-step-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d0d5dd;
  transition: background 0.25s var(--ns-ease), transform 0.25s var(--ns-ease);
}
.ns-review-step-dot.is-active {
  background: var(--ns-navy);
  transform: scale(1.2);
}
.ns-review-step-dot.is-done { background: #12b76a; }
.ns-review-step-line {
  flex: 1;
  height: 1px;
  margin: 0 7px;
  background: #e4e7ec;
  transition: background 0.25s var(--ns-ease);
}
.ns-review-step-line.is-done { background: #a6f4c5; }

.ns-review-panel h2 {
  margin: 0 0 8px;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
  color: var(--ns-navy);
  font-weight: 700;
}
.ns-review-card-intro {
  margin: 0 0 22px !important;
  color: var(--ns-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 500;
}

/* Stars */
.ns-review-stars {
  display: flex;
  justify-content: center;
  gap: clamp(4px, 1.8vw, 12px);
  margin: 4px 0 12px;
}
.ns-review-star {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
  color: #d0d5dd;
  transition: color 0.2s var(--ns-ease), transform 0.28s var(--ns-ease);
}
.ns-review-star svg {
  width: clamp(42px, 9.5vw, 54px);
  height: clamp(42px, 9.5vw, 54px);
  fill: currentColor;
  display: block;
}
.ns-review-star:hover,
.ns-review-star.is-hot,
.ns-review-star[aria-checked="true"] {
  color: var(--ns-gold);
  transform: translateY(-2px) scale(1.05);
}
.ns-review-star:focus-visible {
  outline: 3px solid rgba(10, 102, 194, 0.4);
  outline-offset: 2px;
  border-radius: 12px;
}
.ns-review-hint {
  margin: 0 !important;
  min-height: 1.4em;
  font-size: 0.95rem;
  color: var(--ns-muted);
  font-weight: 500;
}

/* Compose */
.ns-review-compose {
  margin-top: 26px;
  text-align: left;
  scroll-margin-top: 100px;
  animation: ns-rev-rise 0.4s var(--ns-ease) both;
}
.ns-review-compose.is-scroll-target {
  animation: ns-rev-soft-focus 0.8s var(--ns-ease);
}
.ns-review-compose-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ns-navy);
}
.ns-review-optional {
  font-size: 0.72rem;
  font-weight: 600;
  color: #98a2b3;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ns-review-compose textarea,
.ns-review-form input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  padding: 13px 15px;
  font: inherit;
  font-size: 1rem;
  color: var(--ns-text);
  background: #fafbfc;
  transition: border-color 0.2s var(--ns-ease), background 0.2s var(--ns-ease), box-shadow 0.2s var(--ns-ease);
}
.ns-review-compose textarea {
  resize: vertical;
  min-height: 112px;
  line-height: 1.5;
}
.ns-review-compose textarea:focus-visible,
.ns-review-form input:focus-visible {
  outline: none;
  border-color: rgba(10, 102, 194, 0.5);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(10, 102, 194, 0.1);
}
.ns-review-compose-hint {
  margin: 10px 0 0 !important;
  font-size: 0.84rem;
  color: #98a2b3;
  font-weight: 500;
}

/* Form */
.ns-review-form {
  display: grid;
  gap: 14px;
  text-align: left;
  margin-top: 8px;
}
.ns-review-form-grid {
  grid-template-columns: 1fr 1fr;
}
.ns-review-form label {
  display: grid;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ns-navy);
}
.ns-review-form-grid .ns-review-error,
.ns-review-form-grid .ns-review-btn,
.ns-review-form-grid .ns-visually-hidden {
  grid-column: 1 / -1;
}
.ns-review-error {
  margin: 4px 0 0 !important;
  color: #d92d20 !important;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
}

/* Buttons */
.ns-review-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  margin-top: 6px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ns-ease), background 0.2s var(--ns-ease), box-shadow 0.2s var(--ns-ease), color 0.2s var(--ns-ease);
}
.ns-review-btn-primary {
  background: var(--ns-navy);
  color: #fff;
  box-shadow: 0 8px 20px rgba(10, 27, 43, 0.16);
}
.ns-review-btn-primary:hover {
  background: #132a42;
  transform: translateY(-1px);
}
.ns-review-btn-ghost {
  background: transparent;
  color: var(--ns-muted);
  font-weight: 600;
  box-shadow: none;
  min-height: 44px;
}
.ns-review-btn-ghost:hover {
  color: var(--ns-navy);
  background: #f2f4f7;
}
.ns-review-btn:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none !important;
}
.ns-review-btn:focus-visible {
  outline: 3px solid rgba(10, 102, 194, 0.4);
  outline-offset: 2px;
}

.ns-review-thanks-mark {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ecfdf3;
  color: #039855;
  animation: ns-rev-pop 0.45s var(--ns-ease) both;
}
.ns-review-thanks-mark svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}
.ns-review-draft {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f9fafb;
  border: 1px solid #e4e7ec;
  color: var(--ns-text);
  font-size: 0.94rem;
  line-height: 1.55;
  text-align: left;
  white-space: pre-wrap;
  font-weight: 500;
}

/* Share — revealed after submit */
.ns-review-share {
  margin-top: 24px;
  padding: 4px 2px 0;
  text-align: left;
  border: 0;
  background: transparent;
  animation: ns-rev-rise 0.5s var(--ns-ease) both;
}
.ns-review-share-head {
  display: grid;
  gap: 2px;
  margin-bottom: 12px;
}
.ns-review-share-head strong {
  color: var(--ns-navy);
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}
.ns-review-share-head span {
  color: var(--ns-muted);
  font-size: 0.82rem;
  font-weight: 500;
}
.ns-review-share-url {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.ns-review-share-link {
  flex: 1;
  min-width: 0;
  display: block;
  padding: 11px 13px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--ns-line);
  color: var(--ns-blue);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ns-review-share-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  min-width: 84px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--ns-line);
  background: #fff;
  color: var(--ns-navy);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s var(--ns-ease), border-color 0.18s var(--ns-ease);
}
.ns-review-share-copy svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.ns-review-share-copy:hover {
  border-color: rgba(10, 102, 194, 0.35);
  background: #f5f9ff;
}
.ns-review-share-copy.is-copied {
  background: #ecfdf3;
  border-color: #a6f4c5;
  color: #039855;
}
.ns-review-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ns-review-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--ns-line);
  background: #fff;
  color: var(--ns-navy);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s var(--ns-ease), border-color 0.18s var(--ns-ease);
}
.ns-review-share-btn:hover {
  background: #f9fafb;
  border-color: #d0d5dd;
}
.ns-review-share-btn.is-native {
  background: var(--ns-navy);
  border-color: var(--ns-navy);
  color: #fff;
}
.ns-review-share-status {
  margin: 10px 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #039855;
}

/* Motion */
.ns-review-animate {
  animation: ns-rev-rise 0.6s var(--ns-ease) both;
}
.ns-review-animate-delay { animation-delay: 0.07s; }
.ns-review-animate-delay-2 { animation-delay: 0.12s; }

@keyframes ns-rev-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes ns-rev-soft-focus {
  0% { box-shadow: 0 0 0 0 rgba(10, 102, 194, 0); }
  40% { box-shadow: 0 0 0 4px rgba(10, 102, 194, 0.1); }
  100% { box-shadow: 0 0 0 0 rgba(10, 102, 194, 0); }
}
@keyframes ns-rev-pop {
  from { opacity: 0; transform: scale(0.75); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 900px) {
  .ns-review-topbar-inner { min-height: 86px; }
  .ns-review-logo {
    width: 215px;
    max-width: 215px;
    height: 86px;
    max-height: 86px;
  }
}

@media (max-width: 640px) {
  .ns-review-topbar { padding: 6px 16px 2px; }
  .ns-review-topbar-inner {
    min-height: 80px;
    gap: 12px;
  }
  .ns-review-logo {
    width: 200px;
    max-width: 200px;
    height: 80px;
    max-height: 80px;
    padding: 4px 0;
  }
  .ns-review-topbar-actions { gap: 10px 14px; }
  .ns-review-text-link,
  .ns-review-text-link.is-wa {
    font-size: 0.95rem;
  }
  .ns-review-stage { padding: 20px 16px 56px; }
  .ns-review-form-grid { grid-template-columns: 1fr; }
  .ns-review-share-url { flex-direction: column; }
  .ns-review-share-copy { min-height: 44px; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .ns-review-animate,
  .ns-review-compose,
  .ns-review-star,
  .ns-review-thanks-mark {
    animation: none !important;
    transition: none !important;
  }
}
