/* Local all-quiz extension of the approved Vibe site style. Native form structure,
   values, visibility, errors and navigation remain under the existing runtimes. */
body.rp-site-style {
  --font-sans: 'VDK Manrope', Arial, sans-serif;
  --style-accent: #886337;
  --style-border: #9e875f;
  --style-selected: #eee9de;
  --style-focus: #9b753e;
  --style-hero-shadow: rgba(173, 140, 88, .19);
  --action: var(--navy);
  --action-hover: #35464f;
  --ink-soft: #59656a;
  --surface: #fffefa;
}

/* Keep step changes immediate; only the agreed contact-button shimmer moves. */
body.rp-site-style .rp-offer:not([hidden]),
body.rp-site-style .quiz-step:not([hidden]) {
  animation: none;
}

/* Pattaya has a cooler detail palette while retaining the shared cream surface
   and warm primary contact action. Text colors remain deliberately dark. */
body.rp-site-style[data-style-region="pattaya"] {
  --style-accent: #46645f;
  --style-border: #6b827b;
  --style-selected: #e9eeea;
  --style-focus: #52736a;
  --style-hero-shadow: rgba(95, 122, 110, .16);
}

body.rp-site-style .rp-eyebrow,
body.rp-site-style .vibe-label,
body.rp-site-style .rp-stats strong,
body.rp-site-style .vibe-agency-proof {
  color: var(--style-accent);
}

body.rp-site-style .rp-hero {
  box-shadow: 0 18px 42px var(--style-hero-shadow), 0 4px 14px rgba(173, 140, 88, .06);
}

body.rp-site-style .site-header .brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  cursor: default;
}

body.rp-site-style .language-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 254, 250, .56);
}

body.rp-site-style .language-switch a {
  min-width: 34px;
  min-height: 34px;
  padding: 9px 8px;
  border: 0;
  border-radius: 999px;
  text-align: center;
  line-height: 1.2;
  text-decoration: none;
  font-weight: 600;
}

body.rp-site-style .language-switch a[aria-current="page"] {
  color: var(--paper);
  background: var(--navy);
}

/* The full quiz uses exactly the same narrow decision frame as the short one. */
body.rp-site-style #quiz-screen,
body.rp-site-style .form-panel {
  width: 100%;
  max-width: 520px;
  padding: 0 0 14px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.rp-site-style #quiz-form,
body.rp-site-style #short-form {
  min-width: 0;
  padding: 0;
}

body.rp-site-style .quiz-meta {
  margin-bottom: 22px;
  column-gap: 18px;
}

body.rp-site-style #step-label,
body.rp-site-style .flow-progress p,
body.rp-site-style .rp-stage {
  color: #687474;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 400;
}

body.rp-site-style .quiz-progress,
body.rp-site-style .flow-progress i {
  height: 3px;
  background: #e1e0d9;
  border-radius: 999px;
}

body.rp-site-style .quiz-progress span,
body.rp-site-style .flow-progress i[data-active] {
  background: var(--style-accent);
  border-radius: 999px;
}

body.rp-site-style .rp-project-context {
  gap: 11px;
  margin-bottom: 2px;
  padding-bottom: 15px;
  border-color: var(--line);
}

body.rp-site-style .rp-project-context > img {
  width: 58px;
  height: 45px;
  border-radius: 8px;
}

body.rp-site-style .rp-project-context strong {
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
}

body.rp-site-style .rp-project-context span {
  color: #687474;
  font-size: 11px;
  margin-top: 3px;
}

body.rp-site-style.rp-premium #quiz-form .quiz-step > legend,
body.rp-site-style.rp-premium #short-form fieldset.question > legend {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0 0 21px;
  color: var(--ink);
  font-family: inherit;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.18;
}

body.rp-site-style.rp-premium #quiz-form .quiz-step--contact > legend {
  margin-bottom: 10px;
}

body.rp-site-style .rp-contact-note {
  margin: 0 0 20px;
  color: #59656a;
  font-size: 15px;
  line-height: 1.5;
}

/* Native answer labels remain full click targets. The circular indicator is
   decorative; the original radio still owns selection and keyboard behavior. */
