.mto-guest-survey-app {
  --mto-blue: #0071ce;
  --mto-blue-dark: #13466b;
  --mto-teal: #00af87;
  --mto-sun: #ffc83d;
  --mto-coral: #f26a3d;
  --mto-ink: #102033;
  --mto-muted: #61788d;
  --mto-line: #d8e8f4;
  --mto-bg: #eaf7ff;
  --mto-surface: #ffffff;
  color: var(--mto-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(234, 247, 255, .92), rgba(255, 255, 255, .98)),
    radial-gradient(circle at 20% 8%, rgba(255, 200, 61, .26), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(0, 175, 135, .22), transparent 30%),
    var(--mto-bg);
  padding: 28px 14px 36px;
}

.mto-guest-survey-app * {
  box-sizing: border-box;
}

.mto-survey-loading,
.mto-survey-noscript {
  width: min(100%, 420px);
  margin: 12vh auto;
  padding: 22px;
  border: 1px solid var(--mto-line);
  border-radius: 8px;
  background: var(--mto-surface);
  color: var(--mto-muted);
  text-align: center;
  box-shadow: 0 18px 42px rgba(16, 32, 51, .12);
}

.mto-loader {
  width: 34px;
  height: 34px;
  margin: 0 auto 12px;
  border: 4px solid #dceeff;
  border-top-color: var(--mto-blue);
  border-radius: 999px;
  animation: mto-spin 850ms linear infinite;
}

@keyframes mto-spin {
  to { transform: rotate(360deg); }
}

.mto-survey-shell {
  width: min(100%, 760px);
  margin: 0 auto;
}

.mto-survey-media {
  padding: 4px 0 0;
  text-align: center;
}

.mto-survey-logo {
  display: block;
  width: min(300px, 76vw);
  height: auto;
  margin: 0 auto 16px;
}

.mto-survey-hero {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 16px 38px rgba(19, 70, 107, .16);
}

.mto-survey-panel {
  position: relative;
  margin: 14px auto 0;
  width: 100%;
  background: var(--mto-surface);
  border-radius: 22px;
  box-shadow: 0 24px 54px rgba(19, 70, 107, .16);
  padding: 36px 28px 30px;
}

.mto-survey-footer {
  margin: 18px auto 0;
  text-align: center;
  color: var(--mto-muted);
  font-size: 12px;
  line-height: 1.5;
}

.mto-survey-panel h1 {
  max-width: 620px;
  margin: 0 auto 10px;
  color: var(--mto-ink);
  font-size: 30px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.14;
  text-align: center;
}

.mto-intro {
  max-width: 590px;
  margin: 0 auto 22px;
  color: var(--mto-muted);
  font-size: 15px;
  line-height: 1.58;
  text-align: center;
}

.mto-field {
  margin: 22px 0;
}

