:root {
  --blue: #2f70ef;
  --blue-dark: #1760e8;
  --red: #d60012;
  --ink: #050505;
  --field: #f0f0f0;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f2f3f5;
  color: var(--ink);
}

.page-shell {
  width: min(100%, 640px);
  min-height: 100vh;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.poster {
  padding: 24px 18px 70px;
  text-align: center;
}

h1 {
  margin: 0 0 26px;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.25;
}

.slogan-card {
  border-top: 1px solid #ececec;
}

.red-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  margin: 18px 28px 20px;
  background: var(--red);
  color: #fff;
  font-size: clamp(30px, 7vw, 46px);
  font-weight: 900;
  line-height: 1.1;
}

.mega {
  margin: 0;
  font-size: clamp(72px, 19vw, 132px);
  font-weight: 950;
  line-height: 1.02;
  letter-spacing: 0;
}

.mega.red {
  color: #d71920;
}

.mega.blue {
  color: #1700c8;
  font-size: clamp(60px, 15vw, 98px);
  margin-top: 16px;
}

.yellow {
  min-height: 92px;
  margin: 24px -18px 22px;
  color: #ffff00;
  font-size: clamp(38px, 10vw, 64px);
}

.phone-copy {
  margin: 0 0 28px;
  padding-left: 22px;
  text-align: left;
  font-size: 24px;
  line-height: 1.3;
}

.phone-button,
.submit-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(310px, 72%);
  height: 66px;
  margin: 0 auto;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.phone-button:hover,
.submit-button:hover,
.code-button:hover {
  background: var(--blue-dark);
}

.provider {
  margin: 32px 0 0;
  color: #aaa;
  font-size: 14px;
}

.lead-card {
  position: relative;
  z-index: 2;
  margin-top: -34px;
  padding: 20px 38px 50px;
  border-radius: 18px 18px 0 0;
  background: #fff;
  box-shadow: 0 -10px 26px rgba(0, 0, 0, 0.04);
}

.drag-handle {
  width: 78px;
  height: 7px;
  margin: 0 auto 48px;
  border-radius: 999px;
  background: #dfe1e7;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

form {
  display: grid;
  gap: 24px;
}

input {
  width: 100%;
  height: 72px;
  padding: 0 22px;
  border: 0;
  border-radius: 7px;
  outline: 0;
  background: var(--field);
  color: #222;
  font: inherit;
  font-size: 25px;
}

input::placeholder {
  color: #9da0a6;
}

input:focus {
  box-shadow: 0 0 0 3px rgba(47, 112, 239, 0.18);
}

.code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 142px;
  gap: 12px;
}

.code-button {
  height: 72px;
  border: 0;
  border-radius: 7px;
  background: var(--blue);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
}

.code-button:disabled {
  background: #b9c2d4;
  cursor: not-allowed;
}

.submit-button {
  width: 100%;
  margin-top: 0;
}

.form-message {
  min-height: 24px;
  margin: -8px 0 0;
  color: #737b88;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
}

.form-message.success {
  color: #17924a;
  font-weight: 700;
}

.form-message.error {
  color: #d60012;
  font-weight: 700;
}

@media (max-width: 430px) {
  .poster {
    padding: 22px 12px 64px;
  }

  h1 {
    margin-bottom: 22px;
    font-size: 24px;
  }

  .red-strip {
    min-height: 70px;
    margin-left: 16px;
    margin-right: 16px;
  }

  .yellow {
    min-height: 86px;
    margin-left: -12px;
    margin-right: -12px;
  }

  .phone-copy {
    padding-left: 22px;
    font-size: 21px;
  }

  .lead-card {
    padding: 18px 30px 44px;
  }

  .drag-handle {
    margin-bottom: 44px;
  }

  input,
  .code-button {
    height: 66px;
    font-size: 21px;
  }

  .code-row {
    grid-template-columns: 1fr;
  }

  .submit-button {
    height: 70px;
    font-size: 24px;
  }
}
