/* ==========================================================================
   Interactive Mold Anatomy Explorer
   ========================================================================== */
.mold-explorer-container {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  min-height: 600px;
}

.explorer-viewport {
  position: relative;
  background: radial-gradient(circle at center, #0e1a2f 0%, #060910 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border-right: 1px solid var(--border-subtle);
  overflow: hidden;
}

/* CAD Grid Background */
.cad-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 229, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

.mold-svg-container {
  width: 100%;
  max-width: 600px;
  position: relative;
  z-index: 2;
  transition: transform 0.4s var(--ease-fast);
}

.layer-toggle-bar {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  z-index: 10;
}

.layer-btn {
  background: rgba(14, 22, 38, 0.85);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
  transition: all var(--transition-normal);
}

.layer-btn:hover, .layer-btn.active {
  background: rgba(0, 229, 255, 0.15);
  border-color: var(--cyan-primary);
  color: #ffffff;
}

/* Interactive Hotspots */
.hotspot-point {
  position: absolute;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 20;
}

.hotspot-inner {
  width: 10px;
  height: 10px;
  background: var(--cyan-primary);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px var(--cyan-primary);
}

.hotspot-pulse {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--cyan-primary);
  animation: hotspotRings 1.8s infinite cubic-bezier(0.1, 0, 0.3, 1);
}

@keyframes hotspotRings {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

.hotspot-point.active .hotspot-inner {
  background: var(--amber-gold);
  box-shadow: 0 0 12px var(--amber-gold);
}
.hotspot-point.active .hotspot-pulse {
  border-color: var(--amber-gold);
}

/* Explorer Info Sidebar */
.explorer-telemetry-panel {
  padding: 2.5rem;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.telemetry-header {
  margin-bottom: 2rem;
}

.telemetry-component-title {
  font-size: 1.6rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.telemetry-component-type {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--cyan-primary);
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
}

.telemetry-specs-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.telemetry-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9rem;
}

.telemetry-row span.label {
  color: var(--text-muted);
}

.telemetry-row span.val {
  color: #ffffff;
  font-weight: 600;
  font-family: var(--font-mono);
}

.telemetry-row span.highlight {
  color: var(--cyan-primary);
}

.component-desc-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Cavitation & Production Calculator
   ========================================================================== */
.calculator-card {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.calc-inputs-col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.calc-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.calc-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff;
}

.calc-live-badge {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--cyan-primary);
  font-weight: 700;
}

/* Range Slider */
.calc-range {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #1e293b;
  outline: none;
  transition: background var(--transition-normal);
}

.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cyan-primary);
  cursor: pointer;
  box-shadow: 0 0 12px var(--cyan-primary);
  transition: transform 0.15s ease;
}

.calc-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Select & Radio Pills */
.resin-pills-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.resin-pill {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.resin-pill:hover, .resin-pill.active {
  background: rgba(0, 229, 255, 0.15);
  border-color: var(--cyan-primary);
  color: #ffffff;
}

/* Calculator Results Display HUD */
.calc-results-hud {
  background: radial-gradient(circle at 50% 0%, #172744 0%, #0d1627 90%);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), var(--cyan-glow);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.hud-header {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.hud-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan-primary);
  font-family: var(--font-mono);
  margin-bottom: 0.25rem;
}

.hud-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hud-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.hud-metric-box {
  background: rgba(5, 7, 11, 0.55);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.hud-metric-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
  margin-bottom: 0.4rem;
}

.hud-metric-val {
  font-size: 1.6rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #ffffff;
}

.hud-metric-val.cyan {
  color: var(--cyan-primary);
}

.hud-metric-val.amber {
  color: var(--amber-gold);
}

.hud-recommendation-box {
  background: rgba(0, 229, 255, 0.08);
  border: 1px dashed var(--border-cyan);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.hud-recommendation-box strong {
  color: var(--cyan-light);
  display: block;
  margin-bottom: 0.25rem;
}

/* ==========================================================================
   Virtual Plant Machinery & Metrology Showcase
   ========================================================================== */
.machinery-filter-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.machinery-filter-btn {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-normal);
}

.machinery-filter-btn:hover, .machinery-filter-btn.active {
  background: var(--cyan-primary);
  color: var(--bg-darkest);
  border-color: var(--cyan-primary);
  font-weight: 700;
}

.machinery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.machine-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.machine-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-cyan);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.machine-img-box {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}

.machine-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-fast);
}

