/* ===== CONTACT PAGE STYLES ===== */
/* Using brand colors from :root - Updated with Green Brand Identity */

:root {
  --primary-color: #00983c; /* Fresh green */
  --primary-dark: #006b2a; /* Darker green */
  --secondary-color: #4f6b5b; /* Earthy green-gray */
  --accent-color: #1db954; /* Bright accent green */
  --light-color: #f4fbf6; /* Soft green-tinted white */
  --dark-color: #1e2d26; /* Deep forest green */
  --success-color: #198754; /* Bootstrap success green */
  --danger-color: #c0392b; /* Keeping red for alerts */
}

/* ===== UTILITY COMPONENTS ===== */

/* Table Styles */
.table-hover tbody tr:hover {
  background-color: rgba(
    0,
    152,
    60,
    0.08
  ); /* Updated to use primary color with opacity */
}

/* Main content container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Ensure all sections respect container */
section {
  width: 100%;
}

/* Section inner containers */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Page Header - Updated with brand colors */
.page-header {
  background: linear-gradient(135deg, #00983c 0%, #006b2a 100%);
  color: white;
  padding: 60px 0;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="white" opacity="0.05"><path d="M0,70 Q250,10 500,70 T1000,70 L1000,100 L0,100 Z"/></svg>');
  background-size: cover;
  pointer-events: none;
}

.page-header h1 {
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.page-header .breadcrumb {
  background: transparent;
  padding: 0;
  margin: 15px 0 0;
  position: relative;
  z-index: 1;
}

.page-header .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.page-header .breadcrumb-item a:hover {
  color: white;
  text-decoration: underline;
}

.page-header .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.7);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}

/* Contact Section */
.contact-section {
  padding: 60px 0;
}

.section-title {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

.text-center.section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Contact Info */
.contact-info {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 152, 60, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.contact-info:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0, 152, 60, 0.12);
}

.contact-item {
  display: flex;
  margin-bottom: 30px;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-item i {
  font-size: 24px;
  color: var(--primary-color);
  margin-right: 20px;
  transition: transform 0.3s ease;
}

.contact-item:hover i {
  transform: scale(1.1);
}

.contact-item h5 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 8px;
}

.contact-item p {
  color: var(--secondary-color);
  line-height: 1.7;
}

.contact-item a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: var(--primary-color);
}

/* Contact Form Card */
.contact-form-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 152, 60, 0.08);
  padding: 30px;
  height: 100%;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.contact-form-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0, 152, 60, 0.12);
}

.contact-form-card .card-title {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 12px;
}

.contact-form-card .card-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

/* Form Styles */
.form-label {
  color: var(--dark-color);
  font-weight: 500;
  margin-bottom: 5px;
}

.form-control,
.form-select {
  border: 1px solid #dfe7e2;
  border-radius: 8px;
  padding: 10px 15px;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 152, 60, 0.25);
  outline: none;
}

/* Submit Button */
.btn-submit {
  background: linear-gradient(135deg, #00983c 0%, #006b2a 100%);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-submit::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
}

.btn-submit:hover::before {
  width: 300px;
  height: 300px;
}

.btn-submit:hover {
  background: linear-gradient(135deg, #1db954 0%, #00983c 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 152, 60, 0.3);
}

.btn-submit:active {
  background: var(--primary-dark);
  transform: translateY(0);
}

/* Map Container */
.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 152, 60, 0.08);
  transition: box-shadow 0.3s ease;
}

.map-container:hover {
  box-shadow: 0 4px 16px rgba(0, 152, 60, 0.12);
}

/* Map Section */
.map-section {
  background: var(--light-color);
  padding: 60px 0;
}

/* Loading States */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.loading {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid var(--light-color);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Form Validation Styles */
.was-validated .form-control:valid,
.form-control.is-valid {
  border-color: var(--success-color);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-control:invalid,
.form-control.is-invalid {
  border-color: var(--danger-color);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23c0392b'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23c0392b' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Alert Styles for Form Messages */
.alert-success {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

.alert-danger {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .page-header {
    padding: 40px 0;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .contact-section,
  .map-section {
    padding: 40px 0;
  }

  .contact-info,
  .contact-form-card {
    padding: 20px;
  }

  .contact-item {
    flex-direction: column;
  }

  .contact-item i {
    margin-bottom: 10px;
  }
}

@media (max-width: 576px) {
  .page-header h1 {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .btn-submit {
    width: 100%;
    padding: 12px 20px;
  }
}

/* Print Styles */
@media print {
  .page-header {
    background: white !important;
    color: black !important;
    padding: 20px 0 !important;
  }

  .btn-submit,
  .map-container {
    display: none !important;
  }

  .contact-info,
  .contact-form-card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
}
