/* ==========================================================================
   GLOBAL PRESENCE & TARGET MARKETS STYLESHEET (css/global-presence.css)
   Pixel-perfect design matching client-approved mockup
   ========================================================================== */

/* Container & Wrapper */
.target-markets-section {
  background: #ffffff;
  padding: 60px 0 80px;
  position: relative;
  font-family: inherit;
  color: #1e293b;
}

/* Header Area */
.target-markets-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 40px;
}

.target-markets-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #16a34a;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.target-markets-eyebrow .eyebrow-dash {
  display: inline-block;
  width: 28px;
  height: 2px;
  background: #16a34a;
  border-radius: 2px;
}

.target-markets-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  color: #0f172a;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.target-markets-title span.text-green {
  color: #047857;
}

.target-markets-subtitle {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

/* Top Map Showcase Zone */
.target-markets-showcase {
  display: grid;
  grid-template-columns: 240px 1fr 240px;
  gap: 24px;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 36px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}

/* Left Column: Benefit Badges */
.target-benefits-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.target-benefit-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.target-benefit-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #e0f2fe;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.12);
}

.target-benefit-icon svg {
  width: 22px;
  height: 22px;
  color: #0284c7;
}

.target-benefit-icon.icon-green {
  background: #dcfce7;
}
.target-benefit-icon.icon-green svg {
  color: #16a34a;
}

.target-benefit-icon.icon-navy {
  background: #e0e7ff;
}
.target-benefit-icon.icon-navy svg {
  color: #3730a3;
}

.target-benefit-text h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 3px 0;
  line-height: 1.2;
}

.target-benefit-text p {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0;
  line-height: 1.3;
}

/* Center Column: Interactive World Map */
.target-map-col {
  text-align: center;
  position: relative;
  padding: 0 10px;
}

.target-map-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.target-map-container {
  position: relative;
  width: 100%;
  border-radius: 12px;
  background: radial-gradient(circle at 68% 40%, rgba(224, 242, 254, 0.45) 0%, rgba(248, 250, 252, 0.15) 70%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.target-markets-interactive-map {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 4px 18px rgba(15, 23, 42, 0.03));
}

/* World Continents Background (Never intercepts mouse pointer) */
.map-landmass-layer,
.world-land-path {
  pointer-events: none;
}

/* India Hub */
.map-india-layer {
  cursor: pointer;
  outline: none;
}

.india-country-shape {
  transition: opacity 0.2s ease;
}

.map-india-layer:hover .india-country-shape {
  opacity: 0.95;
}

.india-hub-label {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 800;
  fill: #ffffff;
  letter-spacing: 0.09em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  user-select: none;
}

/* Trade Routes Flowing Animation (Zero Mouse Interception) */
.map-routes-layer,
.map-route-arc,
.route-cargo-orb {
  pointer-events: none;
}

@keyframes flowDash {
  to {
    stroke-dashoffset: -36;
  }
}

.map-route-arc {
  stroke-dasharray: 6 3;
  animation: flowDash 1.4s linear infinite;
}

/* Destination Market Nodes (Rock-Solid, Zero Geometry Resizing, No Flicker) */
.map-destination-node {
  cursor: pointer;
  outline: none;
  /* NO transform: scale here to guarantee zero layout flicker */
}

.map-destination-node .pin-dot-core {
  transition: fill 0.2s ease, stroke 0.2s ease;
}

.map-destination-node:hover .pin-dot-core {
  fill: #15803d;
}

.market-node-text {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 800;
  fill: #0f172a;
  letter-spacing: -0.01em;
  paint-order: stroke fill;
  stroke: #ffffff;
  stroke-width: 3px;
  stroke-linejoin: round;
  transition: fill 0.2s ease;
  user-select: none;
  cursor: pointer;
}

.map-destination-node:hover .market-node-text {
  fill: #15803d;
}

/* Radar Pulse Animations (Never intercepts mouse pointer) */
@keyframes radarPulse {
  0% {
    r: 6px;
    opacity: 0.95;
    stroke-width: 1.8px;
  }
  100% {
    r: 20px;
    opacity: 0;
    stroke-width: 0.5px;
  }
}

.market-pulse-ring,
.hub-pulse-ring {
  animation: radarPulse 2.4s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  transform-origin: center;
  pointer-events: none;
}

/* Highlight Card Pulse when Node Clicked */
@keyframes cardFlash {
  0%, 100% {
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
    border-color: #e2e8f0;
  }
  30%, 70% {
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.35), 0 12px 30px rgba(22, 163, 74, 0.18);
    border-color: #16a34a;
    transform: translateY(-4px);
  }
}

.market-card.highlight-pulse {
  animation: cardFlash 1.8s ease-in-out;
}

/* Right Column: Slogan Branding */
.target-slogan-col {
  text-align: right;
  padding-left: 12px;
  border-left: 1px solid #e2e8f0;
}

