/**
 * VitaConsalt lead modal + #contact form
 * Ledger-clean: teal accent, calm surfaces, compact rhythm.
 */

:root {
  --vc-lead-teal: #007660;
  --vc-lead-teal-deep: #005c4b;
  --vc-lead-teal-soft: #e6f3ef;
  --vc-lead-ink: #1c1f1e;
  --vc-lead-muted: #6b726f;
  --vc-lead-line: #d8dedb;
  --vc-lead-paper: #ffffff;
  --vc-lead-wash: #f3f6f4;
  --vc-lead-danger: #b00020;
  --vc-lead-radius: 12px;
  --vc-lead-radius-pill: 999px;
}

/* —— Contact section (home #contact) —— */
.vc-lead-section {
  box-sizing: border-box;
  background:
    linear-gradient(180deg, #e8eeeb 0%, var(--vc-lead-wash) 48%, #ebe7e1 100%);
  color: var(--vc-lead-ink);
  padding: 64px 24px 72px;
  font-family: "TildaSans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.vc-lead-section *,
.vc-lead-section *::before,
.vc-lead-section *::after,
.vc-lead-modal *,
.vc-lead-modal *::before,
.vc-lead-modal *::after {
  box-sizing: border-box;
}

.vc-lead-section__inner {
  max-width: 520px;
  margin: 0 auto;
  padding: 32px 28px 28px;
  background: var(--vc-lead-paper);
  border: 1px solid rgba(0, 118, 96, 0.12);
  border-radius: 18px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.vc-lead-section__label {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vc-lead-teal);
}

.vc-lead-section__title {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 2.8vw, 1.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--vc-lead-ink);
  text-transform: none;
}

.vc-lead-section__text {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--vc-lead-muted);
}

/* —— Shared form —— */
.vc-lead-form {
  display: grid;
  gap: 14px;
}

.vc-lead-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.vc-lead-form__row {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.vc-lead-form__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vc-lead-muted);
}

.vc-lead-form__input,
.vc-lead-form__textarea {
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--vc-lead-line);
  border-radius: var(--vc-lead-radius);
  background: var(--vc-lead-wash);
  color: var(--vc-lead-ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  outline: none;
  appearance: none;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

.vc-lead-form__input {
  min-height: 46px;
}

.vc-lead-form__textarea {
  min-height: 88px;
  padding-top: 12px;
  resize: vertical;
}

.vc-lead-form__input::placeholder,
.vc-lead-form__textarea::placeholder {
  color: #9aa39f;
  font-weight: 400;
}

.vc-lead-form__input:hover,
.vc-lead-form__textarea:hover {
  border-color: #c3ccc8;
}

.vc-lead-form__input:focus,
.vc-lead-form__textarea:focus {
  border-color: var(--vc-lead-teal);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 118, 96, 0.14);
}

.vc-lead-form__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.vc-lead-form__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 2px;
}

.vc-lead-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 22px;
  border: none;
  border-radius: var(--vc-lead-radius-pill);
  background: var(--vc-lead-teal);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    transform 0.15s ease,
    box-shadow 0.18s ease;
  box-shadow: 0 8px 18px rgba(0, 118, 96, 0.18);
}

.vc-lead-form__submit:hover:not(:disabled) {
  background: var(--vc-lead-teal-deep);
  box-shadow: 0 10px 22px rgba(0, 92, 75, 0.22);
}

.vc-lead-form__submit:active:not(:disabled) {
  transform: translateY(1px);
}

.vc-lead-form__submit:disabled {
  opacity: 0.65;
  cursor: wait;
  box-shadow: none;
}

.vc-lead-form__hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--vc-lead-muted);
  text-align: center;
}

.vc-lead-form__hint a {
  color: var(--vc-lead-teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vc-lead-form__hint a:hover {
  color: var(--vc-lead-teal-deep);
}

.vc-lead-form [data-vc-form-status] {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

/* —— Modal —— */
.vc-lead-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.vc-lead-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.vc-lead-modal__backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  border: 0;
  padding: 0;
  background: rgba(18, 28, 25, 0.48);
  backdrop-filter: blur(3px);
  cursor: pointer;
}

.vc-lead-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  max-height: min(90vh, 640px);
  overflow: auto;
  padding: 0;
  background: var(--vc-lead-paper);
  color: var(--vc-lead-ink);
  border-radius: 18px;
  box-shadow:
    0 24px 64px rgba(16, 28, 24, 0.28),
    0 0 0 1px rgba(0, 118, 96, 0.08);
  font-family: "TildaSans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  transform: translateY(14px) scale(0.985);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  overscroll-behavior: contain;
}

.vc-lead-modal.is-open .vc-lead-modal__dialog {
  transform: translateY(0) scale(1);
}

.vc-lead-modal__accent {
  height: 4px;
  background: linear-gradient(90deg, var(--vc-lead-teal) 0%, #3aa88a 55%, #73d2a6 100%);
  border-radius: 18px 18px 0 0;
}

.vc-lead-modal__body {
  padding: 22px 24px 22px;
}

.vc-lead-modal__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.vc-lead-modal__intro {
  min-width: 0;
  flex: 1;
}

.vc-lead-modal__brand {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vc-lead-teal);
}

.vc-lead-modal__title {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--vc-lead-ink);
}

.vc-lead-modal__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--vc-lead-muted);
}

.vc-lead-modal__close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: -4px -6px 0 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--vc-lead-muted);
  cursor: pointer;
  transition:
    color 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.vc-lead-modal__close svg {
  display: block;
  width: 16px;
  height: 16px;
}

.vc-lead-modal__close:hover {
  color: var(--vc-lead-ink);
  background: var(--vc-lead-wash);
  border-color: var(--vc-lead-line);
}

.vc-lead-modal__close:focus-visible {
  outline: none;
  border-color: var(--vc-lead-teal);
  box-shadow: 0 0 0 3px rgba(0, 118, 96, 0.16);
}

body.vc-lead-modal-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .vc-lead-modal,
  .vc-lead-modal__dialog,
  .vc-lead-form__input,
  .vc-lead-form__textarea,
  .vc-lead-form__submit {
    transition: none !important;
  }
}

@media screen and (max-width: 559px) {
  .vc-lead-form__grid {
    grid-template-columns: 1fr;
  }

  .vc-lead-section {
    padding: 40px 16px 48px;
  }

  .vc-lead-section__inner {
    padding: 24px 18px 20px;
  }

  .vc-lead-modal {
    padding: 0;
    align-items: flex-end;
  }

  .vc-lead-modal__dialog {
    width: 100%;
    max-height: min(92vh, 720px);
    border-radius: 18px 18px 0 0;
  }

  .vc-lead-modal__accent {
    border-radius: 18px 18px 0 0;
  }

  .vc-lead-modal__body {
    padding: 18px 18px 20px;
  }
}
