/* ============================================================
   ASP CUSTOM POPUP
   Split layout: image left, form right
   Fully scrollable on every viewport
   ============================================================ */

.asp-popup {
  --asp-primary: #2d2020;
  --asp-accent: #664242;
  --asp-accent-hi: #553434;
  --asp-text: #636969;
  --asp-cream: #fff0f0;
  --asp-cream-hi: #fff6f6;
  --asp-line: rgba(45, 32, 32, 0.1);
  --asp-line-soft: rgba(45, 32, 32, 0.06);
  --asp-shadow: 0 25px 60px -25px rgba(45, 32, 32, 0.35);

  position: fixed;
  inset: 0;
  z-index: 999999;
  font-family:
    "Manrope",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;

  /* Make the whole popup the scroll container on small screens */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;

  /* Center dialog */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;

  animation: aspFadeIn 0.3s ease-out;
}
.asp-popup[hidden] {
  display: none !important;
}

@keyframes aspFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* body.asp-popup-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  } */

/* Desktop lock — just hide scroll */
body.asp-popup-open {
  overflow: hidden;
}

/* Mobile lock — fix position to truly stop iOS scroll-through */
body.asp-popup-open--mobile {
  position: fixed;
  width: 100%;
}

/* Prevent layout shift when scrollbar disappears on desktop */
html.asp-popup-html-lock {
  scrollbar-gutter: stable;
}

/* === OVERLAY === */
/* .asp-popup__overlay {
  position: fixed;
  inset: 0;
  background: rgba(45, 32, 32, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
  z-index: -1;
} */

.asp-popup__overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 20, 20, 0.82);
  cursor: pointer;
  z-index: -1;
}

/* === DIALOG === */
.asp-popup__dialog {
  position: relative;
  background: #fff;
  border-radius: 4px;
  max-width: 1100px;
  width: 100%;
  box-shadow: var(--asp-shadow);
  animation: aspSlideUp 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
  /* No fixed max-height — let it grow naturally; parent scrolls */
}
@keyframes aspSlideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* === CLOSE BUTTON === */
.asp-popup__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: #ffffff;
  border: 1px solid var(--asp-line);
  color: var(--asp-primary);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* CSS-drawn X — bulletproof, no SVG sizing quirks */
.asp-popup__close-icon {
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
}
.asp-popup__close-icon::before,
.asp-popup__close-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 1.75px;
  background: currentColor;
  border-radius: 1px;
  transform-origin: center;
}
.asp-popup__close-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.asp-popup__close-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.asp-popup__close:hover {
  background: var(--asp-accent);
  border-color: var(--asp-accent);
  color: #fff;
}

.asp-popup__close-icon {
  transition: transform 0.25s ease;
}

.asp-popup__close:hover .asp-popup__close-icon {
  transform: rotate(90deg);
}

/* === GRID === */
.asp-popup__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr; /* image | form */
  /* min-height: 580px; */
}

.asp-popup__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  width: 100%;
}

/* === LEFT — IMAGE SIDE === */
/* .asp-popup__image-side {
  position: relative;
  background:
    linear-gradient(
      135deg,
      rgba(45, 32, 32, 0.55) 0%,
      rgba(102, 66, 66, 0.65) 100%
    ),
    url("https://aspiressky.ae/wp-content/uploads/2026/03/image-9.jpg")
      center/cover no-repeat;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
} */

/* === LEFT — IMAGE SIDE === */
.asp-popup__image-side {
  position: relative;
  background:
    linear-gradient(
      135deg,
      rgba(45, 32, 32, 0.55) 0%,
      rgba(102, 66, 66, 0.65) 100%
    ),
    url("https://aspiressky.ae/wp-content/uploads/2026/03/image-9.jpg")
      center/cover no-repeat;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  min-height: 100%;
}
.asp-popup__image-side::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 30%,
    rgba(45, 32, 32, 0.85) 100%
  );
  pointer-events: none;
}

.asp-popup__image-content {
  position: relative;
  z-index: 2;
  padding: 48px 42px;
  color: #fff;
}

.asp-popup__image-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 14px;
}

.asp-popup__image-heading {
  margin: 0 0 28px;
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 500;
  color: #fff !important;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.asp-popup__image-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.asp-popup__image-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 400;
  letter-spacing: 0.2px;
}
.asp-popup__image-list svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: #fff;
}