body.rp-site-style .answer-grid,
body.rp-site-style .choices--budget {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

body.rp-site-style .answer > span,
body.rp-site-style .choices--budget .choice > span {
  min-height: 54px;
  padding: 14px 16px;
  gap: 12px;
  border: 1px solid #b8b6ac;
  border-radius: 11px;
  background: rgba(255, 254, 250, .46);
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  box-shadow: 0 2px 8px rgba(30, 42, 48, .018);
  transition: background-color .16s, border-color .16s, box-shadow .16s;
}

body.rp-site-style .answer > span::before,
body.rp-site-style .choices--budget .choice > span::before {
  width: 18px;
  height: 18px;
  border: 1px solid var(--style-border);
  background: #fffefa;
  box-shadow: none;
}

body.rp-site-style .answer:hover > span,
body.rp-site-style .choices--budget .choice:hover > span {
  border-color: var(--style-border);
  background: #fffefa;
}

body.rp-site-style .answer input:checked + span,
body.rp-site-style .choices--budget input:checked + span,
body.rp-site-style .choices--cities .choice input:checked + span {
  border-color: var(--style-accent);
  background: var(--style-selected);
  color: var(--ink);
}

body.rp-site-style .answer input:checked + span::before,
body.rp-site-style .choices--budget input:checked + span::before {
  border: 1px solid var(--style-accent);
  background: var(--style-accent);
  box-shadow: inset 0 0 0 4px #fffefa;
}

body.rp-site-style .answer input:focus-visible + span,
body.rp-site-style .choice input:focus-visible + span,
body.rp-site-style .city-choice:has(input:focus-visible) {
  outline: 2px solid var(--style-focus);
  outline-offset: 3px;
}

body.rp-site-style .answer:has(input:disabled),
body.rp-site-style .choice:has(input:disabled),
body.rp-site-style .city-choice:has(input:disabled) {
  opacity: .5;
  cursor: default;
}

body.rp-site-style .answer input:disabled,
body.rp-site-style .choice input:disabled,
body.rp-site-style .city-choice input:disabled {
  cursor: default;
}

body.rp-site-style .answer-grid--compact {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 10px;
}

body.rp-site-style .answer-grid--compact .answer > span {
  min-height: 48px;
  padding: 12px;
  gap: 8px;
  font-size: 13px;
}

body.rp-site-style .answer-grid--compact .answer > span::before {
  width: 16px;
  height: 16px;
}

/* City photos are the original quiz assets, never invented project imagery. */
body.rp-site-style .city-grid,
body.rp-site-style .choices--cities {
  gap: 11px;
}

body.rp-site-style .city-card,
body.rp-site-style .choices--cities .choice > span {
  border: 1px solid #b8b6ac;
  border-radius: 12px;
  background: #fffefa;
  color: var(--ink);
  box-shadow: 0 3px 10px rgba(30, 42, 48, .025);
}

body.rp-site-style .city-card__image,
body.rp-site-style .rp-city-image {
  height: 116px;
}

body.rp-site-style .city-card__body {
  min-height: 48px;
  padding: 12px 13px;
}

body.rp-site-style .city-card__name,
body.rp-site-style .rp-city-name {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.015em;
}

body.rp-site-style .rp-city-name {
  padding: 12px 13px;
}

body.rp-site-style .choices--cities .choice:not(.rp-city-choice) > span {
  min-height: 48px;
  font-size: 13px;
}

body.rp-site-style .choice-indicator {
  width: 17px;
  height: 17px;
  border-color: var(--style-border);
}

body.rp-site-style .city-choice:hover,
body.rp-site-style .city-choice:has(input:checked) {
  border-color: var(--style-accent);
}

body.rp-site-style .city-choice input:checked ~ .city-card__body {
  background: var(--style-selected);
}

body.rp-site-style .city-choice input:checked ~ .city-card__body .choice-indicator {
  border: 5px solid var(--style-accent);
}

body.rp-site-style .quiz-actions,
body.rp-site-style .flow-actions {
  gap: 18px;
  margin-top: 23px;
}

body.rp-site-style #next-button,
body.rp-site-style #step-next,
body.rp-site-style .result-links .result-button {
  min-width: 0;
  min-height: 54px;
  padding: 15px 21px;
  border: 1px solid var(--navy);
  border-radius: 999px;
  background: var(--navy);
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  box-shadow: none;
}

body.rp-site-style #next-button:hover,
body.rp-site-style #step-next:hover,
body.rp-site-style .result-links .result-button:hover {
  background: #35464f;
  border-color: #35464f;
}

body.rp-site-style #next-button:disabled,
body.rp-site-style #step-next:disabled {
  opacity: .5;
  cursor: default;
}

body.rp-site-style .back-link,
body.rp-site-style .step-back,
body.rp-site-style .rp-back {
  color: #59656a;
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
}

/* Full RU/EN labels wrap their inputs; short labels live in .field. Apply the
   same treatment to both without changing the native error text containers. */
body.rp-site-style.rp-contact .contact-fields > label {
  color: #59656a;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 400;
}

body.rp-site-style.rp-contact .contact-fields {
  grid-template-columns: minmax(0, 1fr);
}

body.rp-site-style.rp-contact .contact-fields > label input {
  margin-top: 7px;
}

body.rp-site-style.rp-contact .contact-fields input {
  min-height: 54px;
  border-color: var(--style-border);
}

body.rp-site-style.rp-contact .contact-fields input:hover {
  border-color: var(--style-accent);
}

body.rp-site-style.rp-contact .contact-fields input:focus {
  border-color: var(--style-focus);
  outline-color: var(--style-focus);
}

body.rp-site-style.rp-contact .contact-fields input[aria-invalid="true"] {
  border-color: #ae604b;
  background: #fffaf6;
}

body.rp-site-style.rp-contact .contact-fields input[aria-invalid="true"]:focus {
  outline-color: #ae604b;
}

