/* Homepage #builder: light callback + photo lead (scoped) */
.ab-order.sm-home-lead {
  --sm-lead-ink: #1a1a1f;
  --sm-lead-mute: #52525b;
  --sm-lead-line: #e4e4e7;
  --sm-lead-soft: #fafafa;
  --sm-lead-cream: #fff7ed;
  --sm-lead-orange: #f97316;
  --sm-lead-orange-deep: #ea580c;
  --sm-lead-orange-glow: rgba(249, 115, 22, 0.18);
  width: 100%;
  max-width: none;
  margin-top: 20px;
  padding: clamp(18px, 4vw, 28px);
  border: 1px solid var(--sm-lead-line);
  border-radius: 18px;
  background: linear-gradient(165deg, #ffffff 0%, #fffdfb 55%, #fff7ed 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 12px 40px rgba(26, 26, 26, 0.08);
}

.sm-home-lead__head {
  margin-bottom: 18px;
  max-width: 52ch;
}

.sm-home-lead__eyebrow {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sm-lead-orange-deep);
}

.sm-home-lead__head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 4.2vw, 1.75rem);
  line-height: 1.2;
  color: var(--sm-lead-ink);
}

.sm-home-lead__intro {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--sm-lead-mute);
}

.sm-home-lead__form {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--sm-lead-ink);
}

.sm-home-lead__block {
  margin: 0 0 14px;
  padding: 14px 14px 16px;
  border: 1px solid var(--sm-lead-line);
  border-radius: 14px;
  background: #fff;
  min-width: 0;
}

.sm-home-lead__block--accent {
  border: 2px solid var(--sm-lead-orange);
  background: var(--sm-lead-cream);
  box-shadow: 0 0 0 4px var(--sm-lead-orange-glow);
}

.sm-home-lead__block--soft {
  background: var(--sm-lead-soft);
}

.sm-home-lead__legend {
  padding: 0 4px;
  margin-bottom: 10px;
  float: left;
  width: 100%;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sm-lead-mute);
}

.sm-home-lead__block--accent .sm-home-lead__legend {
  color: var(--sm-lead-orange-deep);
}

.sm-home-lead__grid {
  display: grid;
  gap: 12px;
  clear: both;
}

@media (min-width: 640px) {
  .sm-home-lead__grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.sm-home-lead__field {
  display: block;
  min-width: 0;
}

.sm-home-lead__label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--sm-lead-ink);
}

.sm-home-lead__req {
  margin-left: 2px;
  font-weight: 800;
  color: var(--sm-lead-orange);
  text-decoration: none;
}

.sm-home-lead__form input[type="text"],
.sm-home-lead__form input[type="tel"],
.sm-home-lead__form input[type="email"],
.sm-home-lead__form select,
.sm-home-lead__form textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 12px 14px;
  min-height: 46px;
  border-radius: 10px;
  border: 1px solid #d4d4d8;
  background: #fff;
  color: var(--sm-lead-ink);
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sm-home-lead__field--req input {
  border: 2px solid var(--sm-lead-orange);
  background: #fff;
}

.sm-home-lead__form input:focus,
.sm-home-lead__form select:focus,
.sm-home-lead__form textarea:focus {
  outline: none;
  border-color: var(--sm-lead-orange);
  box-shadow: 0 0 0 3px var(--sm-lead-orange-glow);
}

.sm-home-lead__form input::placeholder,
.sm-home-lead__form textarea::placeholder {
  color: #a1a1aa;
}

.sm-home-lead__form textarea {
  min-height: 72px;
  resize: vertical;
}

.sm-home-lead__photos {
  margin-bottom: 12px;
}

.sm-home-lead__file-label {
  display: block;
  margin: 0;
  padding: 18px 16px;
  border: 2px dashed var(--sm-lead-orange);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, #fffaf5 100%);
  text-align: center;
  cursor: pointer;
}

.sm-home-lead__file-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--sm-lead-orange-deep);
}

.sm-home-lead__file-hint {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--sm-lead-mute);
}

.sm-home-lead__file-label input[type="file"] {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--sm-lead-line);
  background: #fff;
  font-size: 0.88rem;
  color: var(--sm-lead-ink);
}

.sm-home-lead__ack {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--sm-lead-line);
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--sm-lead-mute);
}

.sm-home-lead__ack input {
  margin-top: 3px;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--sm-lead-orange);
}

