body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: linear-gradient(180deg, #faf7ff 0%, #f3f1f7 100%);
}

/* Contact section: removed the negative bottom margin and used padding to control spacing */
.contact-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 115px 20px 60px 20px; /* top/right/bottom/left */
  background-image: url('../images/con.jpeg');
  background-size: cover;       /* Ensures the image covers the whole section */
  background-position: center;  /* Centers the image */
  background-repeat: no-repeat; /* Prevents tiling */
}


.contact-container {
  max-width: 600px;
  width: 100%;
  background-color: #ffffff; /* White background for form box */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  text-align: center;
}

/* Headings */
.contact-subtitle {
  color: #f5a623;
  letter-spacing: 2px;
  font-weight: 600;
}

.contact-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 10px 0;
  color: #333;
}

.contact-desc {
  color: #555;
  margin-bottom: 30px;
  font-size: 0.95rem;
}

/* Form Styling */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  outline: none;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #f5a623;
  box-shadow: 0 0 4px rgba(245, 166, 35, 0.4);
}

/* Button */
.submit-btn {
  background: linear-gradient(90deg, #b36a2e, #c47b3c, #e0a75f);
  color: #000;
  border: none;
  padding: 12px 35px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
}

.submit-btn:hover {
  background-color: #ffa733;
}

/* 🌟 Contact Section Layout */
.contact-info {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  padding: 80px 60px;
  background: linear-gradient(180deg, #faf7ff 0%, #f3f1f7 100%);
  flex-wrap: nowrap; /* Ensures all 4 stay in one line where possible */
  overflow-x: auto;  /* Enables scroll if screen is too small */
  scrollbar-width: thin;
  scrollbar-color: #f5a623 transparent;
}

/* Optional custom scrollbar (for Chrome) */
.contact-info::-webkit-scrollbar {
  height: 6px;
}
.contact-info::-webkit-scrollbar-thumb {
  background: #f5a623;
  border-radius: 3px;
}

/* 🌟 Contact Card */
.contact-card {
  background: #ffffff;
  color: #333;
  padding: 30px 25px;
  border-radius: 10px;
  min-width: 260px; /* Ensures equal card width */
  text-align: center;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 1; /* Equal width distribution */
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(245, 166, 35, 0.3);
}

/* 🌟 Icons & Text */
.contact-card .icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.contact-card h3 {
  margin-bottom: 12px;
  color: #f5a623;
  font-size: 1.3rem;
}

.contact-card p {
  margin: 5px 0;
  font-size: 0.95rem;
}

/* 🌟 Social Links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e0a75f;
  color: #fff;
  font-size: 1rem;
  transition: 0.3s ease;
  text-decoration: none;
}

.social-links a:hover {
  background: #333;
  color: #f5a623;
  transform: scale(1.1);
}

/* 🌟 Responsive Design */
@media (max-width: 1024px) {
  .contact-info {
    padding: 60px 40px;
    gap: 25px;
  }

  .contact-card {
    min-width: 220px;
  }
}

@media (max-width: 768px) {
  .contact-info {
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center;
    padding: 40px 20px;
  }

  .contact-card {
    width: 45%;
    min-width: unset;
  }
}

@media (max-width: 480px) {
  .contact-info {
    flex-direction: column;
    align-items: center;
    margin-left: 21px;
    margin-right: 20px;
    margin-top: 78px;
  }

  .contact-card {
    width: 90%;
    margin-bottom: 20px;
  }

  .contact-card h3 {
    font-size: 1.1rem;
  }

  .contact-card .icon {
    font-size: 1.8rem;
  }

  .social-links a {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
}

a {
  text-decoration: none;
}
