/* ========== ASMORIX ENQUIRY MODAL ========== */
body.asmorix-enq-open {
  overflow: hidden;
}

.asmorix-enq[hidden] {
  display: none !important;
}

.asmorix-enq {
  --enq-side: linear-gradient(160deg, #041f7a 0%, #0633b0 48%, #0a4ad4 100%);
  --enq-accent: #ffd200;
  --enq-accent-ink: #111111;
  --enq-btn: linear-gradient(90deg, #041f7a 0%, #0633b0 100%);
  --enq-btn-ink: #ffffff;
  --enq-focus: rgba(6, 51, 176, 0.18);
  --enq-border: #dbe3f0;
  --enq-chip: #0633b0;
  --enq-title-ink: #0f172a;
  --enq-em: #0633b0;
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* Theme: Free demo — emerald */
.asmorix-enq[data-type="demo"] {
  --enq-side: linear-gradient(160deg, #064e3b 0%, #047857 46%, #10b981 100%);
  --enq-accent: #d9f99d;
  --enq-btn: linear-gradient(90deg, #047857 0%, #10b981 100%);
  --enq-focus: rgba(16, 185, 129, 0.18);
  --enq-border: #cfe8dd;
  --enq-chip: #059669;
  --enq-em: #059669;
}

/* Theme: Counsellor — violet */
.asmorix-enq[data-type="counsellor"] {
  --enq-side: linear-gradient(160deg, #3b0764 0%, #6d28d9 48%, #8b5cf6 100%);
  --enq-accent: #fde68a;
  --enq-btn: linear-gradient(90deg, #6d28d9 0%, #8b5cf6 100%);
  --enq-focus: rgba(139, 92, 246, 0.2);
  --enq-border: #e4dcf8;
  --enq-chip: #7c3aed;
  --enq-em: #7c3aed;
}

/* Theme: Custom batch — sunset */
.asmorix-enq[data-type="custom"] {
  --enq-side: linear-gradient(160deg, #7c2d12 0%, #ea580c 48%, #fb923c 100%);
  --enq-accent: #0f172a;
  --enq-accent-ink: #ffffff;
  --enq-btn: linear-gradient(90deg, #ea580c 0%, #fb923c 100%);
  --enq-focus: rgba(249, 115, 22, 0.2);
  --enq-border: #f6ddcb;
  --enq-chip: #ea580c;
  --enq-em: #ea580c;
}

.asmorix-enq__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 15, 35, 0.62);
  backdrop-filter: blur(3px);
}

.asmorix-enq__dialog {
  position: relative;
  z-index: 1;
  width: min(940px, 100%);
  max-height: 94vh;
  overflow: auto;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 26px 64px rgba(7, 20, 80, 0.34);
}

.asmorix-enq__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.asmorix-enq__close:hover {
  background: #e2e8f0;
}

.asmorix-enq__layout {
  display: grid;
  grid-template-columns: 0.86fr 1.24fr;
}

.asmorix-enq__side {
  position: relative;
  overflow: hidden;
  padding: 26px 24px 22px;
  background: var(--enq-side);
  color: #fff;
}

.asmorix-enq__side::before,
.asmorix-enq__side::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.asmorix-enq__side::before {
  width: 190px;
  height: 190px;
  top: -64px;
  right: -50px;
  bottom: auto;
  background: rgba(255, 255, 255, 0.08);
}

.asmorix-enq__side::after {
  width: 150px;
  height: 150px;
  left: -54px;
  right: auto;
  bottom: 24px;
  background: rgba(255, 255, 255, 0.08);
}

.asmorix-enq__eyebrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 0;
  color: #041f7a;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.asmorix-enq__side-title {
  position: relative;
  z-index: 1;
  margin: 14px 0 10px;
  font-family: "Rajdhani", Sans-serif;
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 800;
  line-height: 1.12;
  color: #fff;
}

.asmorix-enq__side-title span {
  color: var(--enq-accent);
}

.asmorix-enq__side-desc {
  position: relative;
  z-index: 1;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13.5px;
  line-height: 1.55;
}

.asmorix-enq__points {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.asmorix-enq__points li {
  position: relative;
  padding-left: 24px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
}

.asmorix-enq__points li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", var(--fontawesome, "FontAwesome");
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--enq-accent);
  font-size: 12px;
}

.asmorix-enq__side-call {
  position: relative;
  z-index: 1;
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}

.asmorix-enq__side-call a {
  color: #fff !important;
  font-weight: 800;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.asmorix-enq__main {
  padding: 24px 26px 22px;
  border-top: 3px solid var(--enq-accent);
}

.asmorix-enq__form-title {
  margin: 0 0 5px;
  color: var(--enq-title-ink);
  font-family: "Rajdhani", Sans-serif;
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 800;
  line-height: 1.15;
}

.asmorix-enq__form-title em {
  font-style: normal;
  color: var(--enq-em);
}

.asmorix-enq__form-desc {
  margin: 0 0 16px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

.asmorix-enq__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}

.asmorix-enq__field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
  min-width: 0;
}

.asmorix-enq__field--full {
  grid-column: 1 / -1;
}

.asmorix-enq__field > span {
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
}

.asmorix-enq__field > span i {
  color: #ef4444;
  font-style: normal;
  font-weight: 800;
}

.asmorix-enq__field input,
.asmorix-enq__field select,
.asmorix-enq__field textarea {
  width: 100%;
  border: 1px solid var(--enq-border);
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font-size: 13.5px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.asmorix-enq__field textarea {
  resize: none;
  min-height: 56px;
  max-height: 56px;
}

.asmorix-enq__field input:focus,
.asmorix-enq__field select:focus,
.asmorix-enq__field textarea:focus {
  border-color: var(--enq-chip);
  box-shadow: 0 0 0 3px var(--enq-focus);
}

.asmorix-enq__phone {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px;
  max-width: 100%;
}

.asmorix-enq__locs,
.asmorix-enq__days {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-content: flex-start;
}

.asmorix-enq__locs label,
.asmorix-enq__days label {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--enq-border);
  background: #fff;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

.asmorix-enq__locs label input,
.asmorix-enq__days label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.asmorix-enq__locs label.is-active,
.asmorix-enq__days label:has(input:checked) {
  background: var(--enq-chip);
  border-color: var(--enq-chip);
  color: #fff;
}

.asmorix-enq__submit {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 4px;
  border: 0;
  border-radius: 11px;
  padding: 13px 18px;
  background: var(--enq-btn);
  color: var(--enq-btn-ink);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--enq-accent);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.asmorix-enq__submit:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.asmorix-enq__help {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  text-align: center;
  color: #64748b;
  font-size: 12.5px;
}

.asmorix-enq__help a {
  color: var(--enq-em) !important;
  font-weight: 800;
  text-decoration: none !important;
}

.asmorix-enq__status {
  grid-column: 1 / -1;
  margin: 6px 0 0;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
}

.asmorix-enq__status.is-ok {
  color: #047857;
}

.asmorix-enq__status.is-err {
  color: #b42318;
}

@media (max-width: 900px) {
  .asmorix-enq__layout {
    grid-template-columns: 1fr;
  }

  .asmorix-enq__side {
    padding: 22px 18px 18px;
  }

  .asmorix-enq__side-desc,
  .asmorix-enq__points,
  .asmorix-enq__side-call {
    display: none;
  }

  .asmorix-enq__side-title {
    margin-bottom: 0;
  }

  .asmorix-enq__main {
    padding: 20px 18px 18px;
  }
}

@media (max-width: 575px) {
  .asmorix-enq {
    padding: 10px;
  }

  .asmorix-enq__grid {
    grid-template-columns: 1fr;
  }

  .asmorix-enq__phone {
    grid-template-columns: 88px 1fr;
  }
}