.sm-home-lead__turnstile {
  margin: 0 0 14px;
  min-height: 65px;
}

.sm-home-lead__actions {
  display: grid;
  gap: 12px;
}

@media (min-width: 720px) {
  .sm-home-lead__actions {
    grid-template-columns: 1.15fr 1fr;
    align-items: stretch;
  }
}

.sm-home-lead__submit {
  width: 100%;
  margin: 0;
  padding: 15px 18px;
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff9a4d 0%, var(--sm-lead-orange) 42%, var(--sm-lead-orange-deep) 100%);
  color: #0a0a0a;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 6px 20px var(--sm-lead-orange-glow);
}

.sm-home-lead__submit:hover {
  filter: brightness(1.03);
}

.sm-home-lead__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: none;
}

.sm-home-lead__call {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 12px 16px;
  min-height: 52px;
  border-radius: 12px;
  border: 2px solid var(--sm-lead-orange);
  background: #fff;
  text-decoration: none;
  text-align: center;
  color: var(--sm-lead-ink);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.sm-home-lead__call:hover {
  background: var(--sm-lead-cream);
  box-shadow: 0 0 0 4px var(--sm-lead-orange-glow);
}

.sm-home-lead__call-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sm-lead-orange-deep);
}

.sm-home-lead__call strong {
  font-size: 1.1rem;
  color: var(--sm-lead-ink);
}

.sm-home-lead__call-sub {
  font-size: 0.75rem;
  color: var(--sm-lead-mute);
}

.sm-home-lead__status {
  margin: 14px 0 0;
  min-height: 1.2em;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--sm-lead-mute);
}

.sm-home-lead__status.is-ok {
  color: #15803d;
}

.sm-home-lead__status.is-err {
  color: #be123c;
}

@media (max-width: 1023px) {
  .ab-order.sm-home-lead {
    margin-left: -12px;
    margin-right: -12px;
    width: calc(100% + 24px);
    border-radius: 16px;
    border-left: 0;
    border-right: 0;
    box-shadow: 0 8px 28px rgba(26, 26, 26, 0.06);
  }
}

@media (min-width: 1200px) {
  .ab-order.sm-home-lead {
    padding: 24px 28px 28px;
  }

  .sm-home-lead__form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
    align-items: start;
  }

  .sm-home-lead__block--accent {
    grid-column: 1 / -1;
  }

  .sm-home-lead__block:not(.sm-home-lead__block--accent):not(.sm-home-lead__block--soft) {
    grid-column: 1;
  }

  .sm-home-lead__block--soft {
    grid-column: 2;
    grid-row: 2;
  }

  .sm-home-lead__photos,
  .sm-home-lead__ack,
  .sm-home-lead__turnstile,
  .sm-home-lead__actions,
  .sm-home-lead__status {
    grid-column: 1 / -1;
  }
}

/* Homepage success modal — light, matches #photo-estimate form */
.sm-confirm--light {
  background: rgba(26, 26, 31, 0.45);
  backdrop-filter: blur(4px);
}
.sm-confirm--light .sm-confirm__card {
  background: linear-gradient(165deg, #ffffff 0%, #fffdfb 55%, #fff7ed 100%);
  border: 2px solid #f97316;
  box-shadow: 0 20px 50px rgba(26, 26, 26, 0.18), 0 0 0 4px rgba(249, 115, 22, 0.12);
  text-align: left;
  padding: 24px 22px 22px;
}
.sm-confirm--light .sm-confirm__card h3 {
  font-family: inherit;
  font-weight: 800;
  font-size: 1.35rem;
  color: #1a1a1f;
}
.sm-confirm--light .sm-confirm__card p {
  color: #52525b;
  font-size: 0.95rem;
  line-height: 1.5;
}
.sm-confirm--light .sm-confirm__actions {
  justify-content: stretch;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.sm-confirm--light .sm-confirm__actions .sm-confirm__call {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 0;
  background: linear-gradient(135deg, #ff9a4d 0%, #f97316 42%, #ea580c 100%);
  color: #0a0a0a;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.25);
}
.sm-confirm--light .sm-confirm__actions .sm-confirm__close {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid #e4e4e7;
  background: #fff;
  color: #1a1a1f;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}
.sm-confirm--light .sm-confirm__actions .sm-confirm__close:hover {
  border-color: #f97316;
  background: #fff7ed;
}
.sm-home-lead__call { display: none !important; }
