/* =========================
   GLOBAL BOX FIX (CRITICAL)
========================== */
.cta-popup *,
.cta-popup *::before,
.cta-popup *::after {
  box-sizing: border-box;
}

/* =========================
   CTA POPUP BASE
========================== */
.cta-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 20px;
  overflow-y: auto;

  z-index: 9999;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
}

/* =========================
   CTA BOX
========================== */
.cta-box.split-layout {
  display: flex;
  width: 900px;
  max-width: 95%;
  max-height: 90vh;

  background: #111;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

/* =========================
   LEFT PANEL
========================== */
.cta-box.split-layout .cta-left {
  flex: 0 0 40%;
  max-width: 40%;
  position: relative;
  overflow: hidden;
  background: #000;
}

.video-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================
   RIGHT PANEL
========================== */
.cta-box.split-layout .cta-right {
  flex: 0 0 60%;
  max-width: 60%;
  padding: 25px;

  overflow-y: auto;
  overflow-x: hidden;
}

/* =========================
   PHONE GROUP (CRITICAL)
========================== */
.phone-group {
  display: flex;
  gap: 8px;
  width: 100%;
}

.phone-group select {
  flex: 0 0 130px;
  max-width: 130px;
}

.phone-group input {
  flex: 1;
  min-width: 0;
}

/* =========================
   INPUT NORMALIZATION
========================== */
.cta-popup .cta-right input,
.cta-popup .cta-right select {
  width: 100%;
}

/* =========================
   RADIO TITLE
========================== */
.radio-title {
  color: #888;
  font-size: 12px;
  margin-bottom: 6px;
  text-align: left;
}

/* =========================
   RADIO GROUP
========================== */
.radio-group {
  display: flex;
  gap: 10px;
  width: 100%;
}

/* =========================
   RADIO CARD
========================== */
.radio-card {
  flex: 1;
  position: relative;
  min-width: 0;
}

.radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* =========================
   RADIO UI
========================== */
.radio-ui {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 10px;
  background: #222;
  border: 1px solid #444;
  color: #bbb;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.25s ease;
  width: 100%;
}

.radio-ui:hover {
  background: #2a2a2a;
  border-color: #666;
  color: #fff;
}

.radio-card input[type="radio"]:checked + .radio-ui {
  background: linear-gradient(135deg, #ffb347, #ff6a00);
  border: 1px solid #ff8c00;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0 12px rgba(255, 140, 0, 0.6);
  transform: scale(1.02);
}

/* =========================
   CTA BUTTON
========================== */
.cta-submit {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #27a776, #1f8f63);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  font-size: 15px;
  box-shadow: 0 6px 18px rgba(39,167,118,0.4);
  transition: all 0.25s ease;
}

.cta-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(39,167,118,0.5);
}

/* =========================
   DIVIDER
========================== */
.cta-divider {
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255,255,255,0.15),
    transparent
  );
}

/* =========================
   CLOSE BUTTON
========================== */
.cta-close {
  position: absolute;
  top: 10px;
  right: 15px;
  z-index: 10;
}

/* =========================
   FORM SPACING
========================== */
.form-group {
  margin-bottom: 12px;
}

/* =========================
   MOBILE FIX
========================== */
@media (max-width: 768px) {

  .cta-box.split-layout {
    flex-direction: column;
    height: auto;
    max-height: none;
  }

  .cta-box.split-layout .cta-left {
    width: 100%;
    max-width: 100%;
    height: 200px;
  }

  .cta-box.split-layout .cta-right {
    width: 100%;
    max-width: 100%;
    overflow-y: visible;
  }

  .cta-divider {
    display: none;
  }
}

/* =========================
   SMALL DEVICES
========================== */
@media (max-width: 480px) {
  .radio-group {
    flex-direction: column;
  }
}