/* Contact Page Styling - Fully Responsive Location Markers */

/* Base styles and Header */
.page-header {
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa;
    padding-top: 2.5rem;
    padding-bottom: 0;
}

.w-99 {
    width: 99%;
  }

input{
    padding: 0.75rem .75rem !important;
}

.custom-textarea{
    padding: 32px 0px !important;
}


.parent-div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding:0 8rem;
    margin-bottom: 50px;
    width: 100%;
}

.contact-title {
    font-size: 1.7rem;
    border-bottom: 1px solid black;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    font-weight: 700;
    padding-top: 41px;
}

.contact-container {
    background-color: #cbe9e9;
    padding: 3rem 0;
}

/* World Map and Location Markers */
.header-img {
    position: relative;
    display: flex;
    justify-content: center; 
    align-items: center; 
    width: 100%;  
    max-height: 450px;
    margin: 0 auto;
}
  
.header-img img {
    display: block; 
    max-width: 100%; 
    height: auto;
    max-height: 424px;
    object-fit: contain;
} 



.map-container {
    position: relative;
    width: 1000px;
    height: 600px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
  }

  .map-image {
    width: 100%;
    height: 100%;
    background: url('world-map.png') no-repeat center;
    background-size: cover;
    position: relative;
  }

  /* Hotspot markers */
  .hotspot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.6);
    z-index: 10;
    cursor: pointer;
    animation: hotspotInitial 6s ease-in-out infinite;
  }

  @keyframes hotspotInitial {
    0%, 10% {
      transform: translate(-50%, -50%) scale(1.2);
      box-shadow: 0 0 25px rgba(255, 107, 107, 0.8);
    }
    15%, 100% {
      transform: translate(-50%, -50%) scale(1);
      box-shadow: 0 0 15px rgba(255, 107, 107, 0.5);
    }
  }

  /* L-Shape Connectors */
  .l-shape {
    position: absolute;
    z-index: 5;
  }

  .l-vertical, .l-horizontal {
    background: rgba(0, 150, 200, 0.1);
    border: 1px solid rgba(0, 150, 200, 0.3);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
  }

  .l-vertical {
    width: 4px;
    height: 60px;
  }

  .l-horizontal {
    width: 80px;
    height: 4px;
    position: absolute;
    top: 56px;
  }

  /* Water flow effect - fills the pipes progressively */
  .l-vertical::before, .l-horizontal::before {
    content: '';
    position: absolute;
    background: linear-gradient(180deg, #00d4ff 0%, #0099cc 50%, #006699 100%);
    border-radius: 1px;
    box-shadow: 
      inset 0 0 10px rgba(255, 255, 255, 0.3),
      0 0 10px rgba(0, 212, 255, 0.5);
  }

  /* Vertical pipe fill animation */
  .l-vertical::before {
    width: 100%;
    height: 0%;
    bottom: 0;
    animation: fillVertical 2s ease-out forwards;
  }

  /* Horizontal pipe fill animation */
  .l-horizontal::before {
    width: 0%;
    height: 100%;
    right: 0;
    animation: fillHorizontal 2s ease-out 2s forwards;
  }

  /* Water flow particles for continuous effect */
  .l-vertical::after, .l-horizontal::after {
    content: '';
    position: absolute;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(0, 212, 255, 0.6) 70%, transparent 100%);
    border-radius: 50%;
    opacity: 0;
  }

  .l-vertical::after {
    width: 6px;
    height: 6px;
    left: -1px;
    animation: flowParticleVertical 1.5s ease-in-out 4.5s infinite;
  }

  .l-horizontal::after {
    width: 6px;
    height: 6px;
    top: -1px;
    animation: flowParticleHorizontal 1.5s ease-in-out 4.5s infinite;
  }

  /* Pipe filling animations */
  @keyframes fillVertical {
    0% {
      height: 0%;
      box-shadow: 
        inset 0 0 10px rgba(255, 255, 255, 0.3),
        0 0 5px rgba(0, 212, 255, 0.3);
    }
    100% {
      height: 100%;
      box-shadow: 
        inset 0 0 10px rgba(255, 255, 255, 0.3),
        0 0 15px rgba(0, 212, 255, 0.7);
    }
  }

  @keyframes fillHorizontal {
    0% {
      width: 0%;
      box-shadow: 
        inset 0 0 10px rgba(255, 255, 255, 0.3),
        0 0 5px rgba(0, 212, 255, 0.3);
    }
    100% {
      width: 100%;
      box-shadow: 
        inset 0 0 10px rgba(255, 255, 255, 0.3),
        0 0 15px rgba(0, 212, 255, 0.7);
    }
  }

  /* Continuous water flow particles */
  @keyframes flowParticleVertical {
    0% {
      bottom: -6px;
      opacity: 0;
    }
    20% {
      opacity: 1;
    }
    80% {
      opacity: 1;
    }
    100% {
      top: -6px;
      opacity: 0;
    }
  }

  @keyframes flowParticleHorizontal {
    0% {
      right: -6px;
      opacity: 0;
    }
    20% {
      opacity: 1;
    }
    80% {
      opacity: 1;
    }
    100% {
      right: 86px;
      opacity: 0;
    }
  }

  /* Location-specific positioning - precise alignment */
  .pune-marker {
    top: 54%;
    left: 69%;
  }

  .pune-l-shape {
    top: calc(55% - 62px);
    left: calc(72% - 29px);
  }

  .pune-l-shape .l-horizontal {
      left: -77px;
      top: 0px;
  }

  .haryana-marker {
    top: 207px;
    right: 258px;
  }

  .haryana-l-shape {
    top: calc(45% - 48px);
    left: calc(77% - 68px);
  }

  .haryana-l-shape .l-horizontal {
    left: 0px;
    top: 1px;

  }

  /* Popup labels */
  .popup {
  position: absolute;
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: popupSequence 6s ease-in-out forwards; /* Removed infinite */
  animation-delay: 0s; /* Optional: can delay it if needed */
}


  @keyframes popupSequence {
    0%, 66% {
      opacity: 0;
      transform: scale(0.8);
      box-shadow: none;
    }
    70% {
      opacity: 1;
      transform: scale(1.1);
      box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
    }
    75%, 100% {
      opacity: 1;
      transform: scale(1);
      box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
    }
  }

  .pune-popup {
    top: calc(55% - 32px - 49px);
    left: calc(72% + -316px);
  }

  .haryana-popup {
    top: calc(45% - 55px - 12px);
    left: calc(77% - -9px);
  }

  /* Hover effects */
  .hotspot:hover {
    animation: none;
    transform: translate(-50%, -50%) scale(1.5);
    transition: transform 0.3s ease;
  }

  .popup:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
  }

  /* Responsive adjustments */
  @media (max-width: 1100px) {
    .map-container {
      width: 90vw;
      height: 54vw;
      max-height: 600px;
    }
  }




