/* Walmart funnel — landing / survey / app */
:root {
  --t365-blue: #35783c;
  --t365-blue-hover: #2d6533;
  --t365-navy: #124734;
  --t365-muted: #5c6b62;
  --t365-bg: #f4f7f5;
  --t365-input-border: #d4d8d5;
  --t365-card: #ffffff;
}

.t365-page {
  min-height: 100vh;
  margin: 0;
  background: var(--t365-bg);
  color: #111827;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.t365-hero {
  background: var(--t365-blue);
  padding: 28px 20px 36px;
  text-align: center;
  border-radius: 0 0 28px 28px;
  box-shadow: 0 4px 20px rgba(66, 133, 244, 0.25);
}

.t365-hero__logo {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.t365-hero__welcome {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}

.t365-body {
  max-width: 420px;
  margin: 0 auto;
  padding: 20px 20px 28px;
}

.t365-field {
  margin-bottom: 18px;
}

.t365-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--t365-navy);
}

.t365-input,
.t365-select {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--t365-input-border);
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  color: #111;
  background: var(--t365-card);
  box-sizing: border-box;
}

.t365-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%236b7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.t365-input:focus,
.t365-select:focus {
  outline: none;
  border-color: var(--t365-blue);
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.2);
}

.t365-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  margin-top: 8px;
  border: 0;
  border-radius: 12px;
  background: var(--t365-blue);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.t365-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.t365-btn:active:not(:disabled) {
  background: var(--t365-blue-hover);
}

.t365-help {
  max-width: 420px;
  margin: 0 auto;
  padding: 8px 20px 32px;
  text-align: center;
}

.t365-help__lead {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--t365-muted);
}

.t365-help__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.t365-help__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  border-radius: 12px;
  background: var(--t365-card);
  border: 1px solid var(--t365-input-border);
  color: var(--t365-navy);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.t365-help__ico {
  font-size: 20px;
  line-height: 1;
}

/* Landing (page2) overrides */
.t365-page.pp-landing {
  padding-bottom: 0;
  background: var(--t365-bg);
}

.t365-page.pp-landing .pp-landing__main {
  background: transparent;
  padding-top: 8px;
}

.t365-page .wm-landing__intro h1 {
  color: var(--t365-navy);
}

.t365-page .wm-landing__pill {
  background: #e8f2e9;
  color: var(--t365-navy);
}

.t365-page .pp-landing__btn {
  background: var(--t365-blue);
  box-shadow: 0 6px 18px rgba(53, 120, 60, 0.32);
}

.t365-page .pp-landing__link {
  color: var(--t365-blue);
}

.t365-page .pp-landing__reward {
  border-color: #c5dfc7;
  background: linear-gradient(180deg, #f0f7f1 0%, #fff 100%);
}

.t365-page .pp-landing__reward-headline {
  color: var(--t365-navy);
}

.t365-page .pp-landing__reward-line {
  color: #374151;
}

.t365-page .pp-landing__slot {
  border-color: var(--t365-blue);
  color: var(--t365-blue);
}

.t365-page .pp-landing__step-ico {
  background: #e8f2e9;
  color: var(--t365-blue);
}

.t365-page .pp-landing__step {
  color: var(--t365-navy);
}

/* Survey (page3) */
.t365-page.ri-page {
  background: var(--t365-bg);
}

.t365-page #middle {
  background: transparent;
  padding: 0;
}

.t365-page .ri-survey-wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 0 24px;
}

.t365-page .pp-survey__brand {
  display: none;
}

.t365-page .pp-survey__heading,
.t365-page .pp-survey__sub {
  text-align: center;
  color: var(--t365-navy);
}

.t365-page .pp-survey__next,
.t365-page .pp-survey__bar i {
  background: var(--t365-blue);
}

.t365-page .pp-survey__next {
  box-shadow: 0 4px 14px rgba(66, 133, 244, 0.3);
}

.t365-page .ri-balance {
  border-color: #dbeafe;
  background: #fff;
}

.t365-page .ri-balance__amt {
  color: var(--t365-blue);
}

.t365-page .pp-modal__btn {
  background: var(--t365-blue);
}

.t365-page .pp-modal__title {
  color: var(--t365-navy);
}

/* /app payout */
html,
body.t365-app {
  margin: 0;
  padding: 0;
}

.t365-app {
  min-height: 100vh;
  background: var(--t365-bg);
}

.t365-app .t365-body {
  max-width: none;
  margin: 0;
  padding: 0;
}

.t365-app .t365-app__card {
  background: var(--t365-card);
  border-radius: 0;
  padding: 20px 16px 24px;
  margin-bottom: 0;
  border: 0;
  border-bottom: 1px solid var(--t365-input-border);
}

.t365-app .t365-help {
  max-width: none;
  margin: 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
}

.t365-app__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--t365-navy);
  text-align: center;
}

.t365-app__sub {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--t365-muted);
  text-align: center;
}

.t365-app__waiting {
  display: none;
  text-align: center;
  padding: 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--t365-blue);
}

.t365-app__waiting.is-on {
  display: block;
}

.t365-app__spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto 12px;
  border: 3px solid #e5e7eb;
  border-top-color: var(--t365-blue);
  border-radius: 50%;
  animation: t365-spin 0.8s linear infinite;
}

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

.t365-app__success {
  display: none;
  text-align: center;
}

.t365-app__success.is-on {
  display: block;
}

.t365-app-root.is-done #app-form-panel .t365-app__fields {
  display: none;
}

.t365-app-root.is-waiting #app-form-panel .t365-app__fields {
  opacity: 0.45;
  pointer-events: none;
}

.t365-app__check {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--t365-blue);
  display: grid;
  place-items: center;
}

.t365-app__check svg {
  width: 28px;
  height: 28px;
  stroke: #fff;
  stroke-width: 2.5;
  fill: none;
}

.t365-app__progress-rail {
  position: relative;
  height: 4px;
  margin: 0 8px 22px;
  border-radius: 999px;
  background: #e8eaed;
  overflow: hidden;
}

.t365-app__progress-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--t365-blue), #5b9bf8);
  transition: width 0.65s ease;
}

.t365-app__progress-steps {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.t365-app__progress-step {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.t365-app__progress-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  background: #fff;
  margin-top: -31px;
  position: relative;
  z-index: 1;
}

.t365-app__progress-label {
  font-size: 10px;
  line-height: 1.35;
  font-weight: 600;
  color: #94a3b8;
  padding: 0 2px;
}

.t365-app__progress-step.is-done .t365-app__progress-dot {
  border-color: var(--t365-blue);
  background: var(--t365-blue);
}

.t365-app__progress-step.is-done .t365-app__progress-label,
.t365-app__progress-step.is-active .t365-app__progress-label {
  color: var(--t365-navy);
}

.t365-app__progress-step.is-active .t365-app__progress-dot {
  border-color: var(--t365-blue);
  background: var(--t365-blue);
  box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.25);
}

.t365-app__progress.is-waiting .t365-app__progress-fill {
  background-size: 200% 100%;
  animation: t365-bar-wait 2s ease-in-out infinite;
}

@keyframes t365-bar-wait {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.t365-app__success-desc {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
}