/* Lead form — keep class/id names from maidel lead form markup */

.lead-form.maidel-lead-form {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  align-items: start;
}

.lead-form .field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  min-width: 0;
}

.lead-form > .field:nth-of-type(5),
.lead-form > .btn,
.lead-form > .lead-form__title {
  grid-column: 1 / -1;
}

.lead-form__title {
  margin: 0 0 20px;
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 600;
  line-height: 1.15;
  color: #000;
}

.lead-form .field > label {
  font-size: 12px;
  font-weight: 500;
  color: #000;
  line-height: 1.25;
}

.lead-form .lf-req {
  color: #000;
}

.lead-form .input,
.lead-form .textarea {
  width: 100%;
  max-width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  color: #000;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
}

.lead-form .textarea {
  height: 48px;
  min-height: 48px;
  padding: 12px 14px;
  resize: none;
  overflow: hidden;
}

.lead-form .input:focus,
.lead-form .textarea:focus {
  border-color: #000;
  outline: none;
}

.lead-form .input::placeholder,
.lead-form .textarea::placeholder {
  color: #828282;
}

/* intl-tel-input fills grid cell */
.lead-form .iti {
  width: 100%;
  display: block;
}

.lead-form .iti .input,
.lead-form .iti__tel-input {
  width: 100%;
}

.lead-form .btn.btn--primary.btn--lg,
.lead-form .btn--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  height: 52px;
  margin-top: 2px;
  padding: 0 24px;
  border: none;
  border-radius: 8px;
  background: #000;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.lead-form .btn--primary:hover {
  background: #202020;
}

.lead-form .btn--primary:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* Custom select */
.lf-select {
  position: relative;
  width: 100%;
}