.target-slogan-headline {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.2;
  color: #0f172a;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.target-slogan-headline span.green-line {
  color: #16a34a;
  display: block;
}

.target-slogan-sub {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
  border-top: 2px solid #e2e8f0;
  padding-top: 14px;
  display: inline-block;
}

/* ==========================================================================
   6 Target Market Cards Grid
   ========================================================================== */
.target-market-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 36px;
}

.market-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  display: flex;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.market-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.09);
  border-color: #cbd5e1;
}

/* Left Image Container */
.market-card-img-wrap {
  width: 108px;
  min-width: 108px;
  background: #f1f5f9;
  position: relative;
  overflow: hidden;
}

.market-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.market-card:hover .market-card-img-wrap img {
  transform: scale(1.06);
}

/* Right Content Area */
.market-card-content {
  flex: 1;
  padding: 16px 18px 16px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Flags Row */
.market-flags-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.flag-roundel {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.8);
  overflow: hidden;
  line-height: 1;
  background: #f8fafc;
}

.flag-roundel svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Card Titles & Text */
.market-card-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
  margin: 0 0 4px 0;
  text-transform: uppercase;
}

.market-card-desc {
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.35;
  margin: 0 0 10px 0;
}

/* Checklist Items */
.market-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 14px 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.market-checklist li {
  font-size: 0.77rem;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.25;
}

.market-checklist li .check-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #16a34a;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  flex-shrink: 0;
}

/* Explore Opportunities Button */
.btn-explore-opp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #ffffff;
  border: 1.5px solid #0284c7;
  color: #0284c7;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  width: fit-content;
}

.btn-explore-opp:hover {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.25);
  transform: translateX(2px);
}

.btn-explore-opp.btn-green {
  border-color: #16a34a;
  color: #16a34a;
}

.btn-explore-opp.btn-green:hover {
  background: #16a34a;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(22, 163, 74, 0.25);
}

/* Bottom Regulatory Note & Decorative Bar */
.target-markets-footer-note {
  text-align: center;
  margin-top: 10px;
}

.target-markets-footer-note p {
  font-size: 0.81rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 10px 0;
}

.target-markets-accent-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
}

.target-markets-accent-bar .bar-green {
  width: 32px;
  height: 3px;
  background: #16a34a;
  border-radius: 2px;
}

.target-markets-accent-bar .bar-blue {
  width: 32px;
  height: 3px;
  background: #0284c7;
  border-radius: 2px;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1080px) {
  .target-market-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .target-markets-showcase {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }
  .target-benefits-col {
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
  }
  .target-slogan-col {
    text-align: center;
    border-left: none;
    border-top: 1px solid #e2e8f0;
    padding-top: 18px;
    padding-left: 0;
  }
}

@media (max-width: 768px) {
  .target-markets-title {
    font-size: 2.1rem;
  }
  .target-market-cards-grid {
    grid-template-columns: 1fr;
  }
  .target-benefits-col {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   Interactive RFQ Modal for Target Markets
   ========================================================================== */
.rfq-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
}

.rfq-modal.open {
  display: flex !important;
}

.rfq-backdrop {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(15, 23, 42, 0.68) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  cursor: pointer !important;
}

.rfq-dialog {
  position: relative !important;
  background: #ffffff !important;
  border-radius: 16px !important;
  max-width: 520px !important;
  width: 100% !important;
  padding: 32px 28px !important;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25) !important;
  z-index: 2 !important;
  animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
  text-align: left !important;
}

@keyframes modalScaleIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.rfq-close {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  background: #f1f5f9 !important;
  border: none !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #64748b !important;
  cursor: pointer !important;
  font-size: 1.3rem !important;
  line-height: 1 !important;
  transition: all 0.2s ease !important;
}

.rfq-close:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

.rfq-header {
  margin-bottom: 20px !important;
}

.rfq-badge {
  display: inline-block !important;
  background: #dcfce7 !important;
  color: #15803d !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  padding: 4px 10px !important;
  border-radius: 9999px !important;
  letter-spacing: 0.06em !important;
  margin-bottom: 10px !important;
}

.rfq-header h3 {
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 0 6px 0 !important;
  line-height: 1.25 !important;
}

.rfq-header p {
  font-size: 0.85rem !important;
  color: #64748b !important;
  margin: 0 !important;
}

.rfq-form .form-group {
  margin-bottom: 14px !important;
}

.rfq-form .form-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
}

@media (max-width: 540px) {
  .rfq-form .form-row {
    grid-template-columns: 1fr !important;
  }
}

.rfq-form label {
  display: block !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: #334155 !important;
  margin-bottom: 6px !important;
}

.rfq-form .form-input {
  width: 100% !important;
  padding: 10px 14px !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 8px !important;
  font-size: 0.88rem !important;
  color: #0f172a !important;
  background: #ffffff !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
  box-sizing: border-box !important;
}

.rfq-form .form-input:focus {
  outline: none !important;
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
}

.rfq-actions {
  margin-top: 20px !important;
}
