/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

/* Main Content */
.main-content {
  min-height: calc(100vh - 80px);
  margin: 5%;
  padding-top: 120px; /* Account for fixed navbar */
}

.page-content {
  max-width: none;
  width: 100%;
  padding: 2rem 4rem;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.page-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: #1e3a2e;
  margin-bottom: 1rem;
  font-weight: 700;
}

.page-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: #7f8c8d;
  max-width: 600px;
  margin: 0 auto;
}

/* Contact Wrapper with Side Images */
.contact-wrapper {
  display: grid;
  grid-template-columns: 0.8fr 6fr 0.8fr;
  gap: 1.5rem;
  align-items: start;
  margin: 4rem 0;
  position: relative;
  z-index: 2;
  width: 100%;
}

.contact-side-image {
  position: relative;
  height: 650px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(39, 174, 96, 0.2);
  transition: all 0.3s ease;
}

.contact-side-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(39, 174, 96, 0.3);
}

.contact-side-image .image-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.contact-side-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.contact-side-image:hover img {
  transform: scale(1.05);
}

.contact-side-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(30, 58, 46, 0.4), rgba(39, 174, 96, 0.4));
  z-index: 2;
  transition: opacity 0.3s ease;
}

.contact-side-image:hover::before {
  opacity: 0.7;
}

.side-image-text {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: white;
  z-index: 3;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.side-image-text h4 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.side-image-text p {
  font-size: 1rem;
  opacity: 0.9;
}

/* Contact Container */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  position: relative;
  z-index: 5;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

.contact-info-section,
.contact-form-section {
  background: rgba(255, 255, 255, 0.95);
  padding: 4rem;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-top: 4px solid #27ae60;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  min-height: 700px;
  width: 100%;
}

.contact-info-section h3,
.contact-form-section h3 {
  color: #1e3a2e;
  margin-bottom: 2rem;
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;
}

.contact-info-section::before,
.contact-form-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(39, 174, 96, 0.03) 50%, transparent 70%);
  transform: rotate(45deg);
  z-index: -1;
}

.contact-info-section:hover,
.contact-form-section:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(39, 174, 96, 0.15);
}

/* Contact Toggle Button - Hidden on Desktop */
.contact-toggle-btn {
  display: none;
  width: 100%;
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  color: white;
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  position: relative;
  transition: all 0.3s ease;
  justify-content: space-between;
  align-items: center;
}

.contact-toggle-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.contact-toggle-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.contact-toggle-btn.active .contact-toggle-icon {
  transform: rotate(180deg);
}

/* Contact Items Container */
.contact-items-container {
  /* Always visible on desktop */
  opacity: 1;
  max-height: none;
  overflow: visible;
  transition: all 0.5s ease;
}

/* Contact Items */
.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  padding: 2rem;
  background: rgba(248, 249, 250, 0.8);
  border-radius: 12px;
  border-left: 4px solid #27ae60;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #27ae60, #2ecc71);
  transition: width 0.3s ease;
}

.contact-item:hover::before {
  width: 8px;
}

.contact-item:hover {
  background: rgba(39, 174, 96, 0.05);
  transform: translateX(5px);
}

.contact-icon {
  font-size: 2.2rem;
  margin-right: 2rem;
  flex-shrink: 0;
  padding: 0.7rem;
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
  transition: transform 0.3s ease;
  color: white;
}

.contact-item:hover .contact-icon {
  transform: scale(1.1) rotate(5deg);
}

.contact-details h4 {
  color: #1e3a2e;
  margin-bottom: 0.7rem;
  font-weight: 600;
  font-size: 1.2rem;
}

.contact-details p {
  color: #666;
  margin-bottom: 0.4rem;
  font-size: 1rem;
  line-height: 1.5;
}

/* Form Styles */
.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.7rem;
  color: #1e3a2e;
  font-weight: 500;
  font-size: 1.1rem;
}

.required {
  color: #e74c3c;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1.2rem;
  border: 2px solid #ecf0f1;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.9);
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #27ae60;
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
  background: rgba(255, 255, 255, 1);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  background: linear-gradient(45deg, #27ae60, #2ecc71);
  color: white;
  border: none;
  padding: 1.4rem 2.5rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

/* Bottom Decorative Image Row */
.bottom-image-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 4rem 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.bottom-image {
  height: 200px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(39, 174, 96, 0.15);
  transition: all 0.3s ease;
  position: relative;
}

.bottom-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(30, 58, 46, 0.5), rgba(39, 174, 96, 0.5));
  z-index: 2;
  transition: opacity 0.3s ease;
}

.bottom-image:hover::before {
  opacity: 0.7;
}

.bottom-image:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(39, 174, 96, 0.25);
}

.bottom-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.bottom-image:hover img {
  transform: scale(1.1);
}

.bottom-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  z-index: 3;
  color: white;
  text-align: center;
}

.bottom-image-overlay span {
  font-size: 1.1rem;
  font-weight: 600;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Service Highlights Section */
.service-highlights-wrapper {
  margin: 4rem 0;
  padding: 0;
}

.highlights-toggle-btn {
  display: none;
  width: 100%;
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  color: white;
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  position: relative;
  transition: all 0.3s ease;
  justify-content: space-between;
  align-items: center;
}

.highlights-toggle-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.toggle-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.highlights-toggle-btn.active .toggle-icon {
  transform: rotate(180deg);
}

.service-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
  opacity: 1;
  max-height: none;
  overflow: visible;
  transition: all 0.5s ease;
}