body.rp-site-style .consent {
  color: #59656a;
  line-height: 1.5;
}

body.rp-site-style .consent a,
body.rp-site-style .messenger-links a,
body.rp-site-style .direct-contact a {
  color: #59656a;
  text-decoration-color: var(--style-border);
}

body.rp-site-style .consent .field-error {
  flex: 1 0 100%;
  width: 100%;
  margin-top: 7px;
}

body.rp-site-style .field-error,
body.rp-site-style .form-status {
  color: #984d3d;
  font-size: 12px;
  line-height: 1.45;
}

body.rp-site-style.rp-contact #quiz-screen .quiz-actions {
  align-items: stretch;
  flex-direction: column-reverse;
  gap: 12px;
}

body.rp-site-style.rp-contact #quiz-screen #submit-button {
  flex: none;
  width: 100%;
  min-width: 0;
  margin: 0;
}

body.rp-site-style.rp-contact #previous-button {
  align-self: flex-start;
  min-height: 36px;
}

body.rp-site-style.rp-contact .rp-project-context {
  display: none;
}

body.rp-site-style .rp-country-hint {
  color: #59656a;
  font-size: 12px;
  line-height: 1.5;
  margin: 8px 0 16px;
}

body.rp-site-style .result-content h2,
body.rp-site-style .demo-result h2 {
  font-family: inherit;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.035em;
}

body.rp-site-style #result-description,
body.rp-site-style #result-copy {
  color: #59656a;
  font-size: 15px;
  line-height: 1.55;
}

@media (max-width: 760px) {
  body.rp-site-style #quiz-screen,
  body.rp-site-style .form-panel {
    padding-bottom: 0;
  }

  body.rp-site-style.rp-premium #quiz-form .quiz-step > legend,
  body.rp-site-style.rp-premium #short-form fieldset.question > legend {
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -.035em;
    margin-bottom: 19px;
  }

  body.rp-site-style.rp-premium #quiz-form .quiz-step--contact > legend {
    margin-bottom: 10px;
    font-size: 30px;
    line-height: 1.18;
  }

  body.rp-site-style .rp-contact-note {
    font-size: 14px;
    margin-bottom: 20px;
  }

  body.rp-site-style .rp-project-context {
    padding-bottom: 13px;
  }

  body.rp-site-style .quiz-meta {
    margin-bottom: 20px;
    gap: 10px 15px;
  }

  body.rp-site-style .answer > span,
  body.rp-site-style .choices--budget .choice > span {
    min-height: 52px;
    padding: 13px 14px;
    font-size: 14px;
  }

  body.rp-site-style .answer-grid--compact .answer > span {
    min-height: 48px;
    padding: 11px;
    font-size: 13px;
  }

  body.rp-site-style .city-card__image,
  body.rp-site-style .rp-city-image {
    height: 103px;
  }

  body.rp-site-style .city-card__body,
  body.rp-site-style .rp-city-name {
    padding: 11px;
  }

  body.rp-site-style .quiz-actions,
  body.rp-site-style .flow-actions {
    gap: 15px;
    margin-top: 20px;
  }

  body.rp-site-style .result-content h2,
  body.rp-site-style .demo-result h2 {
    font-size: 30px;
  }

  body.rp-site-style .rp-hero {
    box-shadow: 0 12px 30px var(--style-hero-shadow), 0 3px 10px rgba(173, 140, 88, .05);
  }
}

@media (max-width: 360px) {
  body.rp-site-style .site-header {
    gap: 12px;
  }

  body.rp-site-style .brand img {
    width: 75px;
  }

  body.rp-site-style .vibe-project-logo {
    width: 88px;
  }

  body.rp-site-style .language-switch a {
    min-width: 29px;
    padding: 9px 6px;
  }

  body.rp-site-style .rp-stats strong {
    font-size: 20px;
  }

  body.rp-site-style .rp-stats li {
    padding-left: 10px;
    padding-right: 10px;
  }

  body.rp-site-style .rp-stats li:first-child {
    padding-left: 0;
  }

  body.rp-site-style .rp-stats li:last-child {
    padding-right: 0;
  }

  body.rp-site-style.rp-premium #quiz-form .quiz-step > legend,
  body.rp-site-style.rp-premium #short-form fieldset.question > legend {
    font-size: 26px;
  }

  body.rp-site-style.rp-premium #quiz-form .quiz-step--contact > legend {
    font-size: 28px;
  }

  body.rp-site-style .city-card__name,
  body.rp-site-style .rp-city-name {
    font-size: 14px;
  }

  body.rp-site-style .answer-grid--compact .answer > span {
    padding: 10px;
    gap: 7px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.rp-site-style .answer > span,
  body.rp-site-style .choice > span,
  body.rp-site-style .city-card,
  body.rp-site-style .quiz-progress span {
    transition: none;
  }
}

/* This guard is last so native form stages and inline errors stay authoritative. */
body.rp-site-style [hidden] {
  display: none !important;
}
