/* ==========================================================================
   Search Bar Overlay
   ========================================================================== */
.search-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.96);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
}

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

.search-modal-content {
  width: 100%;
  max-width: 750px;
  position: relative;
}

.search-input-field {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 2px solid #ffffff;
  padding: 1.25rem 3rem 1.25rem 0;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #ffffff;
  outline: none;
  font-family: inherit;
}

.search-input-field::placeholder {
  color: #666666;
  font-weight: 400;
}

.search-close-btn {
  position: absolute;
  top: -4rem;
  right: 0;
  color: #ffffff;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.search-close-btn:hover {
  color: var(--brand-blue);
  transform: rotate(90deg);
}

/* ==========================================================================
   Clean World Map & Global Presence (Vasantha Style)
   ========================================================================== */
.worldmap-clean-box {
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}

.map-svg-container {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  display: block;
}

.map-location-dot {
  fill: var(--brand-blue);
  cursor: pointer;
  transition: all 0.2s ease;
}

.map-location-dot:hover {
  transform: scale(1.4);
  filter: drop-shadow(0 0 6px rgba(0, 80, 255, 0.6));
}

.map-pulse-ring {
  fill: none;
  stroke: var(--brand-blue);
  stroke-width: 1.5;
  animation: mapPulse 2s infinite ease-out;
}

@keyframes mapPulse {
  0% { r: 6; opacity: 1; }
  100% { r: 24; opacity: 0; }
}

/* ==========================================================================
   Clean Corporate Engineering Tools (Cavitation Sizing & Mold Explorer)
   ========================================================================== */
.corp-tool-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 3rem;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.04);
}

.tool-grid-2col {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.clean-slider-group {
  margin-bottom: 2rem;
}

.clean-slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.clean-slider-label-row label {
  font-weight: 700;
  color: #1a1a1a;
  font-size: 1.05rem;
}

.clean-slider-val {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--brand-blue);
}

.clean-slider-input {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e5e7eb;
  outline: none;
}

.clean-slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-blue);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 80, 255, 0.4);
  transition: transform 0.15s ease;
}

.clean-slider-input::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.resin-chips-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.resin-chip {
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 50px;
  background: #ffffff;
  color: #374151;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.resin-chip.active, .resin-chip:hover {
  border-color: var(--brand-blue);
  background: var(--brand-blue);
  color: #ffffff;
}

/* Tooling Output Display Box */
.corp-hud-box {
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 2.25rem;
}

.corp-hud-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-blue);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
}

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

.corp-metric-item {
  display: flex;
  flex-direction: column;
}

.corp-metric-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.corp-metric-number {
  font-size: 1.65rem;
  font-weight: 800;
  color: #111827;
  font-family: var(--font-mono);
}

.corp-rec-box {
  background: #ffffff;
  border-left: 3px solid var(--brand-blue);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

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

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

.rfq-window-inner {
  background: #ffffff;
  border-radius: 6px;
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
}

.rfq-modal-header {
  padding: 2rem 2.5rem 1.25rem;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rfq-modal-header h3 {
  font-size: 1.5rem;
  color: #111827;
}

.rfq-form-body {
  padding: 2.25rem;
}

.rfq-clean-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.rfq-clean-input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(0, 80, 255, 0.12);
}

@media (max-width: 900px) {
  .tool-grid-2col {
    grid-template-columns: 1fr;
  }
}
