.contact-hero {
  width: 100%;
  height: 800px;
  position: relative;
  background:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("../assets/images/contact_us/contact_hero.webp") center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    113deg,
    rgba(0, 0, 0, 0.6) 9.56%,
    rgba(0, 0, 0, 0.2) 89%
  );
  z-index: 1;
}

.page-spacing {
  height: 120px;
  width: 100%;
}

.contact-form-section {
  width: 1424px;
  height: 655px;
  margin: -100px auto 100px;
  background: #fff;
  padding: 80px 100px;
  border: 1px solid rgba(31, 33, 94, 0.25);
  box-shadow: 20px 24px 60px 0px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 20;
  box-sizing: border-box;
  border-radius: 8px;
}

.form-title {
  color: #131d45;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
  font-family: "Merriweather", serif;
  font-size: 30px;
  font-weight: 700;
  line-height: normal;
  margin-bottom: 48px;
  text-align: left;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px 83px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: span 2;
  margin-top: 5px;
}

.form-group input,
.form-group select {
  width: 600px;
  height: 55px;
  padding: 0 20px;
  border: 1px solid #d6d6d6;
  background: #fff;
  box-shadow: 4px 4px 13px 0 rgba(221, 220, 220, 0.329);
  font-family: "Merriweather", serif;
  font-size: 16px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23212121' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 24px 24px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #212121;
}

.form-group textarea {
  width: 1283px;
  height: 160px;
  padding: 20px;
  border: 1px solid #d6d6d6;
  box-shadow: 4px 4px 13px 0 rgba(221, 220, 220, 0.555);

  background: #fff;
  font-family: "Merriweather", serif;
  font-size: 16px;
  outline: none;
  box-sizing: border-box;
  resize: none;
  transition: border-color 0.3s ease;
}

.form-group input::placeholder,
.form-group select,
.form-group textarea::placeholder {
  color: #212121;
  opacity: 1;
}

.submit-btn {
  grid-column: span 2;
  justify-self: start;
  background: #212121;
  color: #fff;
  width: 218px;
  height: 52px;
  border-radius: 999px;
  border: none;
  font-family: "Merriweather", serif;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: 25px;
}

.submit-btn:hover {
  background: #333;
}

.submit-btn:disabled {
  background: #666;
  cursor: not-allowed;
  opacity: 0.8;
}

.submit-btn.submitting {
  position: relative;
  color: transparent !important;
}

.submit-btn.submitting::after {
  content: "Sending...";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-family: "Merriweather", serif;
}

.locations-section {
  width: 1424px;
  margin: 0 auto 100px;
}

.location-group-title {
  color: #131d45;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 40px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 32px;
  line-height: normal;
}

.location-cards-grid {
  display: flex;
  gap: 36px;
  margin-bottom: 70px;
}

.location-card {
  width: 694px;
  height: 312px;
  background: #fff;
  padding: 40px;
  border: 1px solid rgba(81, 80, 80, 0.25);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-sizing: border-box;
}

.location-card h3 {
  color: #212121;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 40px;
  font-weight: 700;
  margin: 0;
  line-height: normal;
}

.location-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.location-info-item img {
  width: 26.566px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) saturate(100%);
}

.location-info-item p,
.location-info-item a {
  color: #5c5c5c;
  font-family: "Merriweather", serif;
  font-size: 18px;
  line-height: 28px;
  margin: 0;
  text-decoration: none;
}

.locations-row {
  display: flex;
  gap: 36px;
}

.locations-column {
  flex: 1;
}

.location-card.single-card {
  width: 100%;
}

.map-section {
  width: 100%;
  max-width: 1398px;
  margin: 100px auto;
  position: relative;
  text-align: center;
  padding: 0 20px;
  box-sizing: border-box;
}

.map-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.world-map-img {
  width: 100%;
  height: auto;
  opacity: 0.8;
  display: block;
}

.map-marker {
  position: absolute;
  width: 0;
  height: 0;
  z-index: 5;
  cursor: pointer;
}

.marker-dot {
  width: 12px;
  height: 12px;
  background: #ef4444;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.marker-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: inherit;
  border-radius: 50%;
  animation: pulse 2s infinite;
  z-index: -1;
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(3.5);
    opacity: 0;
  }
}

.marker-label {
  color: #212121;
  font-family: "Merriweather", serif;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 1;
  visibility: visible;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.95);
  padding: 4px 10px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
}

