/* ==========================================================================
   Precision Drone Ops - Intake Form v2 Styles (Dark Lab Theme)
   ========================================================================== */
:root {
  --v2-bg: #0a0f1a;
  --v2-card: #111827;
  --v2-input: #0b1120;
  --v2-border: #1f2937;
  --v2-text: #e6eef8;
  --v2-muted: #94a3b8;
  --v2-cyan: #00d9ff;
  --v2-green: #00ff88;
  --v2-red: #ff4444;
  --v2-amber: #fbbf24;
  --v2-mono: 'JetBrains Mono', monospace;
}

.intake-v2-wrapper {
  background: var(--v2-card);
  border: 1px solid var(--v2-border);
  border-radius: 18px;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  position: relative;
  color: var(--v2-text);
}

/* Sticky Progress Bar */
.v2-sticky-progress {
  position: sticky;
  top: 68px;
  z-index: 40;
  background: rgba(10, 15, 26, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 217, 255, 0.25);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.75rem;
}
.v2-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--v2-mono);
  font-size: 0.78rem;
  margin-bottom: 0.5rem;
}
.v2-progress-track {
  width: 100%;
  height: 6px;
  background: #1e293b;
  border-radius: 999px;
  overflow: hidden;
}
.v2-progress-fill {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, var(--v2-cyan), var(--v2-green));
  transition: width 0.3s ease;
}
.v2-step-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 0.6rem;
}
.v2-step-pill {
  font-family: var(--v2-mono);
  font-size: 0.72rem;
  color: var(--v2-muted);
  text-align: center;
  padding: 0.3rem 0.4rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  cursor: pointer;
}
.v2-step-pill.active {
  color: var(--v2-cyan);
  border-color: rgba(0, 217, 255, 0.35);
  background: rgba(0, 217, 255, 0.08);
  font-weight: 700;
}
.v2-step-pill.done {
  color: var(--v2-green);
  border-color: rgba(0, 255, 136, 0.3);
}

/* Restore Draft Banner */
.v2-restore-banner {
  display: none;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: rgba(0, 217, 255, 0.08);
  border: 1px solid rgba(0, 217, 255, 0.35);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.86rem;
}

/* Step Blocks */
.v2-step-block {
  border: 1px solid var(--v2-border);
  border-radius: 14px;
  background: rgba(10, 15, 26, 0.65);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.v2-step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--v2-border);
  cursor: pointer;
}
.v2-step-num {
  font-family: var(--v2-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--v2-cyan);
  background: rgba(0, 217, 255, 0.12);
  border: 1px solid rgba(0, 217, 255, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
}
.v2-step-title {
  font-size: 1.22rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

/* Form Controls */
.v2-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
  margin-bottom: 1.15rem;
}
@media (max-width: 768px) {
  .v2-grid-2 {
    grid-template-columns: 1fr;
  }
  .v2-step-pills {
    grid-template-columns: repeat(2, 1fr);
  }
}
.v2-field {
  margin-bottom: 1.15rem;
}
.v2-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--v2-text);
  margin-bottom: 0.45rem;
}
.v2-input,
.v2-select,
.v2-textarea {
  width: 100%;
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 10px;
  padding: 0.78rem 0.95rem;
  color: var(--v2-text);
  font-size: 0.94rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.v2-input:focus,
.v2-select:focus,
.v2-textarea:focus {
  outline: none;
  border-color: var(--v2-cyan);
  box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.18);
}

/* Link Validation Badge */
.v2-link-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.55rem;
  font-family: var(--v2-mono);
  font-size: 0.78rem;
}
.v2-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.74rem;
}
.v2-status-idle {
  background: rgba(148, 163, 184, 0.12);
  color: var(--v2-muted);
  border: 1px solid rgba(148, 163, 184, 0.25);
}
.v2-status-validating {
  background: rgba(0, 217, 255, 0.14);
  color: var(--v2-cyan);
  border: 1px solid rgba(0, 217, 255, 0.35);
}
.v2-status-ready {
  background: rgba(0, 255, 136, 0.14);
  color: var(--v2-green);
  border: 1px solid rgba(0, 255, 136, 0.4);
}
.v2-status-invalid {
  background: rgba(255, 68, 68, 0.14);
  color: var(--v2-red);
  border: 1px solid rgba(255, 68, 68, 0.4);
}