/* ------------------------------------- */
/* Map and Title Section */
.map-container {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: 1.5rem;
}

.map-container iframe {
    height: 100%;
    width: 100%;
    border: 0;
}

.map-title {
    margin-bottom: 2rem;
}

.map-title h1 {
    color: #0039a6;
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.map-title h1 span {
    color: #4edf4e;
}

.map-title h1 p {
    color: #0039a6;
    font-size: 3.5rem;
    margin: 0;
    line-height: 1.1;
}

/* Contact Form Styling */
.contact-form-wrapper {
    padding: 2rem 1rem;
    height: 100%;
}

.form-group {
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
    color: #333;
}

.form-control {
    border-radius: 8px;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    width: 100%;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #0039a6;
    box-shadow: 0 0 0 0.2rem rgba(0, 57, 166, 0.25);
    outline: none;
}

textarea.form-control {
    min-height: 120px;
    resize: none;
}

.error {
    color: #d90429;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

#SUCCESS {
    margin-bottom: 1.5rem;
}

.map-top {
    /* padding-top: 35px; */
    margin: 29px 0px !important;
}

/* Button Styling */
#btn {
    position: relative;
    width: 197px;
    height: 50px;
    border: 0;
    outline: none;
    background: #0039a6;
    color: #fff;
    font-size: 18px;
    border-radius: 40px;
    text-align: center;
    box-shadow: 0 6px 20px -5px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    cursor: pointer;
    margin: 20px 0;
    transition: all 0.3s ease;
}

#btn:hover {
    background: #002d80;
    transform: translateY(-2px);
}

#btn .checked {
    width: 50px;
    height: 50px;
    border-radius: 40px;
    box-shadow: 0 0 12px -2px rgba(0, 0, 0, 0.2);
    position: absolute;
    top: 0;
    right: -40px;
    opacity: 0;
    background: #070c6a;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s ease;
}

#btnText {
    margin: 0;
    transition: all 0.3s ease;
}

#btn .checked svg {
    width: 30px;
    margin: 0;
}

#btn .checked path {
    stroke-width: 3;
    stroke: #fff;
    stroke-dasharray: 34;
    stroke-dashoffset: 34;
    stroke-linecap: round;
}

#btn.active {
    background: #060f73;
    transition: 0.6s;
}

#btn.active p {
    transition: 0.6s;
    margin-right: 40px;
}

#btn.active .checked {
    opacity: 1;
    transition: 0.6s;
    right: 0;
}