.map-marker:hover .marker-label {
  transform: translateX(-50%) translateY(-3px) scale(1.05);
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.map-marker.highlight .marker-dot {
  transform: scale(1.3);
}

.map-marker.highlight .marker-dot::after {
  animation-duration: 1s;
}

.marker-mumbai {
  top: 54.5%;
  left: 67.8%;
}

.marker-lucknow {
  top: 50.5%;
  left: 70.2%;
}

.marker-hongkong {
  top: 52.5%;
  left: 78.8%;
}

.marker-newyork {
  top: 40%;
  left: 26.8%;
}

.marker-mumbai .marker-label {
  bottom: auto;
  top: 15px;
  transform: translateX(-50%);
}

.marker-lucknow .marker-label {
  bottom: 15px;
  transform: translateX(-50%);
}

.marker-mumbai:hover .marker-label {
  transform: translateX(-50%) translateY(3px) scale(1.05);
}

.marker-lucknow:hover .marker-label {
  transform: translateX(-50%) translateY(-3px) scale(1.05);
}

.marker-hongkong .marker-label {
  bottom: auto;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
}

.marker-hongkong:hover .marker-label {
  transform: translateY(-50%) translateX(3px) scale(1.05);
}

.contact-main {
  width: 100%;
  padding: 218px 0px 0px 0px;
  background-color: #fff;
}

.contact-container {
  width: 1398px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.contact-cards-grid {
  display: flex;
  gap: 60px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-info-card {
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  width: 450px;
}

.contact-info-card h3 {
  font-family: "Source Sans Pro";
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #212121;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-info-item span,
.contact-info-item a {
  font-family: "Merriweather";
  font-size: 16px;
  color: #515050;
  text-decoration: none;
}

.offices-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: "Merriweather";
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #515050;
  font-size: 16px;
}

@media (max-width: 1440px) {
  .locations-section,
  .contact-form-section,
  .map-section {
    width: 90% !important;
    max-width: 1398px;
  }

  .hero-content {
    width: 100% !important;
    padding-left: 60px;
    padding-right: 60px;
  }

  .form-group input,
  .form-group select {
    width: 100%;
  }

  .form-group textarea {
    width: 100%;
  }

  .location-card {
    width: 48%;
  }
}

@media (max-width: 1024px) {
  .hero-content {
    padding-left: 40px;
    padding-right: 40px;
  }

  .hero-title {
    font-size: 48px;
  }

  .hero-floating-img {
    width: 300px;
    height: 220px;
    bottom: -60px;
  }

  .contact-form-section {
    padding: 60px 40px;
    margin-top: -60px;
    height: auto;
  }

  .contact-form {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .form-group.full-width {
    grid-column: span 1;
  }

  .submit-btn {
    grid-column: span 1;
  }

  .location-cards-grid {
    flex-direction: column;
    gap: 20px;
  }

  .location-card {
    width: 100%;
    height: auto;
  }

  .locations-row {
    flex-direction: column;
    gap: 20px;
  }

  .location-group-title {
    font-size: 32px;
  }

  .location-card h3 {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .page-spacing {
    height: 60px;
  }

  .contact-main {
    padding-top: 100px;
  }

  .contact-form-section {
    width: 95% !important;
    padding: 40px 20px;
    margin-top: -80px;
  }

  .hero-content {
    padding-left: 20px;
    padding-right: 20px;
    justify-content: center;
    text-align: center;
  }

  .form-title {
    font-size: 22px;
    margin-bottom: 30px;
    text-align: center;
  }

  .location-group-title {
    font-size: 26px;
    text-align: center;
  }

  .location-card {
    padding: 24px;
  }

  .location-card h3 {
    font-size: 22px;
  }

  .location-info-item p,
  .location-info-item a {
    font-size: 15px;
  }

  .map-section {
    margin: 60px auto;
  }

  .marker-label {
    font-size: 11px;
    padding: 2px 6px !important;
  }

  .marker-dot {
    width: 8px;
    height: 8px;
  }

  .submit-btn {
    width: 100%;
    max-width: 218px;
    margin: 25px auto 0;
    display: block;
  }
}

@media (max-width: 480px) {
  .hero-title,
  .location-group-title,
  .form-title {
    font-size: 22px;
  }
  .location-card h3 {
    font-size: 18px;
  }
  .location-info-item p,
  .location-info-item a,
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 14px;
  }
}

.toast-container {
  position: fixed;
  top: 130px;
  left: 50%;
  transform: translateX(-50%) translateY(-200px);
  z-index: 10001;
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@media (max-width: 768px) {
  .toast-container {
    top: 120px;
  }
}

.toast-container.show {
  transform: translateX(-50%) translateY(0);
}

.toast {
  background: #131d45;
  color: #fff;
  padding: 16px 32px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast-icon {
  width: 24px;
  height: 24px;
  background: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-message {
  font-family: "Source Sans Pro", sans-serif;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}
