.review-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 90% 8%, rgba(201, 242, 123, 0.28), transparent 27rem),
    radial-gradient(circle at 2% 68%, rgba(219, 117, 85, 0.1), transparent 25rem),
    var(--canvas);
}

.review-shell {
  position: relative;
  min-height: 100vh;
}

.review-shell::before {
  position: absolute;
  z-index: -1;
  top: 148px;
  right: -160px;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(23, 60, 48, 0.09);
  border-radius: 50%;
  content: "";
}

.review-header-step {
  display: grid;
  justify-items: center;
  gap: 3px;
}

.review-header-step span {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.review-header-step strong {
  color: var(--forest);
  font-size: 13px;
}

.back-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.back-action svg {
  width: 17px;
  height: 17px;
}

.review-main,
.review-footer {
  width: min(1240px, calc(100vw - 48px));
  margin-inline: auto;
}

.review-main {
  padding: 72px 0 94px;
}

.review-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(290px, 0.52fr);
  align-items: end;
  gap: clamp(44px, 7vw, 94px);
  margin-bottom: 48px;
}

.review-intro .kicker {
  margin-bottom: 19px;
}

.review-intro h1 {
  max-width: 810px;
  margin: 0;
  font-family: Iowan Old Style, Palatino Linotype, Book Antiqua, Palatino, Georgia, serif;
  font-size: clamp(46px, 5.2vw, 72px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.review-intro h1 em {
  color: var(--forest);
  font-weight: 500;
}

.review-intro > p {
  margin: 0 0 4px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
}

.review-workspace {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(440px, 1.06fr);
  align-items: start;
  gap: 24px;
}

.review-preview-card {
  position: sticky;
  top: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 28px;
  background: var(--forest-deep);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.review-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 20px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  font-weight: 750;
}

.review-preview-head > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.review-media-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #07140f;
}

.review-media-stage video {
  display: block;
  width: 100%;
  height: 100%;
  background: #07140f;
  object-fit: cover;
}

.preview-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 13px;
  background:
    radial-gradient(circle at 50% 18%, rgba(201, 242, 123, 0.14), transparent 45%),
    #07140f;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  text-align: center;
}

.preview-loading span {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(255, 255, 255, 0.17);
  border-top-color: var(--lime);
  border-radius: 50%;
  margin-inline: auto;
  animation: orbit 0.9s linear infinite;
}

.preview-loading p {
  margin: 0;
}

.review-property-details {
  padding: 23px 24px 20px;
}

