﻿.vd-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 7, 18, 0.72);
  backdrop-filter: blur(14px);
}

.vd-modal.vd-open {
  display: flex;
}

.vd-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.vd-modal__panel {
  position: relative;
  width: min(720px, 100%);
  max-height: min(820px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid rgba(113, 248, 228, 0.22);
  border-radius: 16px;
  background: #f9f9ff;
  color: #141b2b;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.vd-modal__panel--video {
  width: min(1080px, 100%);
  background: #07111f;
  color: #fff;
  overflow: hidden;
}

.vd-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px;
  border-bottom: 1px solid rgba(187, 202, 198, 0.55);
}

.vd-modal__panel--video .vd-modal__head {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.vd-kicker {
  margin: 0 0 8px;
  color: #006b5f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vd-modal__panel--video .vd-kicker {
  color: #71f8e4;
}

.vd-modal h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.vd-modal__body {
  padding: 24px 26px 28px;
}

.vd-live-call {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid rgba(20, 184, 166, 0.28);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.12), rgba(11, 16, 38, 0.04));
}

.vd-live-call__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #006b5f;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.vd-live-call strong {
  display: block;
  color: #101828;
  font-size: 17px;
  margin-bottom: 5px;
}

.vd-live-call p {
  margin: 0;
  color: #334155;
  line-height: 1.55;
}

.vd-live-call a {
  color: #006b5f;
  font-weight: 900;
  text-decoration: none;
}

.vd-live-call span {
  display: block;
  margin-top: 8px;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.vd-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  background: rgba(20, 27, 43, 0.08);
  color: inherit;
  font-size: 24px;
  line-height: 1;
}

.vd-close:hover {
  background: rgba(20, 27, 43, 0.16);
}

.vd-modal__panel--video .vd-close {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.vd-form {
  display: grid;
  gap: 14px;
}

.vd-field {
  display: grid;
  gap: 7px;
}

.vd-field label {
  color: #3c4947;
  font-size: 13px;
  font-weight: 800;
}

.vd-field input,
.vd-field select,
.vd-field textarea {
  width: 100%;
  border: 1px solid #bbcac6;
  border-radius: 10px;
  background: #fff;
  color: #141b2b;
  font: inherit;
  font-size: 15px;
  padding: 12px 13px;
  outline: none;
}

.vd-field textarea {
  min-height: 116px;
  resize: vertical;
}

.vd-field input:focus,
.vd-field select:focus,
.vd-field textarea:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.14);
}

.vd-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.vd-submit {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: #006b5f;
  color: #fff;
  font: inherit;
  font-weight: 800;
  padding: 12px 18px;
}

.vd-submit:hover {
  background: #005048;
}

.vd-note {
  margin: 12px 0 0;
  color: #3c4947;
  font-size: 13px;
  line-height: 1.55;
}

.vd-status {
  min-height: 22px;
  color: #006b5f;
  font-size: 14px;
  font-weight: 700;
}

.vd-status.vd-error {
  color: #ba1a1a;
}

.vd-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.vd-login-help {
  padding: 14px;
  border: 1px solid rgba(20, 184, 166, 0.22);
  border-radius: 12px;
  background: rgba(20, 184, 166, 0.08);
  color: #3c4947;
  line-height: 1.55;
}

.vd-demo-link {
  cursor: pointer;
}

@media (max-width: 680px) {
  .vd-modal {
    padding: 14px;
  }

  .vd-modal__head,
  .vd-modal__body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .vd-form-grid {
    grid-template-columns: 1fr;
  }

  .vd-live-call {
    grid-template-columns: 1fr;
  }
}
