/* Contact Section */
.contact-section {
    padding: 30px 0;
    margin-bottom: 50px;
    background-color: #ffffff;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 15px;
  line-height: 1.2;
}

/* For laptops and smaller desktops (≤1440px) */
@media (max-width: 1440px) {
  .section-title {
    font-size: 2.2rem;
  }
}

/* For tablets and medium devices (≤1024px) */
@media (max-width: 1024px) {
  .section-title {
    font-size: 2rem;
  }
}

/* For small tablets and large phones (≤768px) */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.8rem;
    text-align: center;
  }
}

/* For small mobile devices (≤576px) */
@media (max-width: 576px) {
  .section-title {
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 10px;
  }
}

/* For extra-small phones (≤375px, like iPhone SE) */
@media (max-width: 375px) {
  .section-title {
    font-size: 1.4rem;
    text-align: center;
  }
}


.section-subtitle {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 60px;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  align-items: flex-start
}

/* Left Side */
.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.contact-info p {
  color: #555;
  margin-bottom: 20px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.info-item i {
  font-size: 20px;
  color: #FFD700;
}

.social-icons a {
  display: inline-block;
  margin-right: 15px;
  font-size: 18px;
  color: #000;
  transition: 0.3s;
}

.social-icons a:hover {
  color: #FFD700;
}

/* Right Side (Form) */
.contact-form {
  flex: 1;
  min-width: 300px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  padding: 40px;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #FFD700;
  outline: none;
}

.contact-form textarea {
  height: 120px;
  resize: none;
}

.btn-submit {
  background: #FFD700;
  color: #000;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.btn-submit:hover {
  background: #e6c200;
}

/* Responsive */
@media (max-width: 992px) {
  .contact-grid {
    flex-direction: column;
  }

  .contact-form {
    padding: 30px;
  }
}


/* Address hover */
.info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-radius: 10px;
  padding: 15px 18px;
  transition: all 0.3s ease;
  max-width: 450px;
}

.info-item:hover {
  transform: translateY(-3px);
}


.info-text {
  color: #333;
  font-size: 15px;
  line-height: 1.6;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}


.map-highlight {
  font-weight: 600;
  color: #000;
  position: relative;
}

.map-highlight::after {
  content: "📍";
  position: absolute;
  right: -20px;
  top: 0;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.3s ease;
}

.info-item:hover .map-highlight::after {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Fix Mobile Right Margin Issue - YES Associates Contact Section ===== */

/* Tablets & below (up to iPad size) */
@media (max-width: 1024px) {
  .contact-section .container {
    padding-left: 30px;
    padding-right: 30px;
    box-sizing: border-box;
  }

  .contact-grid {
    flex-direction: column;
    align-items: center;
  }

  .contact-form,
  .contact-info {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }
}

/* Large Phones & Small Tablets */
@media (max-width: 768px) {
  .contact-section .container {
    padding-left: 25px;
    padding-right: 25px;
  }

  .contact-form {
    padding: 25px;
    box-sizing: border-box;
  }

  .contact-info {
    text-align: center;
    margin-bottom: 25px;
  }

  .info-item {
    justify-content: center;
  }
}

/* Mobile Phones (≤576px) */
@media (max-width: 576px) {
  .contact-section .container {
    padding-left: 20px;
    padding-right: 20px;
    /* margin-right: 3px; */
  }

  .contact-form {
    padding: 20px;
    border-radius: 8px;
    box-sizing: border-box;
  }

  .contact-info {
    text-align: center;
    max-width: 95%;
  }

  .info-item {
    justify-content: center;
    text-align: left;
  }
}

/* Small Mobile (≤375px, iPhone SE / Pixel 4a) */
@media (max-width: 375px) {
  .contact-section .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .contact-form {
    padding: 18px;
  }
}

/* Ultra Small Devices (≤320px) */
@media (max-width: 320px) {
  .contact-section .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .contact-form {
    padding: 16px;
  }
}
