/* ===== CONTACT PAGE STYLES ===== */
/* Using brand colors from :root */

:root {
  --primary-color: #8a1c6e; /* Deep magenta/plum */
  --primary-dark: #6f1a59; /* Darker plum */
  --secondary-color: #5f4b5b; /* Muted purple-gray */
  --accent-color: #c43a92; /* Bright magenta */
  --light-color: #f7eff4; /* Soft lavender-tinted white */
  --dark-color: #2a1a24; /* Deep purple-black */
  --success-color: #2e8b57; /* Keeping green for success */
  --danger-color: #c0392b; /* Keeping red for alerts */
}

/* ===== UTILITY COMPONENTS ===== */

/* Table Styles */
.table-hover tbody tr:hover {
  background-color: rgba(
    138,
    28,
    110,
    0.1
  ); /* 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: var(--primary-color);
  color: white;
  padding: 60px 0;
  margin-bottom: 20px;
}

.page-header h1 {
  font-weight: 700;
}

.page-header .breadcrumb {
  background: transparent;
  padding: 0;
  margin: 15px 0 0;
}

.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: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(138, 28, 110, 0.1); /* Updated shadow color */
}

.contact-item {
  display: flex;
  margin-bottom: 30px;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-item i {
  font-size: 24px;
  color: var(--primary-color); /* Updated icon color */
  margin-right: 20px;
}

.contact-item h5 {
  color: var(--primary-color); /* Updated heading color */
  font-weight: 600;
  margin-bottom: 8px;
}

.contact-item p {
  color: var(--secondary-color); /* Updated text color */
  line-height: 1.7;
}

.contact-item a {
  color: var(--secondary-color);
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--primary-color); /* Updated hover color */
}

/* Contact Form Card */
.contact-form-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(138, 28, 110, 0.1); /* Updated shadow color */
  padding: 30px;
  height: 100%;
}

.contact-form-card .card-title {
  color: var(--primary-color); /* Updated title 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); /* Updated accent line 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 #e0e0e0;
  border-radius: 5px;
  padding: 10px 15px;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color); /* Updated focus border color */
  box-shadow: 0 0 0 0.2rem rgba(138, 28, 110, 0.25); /* Updated focus shadow */
  outline: none;
}

/* Submit Button */
.btn-submit {
  background: var(--primary-color); /* Updated button background */
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  background: var(--primary-dark); /* Updated hover background */
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(138, 28, 110, 0.3); /* Updated shadow */
}

.btn-submit:active {
  background: var(--primary-dark);
  transform: translateY(0);
}

/* Map Container */
.map-container {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(138, 28, 110, 0.1); /* Updated shadow color */
}

/* Map Section */
.map-section {
  background: var(--light-color); /* Updated background color */
  padding: 60px 0;
}

/* Loading States */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  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: 20px;
  height: 20px;
  border: 3px solid var(--light-color);
  border-radius: 50%;
  border-top-color: var(--primary-color); /* Updated spinner color */
  animation: spin 1s ease-in-out infinite;
  text-align: center;
  padding: 2rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 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;
  }
}
