/* =========================================================
   MEDELEC - ULTRA-PREMIUM CONTACT PORTAL STYLING (PHASE V7.0)
   ========================================================= */

/* --- REDESIGNED TECHNICAL BLUEPRINT HERO --- */
.contact-hero {
  position: relative;
  background: linear-gradient(135deg, #020c1b 0%, #06233c 60%, #0b5e92 100%) !important;
  padding: clamp(100px, 14vw, 140px) 0 clamp(60px, 8vw, 100px) !important;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Blueprint Grid Mesh */
.contact-hero .hero-grid-mesh {
  display: none !important;
}

.contact-hero .hero-content-inner {
  position: relative;
  z-index: 3;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.contact-hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #3885af;
  padding: 6px 14px;
  border-radius: 99px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}

.contact-hero .badge-icon {
  color: #3885af;
}

.contact-hero .hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.contact-hero .hero-title .gold-dot {
  color: #facc15; /* High-tech gold-yellow dot */
}

.contact-hero .hero-subtitle {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto;
  font-weight: 400;
}

/* --- DOUBLE COLUMN B2B WORKSPACE --- */
.contact-workspace {
  background: #f8fafc;
  padding: 90px 0;
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.85fr;
  gap: 40px;
  align-items: start;
}

/* Glassmorphic Panels Styling */
.glass-panel {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(11, 94, 146, 0.08) !important;
  border-radius: 24px;
  padding: 50px 40px;
  box-shadow: 0 30px 70px rgba(2, 28, 56, 0.04) !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

/* Glassmorphic Panel HUD Corner Brackets */
.glass-panel::before,
.glass-panel::after {
  content: "" !important;
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: rgba(250, 204, 21, 0) !important; /* Invisible by default */
  border-style: solid !important;
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
  z-index: 5;
}

/* Top-Left Bracket */
.glass-panel::before {
  top: 24px;
  left: 24px;
  border-width: 2px 0 0 2px !important;
}

/* Bottom-Right Bracket */
.glass-panel::after {
  bottom: 24px;
  right: 24px;
  border-width: 0 2px 2px 0 !important;
}

/* Snapping tech HUD corners on hover */
.glass-panel:hover::before {
  top: 14px;
  left: 14px;
  border-color: #facc15 !important;
  filter: drop-shadow(0 0 4px rgba(250, 204, 21, 0.6)) !important;
}

.glass-panel:hover::after {
  bottom: 14px;
  right: 14px;
  border-color: #facc15 !important;
  filter: drop-shadow(0 0 4px rgba(250, 204, 21, 0.6)) !important;
}

.glass-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 40px 90px rgba(2, 28, 56, 0.08) !important;
}

.panel-header {
  margin-bottom: 36px;
  border-bottom: 1px solid rgba(11, 94, 146, 0.06);
  padding-bottom: 24px;
}

.panel-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #032542;
  margin-bottom: 8px;
}

.panel-header p {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.5;
}

/* Left Column: Interactive Coordinates */
.info-items-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(11, 94, 146, 0.04);
  border-radius: 16px;
  padding: 18px 20px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.info-item:hover {
  background: #ffffff;
  border-color: rgba(11, 94, 146, 0.15);
  transform: translateX(6px);
  box-shadow: 0 10px 25px rgba(11, 94, 146, 0.05);
}

.info-item .icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(11, 94, 146, 0.05);
  color: #0b5e92;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.info-item:hover .icon-box {
  background: #0b5e92;
  color: #ffffff;
}

.info-item .info-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-item .info-content .label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94a3b8;
}

.info-item .info-content .value {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  color: #032542;
  transition: color 0.3s ease;
}

.info-item:hover .info-content .value {
  color: #0b5e92;
}

.info-item .action-arrow {
  color: #cbd5e1;
  font-size: 12px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.info-item:hover .action-arrow {
  color: #0b5e92;
  transform: translateX(4px);
}

/* Expert Badges Area */
.expert-badges-section h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #032542;
  margin-bottom: 16px;
}

