/* apply-now-popup.css
   No overlay. Modal closes only via X button.
   Sticky right-center pill kept.
*/

:root{
  --apply-enq-bg: #ffffff;
  --apply-enq-text: #333333;
  --apply-primary: #ff7a00;
  --apply-shadow: 0 18px 48px rgba(0,0,0,0.12);
  --apply-modal-bg: #ffffff;
  --apply-radius: 12px;
}

/* RIGHT-CENTER STICKY PILL */
#apply-now-floating {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 130000;
  display: flex;
  align-items: center;
  pointer-events: auto;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* Stack container */
.apply-now-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: transparent;
  padding: 0;
  border-radius: 12px;
  align-items: center;
}

/* Hide other stacked items by default — only enquiry circle shown via .enquiry or ID #apply-now-enquiry */
.apply-now-stack > .apply-now-item { display: none; }

/* Show enquiry button variants */
.apply-now-stack > .apply-now-item.enquiry,
.apply-now-stack > .apply-now-item[data-action="enquiry"],
#apply-now-enquiry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  min-width: 72px;
  min-height: 72px;
  background: var(--apply-enq-bg);
  color: var(--apply-enq-text);
  border-radius: 50%;
  box-shadow: var(--apply-shadow);
  border: 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 0;
  line-height: 1;
}

/* Keep the primary CTA in case plugin emits #apply-now-open (fallback) */
#apply-now-open.apply-now-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--apply-primary);
  color: #fff;
}

/* Modal — overlay removed (no dark backdrop) */
.apply-now-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 129900;
}
.apply-now-modal.open {
  display: block;
}

/* Hide overlay element visually and disable pointer events if present */
.apply-now-overlay { display: none !important; pointer-events: none !important; }

/* Modal content wrapper */
.apply-now-modal-wrap {
  position: relative;
  max-width: 720px;
  margin: 6% auto;
  background: var(--apply-modal-bg);
  border-radius: var(--apply-radius);
  padding: 22px;
  z-index: 129902;
  box-shadow: 0 18px 48px rgba(0,0,0,0.12);
  overflow: hidden;
}

/* Close button */
.apply-now-close {
  position: absolute;
  right: 12px;
  top: 8px;
  background: transparent;
  border: 0;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #222;
}

/* Modal content area */
.apply-now-content {
  margin-top: 8px;
  max-height: 70vh;
  overflow: auto;
}

/* Responsive adjustments */
@media (max-width: 520px) {
  #apply-now-floating {
    right: 12px;
    top: auto;
    bottom: 14%;
    transform: none;
  }
  .apply-now-stack > .apply-now-item.enquiry,
  #apply-now-enquiry {
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    font-size: 12px;
  }
  .apply-now-modal-wrap { margin: 12% 12px; padding: 16px; }
}
