/* Contact page styles */
.contact-header {
  position: relative;
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/assests/contact.png');
  background-size: cover;
  background-position: center;
  padding: 80px 0;
  color: white;
  text-align: center;
}


.contact-header h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.contact-breadcrumb {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.contact-breadcrumb a {
  color: white;
  opacity: 0.8;
}

.contact-breadcrumb a:hover {
  opacity: 1;
}

.contact-container {
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
}

.contact-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: row;
}

.contact-form {
  flex: 1;
  padding: 30px; /* Base padding for small screens */
  display: flex;
  flex-direction: column;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 0; /* Remove the bottom margin that was causing extra space */
}

.form-group {
  flex: 1;
  margin-bottom: 20px; /* Space between form elements */
}

/* Specific spacing for form-row children */
.form-row .form-group {
  margin-bottom: 0; /* No bottom margin inside form-row */
}

/* Consistent spacing for standalone fields */
.standalone-field {
  margin-top: 20px; /* Consistent space above standalone fields */
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 0;
  border: none;
  border-bottom: 1px solid #ddd;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaa;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
}

.form-group textarea {
  resize: none;
  height: 100px;
  margin-top: 5px; /* Add a little extra space above the textarea */
}

.contact-info {
  flex: 0 0 40%;
  padding: 30px;
  background: linear-gradient(180deg, rgba(237, 138, 41, 0.85) 0%, rgba(195, 45, 46, 0.85) 100%);;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Distribute content evenly */
}

/* Styling for contact title section */
.contact-title {
  margin-bottom: 20px;
}

.contact-title h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.contact-title p {
  opacity: 0.9;
  margin-bottom: 0;
}

/* Container for contact info items */
.contact-info-items-container {
  margin: 20px 0;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 24px; /* Default spacing between items for desktop */
}

.contact-info-item:last-child {
  margin-bottom: 0; /* Remove margin from last item */
}

.contact-info-item i {
  margin-right: 15px;
  font-size: 20px;
}

/* Additional styling for contact info items to reduce gaps */
.contact-info-item p {
  margin: 0; /* Remove default paragraph margins */
  line-height: 1.5; /* Optimize line height for compact display */
}

.social-icons {
  margin-top: 20px;
}

.social-icons p {
  margin-bottom: 10px;
  font-weight: 500;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  transition: background 0.3s ease;
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.4);
}

.submit-btn {
  background: linear-gradient(180deg, #ED8A29 0%, #C32D2E 100%);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-weight: 500;
  margin-top: 20px; /* Add some space above the submit button */
}

.submit-btn i {
  margin-left: 10px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(233, 106, 67, 0.4);
}

/* Responsive styles */
@media (max-width: 768px) {
  .contact-card {
    flex-direction: column;
  }
  
  .contact-info {
    order: -1;
  }
  
  .form-row {
    flex-direction: column;
    gap: 20px;
  }
}

/* Media query for larger screens to increase card height */
@media (min-width: 1200px) {
  .contact-card {
    min-height: 600px; /* Increased height for the card */
  }
  
  .contact-form {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 50px 50px 50px 50px; /* Increased padding on top, left, bottom for large devices */
  }
  
  .form-group {
    margin-bottom: 25px; /* Larger spacing between form groups on big screens */
  }
  
  .standalone-field {
    margin-top: 25px; /* Larger spacing on big screens */
  }
  
  .form-group textarea {
    height: 150px; /* Larger textarea on bigger screens */
    margin-top: 8px; /* Slightly more space above textarea on larger screens */
  }
  
  /* Adjust spacing for larger screens */
  .contact-info-items-container {
    margin: 40px 0;
  }
  
  .contact-info-item {
    margin-bottom: 32px; /* Larger gap on very large screens */
  }
  
  .contact-title {
    margin-bottom: 0; /* Adjusted for space-between layout */
  }
  
  .social-icons {
    margin-top: 0; /* Adjusted for space-between layout */
  }
}

/* For medium to large screens */
@media (min-width: 769px) and (max-width: 1199px) {
  .contact-card {
    min-height: 580px;
  }
  
  .contact-form {
    padding: 40px 40px 40px 40px; /* Increased padding for medium screens */
  }
  
  .contact-info-item {
    margin-bottom: 28px; /* Medium gap for medium screens */
  }
  
  .contact-info-items-container {
    margin: 35px 0;
  }
}

/* Map container styles */
.map-container {
  width: 100%;
  margin-bottom: 50px;
}

@media (max-width: 768px) {
  /* Adjust spacing for the responsive layout on tablets */
  .contact-info-items-container {
    margin: 25px 0;
  }
  
  .contact-info-item {
    margin-bottom: 20px; /* Medium gap for tablets */
  }
  
  .contact-title {
    margin-bottom: 0;
  }
  
  .social-icons {
    margin-top: 25px;
  }
}

@media (max-width: 480px) {
  .contact-header {
    padding: 60px 0;
  }
  
  .contact-header h1 {
    font-size: 2rem;
  }
  
  .contact-container {
    margin: 30px auto;
  }
  
  .contact-form, 
  .contact-info {
    padding: 20px;
  }
  
  .form-group {
    margin-bottom: 15px; /* Slightly less spacing on mobile */
  }
  
  .standalone-field {
    margin-top: 15px; /* Smaller spacing on mobile */
  }
  
  /* Further adjustments for very small screens */
  .contact-info-items-container {
    margin: 20px 0;
  }
  
  .contact-info-item {
    margin-bottom: 16px; /* Smaller gap for mobile devices */
  }
}

/* Extra small devices */
@media (max-width: 360px) {
  .contact-info-item {
    margin-bottom: 12px; /* Even smaller gap for very small devices */
  }
  
  .contact-info-item i {
    font-size: 18px; /* Slightly smaller icons on very small screens */
  }
  
  .social-icons {
    margin-top: 20px;
  }
}