.badges-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-badge {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid rgba(11, 94, 146, 0.08);
  padding: 8px 14px;
  border-radius: 8px;
  color: #0b5e92;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

/* Right Column: B2B Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-form .form-group {
  position: relative;
}

.contact-form .form-group input,
.contact-form .form-group textarea,
.contact-form .form-group select {
  width: 100%;
  padding: 16px 4px 10px;
  border: none;
  border-bottom: 2px solid #e2e8f0;
  background: transparent;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #032542;
  outline: none;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

/* Floating Label Animation */
.contact-form .form-group label {
  position: absolute;
  left: 4px;
  top: 16px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  color: #94a3b8;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-form .form-group input:focus ~ label,
.contact-form .form-group input:valid ~ label,
.contact-form .form-group textarea:focus ~ label,
.contact-form .form-group textarea:valid ~ label,
.contact-form .form-group select:focus ~ label,
.contact-form .form-group select:valid ~ label {
  top: -12px;
  font-size: 11px;
  font-weight: 700;
  color: #0b5e92;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Custom animated bottom line on focus */
.contact-form .focus-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #0b5e92, #3885af);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-form .form-group input:focus ~ .focus-line,
.contact-form .form-group textarea:focus ~ .focus-line,
.contact-form .form-group select:focus ~ .focus-line {
  transform: scaleX(1);
}

/* Dropdown specifics */
.contact-form .select-group select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.contact-form .select-group::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 12px;
  color: #94a3b8;
  position: absolute;
  right: 8px;
  top: 20px;
  pointer-events: none;
  transition: transform 0.3s ease;
}

.contact-form .select-group:focus-within::after {
  transform: rotate(180deg);
}

.contact-form textarea {
  resize: none;
  min-height: 118px !important;
}

.contact-form .form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
}

.contact-form .privacy-notice {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
  max-width: 440px;
}

/* High-End B2B Submit Button */
.contact-form .submit-btn {
  background: linear-gradient(135deg, #0b5e92 0%, #064577 100%) !important;
  color: #ffffff !important;
  padding: 16px 36px;
  border-radius: 99px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 25px rgba(11, 94, 146, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.contact-form .submit-btn:hover {
  background: linear-gradient(135deg, #3885af 0%, #0b5e92 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(11, 94, 146, 0.35);
}

.contact-form .submit-btn:active {
  transform: translateY(-0.5px);
}

.contact-form .submit-btn i {
  transition: transform 0.3s ease;
}

.contact-form .submit-btn:hover i {
  transform: translateX(4px);
}

/* Visual error styles for field feedback */
.contact-form .form-group.error input,
.contact-form .form-group.error textarea {
  border-bottom-color: #ef4444 !important;
}

.contact-form .form-group.error label {
  color: #ef4444 !important;
}

/* --- ARCHITECTURAL FLOATING MAP CARD --- */
.map-wrapper-section {
  background: #f8fafc;
  padding: 0 0 100px;
}

.map-card-wrapper {
  background: #ffffff;
  border: 1px solid rgba(11, 94, 146, 0.06);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(2, 28, 56, 0.05);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.map-card-wrapper:hover {
  transform: translateY(-2px);
}

.map-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 36px;
  border-bottom: 1px solid rgba(11, 94, 146, 0.05);
}

.map-title-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.map-title-box h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #032542;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #053cc7; /* High-tech industrial gold-yellow pin */
  box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.65);
  animation: pulsePin 1.8s infinite;
}

@keyframes pulsePin {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(250, 204, 21, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(250, 204, 21, 0);
  }
}

.map-link-btn {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #0b5e92;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease;
}

.map-link-btn:hover {
  color: #3885af;
}

.map-iframe-container {
  width: 100%;
  line-height: 0;
}

.map-iframe-container iframe {
  display: block;
}

/* --- RESPONSIVE GRIDS & ADAPTATIONS --- */
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .glass-panel {
    padding: 40px 30px;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    padding: 120px 0 80px !important;
  }

  .contact-form .form-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contact-form .form-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    text-align: center;
  }
  
  .contact-form .privacy-notice {
    max-width: 100%;
    order: 2;
  }

  .contact-form .submit-btn {
    order: 1;
    width: 100%;
    justify-content: center;
  }

  .map-card-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    padding: 20px 24px;
  }
}

/* =========================================================
   DEFENSIVE OVERRIDES (SPA / ROUTER STYLESHEET LEAK PROOFING)
   Guarantees that other pages' stylesheets (like home_optimized.css)
   cannot pollute the contact page's pristine B2B design.
   ========================================================= */

/* Explicitly force the gold dot in h1 to display inline and prevent wrapping */
.contact-hero .hero-title .gold-dot {
  display: inline !important;
  color: #facc15 !important;
  text-shadow: 0 0 15px rgba(250, 204, 21, 0.85) !important;
  -webkit-text-fill-color: #facc15 !important;
  transform: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Explicitly disable any pseudo-elements leaking onto our hero subtitle */
.contact-hero .hero-subtitle::before,
.contact-hero .hero-subtitle::after {
  display: none !important;
  content: none !important;
}
