:root {
  --primary-purple: #2d1441;
  --light-purple: #f7f2fa;
}

.contact-container {
  background: linear-gradient(
    to right,
    var(--light-purple) 0%,
    var(--light-purple) 75%,
    var(--primary-purple) 75%,
    var(--primary-purple) 100%
  );
  padding: 160px 0;
  margin-top: 80px;
}

.contact-container .row {
  margin-left: 0;
  margin-right: 0;
}

.contact-form { 
  max-width: 90%;  
}

.contact-title {
  margin-bottom: 1rem;
}

.contact-title h2 {
  font-size: 54px;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.contact-title h2 span {
  color: #5b2a86;
}

.contact-subtitle {
  color: #000;
  margin-bottom: 2rem;
  font-weight: 500;
}

.contact-form input,
.contact-form select {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.95rem;
  outline: none;
}

.contact-form input:focus,
.contact-form select:focus {
  border-color: #5b2a86;
  box-shadow: 0 0 5px rgba(91, 42, 134, 0.3);
}

.contact-form .form-control,
.contact-form .form-select {
  padding: 10px 20px !important;
  background-color: transparent !important;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  width: 40%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
}

.form-control,
.form-select {
  padding: 0.7rem;
}

.submit-btn {
  background-color: #2e093d;
  color: #fff;
  border: none;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s ease;
}

.submit-btn:hover {
  background-color: #47105c;
}

.contact-info {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.info-item img.logos_img {
  width: 28px;
  height: 28px;
}

.info-item p {
  font-size: 0.7rem;
  font-weight: 600;
  margin: 0;
  color: black;
}

.info-item a {
  font-size: 1rem;
  font-weight: 700;
  color: #2e093d;
  text-decoration: none;
}

.info-item a:hover {
  text-decoration: underline;
}

.map-placeholder {
  width: 80%;
  height: 100%;
  min-height: 500px;
  right: 2%;
  padding: 0 12px;
  min-width: 100%;
  background-color: #eee;
  border-radius: 8px;
}

.map-container {
  position: relative; 
  top: 0;
  width: 80%;
  height: 100%;
  z-index: 1;
}   
@media (max-width: 992px) {
  .contact-container {
    position: relative;
    background: var(--light-purple);
  }

  .contact-form {
    min-width: fit-content;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    right: 0;
  }

  .contact-title h2 {
    font-weight: bold;
    margin-bottom: 10px;
  }

  .contact-title span {
    color: #5c2d75;
  }

  .contact-info {
    display: flex;
    align-items: flex-start;
    margin: 70px 0;
    gap: 20px;
  }

  .info-item {
    display: flex;
    align-items: center;
    width: fit-content;
    gap: 10px;
  }

  .info-item img {
    width: 24px;
    height: 24px;
  }
  .map-container {
    height: 415px;
    position: relative;
    right: 0%;
  }
  .map-placeholder {
    height: 100%;
    min-width: 100%;
    right: 0;
    min-height: 300px;
  }

  .locate-us-btn {
    display: block;
    width: 100%;
    margin: 16px 0;
    font-size: 18px;
    padding: 12px 0;
    background: #2d1441;
    color: #fff;
    border: none;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    letter-spacing: 1px;
    transition: background 0.2s;
  }

  .locate-us-btn:active,
  .locate-us-btn:focus {
    background: #6a3685;
    outline: none;
  }
}

@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
  }

  .contact-container .p-5 {
    padding: 0 !important;
  }

  .contact-container {
    padding: 20px 20px;
    margin: 2rem 0;
  }

  .map-container {
    max-width: 100%;
    min-width: 100%;
    right: 0;
    min-height: max-content;
    /* border: 6px solid var(--primary-purple); Thick purple border */
    /* border-radius: 12px; Optional: rounded corners */
    box-sizing: border-box;
  }
 
}

@media (min-width: 992px) {
  .locate-us-btn {
    display: none;
  }

  .info-item {
    display: flex;
    align-items: start;
    justify-content: flex-start;
  }
   
}

@media (max-width: 576px) {
  .contact-container {
    padding: 12px 0 !important;
  }

  .contact-title h2 {
    font-size: 2rem;
  }

  .form-group {
    margin-bottom: 1rem;
  }

  .info-item {
    width: 100%;
  }

  .info-item {
    margin-left: 0 !important;
  }

  .contact-info span {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .map-container {
    min-height: 180px;
    right: 0;
    height: 500px;
  }
}
