:root {
  --vc-contact-gate-accent: #087948;
  --vc-contact-gate-accent-hover: #06643b;
  --vc-contact-gate-ink: #17231d;
  --vc-contact-gate-muted: #5e6b64;
  --vc-contact-gate-line: #dce7e0;
  --vc-contact-gate-surface: #ffffff;
}

.vc-contact-gate,
.vc-contact-gate * {
  box-sizing: border-box;
}

body.vc-contact-gate-open {
  overflow: hidden;
}

.vc-contact-gate {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(19, 30, 24, 0.36);
  opacity: 0;
  transition: opacity 160ms ease;
}

.vc-contact-gate.is-open {
  opacity: 1;
}

.vc-contact-gate__dialog {
  position: relative;
  width: min(100%, 424px);
  padding: 26px;
  overflow: hidden;
  color: var(--vc-contact-gate-ink);
  background: var(--vc-contact-gate-surface);
  border: 1px solid var(--vc-contact-gate-line);
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(19, 30, 24, 0.24);
  transform: translateY(8px) scale(0.985);
  transition: transform 160ms ease;
}

.vc-contact-gate.is-open .vc-contact-gate__dialog {
  transform: translateY(0) scale(1);
}

.vc-contact-gate__eyebrow {
  margin: 0 48px 8px 0;
  color: var(--vc-contact-gate-accent);
  font: 700 13px/1.3 Arial, Helvetica, sans-serif;
  letter-spacing: 0.02em;
}

.vc-contact-gate__title {
  margin: 0 48px 10px 0;
  color: var(--vc-contact-gate-ink);
  font: 700 24px/1.18 Arial, Helvetica, sans-serif;
}

.vc-contact-gate__text {
  margin: 0 0 20px;
  color: var(--vc-contact-gate-muted);
  font: 400 15px/1.5 Arial, Helvetica, sans-serif;
}

.vc-contact-gate__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vc-contact-gate__confirm,
.vc-contact-gate__cancel,
.vc-contact-gate__close {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
}

.vc-contact-gate__confirm {
  min-height: 48px;
  padding: 13px 19px;
  color: #ffffff;
  background: var(--vc-contact-gate-accent);
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  transition: background 140ms ease, opacity 140ms ease;
}

.vc-contact-gate__confirm:hover {
  background: var(--vc-contact-gate-accent-hover);
}

.vc-contact-gate__confirm:disabled {
  cursor: wait;
  opacity: 0.58;
}

.vc-contact-gate__cancel {
  min-height: 44px;
  padding: 10px 13px;
  color: var(--vc-contact-gate-muted);
  background: #f3f5f4;
  border: 1px solid #cdd3d0;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(23, 35, 29, 0.08);
  font-size: 14px;
  font-weight: 600;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.vc-contact-gate__cancel:hover {
  color: var(--vc-contact-gate-ink);
  background: #edf1ef;
  border-color: #bcc5c0;
  box-shadow: 0 2px 5px rgba(23, 35, 29, 0.11);
}

.vc-contact-gate__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  color: var(--vc-contact-gate-muted);
  background: #f2f6f3;
  border-radius: 50%;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
}

.vc-contact-gate__confirm:focus-visible,
.vc-contact-gate__cancel:focus-visible,
.vc-contact-gate__close:focus-visible {
  outline: 3px solid rgba(8, 121, 72, 0.3);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .vc-contact-gate {
    display: flex;
    align-items: flex-end;
    padding: 0;
  }

  .vc-contact-gate__dialog {
    width: 100%;
    max-height: min(78vh, 540px);
    padding: 24px 18px calc(18px + env(safe-area-inset-bottom));
    overflow-y: auto;
    border-width: 1px 0 0;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -18px 54px rgba(19, 30, 24, 0.2);
    transform: translateY(24px);
  }

  .vc-contact-gate.is-open .vc-contact-gate__dialog {
    transform: translateY(0);
  }

  .vc-contact-gate__dialog::before {
    display: block;
    width: 42px;
    height: 4px;
    margin: -10px auto 16px;
    content: "";
    background: #d7e1da;
    border-radius: 999px;
  }

  .vc-contact-gate__title {
    font-size: 22px;
  }

  .vc-contact-gate__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .vc-contact-gate__confirm,
  .vc-contact-gate__cancel {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vc-contact-gate,
  .vc-contact-gate__dialog,
  .vc-contact-gate__confirm {
    transition: none;
  }
}