/* EXIF Quick Check Box */
.v2-exif-box {
  background: #070b13;
  border: 1px dashed rgba(0, 217, 255, 0.35);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin-top: 1rem;
}
.v2-exif-results {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.65rem;
  margin-top: 0.85rem;
}
.v2-exif-item {
  background: #111827;
  border: 1px solid var(--v2-border);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  font-family: var(--v2-mono);
  font-size: 0.76rem;
}
.v2-exif-pass { color: var(--v2-green); font-weight: 700; }
.v2-exif-fail { color: var(--v2-red); font-weight: 700; }
.v2-exif-warn { color: var(--v2-amber); font-weight: 700; }

/* Deliverables Checkboxes Grid */
.v2-deliverables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.65rem;
}
.v2-check-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #111827;
  border: 1px solid var(--v2-border);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  cursor: pointer;
  font-size: 0.88rem;
}
.v2-check-card input[type="checkbox"],
.v2-check-card input[type="radio"] {
  width: 17px;
  height: 17px;
  accent-color: var(--v2-cyan);
}

/* Camera Badges */
.v2-camera-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.5rem;
}
.v2-cam-badge {
  font-family: var(--v2-mono);
  font-size: 0.72rem;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  background: rgba(0, 217, 255, 0.08);
  border: 1px solid rgba(0, 217, 255, 0.22);
  color: #cbd5e1;
}

/* Step 03: MST Slot Booking Grid */
.v2-slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}
.v2-day-col {
  background: #111827;
  border: 1px solid var(--v2-border);
  border-radius: 10px;
  padding: 0.9rem;
}
.v2-day-title {
  font-family: var(--v2-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--v2-cyan);
  margin-bottom: 0.6rem;
  display: block;
}
.v2-slot-btn {
  display: block;
  width: 100%;
  text-align: left;
  font-family: var(--v2-mono);
  font-size: 0.78rem;
  padding: 0.5rem 0.7rem;
  margin-bottom: 0.45rem;
  border-radius: 7px;
  background: #0a0f1a;
  border: 1px solid var(--v2-border);
  color: var(--v2-text);
  cursor: pointer;
  transition: all 0.15s ease;
}
.v2-slot-btn:hover {
  border-color: var(--v2-cyan);
}
.v2-slot-btn.selected {
  background: rgba(0, 255, 136, 0.14);
  border-color: var(--v2-green);
  color: var(--v2-green);
  font-weight: 700;
}

/* Pulsating Cyan Submit Button */
@keyframes v2PulseCyan {
  0% { box-shadow: 0 0 0 0 rgba(0, 217, 255, 0.55); }
  70% { box-shadow: 0 0 0 14px rgba(0, 217, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 217, 255, 0); }
}
.v2-submit-btn {
  width: 100%;
  padding: 1.15rem 2rem;
  font-family: var(--v2-mono);
  font-size: 1.05rem;
  font-weight: 800;
  color: #040812;
  background: linear-gradient(135deg, #00d9ff, #00ff88);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  animation: v2PulseCyan 2.2s infinite;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.v2-submit-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

/* FAQ Accordion */
.v2-faq-section {
  margin-top: 3rem;
}
.v2-faq-item {
  background: var(--v2-card);
  border: 1px solid var(--v2-border);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.v2-faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 700;
  cursor: pointer;
  color: #ffffff;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.v2-faq-item summary::after {
  content: "+";
  font-family: var(--v2-mono);
  color: var(--v2-cyan);
  font-size: 1.2rem;
}
.v2-faq-item[open] summary::after {
  content: "−";
}
.v2-faq-body {
  padding: 0 1.25rem 1rem;
  color: var(--v2-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Mobile Sticky CTA Footer */
.v2-mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(10, 15, 26, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 217, 255, 0.35);
  padding: 0.75rem 1rem;
}
@media (max-width: 768px) {
  .v2-mobile-sticky-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
  }
}