#btn.active .checked path {
    transition: 0.6s;
    transition-delay: 0.6s;
    stroke-dashoffset: 0;
}

/* RESPONSIVE BREAKPOINTS WITH OPTIMIZED LOCATION MARKERS */

/* Extra Large Screens (1400px and up) */
@media (min-width: 1400px) {
    .pune-location {
        top: 39%;
        left: 57%;
    }
    
    .gurugaon-location {
        top: 38%;
        left: 64%;
    }
    
    .pune-location img,
    .gurugaon-location img {
        width: 100px;
        max-height: 70px;
    }
}

/* Large devices (laptops/desktops, 1200px to 1399px) */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .contact-form-wrapper {
        padding: 2rem 2rem 2rem 0;
    }
    
    .map-container {
        height: 280px;
    }
    
    .map-title h1 {
        font-size: 3rem;
    }
    
    .map-title h1 p {
        font-size: 4rem;
    }
    
    .pune-location {
        top: 39%;
        left: 57%;
    }
    
    .gurugaon-location {
        top: 38%;
        left: 64%;
    }
    
    .pune-location img,
    .gurugaon-location img {
        width: 90px;
        max-height: 60px;
    }
}

/* Medium-Large devices (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .pune-location {
        top: 40%;
        left: 56%;
    }
    
    .gurugaon-location {
        top: 39%;
        left: 63%;
    }
    
    .pune-location img,
    .gurugaon-location img {
        width: 80px;
        max-height: 55px;
    }
}

/* Medium devices (tablets, 768px to 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .page-header {
        padding-top: 4.5rem;
    }
    
    .parent-div {
        padding: 0 1rem;
    }
    
    .header-img {
        max-width: 90%;
        margin: 0 auto;
    }
    
    .map-title h1 {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .map-title h1 p {
        font-size: 3.25rem;
    }
    
    .contact-form-wrapper {
        padding: 2rem;
    }
    

    
    .map-container {
        margin: 0 auto;
        max-width: 90%;
    }
}

/* Small-Medium tablets (576px to 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .page-header {
        padding-top: 4rem;
    }
    
    .contact-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .header-img img {
        max-height: 300px;
    }
    
    .map-title h1 {
        font-size: 2.25rem;
    }
    
    .map-title h1 p {
        font-size: 2.75rem;
    }
    

    
    #btn {
        width: 180px;
        height: 48px;
        font-size: 16px;
    }
}

/* Large Mobile devices (480px to 575px) */
@media (min-width: 480px) and (max-width: 575.98px) {
    .page-header {
        padding-top: 3.5rem;
    }
    
    .parent-div {
        padding: 0 0.5rem;
        margin-bottom: 30px;
    }
    
    .contact-title {
        font-size: 1.75rem;
        margin-left: 1rem;
        margin-right: 1rem;
    }
    
    .header-img {
        max-width: 100%;
    }
    
    .header-img img {
        max-height: 280px;
    }
    
    .map-title h1 {
        font-size: 1.9rem;
    }
    
    .map-title h1 p {
        font-size: 2.4rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem 1rem;
    }
    

    
    .map-container {
        height: 250px;
        max-width: 100%;
    }
    
    #btn {
        width: 160px;
        height: 45px;
        font-size: 15px;
        margin: 15px 0;
    }
    
    #btn .checked {
        width: 45px;
        height: 45px;
    }
}

/* Standard Mobile devices (375px to 479px) */
@media (min-width: 375px) and (max-width: 479.98px) {
    .header-img img {
        max-height: 250px;
    }
    
    .map-title h1 {
        font-size: 1.75rem;
    }
    
    .map-title h1 p {
        font-size: 2.2rem;
    }
    

    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-control {
        padding: 0.6rem;
    }
}

/* Small Mobile devices (320px to 374px) */
@media (min-width: 320px) and (max-width: 374.98px) {
    .map-title h1 {
        font-size: 1.6rem;
    }
    
    .map-title h1 p {
        font-size: 2rem;
    }
    
    .header-img img {
        max-height: 220px;
    }
    

    
    #btn {
        width: 140px;
        height: 42px;
        font-size: 14px;
    }
    
    #btn .checked {
        width: 42px;
        height: 42px;
    }
}

/* Extra Small Mobile devices (less than 320px) */
@media (max-width: 319.98px) {
    .map-title h1 {
        font-size: 1.4rem;
    }
    
    .map-title h1 p {
        font-size: 1.8rem;
    }
    
    .header-img img {
        max-height: 200px;
    }
    

    
    #btn {
        width: 120px;
        height: 40px;
        font-size: 13px;
    }
    
    #btn .checked {
        width: 40px;
        height: 40px;
    }
    
    .contact-form-wrapper {
        padding: 1rem 0.5rem;
    }
}






