@import url("https://fonts.googleapis.com/css2?family=Alexandria:wght@300;400;500;600;700&display=swap");

.inv-lang-switcher {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.inv-lang-switcher select {
  min-width: 160px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(145, 70, 255, 0.25);
  background: #f0f0ff;
  color: var(--demo-ink);
  font-family: inherit;
}

.inv-demo {
  --demo-bg: #f0f0ff;
  --demo-ink: #000000;
  --demo-muted: rgba(0, 0, 0, 0.62);
  --demo-accent: #9146ff;
  --demo-card: rgba(255, 255, 255, 0.92);
  --demo-border: rgba(145, 70, 255, 0.18);
  --demo-shadow: 0 24px 60px rgba(54, 20, 89, 0.18);
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 48px 18px;
  background: radial-gradient(circle at 10% 10%, #f0f0ff 0%, #f0f0ff 50%) no-repeat,
    linear-gradient(135deg, rgba(145, 70, 255, 0.08), rgba(145, 70, 255, 0.12));
  font-family: "Alexandria", "Cairo", "Noto Sans Arabic", sans-serif;
  color: var(--demo-ink);
  box-sizing: border-box;
  overflow-wrap: anywhere;
}

.inv-preload {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: #f0f0ff;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.inv-preload.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.inv-preload__panel {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.inv-preload__spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(145, 70, 255, 0.18);
  border-top-color: var(--demo-accent, #9146ff);
  animation: inv-spin 0.8s linear infinite;
}

.inv-preload__text {
  font-size: 12px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.62);
  letter-spacing: 0.02em;
}

@keyframes inv-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.inv-demo * {
  box-sizing: border-box;
  min-width: 0;
}

.inv-demo::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(145, 70, 255, 0.18), transparent 70%);
  pointer-events: none;
}

.inv-demo__card {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 36px;
  border-radius: 26px;
  background: var(--demo-card);
  border: 1px solid var(--demo-border);
  box-shadow: var(--demo-shadow);
  animation: inv-demo-rise 0.6s ease-out both;
}

.inv-demo__header {
  margin-bottom: 24px;
}

.inv-demo__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: var(--demo-muted);
  margin: 0 0 10px;
}

.inv-demo__sub {
  margin: 8px 0 0;
  color: var(--demo-muted);
}

.inv-demo__grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 24px;
}

.inv-demo__field label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--demo-muted);
}

.inv-demo__hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--demo-muted);
}

.inv-demo__field {
  min-width: 0;
}

.inv-demo__field input,
.inv-demo__field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(145, 70, 255, 0.2);
  background: #f0f0ff;
  color: var(--demo-ink);
  font-family: inherit;
  font-size: 15px;
  max-width: 100%;
}

.inv-demo__phone-group {
  display: flex;
  gap: 12px;
  align-items: stretch;
  flex-wrap: nowrap;
}

.inv-demo__phone-group select {
  flex: 0 0 170px;
  min-width: 140px;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inv-demo__phone-group input {
  flex: 1 1 auto;
}

.inv-demo__field input:focus,
.inv-demo__field select:focus {
  outline: 2px solid rgba(145, 70, 255, 0.3);
  border-color: rgba(145, 70, 255, 0.45);
}

.inv-demo__field #inv-demo-custom-title {
  display: none;
  margin-top: 8px;
}

.inv-demo__terms {
  margin: 18px 0 22px;
}

.inv-demo__field--turnstile {
  margin-bottom: 12px;
}

.inv-demo__terms-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--demo-ink);
  font-size: 14px;
}

.inv-demo__terms-check input {
  margin-top: 3px;
  accent-color: var(--demo-accent);
}

.inv-demo .inv-demo__terms-link {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: none;
  color: var(--demo-accent);
  padding: 0 4px;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
  box-shadow: none;
}

.inv-demo__modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.inv-demo__modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.inv-demo__modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}

.inv-demo__modal-card {
  position: relative;
  width: min(520px, 100%);
  max-height: min(80vh, 700px);
  overflow: auto;
  border-radius: 22px;
  background: #f0f0ff;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  z-index: 1;
}

.inv-demo__modal-title {
  margin: 0 0 12px;
  font-size: 18px;
  color: var(--demo-ink);
}

.inv-demo__modal-content {
  color: var(--demo-muted);
  font-size: 14px;
  line-height: 1.7;
}

.inv-demo__modal-content .inv-demo__terms-text {
  margin: 0;
  white-space: pre-line;
}

.inv-demo__modal-content .inv-demo__terms-list {
  margin: 0;
  padding-inline-start: 20px;
}

.inv-demo .inv-demo__modal-close {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  border: none;
  background: rgba(145, 70, 255, 0.1);
  color: var(--demo-accent);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  box-shadow: none;
}

.inv-demo .inv-demo__modal-action {
  appearance: none;
  -webkit-appearance: none;
  margin-top: 16px;
  border: none;
  background: var(--demo-accent);
  color: #f0f0ff;
  border-radius: 999px;
  padding: 10px 22px;
  font: inherit;
  cursor: pointer;
  box-shadow: none;
}

body.inv-modal-open {
  overflow: hidden;
}

.inv-demo__field--phone {
  grid-column: 1 / -1;
}

.inv-demo__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  border: none;
  background: var(--demo-accent);
  color: #f0f0ff;
  font-family: inherit;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.inv-demo__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(145, 70, 255, 0.28);
}

.inv-demo__notice {
  padding: 10px 14px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 14px;
}

.inv-demo__notice--success {
  background: rgba(145, 70, 255, 0.12);
  color: #000000;
}

.inv-demo__notice--error {
  background: rgba(145, 70, 255, 0.16);
  color: #000000;
}

.inv-demo__notice--warning {
  background: rgba(145, 70, 255, 0.22);
  color: #000000;
}

@keyframes inv-demo-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .inv-demo {
    padding: 36px 14px;
  }

  .inv-demo__card {
    padding: 28px 22px;
  }

  .inv-demo__field input,
  .inv-demo__field select {
    padding: 10px 12px;
    font-size: 14px;
  }

  .inv-demo__grid {
    grid-template-columns: 1fr;
  }

  .inv-demo__phone-group {
    flex-direction: column;
    align-items: stretch;
  }

  .inv-demo__phone-group select {
    flex: 0 0 auto;
    min-width: 0;
    max-width: none;
    height: 44px;
    line-height: 1.2;
  }

  .inv-demo__submit {
    width: 100%;
  }
}



