/* ---------- Shared Request Demo Modal ---------- */
#demoModal {
  --violet: var(--violet-600, #6d49f8);
  --ink: var(--ink-900, #171331);
  --ink-2: var(--ink-700, #3c3756);
  --muted: var(--ink-500, #6e6a85);
  --green: var(--success, #16a34a);
  --grad: linear-gradient(135deg, var(--violet) 0%, #9b6bff 100%);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 12, 28, 0.7);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #fff;
  width: 96%;
  max-width: 980px;
  max-height: 92vh;
  border-radius: 24px;
  display: flex;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
  transform: scale(0.95);
  transition: transform .3s ease;
  position: relative;
}

.modal-overlay.open .modal-box {
  transform: scale(1);
}

.modal-content {
  display: flex;
  width: 100%;
  height: 100%;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f0edf9;
  color: var(--violet);
  border: none;
  font-size: 24px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: .2s;
  z-index: 10;
}

.modal-close:hover {
  background: var(--violet);
  color: #fff;
  transform: scale(1.1);
}

.modal-left {
  flex: 0 0 420px;
  background: linear-gradient(145deg, #f6f3ff 0%, #edf1ff 100%);
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.modal-left-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.modal-logo-new {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.modal-logo-new .logo-text {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  font-family: "Plus Jakarta Sans", sans-serif;
}

.modal-left-title {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 10px;
  font-family: "Plus Jakarta Sans", sans-serif;
  text-align: left;
}

.modal-left-title .accent-title {
  color: var(--violet);
}

.modal-left-subtitle {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 16px;
  text-align: left;
}

.modal-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0 24px;
}

.mfg-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(109, 73, 248, 0.1);
  border-radius: 12px;
  padding: 10px 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.mfg-card:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(109, 73, 248, 0.08);
}

.mfg-icon {
  color: var(--violet);
  display: grid;
  place-items: center;
}

.mfg-card span {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-2);
}

.modal-left-trust {
  display: flex;
  gap: 12px;
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(109, 73, 248, 0.15);
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 200px;
  text-align: left;
}

.trust-shield {
  color: var(--violet);
  flex-shrink: 0;
}

.modal-left-trust strong {
  display: block;
  font-size: 11.5px;
  color: var(--ink);
  margin-bottom: 2px;
}

.modal-left-trust span {
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
}

.modal-left-bg-image {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 180px;
  z-index: 1;
  overflow: hidden;
}

.modal-left-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-right {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
  text-align: left;
}

.modal-right-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
  font-family: "Plus Jakarta Sans", sans-serif;
  text-align: left;
}

.modal-right-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
  text-align: left;
}

.form-grid-new {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 20px;
}

.form-group-new {
  display: flex;
  flex-direction: column;
}

.form-group-new label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  display: block;
  text-align: left;
}

.form-group-new label .req {
  color: #ef4444;
}

.input-wrap-new {
  position: relative;
  width: 100%;
}

.field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9b6bff;
  pointer-events: none;
}

.textarea-icon {
  top: 18px;
  transform: none;
}

.input-wrap-new input,
.input-wrap-new select,
.input-wrap-new textarea {
  width: 100%;
  border: 1px solid #dcd8ea;
  border-radius: 12px;
  padding: 12px 14px 12px 42px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.input-wrap-new input:focus,
.input-wrap-new select:focus,
.input-wrap-new textarea:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(109, 73, 248, 0.1);
  outline: none;
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-top-color: var(--muted);
  pointer-events: none;
}

.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
}

.form-group-new.full-width-new {
  grid-column: span 2;
  margin-top: 16px;
}

.form-check-new {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
  cursor: pointer;
  grid-column: span 2;
}

.form-check-new input {
  width: 18px;
  height: 18px;
  accent-color: var(--violet);
  cursor: pointer;
  margin: 0;
}

.form-check-new span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  text-align: left;
}

.form-check-new a {
  color: var(--violet);
  text-decoration: underline;
}

.btn-submit-new {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 14px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(109, 73, 248, .3);
  transition: all 0.25s ease;
  grid-column: span 2;
}

.btn-submit-new:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(109, 73, 248, .45);
}

.btn-calendar-icon {
  stroke: currentColor;
}

.form-secure-new {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 12.5px;
  grid-column: span 2;
}

.secure-icon {
  color: var(--green);
}

@media(max-width:860px) {
  .modal-box {
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 90vh;
    width: 92%;
    max-width: 620px;
    margin: 0 auto;
  }

  .modal-content {
    flex-direction: column-reverse;
    height: auto;
  }

  .modal-left {
    flex: none;
    width: 100%;
    padding: 30px 20px;
  }

  .modal-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .modal-left-trust {
    margin-bottom: 24px;
  }

  .modal-left-bg-image {
    display: none;
  }

  .modal-right {
    padding: 30px 20px;
  }

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

  .form-group-new.full-width-new {
    grid-column: span 1;
  }

  .form-check-new {
    grid-column: span 1;
  }

  .btn-submit-new {
    grid-column: span 1;
  }

  .form-secure-new {
    grid-column: span 1;
  }
}