/* === RIGHT — FORM SIDE === */
/* .asp-popup__form-side {
  padding: 50px 48px 44px;
} */

.asp-popup__form-side {
  padding: 40px 44px 36px;
  overflow-y: auto;
  max-height: 85vh;
}

/* Scrollbar inside the form side */
.asp-popup__form-side::-webkit-scrollbar {
  width: 6px;
}
.asp-popup__form-side::-webkit-scrollbar-track {
  background: transparent;
}
.asp-popup__form-side::-webkit-scrollbar-thumb {
  background: var(--asp-line);
  border-radius: 3px;
}

.asp-popup__eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--asp-accent);
  margin-bottom: 14px;
  position: relative;
  padding-left: 40px;
}
.asp-popup__eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 28px;
  height: 1px;
  background: var(--asp-accent);
}

.asp-popup__title {
  margin: 0 0 14px;
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 500;
  color: var(--asp-primary);
  line-height: 1.15;
  letter-spacing: -0.8px;
}

.asp-popup__subtitle {
  margin: 0 0 32px;
  font-size: 15px;
  color: var(--asp-text);
  line-height: 1.65;
}

/* ============================================================
   WPFORMS STYLING INSIDE POPUP
   ============================================================ */

.asp-popup .wpforms-container {
  max-width: 100% !important;
  margin: 0 !important;
}

.asp-popup .wpforms-field-container {
  display: flex !important;
  flex-direction: column !important;
  gap: 35px !important;
}

.asp-popup .wpforms-field {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
}

.asp-popup .wpforms-field-label {
  font-family: "Manrope", sans-serif !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  color: var(--asp-accent) !important;
  margin-bottom: 0 !important;
  display: block !important;
}
.asp-popup .wpforms-required-label {
  color: var(--asp-accent) !important;
}

.asp-popup input[type="text"],
.asp-popup input[type="email"],
.asp-popup input[type="tel"],
.asp-popup textarea,
.asp-popup select {
  width: 100% !important;
  border: none !important;
  border-bottom: 1.5px solid var(--asp-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0 10px !important;
  font-size: 15px !important;
  color: var(--asp-primary) !important;
  font-family: inherit !important;
  outline: none !important;
  box-shadow: none !important;
  transition: border-color 0.25s ease !important;
  -webkit-appearance: none;
}
.asp-popup input:focus,
.asp-popup textarea:focus,
.asp-popup select:focus {
  border-bottom-color: var(--asp-accent) !important;
}
.asp-popup input::placeholder,
.asp-popup textarea::placeholder {
  color: rgba(99, 105, 105, 0.45) !important;
}
.asp-popup textarea {
  min-height: 100px !important;
  resize: vertical !important;
}

/* International Phone Input */
.asp-popup .iti {
  width: 100% !important;
}
.asp-popup .iti input[type="tel"] {
  padding-left: 56px !important;
}
.asp-popup .iti__selected-flag {
  background: transparent !important;
}

/* Choices.js */
.asp-popup .choices {
  margin: 0 !important;
  position: relative !important;
}
.asp-popup .choices__inner {
  background: transparent !important;
  border: none !important;
  border-bottom: 1.5px solid var(--asp-line) !important;
  border-radius: 0 !important;
  padding: 10px 0 !important;
  min-height: unset !important;
  font-size: 15px !important;
  box-shadow: none !important;
  transition: border-color 0.25s ease !important;
}
.asp-popup .choices.is-open .choices__inner,
.asp-popup .choices:focus-within .choices__inner {
  border-bottom-color: var(--asp-accent) !important;
}
.asp-popup .choices__list--dropdown {
  border: 1px solid var(--asp-line) !important;
  border-radius: 0 !important;
  box-shadow: var(--asp-shadow) !important;
  background: #fff !important;
  margin-top: 4px !important;
  z-index: 9999 !important;
}
.asp-popup .choices__list--dropdown .choices__item {
  font-size: 14px !important;
  color: var(--asp-primary) !important;
  padding: 12px 18px !important;
  border-bottom: 1px solid var(--asp-line-soft) !important;
}
.asp-popup .choices__list--dropdown .choices__item:last-child {
  border-bottom: none !important;
}
.asp-popup .choices__list--dropdown .choices__item.is-highlighted {
  background: var(--asp-cream) !important;
  color: var(--asp-accent) !important;
}
.asp-popup .choices__list--multiple .choices__item {
  background: var(--asp-accent) !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 4px 10px !important;
  font-size: 12px !important;
  margin: 2px 4px 2px 0 !important;
}
.asp-popup .choices__button {
  border-left: 1px solid rgba(255, 255, 255, 0.3) !important;
  filter: brightness(0) invert(1) !important;
}

/* Checkbox */
.asp-popup .wpforms-field-checkbox ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.asp-popup .wpforms-field-checkbox li {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
}
.asp-popup .wpforms-field-checkbox input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  margin: 2px 0 0 !important;
  accent-color: var(--asp-accent);
  flex-shrink: 0;
}
.asp-popup .wpforms-field-checkbox label {
  font-size: 12px !important;
  color: var(--asp-text) !important;
  line-height: 1.5 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-weight: 400 !important;
  margin: 0 !important;
}
.asp-popup .wpforms-field-checkbox legend.wpforms-label-hide {
  display: none !important;
}