.machine-card:hover .machine-img-box img {
  transform: scale(1.05);
}

.machine-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(5, 7, 11, 0.85);
  border: 1px solid var(--border-cyan);
  color: var(--cyan-primary);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.machine-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.machine-name {
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.machine-origin {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 1.25rem;
}

.machine-specs-table {
  width: 100%;
  font-size: 0.82rem;
  margin-bottom: 1.5rem;
}

.machine-specs-table tr {
  border-bottom: 1px solid var(--border-subtle);
}

.machine-specs-table td {
  padding: 0.5rem 0;
}

.machine-specs-table td.label {
  color: var(--text-muted);
}

.machine-specs-table td.val {
  text-align: right;
  color: #ffffff;
  font-weight: 600;
  font-family: var(--font-mono);
}

/* ==========================================================================
   Global Network Tri-Continental Map
   ========================================================================== */
.global-map-card {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.hub-locations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.hub-card {
  background: rgba(8, 12, 20, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition-normal);
}

.hub-card:hover {
  border-color: var(--border-cyan);
  background: rgba(14, 22, 38, 0.8);
}

.hub-flag {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.hub-region-title {
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.hub-role {
  font-size: 0.8rem;
  color: var(--cyan-primary);
  font-family: var(--font-mono);
  margin-bottom: 1rem;
}

.hub-capabilities {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.hub-contact {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.75rem;
}

/* ==========================================================================
   Interactive RFQ / CAD Upload Modal
   ========================================================================== */
.rfq-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 8, 0.85);
  backdrop-filter: blur(16px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-fast);
}

.rfq-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.rfq-modal-window {
  background: var(--bg-surface);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), var(--cyan-glow);
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 2rem 2.5rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title-group h3 {
  font-size: 1.5rem;
  color: #ffffff;
}

.modal-title-group p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.modal-close-btn {
  color: var(--text-muted);
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
}
.modal-close-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

/* Wizard Stepper Header */
.wizard-steps-bar {
  display: flex;
  padding: 1rem 2.5rem;
  background: rgba(8, 12, 20, 0.6);
  border-bottom: 1px solid var(--border-subtle);
  gap: 1.5rem;
}

.wizard-step-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.wizard-step-item.active {
  color: var(--cyan-primary);
  font-weight: 700;
}

.wizard-step-item.completed {
  color: var(--emerald-clean);
}

.step-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.modal-body {
  padding: 2.5rem;
}

.wizard-step-pane {
  display: none;
}
.wizard-step-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Form Elements inside RFQ */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-control {
  background: rgba(8, 12, 20, 0.8);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.15rem;
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
  font-family: inherit;
  transition: border-color var(--transition-normal);
}

.form-control:focus {
  border-color: var(--cyan-primary);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

/* CAD Dropzone */
.cad-dropzone {
  border: 2px dashed var(--border-cyan);
  background: rgba(0, 229, 255, 0.03);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  margin-bottom: 1.5rem;
}

.cad-dropzone:hover {
  background: rgba(0, 229, 255, 0.08);
  border-color: var(--cyan-light);
}

.cad-dropzone svg {
  width: 48px;
  height: 48px;
  color: var(--cyan-primary);
  margin-bottom: 1rem;
}

.cad-dropzone strong {
  display: block;
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.cad-dropzone p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.nda-notice {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
}

.modal-footer {
  padding: 1.5rem 2.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(8, 12, 20, 0.5);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .mold-explorer-container {
    grid-template-columns: 1fr;
  }
  .explorer-viewport {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
  .calc-grid {
    grid-template-columns: 1fr;
  }
  .machinery-grid {
    grid-template-columns: 1fr;
  }
  .hub-locations-grid {
    grid-template-columns: 1fr;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}
