/* Dark Overlay & Professional Glass */
.modal-backdrop.show {
  background-color: #000;
  /* True black overlay */
  opacity: 0.85 !important;
}

.professional-glass-card {
  background: #1a1a1a !important;
  /* Dark slate background */
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 24px !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

/* Modern Input Styling */
.modern-input {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 12px 15px !important;
  transition: all 0.3s ease;
}

.modern-input:focus {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: #00d2ff !important;
  /* Turquoise accent */
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.15);
  outline: none;
}

.modern-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.border-end-md {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .border-end-md {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
  }
}

/* --- Interactive Map Styles --- */
.map-wrapper {
  position: relative;
  width: 100%;
  height: 450px;
  /* Adjust based on your design */
  overflow: hidden;
}

/* The Blur Overlay */
.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  /* The Glass Effect */
  -webkit-backdrop-filter: blur(8px);
  z-index: 5;
  transition: all 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Remove blur when active class is added */
.map-overlay.active {
  opacity: 0;
  pointer-events: none;
  /* Let clicks pass through to Google Maps */
}

/* Pulse Animation Container */
.pulse-container {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-icon {
  font-size: 2.5rem;
  color: #00d2ff;
  /* Your Turquoise Theme Color */
  z-index: 10;
  position: relative;
}

/* The Pulsing Rings */
.pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(0, 210, 255, 0.4);
  animation: pulse-animation 2s infinite cubic-bezier(0.36, 0.11, 0.89, 0.32);
}

.pulse-ring:nth-child(2) {
  animation-delay: 0.5s;
}

@keyframes pulse-animation {
  0% {
    transform: scale(0.5);
    opacity: 1;
  }

  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

/* Contact Icon Styling */
.contact-icon-box {
  width: 50px;
  height: 50px;
  background: rgba(0, 210, 255, 0.1);
  color: #00d2ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.contact-item:hover .contact-icon-box {
  background: #00d2ff;
  color: #fff;
  transform: translateY(-5px);
}

/* --- Premium Modal Styling --- */

/* 1. The Backdrop (Dark Blur) */
.modal-backdrop.show {
  opacity: 0.8 !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-color: rgba(10, 10, 20, 0.6);
}

/* 2. The Card (Clean White with Deep Shadow) */
.premium-modal-card {
  border: none !important;
  border-radius: 30px !important;
  background: #ffffff;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.3s ease-out;
}

.modal.show .premium-modal-card {
  transform: scale(1);
}

/* 3. The Animated Checkmark (Pure CSS) */
.success-checkmark {
  height: 80px;
  width: 80px;
  margin: 0 auto;
}

.check-icon {
  width: 80px;
  height: 80px;
  position: relative;
  border-radius: 50%;
  box-sizing: content-box;
  border: 4px solid #4caf50;
}

.check-icon::before {
  top: 3px;
  left: -2px;
  width: 30px;
  transform-origin: 100% 50%;
  border-radius: 100px 0 0 100px;
}

.check-icon::after {
  top: 0;
  left: 30px;
  width: 60px;
  transform-origin: 0 50%;
  border-radius: 0 100px 100px 0;
  animation: rotate-circle 4.25s ease-in;
}

.check-icon::before,
.check-icon::after {
  content: "";
  height: 100px;
  position: absolute;
  background: #ffffff;
  /* Must match modal background */
  transform: rotate(-45deg);
}

.icon-line {
  height: 5px;
  background-color: #4caf50;
  display: block;
  border-radius: 2px;
  position: absolute;
  z-index: 10;
}

.icon-line.line-tip {
  top: 46px;
  left: 14px;
  width: 25px;
  transform: rotate(45deg);
  animation: icon-line-tip 0.75s;
}

.icon-line.line-long {
  top: 38px;
  right: 8px;
  width: 47px;
  transform: rotate(-45deg);
  animation: icon-line-long 0.75s;
}

.icon-circle {
  top: -4px;
  left: -4px;
  z-index: 10;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  position: absolute;
  box-sizing: content-box;
  border: 4px solid rgba(76, 175, 80, 0.5);
}

.icon-fix {
  top: 8px;
  width: 5px;
  left: 26px;
  z-index: 1;
  height: 85px;
  position: absolute;
  transform: rotate(-45deg);
  background-color: #ffffff;
}

@keyframes icon-line-tip {
  0% {
    width: 0;
    left: 1px;
    top: 19px;
  }

  54% {
    width: 0;
    left: 1px;
    top: 19px;
  }

  70% {
    width: 50px;
    left: -8px;
    top: 37px;
  }

  84% {
    width: 17px;
    left: 21px;
    top: 48px;
  }

  100% {
    width: 25px;
    left: 14px;
    top: 46px;
  }
}

@keyframes icon-line-long {
  0% {
    width: 0;
    right: 46px;
    top: 54px;
  }

  65% {
    width: 0;
    right: 46px;
    top: 54px;
  }

  84% {
    width: 55px;
    right: 0px;
    top: 35px;
  }

  100% {
    width: 47px;
    right: 8px;
    top: 38px;
  }
}

#messageIcon {
  line-height: 1;
}

/* Smooth fade for the backdrop */
.modal-backdrop {
  background-color: rgba(0, 0, 0, 0.5);
}