/* ==========================================================================
   STANDARD PREMIUM ENQUIRY MODAL  (#exampleModal  -  Default.aspx)
   Logo colours only: blue #0B6CB4 / #073A5E + green #8CC63F. No orange.
   - premium shell, header, 2-column form grid, green submit button
   - close always works: X button / dark area click / Esc key (inline JS)
   - responsive: 2 columns (>=576px) -> 1 column (phone)
   ========================================================================== */

/* ---------- Safety net: the dialog can never sit on the screen unless the
   modal is genuinely open. `.ne-show` is set by js/enquiry-modal.js while the
   dialog is opening, so the Bootstrap fade is not affected. Do NOT hide
   .modal-backdrop here - other modals on the page may need it. ------------ */
#exampleModal:not(.show):not(.ne-show) { display: none !important; }

/* ---------- Shell ------------------------------------------------------- */
#exampleModal .modal-dialog { max-width: 660px; margin: 1.2rem auto; }
#exampleModal .modal-content.ne-modal {
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 80px rgba(3, 30, 50, .45);
}

/* ---------- Header ----------------------------------------------------- */
.ne-modal__head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem 1.05rem;
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, #073a5e 0%, #0b6cb4 55%, #1280c5 100%);
}
.ne-modal__head::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px 170px at 92% 0%, rgba(140, 198, 63, .38), transparent 62%);
}
.ne-modal__badge {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #0a2a12;
  background: linear-gradient(135deg, #8cc63f, #c9e89a);
  box-shadow: 0 10px 22px rgba(140, 198, 63, .45);
}
.ne-modal__titles { position: relative; z-index: 1; flex: 1 1 auto; min-width: 0; }
/* Style.css sets .modal-title{color:#90ca39; margin-left:35%} - overridden here */
.ne-modal__head .modal-title,
.ne-modal__title {
  margin: 0;
  float: none;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.ne-modal__sub { margin: .2rem 0 0; font-size: .82rem; color: rgba(255, 255, 255, .88); }
.ne-modal__sub i { color: #c9e89a; margin-right: .3rem; }

/* ---------- Close button (44px touch target, always on top) ------------- */
.ne-modal__close {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, .62);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  float: none;
  font-size: 1.05rem;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, .16);
  opacity: 1;
  text-shadow: none;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.ne-modal__close:hover,
.ne-modal__close:focus-visible {
  background: #8cc63f;
  border-color: #8cc63f;
  color: #0a2a12;
  transform: rotate(90deg);
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.ne-modal__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Body ------------------------------------------------------- */
.ne-modal__body { padding: 1.15rem 1.25rem 1.3rem; background: #f6fafd; }
.ne-modal__tour {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: 1rem;
  padding: .6rem .85rem;
  border: 1px dashed rgba(11, 108, 180, .35);
  border-radius: 12px;
  font-size: .85rem;
  font-weight: 700;
  color: #073a5e;
  background: #fff;
}
.ne-modal__tour i { color: #0b6cb4; }
.ne-modal__tour span { color: #5d9a1f; }

/* ---------- Form grid: 2 columns -> 1 column on phone ------------------- */
.ne-modal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}
.ne-modal__field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.ne-modal__field--full { grid-column: 1 / -1; }
/* Custom.css ships a global "label { margin-top: 13px !important }" rule, so the
   modal labels need the id for specificity plus !important to stay flush. */
#exampleModal .ne-modal__field label,
#exampleModal .ne-modal__grid label.lab {
  margin: 0 !important;
  margin-top: 0 !important;
  float: none;
  font-size: .73rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #073a5e;
}
.ne-modal__field label i { color: #0b6cb4; margin-right: .35rem; }

.ne-modal .form-control {
  display: block;
  width: 100%;
  height: 48px;
  padding: .55rem .85rem;
  border: 1.5px solid #d7e5f0;
  border-radius: 12px;
  font-size: .93rem;
  font-weight: 600;
  color: #112233;
  background: #fff;
  box-shadow: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.ne-modal .form-control:focus {
  border-color: #0b6cb4;
  box-shadow: 0 0 0 4px rgba(11, 108, 180, .16);
  outline: none;
}
.ne-modal select.form-control {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.3rem;
  background-image: linear-gradient(45deg, transparent 50%, #0b6cb4 50%),
                    linear-gradient(135deg, #0b6cb4 50%, transparent 50%);
  background-position: calc(100% - 21px) 21px, calc(100% - 15px) 21px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.ne-modal textarea.form-control {
  height: auto;
  min-height: 88px;
  resize: vertical;
  line-height: 1.5;
}
.ne-modal input[type="number"].form-control { -moz-appearance: textfield; }

/* ---------- Submit ----------------------------------------------------- */
.ne-modal__submit {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-top: .25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(11, 108, 180, .14);
}
/* Custom.css loads AFTER this file and its ".btx" rule (float/size/uppercase)
   targets the same submit anchor, so the modal button is id-scoped to win. */
#exampleModal .ne-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  width: 100%;
  padding: .92rem 1rem;
  border: 0;
  border-radius: 999px;
  float: none;
  position: static;
  font-size: .98rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: .02em;
  text-transform: none;
  color: #0a2a12;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  background: linear-gradient(135deg, #5d9a1f, #8cc63f);
  box-shadow: 0 14px 28px rgba(140, 198, 63, .38);
  transition: transform .2s ease, box-shadow .2s ease;
}
#exampleModal .ne-modal__btn:hover,
#exampleModal .ne-modal__btn:focus-visible {
  color: #0a2a12;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(140, 198, 63, .5);
}
.ne-modal__alt {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .35rem;
  margin: 0;
  font-size: .83rem;
  color: #51616b;
}
.ne-modal__alt i { color: #0b6cb4; }
.ne-modal__alt a { color: #0b6cb4; font-weight: 800; text-decoration: none; }
.ne-modal__alt a:hover { text-decoration: underline; }

/* ---------- Kill legacy theme overrides inside the modal ---------------- */
.ne-modal .modal-header { border: 0; }
.ne-modal .modal-header button { position: relative; top: auto; left: auto; }
.ne-modal .close { float: none; text-shadow: none; }

/* ---------- Responsive ------------------------------------------------- */
@media (max-width: 767.98px) {
  #exampleModal .modal-dialog { max-width: calc(100% - 1rem); margin: .5rem auto; }
  #exampleModal .modal-content.ne-modal { border-radius: 18px; }
  .ne-modal__body { padding: 1rem; }
}
@media (max-width: 575.98px) {
  .ne-modal__head { padding: .95rem; gap: .7rem; }
  .ne-modal__badge { width: 42px; height: 42px; font-size: 1.05rem; }
  .ne-modal__head .modal-title,
  .ne-modal__title { font-size: 1.02rem; }
  .ne-modal__sub { font-size: .76rem; }
  .ne-modal__close { width: 38px; height: 38px; }
  .ne-modal__grid { grid-template-columns: 1fr; gap: .7rem; }
  #exampleModal .ne-modal__btn { padding: .85rem 1rem; font-size: .93rem; }
  .ne-modal textarea.form-control { min-height: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  .ne-modal__close, #exampleModal .ne-modal__btn { transition: none; }
}
