/* ===========================================
   POPUP MODAL COMPONENT
   =========================================== */

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeInOverlay .3s ease;
}
.popup-overlay.is-hidden { display: none; }
@keyframes fadeInOverlay { from { opacity: 0; } to { opacity: 1; } }

.popup-modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 900px;
  max-height: 92vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  animation: slideUp .32s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Close button */
.popup-close {
  position: absolute;
  top: 12px; right: 14px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #eee;
  border: none;
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #555;
  transition: background .2s, color .2s;
  z-index: 10;
}
.popup-close:hover { background: #333; color: #fff; }

/* Left panel — journey infographic */
.popup-left {
  background: linear-gradient(160deg, #f0f9f9 0%, #e8f6f6 100%);
  padding: 32px 24px 28px;
  border-radius: 16px 0 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.popup-left__shield {
  width: 40px; height: 40px;
  background: var(--teal);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.popup-left__shield svg { width: 22px; height: 22px; fill: #fff; }
.popup-left__title {
  font-size: 17px;
  font-weight: 800;
  color: #111;
  text-align: center;
  margin-bottom: 4px;
}
.popup-left__sub {
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 20px;
}

/* Journey grid */
.popup-journey-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}
.popup-journey-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
}
.popup-journey-item__header {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px 6px;
}
.popup-journey-item__num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.popup-journey-item__text { font-size: 11px; font-weight: 700; color: #111; line-height: 1.35; }
.popup-journey-item__text span { display: block; font-size: 10.5px; font-weight: 400; color: #777; }
.popup-journey-item img {
  width: 100%;
  height: 86px;
  object-fit: cover;
  display: block;
}

.popup-trusted {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #555;
  font-weight: 600;
}
.popup-trusted svg { width: 14px; height: 14px; fill: var(--teal); }
.popup-brand-note {
  margin-top: 6px;
  font-size: 11px;
  color: #888;
  text-align: center;
}

/* Right panel — form */
.popup-right {
  padding: 32px 28px 28px;
  border-radius: 0 16px 16px 0;
  background: #fff;
}
.popup-right h2 {
  font-size: 20px;
  font-weight: 900;
  color: #111;
  margin-bottom: 6px;
  line-height: 1.25;
}
.popup-right p {
  font-size: 13px;
  color: #666;
  margin-bottom: 20px;
}
.popup-field {
  margin-bottom: 12px;
}
.popup-field input,
.popup-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #dde8e8;
  border-radius: 10px;
  font-size: 14px;
  color: #333;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.popup-field input:focus,
.popup-field select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(10,127,127,.1);
}
.popup-field input::placeholder { color: #aaa; }
.popup-field select { cursor: pointer; appearance: auto; }
.popup-field__note {
  font-size: 11.5px;
  color: #888;
  margin-top: 4px;
  padding-left: 2px;
}
.popup-field__upload {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px dashed #cdd8d8;
  border-radius: 10px;
  font-size: 13.5px;
  color: #555;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fafefe;
}

.popup-promo-note {
  background: #fffbf0;
  border: 1px solid #f0e0b0;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: #886600;
  text-align: center;
  margin-bottom: 12px;
  font-weight: 500;
}
.popup-submit {
  width: 100%;
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s;
  letter-spacing: .2px;
}
.popup-submit:hover { background: var(--orange-dark); }

/* Scrollbar styling for modal */
.popup-modal::-webkit-scrollbar { width: 5px; }
.popup-modal::-webkit-scrollbar-track { background: #f0f0f0; }
.popup-modal::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 10px; }

@media (max-width: 700px) {
  .popup-modal { grid-template-columns: 1fr; max-height: 95vh; }
  .popup-left  { border-radius: 16px 16px 0 0; }
  .popup-right { border-radius: 0 0 16px 16px; padding: 24px 20px; }
}