:root {
  --marino: #0f4358;
  --marino-deep: #0b3242;
  --oliva: #6c7f2b;
  --naranja: #e77709;
  --arena: #f3f4f0;
  --blanco: #ffffff;
  --carbón: #172127;
  --muted: #68747a;
  --line: #dfe4e1;
  --shadow: 0 24px 70px rgba(15, 67, 88, 0.12);
  --radius-card: 28px;
  --radius-control: 15px;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--carbón);
  background: var(--arena);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--arena);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 10%, rgba(108, 127, 43, 0.08), transparent 27rem),
    radial-gradient(circle at 91% 86%, rgba(231, 119, 9, 0.07), transparent 24rem),
    var(--arena);
}

button {
  font: inherit;
}

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

.opinion-card {
  width: min(100%, 620px);
  padding: clamp(24px, 5vw, 52px);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 67, 88, 0.09);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}

.brand-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.operator-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--marino);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.operator-mark__dot {
  width: 10px;
  height: 10px;
  background: var(--naranja);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(231, 119, 9, 0.12);
}

.header-note,
.location-label,
.eyebrow,
.rating-scale,
.rating-hint,
.page-footer {
  color: var(--muted);
}

.header-note {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.property-lockup {
  display: grid;
  justify-items: center;
  padding: 30px 0 22px;
  text-align: center;
}

.property-logo-frame {
  display: grid;
  width: min(100%, 300px);
  min-height: 116px;
  place-items: center;
  overflow: hidden;
  background: var(--blanco);
  border-radius: 10px;
}

.property-logo {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}

.location-label {
  margin: 14px 0 0;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.question-block {
  max-width: 500px;
  margin: 8px auto 0;
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--oliva);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  max-width: 510px;
  margin: 0 auto;
  color: var(--marino-deep);
  font-size: clamp(30px, 5.2vw, 46px);
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 1.04;
  text-wrap: balance;
}

.supporting-copy {
  max-width: 390px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  text-wrap: pretty;
}

.rating-block {
  margin-top: 34px;
  padding: 20px 18px 18px;
  background: #fbfcfa;
  border: 1px solid rgba(15, 67, 88, 0.1);
  border-radius: 20px;
}

.rating-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rating-label {
  color: var(--marino-deep);
  font-size: 14px;
  font-weight: 750;
}

.rating-scale {
  font-size: 12px;
  letter-spacing: 0.08em;
}

.stars {
  display: flex;
  justify-content: center;
  gap: clamp(5px, 2.2vw, 13px);
  margin-top: 18px;
}

.star-button {
  display: grid;
  width: clamp(48px, 12vw, 64px);
  height: clamp(48px, 12vw, 64px);
  place-items: center;
  padding: 0;
  color: #c8cfcb;
  background: var(--blanco);
  border: 1px solid #d5ddda;
  border-radius: 17px;
  cursor: pointer;
  font-size: clamp(26px, 7vw, 36px);
  line-height: 1;
  transition: transform 180ms ease, color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.star-button:hover,
.star-button:focus-visible {
  color: var(--naranja);
  border-color: rgba(231, 119, 9, 0.65);
  box-shadow: 0 8px 18px rgba(231, 119, 9, 0.16);
  outline: none;
  transform: translateY(-2px);
}

.star-button:focus-visible {
  box-shadow: 0 0 0 4px rgba(15, 67, 88, 0.16), 0 8px 18px rgba(231, 119, 9, 0.16);
}

.star-button.is-preview,
.star-button[aria-checked="true"] {
  color: var(--naranja);
  background: #fff9f2;
  border-color: rgba(231, 119, 9, 0.58);
}

.star-button[aria-checked="true"] {
  box-shadow: 0 8px 18px rgba(231, 119, 9, 0.14);
  transform: translateY(-2px);
}

.rating-hint {
  margin: 15px 0 0;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.preview-state {
  min-height: 18px;
  margin: 11px 0 0;
  color: var(--marino);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.support-panel {
  margin-top: 18px;
  padding: 25px 22px 22px;
  background: #f9faf8;
  border: 1px solid rgba(15, 67, 88, 0.12);
  border-radius: 20px;
  animation: support-in 240ms ease both;
}

.support-copy {
  max-width: 470px;
}

.support-copy .eyebrow {
  margin-bottom: 10px;
}

.support-copy h2,
.success-state h2 {
  margin: 0;
  color: var(--marino-deep);
  font-size: clamp(22px, 4vw, 29px);
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-wrap: pretty;
}

.support-copy > p:last-child,
.success-state p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

#support-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.field-group {
  display: grid;
  gap: 7px;
  color: var(--marino-deep);
  font-size: 13px;
  font-weight: 750;
}

.field-group b {
  color: var(--naranja);
}

.field-group em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}

.field-group input,
.field-group textarea {
  width: 100%;
  padding: 12px 13px;
  color: var(--carbón);
  background: var(--blanco);
  border: 1px solid #ccd7d3;
  border-radius: var(--radius-control);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field-group textarea {
  min-height: 108px;
  resize: vertical;
}

.field-group input:focus,
.field-group textarea:focus {
  border-color: var(--marino);
  box-shadow: 0 0 0 4px rgba(15, 67, 88, 0.12);
}

.field-group input:invalid:not(:placeholder-shown),
.field-group textarea:invalid:not(:placeholder-shown) {
  border-color: #c5543c;
}

.field-group small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.privacy-note {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.form-feedback {
  margin: -3px 0 0;
  padding: 10px 12px;
  color: #8e3325;
  background: #fff5f1;
  border: 1px solid #efc8be;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.submit-button {
  min-height: 48px;
  margin-top: 2px;
  padding: 12px 18px;
  color: var(--blanco);
  background: var(--marino);
  border: 0;
  border-radius: var(--radius-control);
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.submit-button:hover,
.submit-button:focus-visible {
  background: var(--marino-deep);
  box-shadow: 0 9px 18px rgba(15, 67, 88, 0.18);
  outline: none;
  transform: translateY(-1px);
}

.submit-button:focus-visible {
  box-shadow: 0 0 0 4px rgba(15, 67, 88, 0.16), 0 9px 18px rgba(15, 67, 88, 0.18);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.success-state {
  padding: 16px 3px 2px;
  text-align: center;
}

.success-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0 auto 15px;
  place-items: center;
  color: var(--blanco);
  background: var(--oliva);
  border-radius: 50%;
  font-size: 22px;
  font-weight: 800;
}

.success-state small {
  display: block;
  max-width: 340px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.error-state {
  padding: 16px 3px 2px;
  text-align: center;
}

.error-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0 auto 15px;
  place-items: center;
  color: #8e3325;
  background: #fff0eb;
  border: 1px solid #efc8be;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 800;
}

.error-state h2 {
  margin: 0;
  color: var(--marino-deep);
  font-size: clamp(22px, 4vw, 29px);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.error-state p {
  margin: 12px 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.retry-button {
  min-height: 44px;
  padding: 10px 17px;
  color: var(--marino);
  background: var(--blanco);
  border: 1px solid rgba(15, 67, 88, 0.3);
  border-radius: var(--radius-control);
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}

.retry-button:hover,
.retry-button:focus-visible {
  border-color: var(--marino);
  box-shadow: 0 0 0 4px rgba(15, 67, 88, 0.11);
  outline: none;
}

@keyframes support-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-footer {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.footer-line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.page-footer {
  position: absolute;
  bottom: 15px;
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.04em;
}

@media (max-width: 520px) {
  .page-shell {
    display: flex;
    align-items: center;
    padding: 18px 12px 52px;
  }

  .opinion-card {
    padding: 20px 17px 24px;
    border-radius: 23px;
  }

  .brand-header {
    align-items: flex-start;
    padding-bottom: 19px;
  }

  .header-note {
    max-width: 135px;
    font-size: 9px;
    line-height: 1.4;
    text-align: right;
  }

  .property-lockup {
    padding: 23px 0 18px;
  }

  .property-logo-frame {
    width: min(92%, 270px);
    min-height: 96px;
  }

  .location-label {
    max-width: 230px;
    font-size: 10px;
    line-height: 1.45;
  }

  h1 {
    font-size: clamp(29px, 9vw, 38px);
  }

  .supporting-copy {
    margin-top: 15px;
    font-size: 14px;
  }

  .rating-block {
    margin-top: 27px;
    padding: 16px 12px 15px;
  }

  .support-panel {
    padding: 21px 15px 17px;
    border-radius: 18px;
  }

  .support-copy h2,
  .success-state h2 {
    font-size: 23px;
  }

  .rating-label {
    font-size: 12px;
  }

  .rating-scale {
    font-size: 10px;
  }

  .stars {
    gap: 5px;
    margin-top: 15px;
  }

  .star-button {
    border-radius: 14px;
  }

  .card-footer {
    margin-top: 24px;
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
