.contactus-section {
  background: #edf7fd;
  padding: 60px 15px 70px 15px; /* Added horizontal padding of 15px */
  color: #333;
}

.section-title {
  color: #00264d;
  margin-bottom: 30px;
  text-align: center;
  font-size: 2.1rem;
  font-weight: bold;
  position: relative;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.section-title .section-underline {
  display: block;
  margin: 12px auto 0 auto;
  width: 60px;
  height: 5px;
  background: #96071a;
  border-radius: 2px;
  content: '';
}
.vm-title-red {
  color: #96071a;
}

.contact-info-bar {
  background: #edf7fd;
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  padding: 15px 20px;
  border-radius: 8px;
  flex-wrap: wrap;
  border: 1px solid #ececec;
  box-shadow: 0 2px 12px rgba(89, 1, 1, 0.439);
  gap: 0;
  margin-left: 15px; /* Added margin */
  margin-right: 15px; /* Added margin */
}

.contact-info-item {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 200px;
  padding: 8px 18px;
  border-right: 1px solid #96071a;
  gap: 10px;
}

.contact-info-item:last-child {
  border-right: none;
}

.contact-icon {
  font-size: 23px;
  color: #96071a;
  margin-right: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
}

.contact-text h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 5px 0;
  color: #005987;
  letter-spacing: 1px;
}

.contact-text p {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  color: #005987;
}

.contact-text a {
  color: #005987;
  text-decoration: none;
  transition: color 0.18s;
}

.contact-text a:hover {
  color: #96071a;
  text-decoration: underline;
}

/* Main Contact Form Section */
.contact-form-section {
  display: flex;
  overflow: hidden;
  border-radius: 0; /* sharp edges */
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  margin-left: 15px; /* Added margin */
  margin-right: 15px; /* Added margin */
}

/* Image on left */
.contact-image-wrapper {
  flex: 1;
  min-width: 320px;
  background: #ccc;
  overflow: hidden;
}

.contact-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 420px;
}

/* Form area with dark background */
.contact-form-wrapper {
  flex: 1;
  padding: 30px 35px 30px 35px; /* <-- Desktop default */
  background: #005987;
  color: #fff;
  min-width: 320px;
  border-radius: 0 !important; /* sharp edges */
}


.contact-heading {
  font-size: 24px;
  font-weight: bold;
  margin: 0 0 10px 0;
  color: #fff;
  text-transform: uppercase;
}

.contact-subheading {
  color: #ffffff;
  font-size: 15px;
  margin-bottom: 25px;
  font-weight: 300;
}

/* Form styling */
.form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.form-group {
  margin-bottom: 15px;
  width: 100%;
}

.form-group.half {
  flex: 1 1 0;
  min-width: 0;
}

.form-group.half input {
  width: 100%;
  box-sizing: border-box;
}

#contactForm input,
#contactForm textarea {
  width: 100%;
  border: none;
  border-radius: 0;
  background: rgba(2, 4, 6, 0.15); /* Light version of #a7d1e6 */
  color: #fff;
  padding: 12px 15px;
  font-size: 14px;
  outline: none;
}

#contactForm input::placeholder,
#contactForm textarea::placeholder {
  color:#a7d1e6
}

#contactForm input:focus,
#contactForm textarea:focus {
  background: rgba(5, 18, 24, 0.25); /* Slightly more intense when focused */
  border: 1px solid #a7d1e6;
}

.send-btn {
  width: 100%;
  background: #00aaff;
  color: #fff;
  border: none;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  border-radius: 0;
  text-transform: uppercase;
}

.send-btn:hover {
  background: #96071a;
}

#formMsg {
  margin-top: 15px;
  color: #fff;
  font-weight: 500;
  text-align: center;
  padding: 8px;
  border-radius: 4px;
}

/* Responsive design */
@media (max-width: 900px) {
  .contact-form-section {
    flex-direction: column;
    border-radius: 0 !important; /* sharp edges */
    margin-left: 10px; /* Smaller margin on mobile */
    margin-right: 10px; /* Smaller margin on mobile */
  }

  .contact-info-bar {
    flex-direction: column;
    gap: 0;
    margin-left: 10px; /* Smaller margin on mobile */
    margin-right: 10px; /* Smaller margin on mobile */
  }

  .contact-info-item {
    border-right: none;
    border-bottom: 1px solid #96071a;
    padding: 10px 5px;
  }

  .contact-info-item:last-child {
    border-bottom: none;
  }

  .contact-image-wrapper img {
    min-height: 240px;
  }

  .form-row {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 600px) {
  .contactus-section {
    padding: 40px 0 50px 0; /* CHANGED: Removed horizontal padding */
  }

  .contact-form-wrapper {
    padding: 20px 15px !important; /* Add padding to the form section on mobile */
    border-radius: 0 !important;
  }

  .contact-heading {
    font-size: 20px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .contact-form-section {
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    border-radius: 0 !important; /* sharp edges */
    margin-left: 0; /* CHANGED: Removed left margin */
    margin-right: 0; /* CHANGED: Removed right margin */
  }

  .contact-info-bar {
    margin-left: 0; /* CHANGED: Removed left margin */
    margin-right: 0; /* CHANGED: Removed right margin */
  }
}

@media (max-width: 450px) {
  .contactus-section {
    padding: 30px 0 40px 0; /* CHANGED: Removed horizontal padding for very small screens */
  }

  .contact-form-wrapper {
    width: 100%;
    max-width: 100%; /* CHANGED: Use full width */
    box-sizing: border-box;
    margin: 0;
    padding: 30px !important; /* Add more padding for very small screens */
    border-radius: 0 !important;
  }

  .contact-image-wrapper {
    min-width: 0;
  }
  
  .contact-info-bar {
    margin-left: 0; /* CHANGED: Removed margins */
    margin-right: 0; /* CHANGED: Removed margins */
    padding-left: 10px; /* CHANGED: Minimal padding */
    padding-right: 10px; /* CHANGED: Minimal padding */
  }
}

/* Last updated: 2025-08-07 10:21:53 by Chandali-Dasanayaka */