/* ── JV Multi-Step Form Popup ─────────────────────────────────── */

#jv-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
#jv-overlay.open {
  display: flex;
}

#jv-popup {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #0d0900;
  border: 1.5px solid var(--gold);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 40px var(--gold-glow);
  font-family: "Inter", sans-serif;
}

/* Background texture overlay */
#jv-popup::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/bg.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.05;
  pointer-events: none;
}

/* Header */
.jv-header {
  position: relative;
  text-align: center;
  padding: 20px 24px 12px;
  border-bottom: 1px solid rgba(235, 160, 0, 0.25);
}
.jv-step-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.jv-header h2 {
  margin: 0 0 2px;
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
}
.jv-header .jv-sub {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--gold);
  opacity: 0.7;
  margin: 0;
}
.jv-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 20px;
  cursor: pointer;
  opacity: 0.7;
  line-height: 1;
}
.jv-close:hover {
  opacity: 1;
}

/* Step dots */
.jv-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px 0 4px;
}
.jv-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(235, 160, 0, 0.25);
  border: 1px solid var(--gold);
  transition: background 0.3s;
}
.jv-dot.active {
  background: var(--gold);
}

/* Body */
.jv-body {
  position: relative;
  padding: 24px 24px 8px;
  min-height: 220px;
}

.jv-step {
  display: none;
}
.jv-step.active {
  display: block;
}

.jv-step-title {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
  margin: 0 0 8px;
}
.jv-step-desc {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 20px;
}

/* Choice buttons (step 1 & 2) */
.jv-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 8px;
}
.jv-choice {
  flex: 1 1 calc(50% - 10px);
  min-width: 100px;
  padding: 14px 10px;
  background: transparent;
  border: 1.5px solid var(--gold);
  border-radius: 8px;
  color: var(--gold);
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.jv-choice:hover,
.jv-choice.selected {
  background: var(--gold);
  color: #000;
  box-shadow: 0 0 14px var(--gold-glow);
}

/* Text inputs (steps 3, 4) */
.jv-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.jv-field-group label {
  display: block;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--gold);
  opacity: 0.8;
  margin-bottom: 5px;
  text-transform: uppercase;
}
.jv-field-group input,
.jv-field-group textarea {
  width: 100%;
  background: rgba(235, 160, 0, 0.06);
  border: 1px solid rgba(235, 160, 0, 0.4);
  border-radius: 7px;
  padding: 10px 13px;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.jv-field-group input::placeholder,
.jv-field-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}
.jv-field-group input:focus,
.jv-field-group textarea:focus {
  border-color: var(--gold);
}
.jv-field-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* Consent checkboxes */
.jv-consent {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
}
.jv-consent label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1.5;
}
.jv-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  accent-color: var(--gold);
  margin-top: 2px;
}

/* Upload section */
.jv-upload-section {
  margin-bottom: 16px;
}
.jv-upload-section h4 {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--gold);
  margin: 0 0 10px;
  text-transform: uppercase;
}
.jv-upload-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  opacity: 0.7;
}

/* Success step */
.jv-success {
  text-align: center;
  padding: 16px 0 8px;
}
.jv-success-icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.jv-success h3 {
  color: var(--gold);
  font-size: 20px;
  margin: 0 0 10px;
  letter-spacing: 1px;
}
.jv-success p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 8px;
}

/* Footer / nav */
.jv-footer {
  position: relative;
  padding: 12px 24px 16px;
  border-top: 1px solid rgba(235, 160, 0, 0.15);
}
.jv-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.jv-btn-back {
  flex: 0 0 auto;
  padding: 12px 18px;
  background: transparent;
  border: 1.5px solid rgba(235, 160, 0, 0.5);
  border-radius: 8px;
  color: var(--gold);
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.2s;
}
.jv-btn-back:hover {
  border-color: var(--gold);
  background: rgba(235, 160, 0, 0.08);
}

.jv-btn-next,
.jv-btn-submit {
  flex: 1;
  padding: 13px;
  background: var(--gold);
  border: none;
  border-radius: 8px;
  color: #000;
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0 12px var(--gold-glow);
}
.jv-btn-next:hover,
.jv-btn-submit:hover {
  background: #ffc62e;
  box-shadow: 0 0 20px var(--gold-glow);
}
.jv-btn-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.jv-btn-wa {
  display: block;
  width: 100%;
  padding: 11px;
  text-align: center;
  background: transparent;
  border: 1.5px solid rgba(235, 160, 0, 0.5);
  border-radius: 8px;
  color: var(--gold);
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all 0.2s;
}
.jv-btn-wa:hover {
  border-color: var(--gold);
  background: rgba(235, 160, 0, 0.08);
}

/* Brand footer */
.jv-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding-top: 8px;
  border-top: 1px solid rgba(235, 160, 0, 0.1);
}
.jv-brand img {
  width: 100px;
  opacity: 0.85;
}
.jv-brand span {
  font-size: 10px;
  color: var(--text-muted);
  opacity: 0.5;
  letter-spacing: 1px;
}

/* Spinner */
.jv-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0, 0, 0, 0.3);
  border-top-color: #000;
  border-radius: 50%;
  animation: jv-spin 0.7s linear infinite;
  vertical-align: middle;
  margin-left: 8px;
}
@keyframes jv-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Error text */
.jv-error {
  color: #ff6b6b;
  font-size: 12px;
  margin-top: 4px;
  display: none;
}
.jv-error.show {
  display: block;
}