.lf-select__native {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lf-select__trigger {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  color: #828282;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}

.lf-select.has-value .lf-select__trigger {
  color: #000;
}

.lf-select.is-open .lf-select__trigger,
.lf-select__trigger:focus-visible {
  border-color: #000;
  outline: none;
}

.lf-select.is-invalid .lf-select__trigger {
  border-color: #c0392b;
}

.lf-select__icon {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.lf-select.is-open .lf-select__icon {
  transform: rotate(180deg);
}

.lf-select__list {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 20;
  max-height: 220px;
  overflow-y: auto;
}

.lf-select.is-open .lf-select__list {
  display: block;
}

.lf-select__opt {
  padding: 10px 14px;
  font-size: 14px;
  color: #000;
  cursor: pointer;
}

.lf-select__opt:hover,
.lf-select__opt.is-active {
  background: #f5f5f5;
}

.lf-select__err {
  min-height: 14px;
  margin-top: 2px;
  font-size: 12px;
  color: #c0392b;
}

/* Yellow mid-page form — stretch form, compact spacing, no separator */
.page__form {
  margin-bottom: 70px;
}

.form-row {
  gap: 24px;
  align-items: flex-start;
  padding: 40px 48px;
}

.form-row__left {
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  padding-right: 0;
}

.form-row__left-title {
  white-space: nowrap;
  margin-bottom: 20px;
  font-size: clamp(26px, 2.8vw, 40px);
  line-height: 1.15;
}

.form-row__left .chart-label {
  margin-bottom: 6px;
}

.form-row__left .lead-form,
.form-row__left .calc-form {
  max-width: none;
  width: 100%;
}

.form-row__left .lead-form.maidel-lead-form {
  gap: 12px 14px;
}

.form-row__left .lead-form .field > label {
  font-size: 14px;
  color: #000;
}

.form-row__left .lead-form .input,
.form-row__left .lead-form .textarea,
.form-row__left .lf-select__trigger {
  height: 58px;
  font-size: 17px;
  padding: 0 16px;
  border-color: rgba(0, 0, 0, 0.15);
  max-width: none;
  width: 100%;
}

.form-row__left .lead-form .textarea {
  height: 58px;
  min-height: 58px;
  padding: 16px;
}

.form-row__left .lead-form .btn--primary {
  height: 62px;
  font-size: 18px;
  max-width: none;
  width: 100%;
  margin-top: 0;
  margin-bottom: 0;
}

/* Legacy calc-form grid helpers (panel styles live in style.css) */
.calc-form .field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

/* Right block — compact icon under text, centered */
.form-row__right {
  flex: 0 0 260px;
  max-width: 280px;
  padding-left: 0;
  border-left: none;
  box-sizing: border-box;
  justify-content: flex-start;
  align-items: stretch;
  gap: 12px;
}

.form-row__right-list {
  margin-top: 0;
  margin-left: 18px;
}

.form-row__right-logo {
  margin: 16px auto 0;
  max-width: 72px;
  width: 72px;
}

.form-row__right-logo img {
  max-width: 72px;
  width: 100%;
  height: auto;
  display: block;
}

.form-row__right-text {
  white-space: normal;
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.form-row__right-note {
  margin-top: 8px !important;
  margin-bottom: 0;
  font-size: 12px;
  line-height: 1.4;
}

/* Contact block: keep grid when space allows */
.contact-us__right .lead-form {
  flex: 1;
  min-width: 0;
  max-width: none;
}

.contact-us__right .lead-form__title {
  margin-bottom: 24px;
}

/* Popup: full-height side panel, content fills height */
.popup {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  padding-top: 52px;
  padding-bottom: 20px;
  overflow: hidden;
  color: #000;
}

.popup h2 {
  flex: 0 0 auto;
  max-width: none;
  margin: 0 0 20px;
  font-size: 20px;
  line-height: 1.3;
  color: #000;
  padding-right: 24px;
}

.popup .lead-form {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  margin: 0;
}

.popup .lead-form.maidel-lead-form {
  display: flex;
  flex-direction: column;
  grid-template-columns: unset;
  gap: 0;
}

.popup .lead-form .field {
  flex: 0 0 auto;
  gap: 6px;
}

.popup .lead-form > .btn {
  flex: 0 0 auto;
}

.popup .lead-form .field > label {
  font-size: 14px;
}

.popup .lead-form .input,
.popup .lead-form .textarea,
.popup .lf-select__trigger {
  height: 48px;
  font-size: 15px;
}

.popup .lead-form .textarea {
  min-height: 48px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.popup .lead-form .btn.btn--primary.btn--lg,
.popup .lead-form .btn--primary {
  height: 52px;
  margin-top: 0;
  font-size: 15px;
}

.popup .lead-form > .btn {
  margin-bottom: 0;
}

.popup-disclaimer {
  flex: 0 0 auto;
  margin: 16px 0 0;
  padding: 0;
  border-top: none;
  color: #a3a3a3;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 400;
}

.popup-disclaimer a {
  color: #828282;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.popup-disclaimer a:hover {
  color: #000;
}

.popup .lf-select__list {
  top: auto;
  bottom: calc(100% + 4px);
  transform-origin: bottom center;
}

/* Popup: intl-tel-input country dropdown */
.popup .lead-form .iti {
  width: 100%;
  display: block;
}

.popup .lead-form .iti__tel-input {
  width: 100%;
  height: 48px;
  padding-left: 52px;
  font-size: 15px;
  color: #000;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}

.popup .lead-form .iti__tel-input:focus {
  border-color: #000;
}

.popup .lead-form .iti__selected-flag {
  padding-left: 14px;
  padding-right: 8px;
  background: transparent;
}

.popup .lead-form .iti__arrow {
  border-top-color: #000;
}

.popup .lead-form .iti__dropdown-content,
.popup .lead-form .iti__country-list {
  background: #fff !important;
  color: #000 !important;
}

.popup .lead-form .iti__dropdown-content {
  z-index: 10001 !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
  overflow: hidden;
}

.popup .lead-form .iti__country-list {
  max-height: 220px;
  scrollbar-width: thin;
  scrollbar-color: #ffd900 transparent;
}

.popup .lead-form .iti__country-list::-webkit-scrollbar {
  width: 4px;
}

.popup .lead-form .iti__country-list::-webkit-scrollbar-thumb {
  background: #ffd900;
  border-radius: 2px;
}

.popup .lead-form .iti__search-input {
  width: 100% !important;
  margin: 0 !important;
  padding: 12px 14px !important;
  border: none !important;
  border-bottom: 1px solid #e0e0e0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #000 !important;
  font-family: inherit;
  font-size: 14px;
  outline: none !important;
  box-shadow: none !important;
}

.popup .lead-form .iti__search-input::placeholder {
  color: #828282 !important;
}

.popup .lead-form .iti__search-input:focus {
  border-bottom-color: #000 !important;
}

.popup .lead-form .iti__country {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px !important;
  color: #000 !important;
  font-size: 14px;
  line-height: 1.3;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.popup .lead-form .iti__country-name {
  flex: 1 1 auto;
  margin-right: 12px;
  color: #000 !important;
}

.popup .lead-form .iti__dial-code {
  flex: 0 0 auto;
  margin-left: auto;
  color: #828282 !important;
  font-size: 14px;
}

.popup .lead-form .iti__country:hover,
.popup .lead-form .iti__country.iti__highlight {
  background: #f5f5f5 !important;
  color: #000 !important;
}

.popup .lead-form .iti__country.iti__active {
  background: rgba(255, 217, 0, 0.22) !important;
}

.popup .lead-form .iti__country:hover .iti__country-name,
.popup .lead-form .iti__country.iti__highlight .iti__country-name,
.popup .lead-form .iti__country.iti__active .iti__country-name {
  color: #000 !important;
}

.popup .lead-form .iti__country:hover .iti__dial-code,
.popup .lead-form .iti__country.iti__highlight .iti__dial-code {
  color: #4c4c4c !important;
}

.popup .lead-form .iti__country.iti__active .iti__dial-code {
  color: #000 !important;
}

.popup .lead-form .iti__flag-box,
.popup .lead-form .iti__flag {
  flex-shrink: 0;
}

@media (max-height: 740px) {
  .popup .lead-form {
    flex: 0 0 auto;
    justify-content: flex-start;
    gap: 12px;
  }

  .popup .lead-form.maidel-lead-form {
    gap: 12px;
  }
}

@media (max-width: 1200px) {
  .form-row {
    padding: 36px 36px;
  }

  .form-row__left-title {
    white-space: normal;
  }
}

@media (max-width: 991.98px) {
  .form-row {
    padding: 32px 28px;
    gap: 24px;
  }

  .form-row__left {
    padding-right: 0;
  }

  .form-row__left .lead-form.maidel-lead-form,
  .contact-us__right .lead-form.maidel-lead-form {
    max-width: 100%;
  }

  .form-row__right {
    flex: 1 1 auto;
    max-width: 100%;
    padding-left: 0;
    padding-top: 0;
    border-left: none;
    border-top: none;
  }
}

@media (max-width: 767.98px) {
  .form-row {
    padding: 28px 20px;
  }

  .lead-form.maidel-lead-form {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .lead-form .input,
  .lead-form .textarea,
  .lf-select__trigger {
    height: 48px;
  }

  .form-row__left .lead-form .input,
  .form-row__left .lead-form .textarea,
  .form-row__left .lf-select__trigger {
    height: 52px;
    font-size: 15px;
  }

  .form-row__left .lead-form .btn--primary {
    height: 56px;
    font-size: 16px;
  }

  .form-row__left-title {
    white-space: normal;
    font-size: 24px;
  }

  .lead-form__title {
    font-size: 24px;
    margin-bottom: 16px;
  }
}