.highlight-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(39, 174, 96, 0.1);
  text-align: center;
  transition: all 0.3s ease;
  border-top: 4px solid #27ae60;
  position: relative;
  overflow: hidden;
}

.highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(39, 174, 96, 0.2);
}

.highlight-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.highlight-card h4 {
  color: #1e3a2e;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.highlight-card p {
  color: #666;
  line-height: 1.6;
}

/* Footer */
.footer {
  background: #1e3a2e;
  color: white;
  padding: 3rem 2rem 1rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: #2ecc71;
  font-weight: 700;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: #2ecc71;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.footer-section p {
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #2d5a42;
  opacity: 0.8;
}

/* ===== MOBILE RESPONSIVE STYLES ===== */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
  .contact-wrapper {
    grid-template-columns: 1fr 8fr 1fr;
    gap: 1rem;
  }
  
  .contact-container {
    gap: 2rem;
  }
  
  .contact-info-section,
  .contact-form-section {
    padding: 3rem;
    min-height: 600px;
  }
  
  .page-content {
    padding: 2rem;
  }
}

/* Tablets */
@media (max-width: 768px) {
  .main-content {
    margin: 2%;
  }
  
  .page-content {
    padding: 1.5rem;
  }
  
  .page-header {
    margin-bottom: 2rem;
    padding: 1rem 0;
  }

  /* Contact Layout - Switch to single column */
  .contact-wrapper {
    display: block;
    margin: 2rem 0;
  }
  
  .contact-side-image {
    display: none; /* Hide side images on tablet */
  }
  
  .contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 100%;
  }
  
  .contact-info-section,
  .contact-form-section {
    padding: 2.5rem;
    min-height: auto;
  }

  /* MOBILE DROPDOWN FUNCTIONALITY */
  /* Show the toggle button on mobile */
  .contact-toggle-btn {
    display: flex;
  }
  
  /* Hide contact items by default on mobile */
  .contact-items-container {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
  }
  
  /* Show contact items when dropdown is open */
  .contact-items-container.contact-open {
    max-height: 2000px;
    opacity: 1;
    overflow: visible;
    padding-top: 1rem;
  }

  /* Service Highlights - Keep always visible on mobile (no dropdown) */
  .highlights-toggle-btn {
    display: none; /* Keep hidden on mobile */
  }
  
  .service-highlights {
    /* Always visible on mobile - no dropdown behavior */
    opacity: 1;
    max-height: none;
    overflow: visible;
    padding: 1rem 0;
  }
  
  .contact-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
  }
  
  .contact-icon {
    font-size: 2rem;
    margin-right: 1.5rem;
    padding: 0.6rem;
  }

  /* Bottom Images */
  .bottom-image-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 3rem 0;
  }
  
  .bottom-image {
    height: 180px;
  }

  /* Service Highlights */
  .service-highlights {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
  }
  
  .highlight-card {
    padding: 1.5rem;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
  }
}

/* Mobile phones */
/* Mobile phones */
@media (max-width: 480px) {
  .main-content {
    margin: 1%;
  }
  
  .page-content {
    padding: 1rem;
  }
  
  .page-header {
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
  }
  
  .page-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }
  
  .page-subtitle {
    font-size: clamp(1rem, 4vw, 1.1rem);
  }

  /* Contact Sections */
  .contact-info-section,
  .contact-form-section {
    padding: 1.5rem;
    border-radius: 10px;
  }
  
  .contact-info-section h3,
  .contact-form-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .contact-item {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    align-items: center; /* Add this to center the items */
    justify-content: center; /* Add this to center the content */
  }
  
  .contact-icon {
    font-size: 1.8rem;
    margin-right: 0;
    margin-bottom: 1rem;
    align-self: center;
  }
  
  .contact-details {
    text-align: center; /* Ensure text is centered */
    width: 100%; /* Take full width */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the text content */
  }
  
  .contact-details h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-align: center; /* Explicitly center the heading */
  }
  
  .contact-details p {
    font-size: 0.95rem;
    text-align: center; /* Explicitly center the paragraphs */
    margin: 0 auto; /* Center the paragraphs */
  }

  /* Form Elements */
  .form-group {
    margin-bottom: 1.5rem;
  }
  
  .form-group label {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 1rem;
    font-size: 1rem;
    border-radius: 8px;
  }
  
  .form-group textarea {
    min-height: 120px;
  }
  
  .submit-btn {
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    border-radius: 8px;
  }

  /* Toggle Buttons */
  .contact-toggle-btn,
  .highlights-toggle-btn {
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
  }

  /* Bottom Images */
  .bottom-image-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
  }
  
  .bottom-image {
    height: 160px;
  }

  /* Service Highlights */
  .service-highlights-wrapper {
    margin: 2rem 0;
  }
  
  .service-highlights {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .highlight-card {
    padding: 1.25rem;
  }
  
  .highlight-icon {
    font-size: 2.5rem;
  }
  
  .highlight-card h4 {
    font-size: 1.2rem;
  }

  /* Footer */
  .footer {
    padding: 2rem 1rem 1rem;
  }
  
  .footer-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  
  .footer-section h4 {
    font-size: 1.1rem;
  }
}