:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: #14203a;
  background: #061530;
  --navy: #061530;
  --blue: #174b9c;
  --blue-dark: #103a7c;
  --purple: #6f19d5;
  --gold: #f4b72b;
  --surface: #ffffff;
  --muted: #68738a;
  --line: #dfe5ef;
  --soft: #f5f7fb;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at 12% 15%, rgba(62, 80, 190, .24), transparent 28rem),
    radial-gradient(circle at 88% 75%, rgba(113, 20, 207, .18), transparent 30rem),
    var(--navy);
}

body {
  margin: 0;
  min-height: 100vh;
  background: transparent;
}

button,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 26px;
}

.review-layout {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(430px, 1.08fr);
  border-radius: 28px;
  overflow: hidden;
  background: var(--surface);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, .38),
    0 0 0 1px rgba(255, 255, 255, .08);
}

.brand-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(160deg, rgba(7, 29, 72, .96), rgba(9, 17, 49, .99));
  color: white;
  padding: 26px;
  position: relative;
  overflow: hidden;
}

.brand-panel::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  left: -160px;
  top: -170px;
  border-radius: 50%;
  background: rgba(98, 44, 229, .25);
  filter: blur(4px);
}

.brand-panel::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -140px;
  bottom: -150px;
  border-radius: 50%;
  background: rgba(0, 173, 239, .16);
}

.mall-banner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  max-height: 285px;
  object-fit: contain;
  display: block;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .38);
}

.brand-copy {
  position: relative;
  z-index: 1;
  margin-top: 26px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: #d8e8ff;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .14);
  font-size: 11px;
  letter-spacing: .16em;
  font-weight: 800;
}

.brand-copy h2 {
  margin: 15px 0 10px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
  color: #fff;
}

.brand-copy p {
  color: #c8d5ea;
  line-height: 1.65;
  margin: 0;
  max-width: 42rem;
}

.benefits {
  display: grid;
  gap: 11px;
  margin-top: 22px;
  color: #eef5ff;
  font-size: 14px;
}

.benefits div {
  display: flex;
  gap: 10px;
  align-items: center;
}

.benefits span {
  width: 23px;
  height: 23px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #061530;
  background: #55e0c0;
  font-weight: 900;
  flex: 0 0 auto;
}

.mall-link {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 24px;
  color: #86d7ff;
  font-weight: 750;
  text-decoration: none;
  font-size: 14px;
}

.mall-link:hover {
  color: #fff;
}

.form-card {
  padding: 34px 38px 25px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  overflow: auto;
}

.form-header {
  display: flex;
  gap: 14px;
  align-items: center;
}

.logo-mark {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: #fff;
  background:
    linear-gradient(145deg, #8624e5, #5312a8 65%, #0a4cb5);
  box-shadow: 0 12px 28px rgba(103, 27, 205, .28);
  font-size: 29px;
  font-weight: 900;
}

.eyebrow {
  margin: 0;
  color: #2556a5;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .16em;
}

h1 {
  margin: 3px 0 0;
  font-size: clamp(29px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -.035em;
}

.intro {
  margin: 18px 0 23px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 15px;
}

.rating-fieldset {
  padding: 0;
  border: 0;
  margin: 0 0 20px;
}

.rating-fieldset legend,
.field > label {
  display: block;
  margin: 0 0 9px;
  font-weight: 780;
  font-size: 14px;
  color: #1b2943;
}

.stars {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 3px;
  padding: 6px 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.stars input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.stars label {
  font-size: 37px;
  line-height: 1;
  color: #cbd3df;
  cursor: pointer;
  transition: transform .15s ease, color .15s ease;
}

.stars label:hover,
.stars label:hover ~ label,
.stars input:checked ~ label {
  color: var(--gold);
}

.stars label:hover {
  transform: translateY(-2px) scale(1.05);
}

.field {
  margin-bottom: 17px;
}

textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #17233b;
  background: #fff;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}

textarea {
  min-height: 116px;
  padding: 15px 16px;
  resize: vertical;
  line-height: 1.55;
}

select {
  height: 50px;
  padding: 0 14px;
}

textarea:focus,
select:focus {
  border-color: #4f7bd1;
  box-shadow: 0 0 0 4px rgba(63, 109, 198, .12);
}

.field-hint {
  margin-top: 7px;
  color: #7c879a;
  font-size: 12px;
}

.primary-button,
.secondary-button,
.google-button {
  border: 0;
  border-radius: 14px;
  font-weight: 820;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.primary-button {
  width: 100%;
  min-height: 53px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: white;
  background:
    linear-gradient(100deg, #174b9c, #263aa9 55%, #6b1cd2);
  box-shadow: 0 13px 28px rgba(29, 66, 154, .24);
}

.primary-button:hover,
.google-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.primary-button:disabled {
  opacity: .66;
  cursor: wait;
}

.button-arrow {
  font-size: 20px;
}

.status {
  min-height: 20px;
  margin: 12px 0 0;
  color: #31558d;
  font-size: 13px;
  font-weight: 650;
  text-align: center;
}

.result-card {
  margin-top: 24px;
  padding: 19px;
  border-radius: 18px;
  border: 1px solid #dfe7f3;
  background: #f8faff;
  box-shadow: 0 12px 30px rgba(29, 52, 91, .07);
}

.result-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.result-heading h2 {
  margin: 2px 0 0;
  font-size: 20px;
}

.ready-badge {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  padding: 0 10px;
  color: #16734c;
  background: #daf6e9;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
}

.draft {
  min-height: 150px;
  background: #fff;
}

.actions {
  display: grid;
  grid-template-columns: .82fr 1.5fr;
  gap: 10px;
  margin-top: 12px;
}

.secondary-button,
.google-button {
  min-height: 49px;
  padding: 0 15px;
}

.secondary-button {
  color: #21477f;
  background: #e7edf7;
}

.google-button {
  color: white;
  background: linear-gradient(100deg, #14834d, #0f6d40);
  box-shadow: 0 10px 22px rgba(19, 126, 74, .2);
}

.fine {
  margin: 13px 0 0;
  color: #758095;
  font-size: 12px;
  line-height: 1.48;
}

.page-footer {
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid #edf0f5;
  color: #8a94a7;
  font-size: 12px;
  text-align: center;
}

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .page-shell {
    padding: 14px;
  }

  .review-layout {
    grid-template-columns: 1fr;
    width: min(700px, 100%);
  }

  .brand-panel {
    padding: 16px;
  }

  .mall-banner {
    max-height: 190px;
  }

  .brand-copy {
    display: none;
  }

  .mall-link {
    display: none;
  }

  .form-card {
    padding: 27px 24px 22px;
  }
}

@media (max-width: 520px) {
  .page-shell {
    display: block;
    padding: 0;
  }

  .review-layout {
    min-height: 100vh;
    border-radius: 0;
  }

  .brand-panel {
    padding: 8px;
  }

  .mall-banner {
    max-height: 128px;
    border-radius: 10px;
  }

  .form-card {
    padding: 23px 17px 20px;
  }

  .logo-mark {
    width: 47px;
    height: 47px;
    flex-basis: 47px;
    border-radius: 14px;
    font-size: 25px;
  }

  h1 {
    font-size: 28px;
  }

  .intro {
    margin: 14px 0 19px;
  }

  .stars {
    width: 100%;
    justify-content: center;
  }

  .stars label {
    font-size: 41px;
  }

  .actions {
    grid-template-columns: 1fr;
  }
}
