:root {
  --brand-blue: #168cf4;
  --brand-cyan: #4ecae8;
  --page-blue: #dcecff;
  --surface: #ffffff;
  --text: #22262d;
  --muted: #a8acb4;
  --border: #d8dce3;
  --error: #e43b3b;
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #f0f3f7;
}

body {
  margin: 0;
  background: #f0f3f7;
  color: var(--text);
}

body.modal-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  width: min(100%, 450px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--page-blue);
  box-shadow: 0 0 32px rgba(30, 66, 102, 0.1);
}

.visual-section,
.visual-section img {
  display: block;
  width: 100%;
}

.visual-section {
  line-height: 0;
}

.visual-section img {
  height: auto;
}

.hero-intro-section {
  background: #2585ef;
}

.lead-section {
  padding: clamp(8px, 2.1vw, 10px) clamp(18px, 5.1vw, 23px) clamp(18px, 4.7vw, 21px);
  background: var(--surface);
}

.phone-field,
.site-type-fieldset {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(48, 68, 88, 0.05);
}

.phone-field {
  display: flex;
  align-items: center;
  min-height: clamp(47px, 12.5vw, 55px);
}

.phone-field label,
.site-type-fieldset legend {
  color: #24282f;
  font-size: clamp(14px, 4vw, 18px);
  font-weight: 750;
  white-space: nowrap;
}

.phone-field label {
  flex: 0 0 clamp(105px, 28vw, 126px);
  padding-left: clamp(14px, 4vw, 18px);
}

em {
  margin-right: 2px;
  color: #f0202b;
  font-style: normal;
}

.field-divider {
  width: 1px;
  height: clamp(28px, 7.8vw, 35px);
  flex: 0 0 1px;
  background: #d9dde3;
}

.phone-field input {
  min-width: 0;
  height: clamp(45px, 12vw, 53px);
  flex: 1;
  padding: 0 clamp(12px, 3.5vw, 16px);
  border: 0;
  outline: 0;
  color: #20242b;
  font-size: clamp(14px, 4vw, 18px);
}

.phone-field input::placeholder {
  color: #c4c7cd;
}

.phone-field:focus-within,
.site-type-fieldset:focus-within {
  border-color: #168cf4;
  box-shadow: 0 0 0 3px rgba(22, 140, 244, 0.12);
}

.site-type-fieldset {
  display: grid;
  grid-template-columns: clamp(105px, 28vw, 126px) minmax(0, 1fr);
  min-width: 0;
  margin: clamp(10px, 2.8vw, 13px) 0 0;
  padding: clamp(12px, 3.3vw, 15px) 0;
}

.site-type-fieldset legend {
  float: left;
  width: 100%;
  padding: clamp(7px, 2vw, 9px) 8px 0 clamp(14px, 4vw, 18px);
}

.site-type-content {
  min-width: 0;
  padding-left: clamp(6px, 1.7vw, 8px);
  padding-right: clamp(10px, 3vw, 14px);
  border-left: 1px solid #e1e3e7;
}

.site-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(11px, 3.2vw, 14px) clamp(7px, 2vw, 10px);
  min-height: 20px;
}

.site-type-option {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: clamp(6px, 1.8vw, 8px);
  color: #30343b;
  font-size: clamp(13px, 3.7vw, 17px);
  line-height: 1.25;
}

.site-type-option input {
  width: clamp(14px, 3.8vw, 17px);
  height: clamp(14px, 3.8vw, 17px);
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--brand-blue);
}

.site-type-option span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.field-status,
.field-error,
.submit-error {
  font-size: 12px;
  line-height: 1.45;
}

.field-status {
  color: #737b86;
}

.field-error,
.submit-error {
  color: var(--error);
}

.field-status:empty,
.field-error:empty,
.submit-error:empty {
  display: none;
}

.field-error {
  margin: 5px 2px 0;
}

.site-type-content > .field-error {
  margin-left: 0;
}

.retry-button {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #d63737;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.submit-error {
  margin: 7px 4px -5px;
  text-align: center;
}

.primary-button,
.bottom-cta button {
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--brand-blue), var(--brand-cyan));
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: none;
}

.primary-button {
  min-height: clamp(47px, 12.5vw, 56px);
  margin-top: clamp(9px, 2.5vw, 12px);
  font-size: clamp(21px, 5.8vw, 26px);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.bottom-cta {
  padding: clamp(28px, 8.7vw, 39px) clamp(17px, 4.8vw, 22px) calc(clamp(28px, 8.7vw, 39px) + env(safe-area-inset-bottom));
  background: var(--page-blue);
}

.bottom-cta button {
  min-height: clamp(48px, 13.5vw, 61px);
  font-size: clamp(18px, 5vw, 23px);
}

.success-modal[hidden] {
  display: none;
}

.success-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.68);
}

.success-card {
  width: min(100%, 340px);
  padding: 35px 26px 27px;
  border-radius: 12px;
  background: #fff;
  color: #191c21;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.success-card h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 750;
}

.success-card p {
  margin: 25px 0 30px;
  color: #4b5159;
  font-size: 18px;
  line-height: 1.5;
}

.success-card button {
  min-width: 130px;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--brand-blue);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(22, 140, 244, 0.36);
  outline-offset: 3px;
}

@media (max-width: 340px) {
  .lead-section {
    padding-right: 11px;
    padding-left: 11px;
  }

  .site-type-fieldset {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .phone-field label {
    flex-basis: 96px;
    padding-left: 11px;
  }

  .site-type-fieldset legend {
    padding-left: 11px;
  }

  .site-type-option {
    gap: 5px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
