/* Modern Contact Page Styling */
:root {
  --ds-primary: #C86E35;
  --ds-dark: #5C2E00;
  --ds-light: #fff4e9;
  --ds-accent: #9e5c1c;
  --ds-gray: #666;
}

/* Banner Section */
.contact-banner {
  position: relative;
  height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-banner .banner-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.contact-banner .banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(92,46,0,0.85), rgba(200,110,53,0.75));
  z-index: 2;
}

.contact-banner .banner-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}

.contact-banner .banner-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  margin: 0 0 15px 0;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.contact-banner .banner-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  margin: 0;
  opacity: 0.95;
}

/* Info Cards Section */
.contact-info-section {
  background: linear-gradient(180deg, #fff 0%, var(--ds-light) 100%);
}

.info-card {
  background: #fff;
  padding: 35px 25px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid rgba(200,110,53,0.1);
}

.info-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(200,110,53,0.2);
}

.info-card .info-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--ds-primary), var(--ds-accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  color: #fff;
  box-shadow: 0 8px 20px rgba(200,110,53,0.3);
}

.info-card h5 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ds-dark);
  margin-bottom: 15px;
}

.info-card p {
  color: var(--ds-gray);
  margin: 0;
  line-height: 1.6;
}

.info-card a {
  color: var(--ds-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.info-card a:hover {
  color: var(--ds-dark);
}

/* Form Section */
.contact-form-section {
  background: #fff;
}

.section-header .section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--ds-dark);
  margin-bottom: 10px;
}

.section-header .section-subtitle {
  font-size: 1.1rem;
  color: var(--ds-gray);
  max-width: 700px;
  margin: 0 auto;
}

.map-container {
  height: 600px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.contact-form-card {
  background: linear-gradient(135deg, var(--ds-primary), var(--ds-accent));
  padding: 40px 35px;
  border-radius: 15px;
  box-shadow: 0 15px 50px rgba(200,110,53,0.3);
  height: 100%;
}

.contact-form-card .form-title {
  color: #fff;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
}

.contact-form-card .form-label {
  color: #fff;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.contact-form-card .form-control,
.contact-form-card .form-select {
  border: none;
  border-radius: 10px;
  padding: 12px 15px;
  font-size: 0.95rem;
  background: rgba(255,255,255,0.95);
  transition: all 0.3s ease;
}

.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.3);
  outline: none;
}

.contact-form-card textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.contact-submit-btn {
  background: #fff;
  color: var(--ds-primary);
  border: none;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.contact-submit-btn:hover {
  background: var(--ds-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Responsive */
@media (max-width: 991px) {
  .contact-banner {
    height: 300px;
  }
  
  .map-container {
    height: 400px;
    margin-bottom: 30px;
  }
  
  .contact-form-card {
    padding: 30px 25px;
  }
}

@media (max-width: 767px) {
  .contact-banner {
    height: 250px;
  }
  
  .info-card {
    margin-bottom: 20px;
  }
  
  .map-container {
    height: 350px;
  }
  
  #contact-locations-map {
    height: 400px;
  }
}

/* ===== LOCATIONS MAP SECTION ===== */
.locations-map-wrapper {
  padding: 80px 0;
  background: linear-gradient(135deg, #fff4e9 0%, #ffffff 100%);
}

.locations-map-wrapper .section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--ds-dark);
  margin-bottom: 15px;
  text-align: center;
}

.locations-map-wrapper .section-subtitle {
  font-size: 1.1rem;
  color: var(--ds-gray);
  margin-bottom: 50px;
  text-align: center;
}

#contact-locations-map {
  height: 550px;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  overflow: hidden;
  position: relative;
}

/* Map Legend Styling */
.map-legend {
  position: absolute;
  top: 20px;
  right: 20px;
  background: white;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  z-index: 1000;
  max-width: 220px;
}

.map-legend h6 {
  margin: 0 0 12px 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ds-dark);
}

.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--ds-gray);
}

.legend-item:last-child {
  margin-bottom: 0;
}

.legend-marker {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin-right: 10px;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  flex-shrink: 0;
}

.legend-marker.office {
  background: var(--ds-primary);
}

.legend-marker.distributor {
  background: var(--ds-primary);
}

/* Leaflet Popup Custom Styling */
.leaflet-popup-content-wrapper {
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.leaflet-popup-content {
  margin: 15px;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .locations-map-wrapper {
    padding: 60px 0;
  }
  
  .locations-map-wrapper .section-title {
    font-size: 2rem;
  }
  
  #contact-locations-map {
    height: 500px;
  }
  
  .map-legend {
    top: 10px;
    right: 10px;
    padding: 12px 15px;
    max-width: 180px;
  }
}

@media (max-width: 767px) {
  .locations-map-wrapper {
    padding: 50px 0;
  }
  
  .locations-map-wrapper .section-title {
    font-size: 1.8rem;
  }
  
  .locations-map-wrapper .section-subtitle {
    font-size: 1rem;
  }
  
  #contact-locations-map {
    height: 400px;
    border-radius: 10px;
  }
  
  .map-legend {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    padding: 10px 12px;
  }
  
  .map-legend h6 {
    font-size: 0.9rem;
    margin-bottom: 8px;
  }
  
  .legend-item {
    font-size: 0.85rem;
    margin-bottom: 6px;
  }
  
  .legend-marker {
    width: 16px;
    height: 16px;
    margin-right: 8px;
  }
}
