/* ── Modal Overlay ───────────────────────────────────────────── */
.vd-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.vd-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* ── Modal Card ──────────────────────────────────────────────── */
.vd-modal {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: rgba(18, 18, 20, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 24px;
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
  padding: 40px 40px 36px;
  transform: translateY(24px);
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.vd-modal-overlay.is-open .vd-modal {
  transform: translateY(0);
}

/* ── Close button ────────────────────────────────────────────── */
.vd-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.55);
  font-size: 20px;
  transition: background .2s, color .2s;
  padding: 0;
}
.vd-modal__close:hover {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}

/* ── Header ──────────────────────────────────────────────────── */
.vd-modal__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary-color, #c8ff00);
  margin-bottom: 8px;
}
.vd-modal__title {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.25;
}
.vd-modal__sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 28px;
  line-height: 1.5;
}

/* ── Form rows ───────────────────────────────────────────────── */
.vd-form__row {
  margin-bottom: 14px;
}
.vd-form__label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.50);
  margin-bottom: 6px;
}
.vd-form__required {
  color: var(--primary-color, #c8ff00);
}
.vd-form__input,
.vd-form__select,
.vd-form__textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 15px;
  color: #fff;
  font-family: inherit;
  transition: border-color .2s, background .2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.vd-form__input::placeholder,
.vd-form__textarea::placeholder {
  color: rgba(255, 255, 255, 0.28);
}
.vd-form__input:focus,
.vd-form__select:focus,
.vd-form__textarea:focus {
  border-color: var(--primary-color, #c8ff00);
  background: rgba(255, 255, 255, 0.08);
}
.vd-form__select option {
  background: #1c1c1e;
  color: #fff;
}
.vd-form__textarea {
  resize: none;
  height: 90px;
  line-height: 1.5;
}

/* ── Checkbox ────────────────────────────────────────────────── */
.vd-form__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 20px;
  line-height: 1.5;
}
.vd-form__check input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--primary-color, #c8ff00);
  width: 15px;
  height: 15px;
  cursor: pointer;
}
.vd-form__check a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: underline;
}