.mto-field label,
.mto-label-row label,
.mto-compose label {
  display: block;
  margin-bottom: 8px;
  color: var(--mto-ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.mto-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.mto-label-row span {
  color: var(--mto-blue);
  font-size: 12px;
  font-weight: 800;
}

.mto-help {
  margin: -2px 0 10px;
  color: var(--mto-muted);
  font-size: 12px;
  line-height: 1.35;
}

.mto-rating {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.mto-rating-option {
  min-width: 0;
}

.mto-rating-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mto-rating-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 1px solid var(--mto-line);
  border-radius: 8px;
  background: #f7fbfe;
  color: var(--mto-ink);
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.mto-rating-option input:focus-visible + span {
  outline: 3px solid rgba(0, 113, 206, .22);
  outline-offset: 2px;
}

/* Each cell is a gradient (like the SEND button): light at 1-2, bold CTA blue at 4-5. */
.mto-rating-option:nth-child(1) span { background: linear-gradient(135deg, #f4f9fe, #e9f2fc); border-color: #dbe9f8; color: #4f7aa6; }
.mto-rating-option:nth-child(2) span { background: linear-gradient(135deg, #e6f1fc, #d3e7f8); border-color: #c3dcf2; color: #356da5; }
.mto-rating-option:nth-child(3) span { background: linear-gradient(135deg, #c9e0f6, #a9cdef); border-color: #93bfe7; color: #14538d; }
.mto-rating-option:nth-child(4) span { background: linear-gradient(135deg, #5ea2e6, #2f7fd6); border-color: transparent; color: #ffffff; }
.mto-rating-option:nth-child(5) span { background: linear-gradient(135deg, #3a8fe6, #1761cf); border-color: transparent; color: #ffffff; }

/* Highlight the chosen number: pop with scale, glow ring, and a deeper gradient. */
.mto-rating-option.is-selected span {
  background: linear-gradient(135deg, #2f8cf0, #0f57c0) !important;
  color: #fff !important;
  border-color: transparent !important;
  transform: translateY(-2px) scale(1.07);
  box-shadow: 0 0 0 3px rgba(23, 86, 196, .32), 0 14px 26px rgba(0, 38, 90, .30);
}

.mto-field textarea,
.mto-compose textarea {
  width: 100%;
  min-height: 118px;
  padding: 13px 14px;
  border: 1px solid var(--mto-line);
  border-radius: 8px;
  background: #fbfdff;
  color: var(--mto-ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
}

.mto-field textarea:focus,
.mto-compose textarea:focus {
  border-color: var(--mto-blue);
  outline: 3px solid rgba(0, 113, 206, .16);
}

.mto-actions,
.mto-compose-actions,
.mto-recovery-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.mto-primary-action,
.mto-secondary-action,
.mto-link-action {
  min-height: 46px;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}

.mto-primary-action {
  min-width: 240px;
  border: 1px solid #0068bd;
  background: linear-gradient(135deg, #005db4, var(--mto-blue), #00a5d8);
  color: #fff;
  box-shadow: 0 10px 22px rgba(0, 113, 206, .26);
  letter-spacing: .09em;
  font-weight: 800;
  text-transform: uppercase;
}

.mto-cta-arrow {
  display: inline-block;
  margin-left: 8px;
  font-weight: 900;
  transition: transform 160ms ease;
}

.mto-primary-action:hover .mto-cta-arrow {
  transform: translateX(4px);
}

.mto-secondary-action {
  border: 1px solid var(--mto-line);
  background: #fff;
  color: var(--mto-ink);
  padding: 0 16px;
}

.mto-link-action {
  border: 0;
  background: transparent;
  color: var(--mto-muted);
  padding: 0 10px;
  text-decoration: underline;
}

.mto-primary-action:disabled {
  cursor: default;
  opacity: .62;
}

.mto-status {
  min-height: 22px;
  margin-top: 12px;
  color: var(--mto-muted);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.mto-compose {
  margin: 24px 0;
  padding: 16px;
  border: 1px solid var(--mto-line);
  border-radius: 8px;
  background: #f7fbfe;
}

.mto-platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.mto-platform-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 82px;
  padding: 14px;
  border: 1px solid var(--mto-line);
  border-radius: 8px;
  background: #fff;
  color: var(--mto-ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.mto-platform-card:hover,
.mto-platform-card:focus-visible {
  border-color: var(--mto-blue);
  box-shadow: 0 12px 26px rgba(16, 32, 51, .12);
  transform: translateY(-1px);
}

.mto-platform-card strong,
.mto-platform-card small {
  display: block;
}

.mto-platform-card strong {
  font-size: 14px;
  font-weight: 900;
}

.mto-platform-card small {
  margin-top: 3px;
  color: var(--mto-muted);
  font-size: 12px;
  line-height: 1.35;
}

.mto-platform-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
}

.mto-google-mark {
  background: linear-gradient(135deg, #4285f4, #34a853);
}

.mto-trip-mark {
  background: linear-gradient(135deg, #00af87, #102033);
}

.mto-bridge-badge {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #34c98a, #0fa06a);
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(15, 160, 106, .32);
}

.mto-platform-card {
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.mto-platform-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(19, 70, 107, .16);
}

.mto-google:hover { border-color: #4285f4; }
.mto-trip:hover { border-color: #00af87; }

.mto-platform-go {
  margin-left: auto;
  font-size: 20px;
  font-weight: 900;
  color: #94a3b8;
  transition: transform 160ms ease, color 160ms ease;
}

.mto-platform-card:hover .mto-platform-go {
  transform: translateX(4px);
  color: var(--mto-blue);
}

.mto-trip-embed {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--mto-line);
  border-radius: 8px;
  background: #fff;
}

.mto-trip-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--mto-line);
  background: #f7fbfe;
  font-size: 13px;
}

.mto-trip-toolbar a {
  color: var(--mto-blue);
  font-weight: 850;
  text-decoration: none;
}

.mto-trip-embed iframe {
  display: block;
  width: 100%;
  min-height: 540px;
  border: 0;
  background: #fff;
}

.mto-trip-embed p {
  margin: 0;
  padding: 10px 14px 14px;
  color: var(--mto-muted);
  font-size: 12px;
}

.mto-message {
  text-align: center;
}

.mto-message p {
  max-width: 520px;
  margin: 0 auto;
  color: var(--mto-muted);
  font-size: 15px;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .mto-guest-survey-app {
    padding: 12px 8px 24px;
  }

  .mto-survey-media {
    padding: 16px 14px 0;
  }

  .mto-survey-hero {
    height: auto;
  }

  .mto-survey-panel {
    padding: 24px 16px 24px;
  }

  .mto-survey-panel h1 {
    font-size: 25px;
  }

  .mto-label-row {
    display: block;
  }

  .mto-label-row span {
    display: block;
    margin: -3px 0 9px;
  }

  .mto-rating {
    gap: 6px;
  }

  .mto-rating-option span {
    min-height: 48px;
    font-size: 16px;
  }

  .mto-platform-grid {
    grid-template-columns: 1fr;
  }

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

@media (prefers-reduced-motion: reduce) {
  .mto-loader {
    animation: none;
  }

  .mto-rating-option span,
  .mto-platform-card {
    transition: none;
  }
}