/* Errors */
.asp-popup .wpforms-error {
  font-size: 12px !important;
  color: #c0392b !important;
  margin-top: 6px !important;
  letter-spacing: 0.3px !important;
}
.asp-popup input.wpforms-error,
.asp-popup textarea.wpforms-error,
.asp-popup select.wpforms-error {
  border-bottom-color: #c0392b !important;
}

/* Submit */
.asp-popup .wpforms-submit-container {
  margin-top: 28px !important;
  text-align: left !important;
}
.asp-popup .wpforms-submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 220px !important;
  padding: 16px 36px !important;
  background-color: var(--asp-accent) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 24px !important;
  font-family: "Manrope", sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}
.asp-popup .wpforms-submit:hover {
  background-color: var(--asp-accent-hi) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 25px -10px rgba(102, 66, 66, 0.5) !important;
}
.asp-popup .wpforms-submit-spinner {
  margin-left: 12px !important;
  width: 18px !important;
  height: 18px !important;
}

/* Success */
.asp-popup .wpforms-confirmation-container,
.asp-popup .wpforms-confirmation-container-full {
  background: var(--asp-cream-hi) !important;
  border: 1px solid var(--asp-line) !important;
  border-left: 4px solid var(--asp-accent) !important;
  padding: 24px 28px !important;
  color: var(--asp-primary) !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
}

.asp-popup .wpforms-field-hp {
  display: none !important;
}

/* ============================================================
   RESPONSIVE — IMAGE HIDDEN ON MOBILE
   ============================================================ */

/* Tablet ≤ 1024px — slightly tighter padding */
@media (max-width: 1024px) {
  .asp-popup__grid {
    grid-template-columns: 1fr 1.1fr;
  }
  .asp-popup__image-content {
    padding: 36px 32px;
  }
  .asp-popup__form-side {
    padding: 42px 36px 36px;
  }
}

/* Mobile ≤ 768px — image fully hidden, form takes full width */
@media (max-width: 768px) {
  .asp-popup {
    padding: 0;
    align-items: flex-start;
  }
  /* .asp-popup__dialog {
    max-width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    border-radius: 0;
    margin: 0;
  } */

  .asp-popup__dialog {
    position: relative;
    background: #fff;
    border-radius: 4px;
    max-width: 1100px;
    width: 100%;
    box-shadow: var(--asp-shadow);
    animation: aspSlideUp 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden;
  }
  .asp-popup__grid {
    grid-template-columns: 1fr;
    min-height: 100vh;
    min-height: 100dvh;
  }
  .asp-popup__image-side {
    display: none !important;
  }
  .asp-popup__form-side {
    padding: 60px 24px 32px;
  }
  .asp-popup__title {
    font-size: 24px;
  }
  .asp-popup__subtitle {
    margin-bottom: 24px;
  }
  .asp-popup__close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
  }
  .asp-popup .wpforms-submit {
    width: 100% !important;
    min-width: unset !important;
  }
}

/* Very small mobile ≤ 380px */
@media (max-width: 380px) {
  .asp-popup__form-side {
    padding: 56px 18px 28px;
  }
  .asp-popup__title {
    font-size: 22px;
  }
}