/* ── Submit button ───────────────────────────────────────────── */
.vd-form__submit {
  width: 100%;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.vd-form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Outline CTA button ──────────────────────────────────────── */
.theme-btn--outline {
  background: transparent !important;
  color: var(--primary-color, #c8ff00) !important;
  border: 1px solid var(--primary-color, #c8ff00) !important;
  box-shadow: none !important;
}
.theme-btn--outline:hover {
  background: var(--primary-color, #c8ff00) !important;
  color: #000 !important;
}

/* Light theme: outline button uses dark ink instead of lime */
[data-theme="light"] .theme-btn--outline {
  color: #111 !important;
  border-color: rgba(20, 20, 25, 0.55) !important;
  background: transparent !important;
}
[data-theme="light"] .theme-btn--outline:hover {
  background: #111 !important;
  color: #fff !important;
  border-color: #111 !important;
}

/* CTA block outline (call-to-action-button variant) in light theme */
[data-theme="light"] .call-to-action-button.vd-open-modal {
  color: #111 !important;
  border-color: rgba(20, 20, 25, 0.55) !important;
  background: transparent !important;
}
[data-theme="light"] .call-to-action-button.vd-open-modal:hover {
  background: #111 !important;
  color: #fff !important;
  border-color: #111 !important;
}

/* ── Status messages ─────────────────────────────────────────── */
.vd-modal__status {
  margin-top: 12px;
  font-size: 13px;
  text-align: center;
  display: none;
  line-height: 1.5;
}
.vd-modal__status.is-error   { color: #ff6b6b; }
.vd-modal__status.is-success { color: var(--primary-color, #c8ff00); }

/* ── Success State ───────────────────────────────────────────── */
.vd-modal__success {
  display: none;
  text-align: center;
  padding: 20px 0 4px;
}
.vd-modal__success-icon {
  font-size: 52px;
  color: var(--primary-color, #c8ff00);
  margin-bottom: 16px;
  line-height: 1;
}
.vd-modal__success h3 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.vd-modal__success p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.50);
  line-height: 1.6;
}

/* ── Light theme overrides ───────────────────────────────────── */
[data-theme="light"] .vd-modal {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(0, 0, 0, 0.10);
}
[data-theme="light"] .vd-modal__title  { color: #111; }
[data-theme="light"] .vd-modal__sub    { color: rgba(0, 0, 0, 0.50); }
[data-theme="light"] .vd-form__label   { color: rgba(0, 0, 0, 0.55); }
[data-theme="light"] .vd-form__input,
[data-theme="light"] .vd-form__select,
[data-theme="light"] .vd-form__textarea {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.12);
  color: #111;
}
[data-theme="light"] .vd-form__input::placeholder,
[data-theme="light"] .vd-form__textarea::placeholder { color: rgba(0, 0, 0, 0.32); }
[data-theme="light"] .vd-form__select option { background: #fff; color: #111; }
[data-theme="light"] .vd-form__check   { color: rgba(0, 0, 0, 0.45); }
[data-theme="light"] .vd-form__check a { color: rgba(0, 0, 0, 0.60); }
[data-theme="light"] .vd-modal__close  {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.10);
  color: rgba(0, 0, 0, 0.55);
}
[data-theme="light"] .vd-modal__close:hover {
  background: rgba(0, 0, 0, 0.10);
  color: #111;
}
[data-theme="light"] .vd-modal__success h3 { color: #111; }
[data-theme="light"] .vd-modal__success p  { color: rgba(0, 0, 0, 0.50); }

/* ── Custom select ───────────────────────────────────────────── */
.vd-select {
  position: relative;
  user-select: none;
}
.vd-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 15px;
  color: #fff;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.vd-select.is-open .vd-select__trigger {
  border-color: var(--primary-color, #c8ff00);
  background: rgba(255, 255, 255, 0.08);
}
.vd-select__text--placeholder {
  color: rgba(255, 255, 255, 0.28);
}
.vd-select__arrow {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
  transition: transform .2s;
}
.vd-select.is-open .vd-select__arrow {
  transform: rotate(180deg);
  color: var(--primary-color, #c8ff00);
}
.vd-select__list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 10000;
  background: #1c1c1e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 6px;
  margin: 0;
  list-style: none;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  max-height: 260px;
  overflow-y: auto;
}
.vd-select.is-open .vd-select__list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.vd-select__item {
  padding: 10px 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.vd-select__item:first-child {
  color: rgba(255, 255, 255, 0.35);
}
.vd-select__item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.vd-select__item.is-active {
  color: var(--primary-color, #c8ff00);
  background: rgba(200, 255, 0, 0.07);
}

/* light theme */
[data-theme="light"] .vd-select__trigger {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.12);
  color: #111;
}
[data-theme="light"] .vd-select.is-open .vd-select__trigger {
  border-color: var(--primary-color, #c8ff00);
  background: rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .vd-select__text--placeholder { color: rgba(0, 0, 0, 0.32); }
[data-theme="light"] .vd-select__arrow            { color: rgba(0, 0, 0, 0.45); }
[data-theme="light"] .vd-select__list {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.10);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}
[data-theme="light"] .vd-select__item             { color: rgba(0, 0, 0, 0.75); }
[data-theme="light"] .vd-select__item:first-child  { color: rgba(0, 0, 0, 0.35); }
[data-theme="light"] .vd-select__item:hover        { background: rgba(0, 0, 0, 0.05); color: #111; }
[data-theme="light"] .vd-select__item.is-active    { color: #000; background: rgba(200, 255, 0, 0.25); }

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .vd-modal { padding: 28px 20px 24px; border-radius: 20px; }
  .vd-modal__title { font-size: 22px; }
}