.review-property-details h2 {
  margin: 0;
  font-family: Iowan Old Style, Palatino Linotype, Georgia, serif;
  font-size: clamp(24px, 2.3vw, 31px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.review-property-price {
  margin: 8px 0 17px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.review-property-details .fact-list {
  min-height: 18px;
}

.preview-assurance {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line-light);
  padding: 17px 24px 20px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  line-height: 1.45;
}

.preview-assurance svg {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  color: var(--lime);
}

.review-panel-stack {
  min-width: 0;
}

.review-form-card,
.review-state-card {
  min-height: 610px;
  border: 1px solid rgba(21, 37, 31, 0.1);
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 25px 65px rgba(25, 48, 39, 0.13);
  backdrop-filter: blur(18px);
}

.review-form-card {
  padding: clamp(28px, 4vw, 43px);
}

.review-form-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.panel-eyebrow {
  margin: 0 0 8px;
  color: var(--forest);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.review-form-heading h2,
.review-state-card h2 {
  margin: 0;
  font-family: Iowan Old Style, Palatino Linotype, Georgia, serif;
  font-size: clamp(31px, 3.2vw, 43px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.one-review-badge {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 7px;
  border: 1px solid rgba(23, 60, 48, 0.14);
  border-radius: 999px;
  background: var(--sage);
  color: var(--forest);
  padding: 7px 12px 7px 8px;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.one-review-badge strong {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--lime);
  font-size: 12px;
}

.review-form-intro {
  max-width: 620px;
  margin: 17px 0 25px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

.review-form-card label {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.textarea-wrap {
  position: relative;
}

.textarea-wrap textarea {
  display: block;
  width: 100%;
  min-height: 165px;
  resize: vertical;
  border: 1px solid rgba(21, 37, 31, 0.2);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  padding: 17px 18px 35px;
  font: inherit;
  font-size: 14px;
  line-height: 1.58;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.textarea-wrap textarea::placeholder {
  color: #8b9892;
}

.textarea-wrap textarea:hover {
  border-color: rgba(21, 37, 31, 0.34);
}

.textarea-wrap textarea:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 4px rgba(23, 60, 48, 0.1);
}

.textarea-wrap textarea[aria-invalid="true"] {
  border-color: #b8493d;
  box-shadow: 0 0 0 4px rgba(184, 73, 61, 0.09);
}

.textarea-wrap > span {
  position: absolute;
  right: 15px;
  bottom: 11px;
  color: #82908a;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.review-examples {
  margin-top: 17px;
}

.review-examples p {
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 750;
}

.review-examples > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.review-examples button {
  border: 1px solid rgba(23, 60, 48, 0.15);
  border-radius: 999px;
  background: rgba(223, 233, 213, 0.62);
  color: var(--forest);
  padding: 7px 11px;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.review-examples button:hover {
  border-color: rgba(23, 60, 48, 0.38);
  background: var(--sage);
  transform: translateY(-1px);
}

.review-rules {
  display: grid;
  gap: 9px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 22px 0 0;
  padding: 16px 0;
}

.review-rules > div {
  display: grid;
  grid-template-columns: 21px 1fr;
  align-items: start;
  gap: 9px;
}

.review-rules span {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  background: var(--sage);
  color: var(--forest);
  font-size: 10px;
  font-weight: 900;
}

.review-rules p {
  margin: 1px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.5;
}

.review-rules strong {
  color: var(--ink);
}

.review-message {
  min-height: 17px;
  margin: 10px 2px 6px;
  color: #9b362e;
  font-size: 11px;
  line-height: 1.45;
}

.review-message:empty {
  min-height: 0;
  margin-top: 12px;
}

.submit-review-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 62px;
  border-radius: 16px;
  background: var(--forest);
  color: #fff;
  padding: 8px 10px 8px 19px;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(23, 60, 48, 0.22);
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.submit-review-button > span {
  display: grid;
  justify-items: start;
  gap: 1px;
}

.submit-review-button small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.submit-review-button strong {
  font-size: 13px;
}

.submit-review-button svg {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--lime);
  color: var(--forest-deep);
  padding: 10px;
}

.submit-review-button:hover {
  background: var(--forest-deep);
  box-shadow: 0 17px 34px rgba(23, 60, 48, 0.27);
  transform: translateY(-1px);
}

.submit-review-button:disabled {
  cursor: progress;
  opacity: 0.72;
  transform: none;
}

.review-fine-print {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.5;
  text-align: center;
}

.review-state-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(34px, 5vw, 58px);
  text-align: center;
}

.review-state-card > p:not(.panel-eyebrow) {
  max-width: 480px;
  margin: 15px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
}

.loading-ring {
  width: 54px;
  height: 54px;
  border: 3px solid rgba(23, 60, 48, 0.12);
  border-top-color: var(--forest);
  border-radius: 50%;
  margin-bottom: 24px;
  animation: orbit 0.9s linear infinite;
}

.processing-card {
  background:
    radial-gradient(circle at 50% 14%, rgba(201, 242, 123, 0.18), transparent 19rem),
    var(--forest-deep);
  color: #fff;
}

.processing-card .panel-eyebrow {
  color: var(--lime);
}

.processing-card > p:not(.panel-eyebrow) {
  color: rgba(255, 255, 255, 0.62);
}

.processing-mark {
  position: relative;
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border: 1px solid rgba(201, 242, 123, 0.25);
  border-radius: 50%;
  margin-bottom: 25px;
  color: var(--lime);
}

.processing-mark::before {
  position: absolute;
  inset: -6px;
  border: 2px solid transparent;
  border-top-color: var(--lime);
  border-radius: 50%;
  content: "";
  animation: orbit 1.15s linear infinite;
}

.processing-mark svg {
  width: 45px;
  height: 45px;
}

.revision-progress {
  overflow: hidden;
  width: min(430px, 100%);
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  margin-top: 30px;
}

.revision-progress span {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: var(--lime);
  transition: width 500ms ease;
}

.revision-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: min(470px, 100%);
  gap: 7px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.revision-steps li {
  color: rgba(255, 255, 255, 0.33);
  font-size: 9px;
  font-weight: 750;
  line-height: 1.25;
}

.revision-steps li::before {
  display: block;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  margin: 0 auto 7px;
  content: "";
}

.revision-steps li.active,
.revision-steps li.complete {
  color: rgba(255, 255, 255, 0.8);
}

.revision-steps li.active::before {
  border-color: var(--lime);
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(201, 242, 123, 0.1);
}

.revision-steps li.complete::before {
  border-color: rgba(201, 242, 123, 0.72);
  background: rgba(201, 242, 123, 0.72);
}

.processing-note {
  display: grid;
  grid-template-columns: 25px 1fr;
  align-items: start;
  gap: 10px;
  max-width: 470px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  margin-top: 32px;
  padding: 14px;
  text-align: left;
}

.processing-note span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: rgba(201, 242, 123, 0.14);
  color: var(--lime);
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 800;
}

.processing-note p {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  line-height: 1.5;
}

.complete-mark,
.error-mark {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 24px;
  margin-bottom: 24px;
  background: var(--forest);
  color: var(--lime);
  box-shadow: 0 15px 30px rgba(23, 60, 48, 0.2);
  font-size: 32px;
  font-weight: 900;
  transform: rotate(-3deg);
}

.complete-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.primary-complete-action,
.secondary-complete-action,
.error-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 49px;
  border-radius: 999px;
  padding: 0 20px;
  font-size: 11px;
  font-weight: 850;
  text-decoration: none;
  transition: transform 160ms ease;
}

.primary-complete-action,
.error-action {
  background: var(--forest);
  color: #fff;
}

.primary-complete-action svg {
  width: 18px;
  height: 18px;
  color: var(--lime);
}

.secondary-complete-action {
  border: 1px solid var(--line);
  color: var(--forest);
}

.primary-complete-action:hover,
.secondary-complete-action:hover,
.error-action:hover {
  transform: translateY(-2px);
}

.review-used-note {
  display: grid;
  grid-template-columns: 47px 1fr;
  align-items: center;
  gap: 13px;
  max-width: 480px;
  border-top: 1px solid var(--line);
  margin-top: 34px;
  padding-top: 22px;
  text-align: left;
}

.review-used-note span {
  display: grid;
  width: 47px;
  height: 47px;
  place-items: center;
  border-radius: 50%;
  background: var(--sage);
  color: var(--forest);
  font-size: 11px;
  font-weight: 900;
}

.review-used-note p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.5;
}

.review-used-note strong {
  color: var(--ink);
}

.error-mark {
  background: #9b362e;
  color: #fff;
}

.error-card .panel-eyebrow {
  color: #9b362e;
}

.error-action {
  margin-top: 28px;
}

.review-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 31px 0 42px;
  color: var(--ink-soft);
  font-size: 10px;
}

.review-footer p {
  margin: 0;
}

.review-footer a {
  color: var(--forest);
  font-weight: 850;
  text-underline-offset: 3px;
}

.review-page button:focus-visible,
.review-page a:focus-visible,
.review-page textarea:focus-visible {
  outline: 3px solid rgba(219, 117, 85, 0.45);
  outline-offset: 3px;
}

@media (max-width: 1050px) {
  .review-intro {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .review-intro > p {
    max-width: 700px;
  }

  .review-workspace {
    grid-template-columns: 1fr;
    max-width: 760px;
    margin-inline: auto;
  }

  .review-preview-card {
    position: relative;
    top: auto;
  }
}

@media (max-width: 760px) {
  .review-header,
  .review-main,
  .review-footer {
    width: min(100% - 30px, 680px);
  }

  .review-header-step {
    display: none;
  }

  .review-main {
    padding: 52px 0 72px;
  }

  .review-intro {
    margin-bottom: 32px;
  }

  .review-intro h1 {
    font-size: clamp(42px, 12vw, 62px);
  }

  .review-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .review-preview-card,
  .review-form-card,
  .review-state-card {
    border-radius: 22px;
  }

  .review-form-card,
  .review-state-card {
    min-height: auto;
  }

  .review-form-heading {
    align-items: flex-start;
    flex-direction: column-reverse;
  }

  .revision-steps {
    display: none;
  }

  .review-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .back-action {
    width: 42px;
    height: 42px;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    white-space: nowrap;
    text-indent: 100px;
  }

  .back-action svg {
    flex: 0 0 auto;
    margin-left: -100px;
  }

  .review-intro h1 {
    font-size: 43px;
  }

  .review-property-details,
  .preview-assurance {
    padding-right: 18px;
    padding-left: 18px;
  }

  .review-form-card,
  .review-state-card {
    padding: 25px 20px;
  }

  .one-review-badge {
    font-size: 9px;
  }

  .complete-actions,
  .primary-complete-action,
  .secondary-complete-action {
    width: 100%;
  }
}
