/* Shared, responsive layout for the homepage selection and popup forms. */
.lead-form-layout .lead-form-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 24px; }
.lead-form-layout .form-group { margin-bottom: 0; min-width: 0; }
.lead-form-layout label { display: block; margin-bottom: 8px; color: #263a2a; font-size: 15px; line-height: 1.45; }
.lead-form-layout input:not([type=checkbox]):not([type=hidden]),
.lead-form-layout select { width: 100%; min-width: 0; height: 56px; box-sizing: border-box; padding: 12px 16px; border: 1px solid #cdd7c9; border-radius: 10px; background: white; color: #263a2a; font-size: 16px; line-height: 1.4; }
.lead-form-layout select { padding-right: 30px; cursor: pointer; }
.lead-form-layout input:focus-visible,
.lead-form-layout select:focus-visible { outline: 3px solid #a7b99b; outline-offset: 2px; border-color: #375a3c; }
.lead-form-layout .lead-form-footer { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding-top: 24px; margin-top: 2px; border-top: 1px solid #e1e7de; }
.lead-form-layout .client-consent { margin: 0; }
.lead-form-layout .client-consent label { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; font-weight: 400; }
.lead-form-layout .client-consent input { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; }
.lead-form-layout .client-consent .legal-note { margin: 0; font-size: 13px; line-height: 1.6; color: #62695e; }
.lead-form-layout .client-consent a { color: #375a3c; text-decoration: underline; }
.lead-form-layout .lead-form-footer .theme-btn { width: auto; height: auto; min-height: 56px; max-width: 100%; padding: 16px 24px; white-space: normal; line-height: 1.4; }
/* Keep long CMS button captions visible, including when hovering. */
.lead-form-layout .lead-form-footer .theme-btn span { transform: none; white-space: normal; }
.lead-form-layout .lead-form-footer .theme-btn span::before { display: none; }
.lead-form-layout .lead-form-footer .theme-btn i { flex-shrink: 0; }
.lead-modal__dialog.lead-form-layout .lead-form-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lead-modal__dialog.lead-form-layout .lead-form-footer { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.lead-modal__dialog.lead-form-layout .lead-form-footer .theme-btn { justify-self: start; }
@media (max-width: 991px) {
  .selection-panel.lead-form-layout .lead-form-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead-form-layout .lead-form-footer { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .lead-form-layout .lead-form-footer .theme-btn { justify-self: start; }
}
@media (max-width: 575px) {
  .selection-panel.lead-form-layout .lead-form-fields,
  .lead-modal__dialog.lead-form-layout .lead-form-fields { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .lead-form-layout .lead-form-footer .theme-btn { width: 100%; justify-content: center; }
  .lead-modal__dialog.lead-form-layout { padding: 60px 20px 24px; }
}
/* Draw an inset arrow instead of the browser's edge-aligned indicator. */
.lead-form-layout select,
.contacts-page .contacts-form select,
.catalog-filter-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 46px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath d='m2 3 5 5 5-5' fill='none' stroke='%235c6c58' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 14px 10px;
}
.lead-selected-project { padding: 12px 16px; border-left: 3px solid #ed9d3b; background: #f4f6f1; color: #263a2a; font-size: 15px; }
.lead-selected-project a { color: #375a3c; font-weight: 600; text-decoration: underline; }
.lead-selected-project[hidden] { display: none; }

.lead-form-layout .form-group[hidden] { display: none; }

.is-exit-offer .section-kicker { display: inline-block; padding: 8px 16px; border-radius: 30px; background: #edf1e9; color: #375a3c; letter-spacing: .4px; }
.is-exit-offer .lead-modal__heading h2 { color: #263a2a; max-width: 690px; }
.is-exit-offer .lead-form-footer .theme-btn { width: 100%; justify-content: center; background: #375a3c; color: #fff; }
.is-exit-offer .lead-form-footer .theme-btn:disabled { background: #a7b1a8; color: #fff; }
