* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: #20242c;
  background:
    radial-gradient(circle at 50% -12%, rgba(196, 24, 38, 0.28), transparent 32rem),
    linear-gradient(135deg, #e8edf2 0%, #f7f8f7 45%, #d8e0e8 100%);
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.phone-shell {
  width: min(100vw, 430px);
  min-height: 100vh;
  margin: 0 auto;
  background: #f3f5f6;
  box-shadow: 0 14px 44px rgba(37, 47, 63, 0.22);
  position: relative;
  overflow-x: hidden;
}

.hero {
  background: #0d1118;
}

.carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
  touch-action: pan-y;
}

.carousel-track {
  display: flex;
  transition: transform 360ms ease;
  will-change: transform;
}

.carousel-track img {
  display: block;
  width: 100%;
  flex: 0 0 100%;
  object-fit: cover;
  background: #111;
}

.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
}

.carousel-dots button {
  width: 0.42rem;
  height: 0.42rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
}

.carousel-dots button.active {
  width: 1.24rem;
  background: #fff;
}

.lead-panel {
  margin: -0.6rem 0 0;
  padding: 1rem 1.05rem max(1.6rem, env(safe-area-inset-bottom));
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, #fff 0%, #f9fafb 100%);
  border-radius: 0.85rem 0.85rem 0 0;
}

.panel-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.85rem;
}

.panel-title strong {
  color: #111722;
  font-size: 1.42rem;
  line-height: 1.1;
}

.panel-title span {
  color: #7b8491;
  font-size: 0.86rem;
  white-space: nowrap;
}

form {
  display: grid;
  gap: 0.7rem;
}

.field-wrap {
  display: grid;
  gap: 0.22rem;
}

.field {
  min-height: 3.15rem;
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0 0.85rem;
  border: 1px solid #d9dde4;
  border-radius: 0.45rem;
  background: #fff;
  color: #69717e;
}

.field-wrap.has-error .field {
  border-color: #e03b48;
  background: #fff8f8;
}

.field-wrap.has-error .field input::placeholder,
.field-wrap.has-error .picker-trigger strong {
  color: #d12635;
}

.field span {
  color: #303743;
  font-size: 0.94rem;
}

.field input {
  min-width: 0;
  width: 100%;
  height: 2.6rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: #151a22;
}

.field input::placeholder {
  color: #a0a7b2;
}

.picker-trigger {
  text-align: left;
  border-style: solid;
}

.picker-trigger strong {
  min-width: 0;
  color: #9aa2ae;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.picker-trigger.has-value strong {
  color: #151a22;
}

.consent {
  display: grid;
  grid-template-columns: 1.2rem 1fr;
  gap: 0.45rem;
  align-items: start;
  color: #6f7783;
  font-size: 0.78rem;
  line-height: 1.5;
  margin-top: 0.1rem;
}

.consent input {
  width: 1rem;
  height: 1rem;
  margin: 0.12rem 0 0;
  accent-color: #b91422;
}

.consent button,
.brand-footer button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #a01420;
}

.form-message {
  margin: 0;
  color: #a01420;
  font-size: 0.84rem;
  line-height: 1.35;
}

.form-message:empty {
  display: none;
}

.error-msg {
  display: none;
  color: #d12635;
  font-size: 0.76rem;
  line-height: 1.25;
  padding-left: 0.18rem;
}

.field-wrap.has-error .error-msg {
  display: block;
}

.form-message.success {
  color: #126b3f;
}

.submit {
  height: 3.1rem;
  border: 0;
  border-radius: 0.45rem;
  color: #fff;
  background: linear-gradient(135deg, #df1d2d 0%, #8d101d 100%);
  font-size: 1.06rem;
  font-weight: 700;
  box-shadow: 0 0.55rem 1.1rem rgba(177, 20, 33, 0.24);
}

.submit:disabled {
  cursor: wait;
  opacity: 0.68;
}

.cta-zone {
  display: grid;
  gap: 0.8rem;
  padding: 0;
  background: transparent;
}

.cta-anchor {
  width: 100%;
  height: 1px;
  pointer-events: none;
}

.cta-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
  color: #868d98;
  font-size: 0.74rem;
}

.cta-footer button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #a01420;
}

.cta-zone.is-floating {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 12;
  width: min(100vw, 430px);
  transform: translateX(-50%);
  padding: 0.9rem 1.05rem max(0.95rem, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), #fff 55%);
  box-shadow: 0 -0.8rem 1.6rem rgba(38, 47, 61, 0.12);
}

.cta-anchor:has(+ .cta-zone.is-floating) {
  height: 4.95rem;
}

.cta-zone.is-floating .submit {
  box-shadow: 0 0.7rem 1.4rem rgba(55, 22, 25, 0.28);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: end;
  justify-content: center;
  z-index: 20;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
}

.picker-sheet,
.text-sheet {
  width: min(100vw, 430px);
  max-height: 82vh;
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 0.8rem 0.8rem 0 0;
  overflow: hidden;
  box-shadow: 0 -0.8rem 2.2rem rgba(0, 0, 0, 0.18);
}

.picker-sheet header,
.text-sheet header {
  height: 3.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.95rem;
  border-bottom: 1px solid #eceff3;
}

.picker-sheet header button,
.text-sheet header button {
  border: 0;
  background: transparent;
  color: #a01420;
  min-width: 3rem;
}

.text-sheet header button {
  font-size: 1.5rem;
  line-height: 1;
}

.picker-sheet header strong,
.text-sheet header strong {
  color: #20242c;
  font-size: 1rem;
}

.picker-columns {
  display: grid;
  grid-template-columns: 0.85fr 1fr 1.45fr;
  min-height: 18rem;
  max-height: 58vh;
}

.picker-columns select {
  width: 100%;
  border: 0;
  border-right: 1px solid #edf0f3;
  outline: 0;
  padding: 0.5rem 0;
  background: #fff;
  color: #20242c;
}

.picker-columns select:last-child {
  border-right: 0;
}

.picker-columns option {
  padding: 0.72rem 0.55rem;
  white-space: normal;
}

.text-body {
  max-height: 64vh;
  overflow: auto;
  padding: 1rem 1.05rem 1.4rem;
  color: #424956;
  font-size: 0.92rem;
  line-height: 1.75;
}

.text-body p {
  margin: 0 0 0.75rem;
}

.text-body h3 {
  margin: 1rem 0 0.55rem;
  color: #20242c;
  font-size: 1rem;
  line-height: 1.35;
}

.text-body strong {
  color: #20242c;
}

.read-confirm {
  width: 100%;
  height: 3.3rem;
  border: 0;
  border-top: 1px solid #eceff3;
  background: #fff;
  color: #20242c;
  font-weight: 700;
  font-size: 1rem;
}

@media (max-width: 360px) {
  .field {
    grid-template-columns: 3.8rem minmax(0, 1fr);
    padding: 0 0.7rem;
  }

  .lead-panel {
    padding-left: 0.82rem;
    padding-right: 0.82rem;
  }
}
