/*
=====================================
AQUIBON WEBSITE - CONTACT PAGE CSS
=====================================
Project: Aquibon Water & Solar Solutions
Developer: Blaxium Hub
Author: Brian Guvava
Version: 1.0.0
=====================================
*/

/* ===== CONTACT HERO SECTION ===== */
.contact-hero-section {
  position: relative;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.contact-hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.contact-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(33, 33, 33, 0.85) 0%,
    rgba(46, 125, 50, 0.75) 50%,
    rgba(25, 118, 210, 0.75) 100%
  );
  z-index: 2;
}

.contact-hero-content {
  position: relative;
  z-index: 3;
  color: var(--white);
  text-align: center;
  padding: 2rem 0;
}

.contact-hero-title {
  font-family: var(--font-primary);
  font-size: 3.5rem;
  font-weight: var(--font-bold);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-title__black {
  color: var(--white);
}

.hero-title__orange {
  color: var(--accent-orange);
}

.hero-title__blue {
  color: var(--secondary-blue);
}

.contact-hero-subtitle {
  font-family: var(--font-secondary);
  font-size: 1.25rem;
  font-weight: var(--font-regular);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto;
}

.contact-hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.scroll-indicator:hover {
  color: var(--accent-orange);
  transform: translateY(-5px);
}

.scroll-indicator i {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  animation: bounce 2s infinite;
}

.scroll-indicator p {
  font-size: 0.875rem;
  margin: 0;
  font-weight: var(--font-medium);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* ===== CONTACT METHODS SECTION ===== */
.contact-methods-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.05) 0%, rgba(25, 118, 210, 0.05) 100%);
}

.contact-card {
  background: var(--white);
  border-radius: 15px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(46, 125, 50, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(46, 125, 50, 0.1), transparent);
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(46, 125, 50, 0.15);
  border-color: var(--primary-green);
}

.contact-card:hover::before {
  left: 100%;
}

.contact-card.emergency {
  border-color: rgba(220, 53, 69, 0.2);
}

.contact-card.emergency:hover {
  border-color: #dc3545;
  box-shadow: 0 20px 40px rgba(220, 53, 69, 0.15);
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-blue));
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  color: var(--white);
  font-size: 2rem;
  position: relative;
  z-index: 2;
}

.contact-card.emergency .contact-icon {
  background: linear-gradient(135deg, #dc3545, #fd7e14);
}

.contact-card:hover .contact-icon {
  transform: scale(1.1);
}

.contact-card h4 {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: var(--font-semibold);
  color: var(--primary-black);
  margin-bottom: 1rem;
}

.contact-details p {
  margin-bottom: 0.5rem;
}

.contact-details a {
  color: var(--primary-green);
  text-decoration: none;
  font-weight: var(--font-medium);
  transition: color 0.3s ease;
}

.contact-details a:hover {
  color: var(--secondary-blue);
}

.contact-card.emergency .contact-details a {
  color: #dc3545;
}

.contact-card.emergency .contact-details a:hover {
  color: #b02a37;
}

.contact-note {
  color: var(--text-gray);
  font-style: italic;
  margin-top: 1rem;
  display: block;
}

/* ===== CONTACT FORMS SECTION ===== */
.contact-forms-section {
  padding: 5rem 0;
  background: var(--light-gray);
}

.contact-form-container {
  background: var(--white);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(46, 125, 50, 0.1);
}

.form-title {
  font-family: var(--font-primary);
  font-size: 2rem;
  font-weight: var(--font-semibold);
  color: var(--primary-black);
  margin-bottom: 0.5rem;
}

.form-subtitle {
  color: var(--text-gray);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form .form-label {
  font-weight: var(--font-medium);
  color: var(--primary-black);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.contact-form .form-control,
.contact-form .form-select {
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: var(--white);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.15);
  outline: none;
}

.contact-form textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.contact-form .form-check {
  margin: 1.5rem 0;
}

.contact-form .form-check-input:checked {
  background-color: var(--primary-green);
  border-color: var(--primary-green);
}

.contact-form .form-check-label {
  color: var(--text-gray);
  font-size: 0.9rem;
}

.contact-form .btn-primary {
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  font-weight: var(--font-semibold);
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-blue));
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-form .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.contact-form .btn-primary:hover::before {
  left: 100%;
}

.contact-form .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(46, 125, 50, 0.3);
}

/* Form Validation Styles */
.contact-form .form-control.is-invalid,
.contact-form .form-select.is-invalid {
  border-color: #dc3545;
}

.contact-form .invalid-feedback {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #dc3545;
}

/* ===== CONTACT INFO SIDEBAR ===== */
.contact-info-sidebar {
  padding: 2rem;
}

.sidebar-section {
  background: var(--white);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(46, 125, 50, 0.1);
  transition: all 0.3s ease;
}

.sidebar-section:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(46, 125, 50, 0.12);
}

.sidebar-section h4 {
  font-family: var(--font-primary);
  font-size: 1.25rem;
  font-weight: var(--font-semibold);
  color: var(--primary-black);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-section h4 i {
  color: var(--primary-green);
  font-size: 1.1rem;
}

.office-info p {
  margin-bottom: 0.5rem;
  color: var(--text-gray);
  line-height: 1.6;
}

.office-info p strong {
  color: var(--primary-black);
}

.business-hours .hours-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f8f9fa;
}

.business-hours .hours-item:last-child {
  border-bottom: none;
}

.business-hours .hours-item span:first-child {
  color: var(--primary-black);
  font-weight: var(--font-medium);
}

.business-hours .hours-item span:last-child {
  color: var(--text-gray);
}

.service-areas ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
}

.service-areas li {
  padding: 0.25rem 0;
  color: var(--text-gray);
  position: relative;
  padding-left: 1.5rem;
}

.service-areas li::before {
  content: '\f105';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--primary-green);
}

.service-areas p strong {
  color: var(--primary-black);
  display: block;
  margin: 1rem 0 0.5rem 0;
}

.emergency-info p {
  color: var(--text-gray);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.emergency-info .btn-danger {
  background: #dc3545;
  border-color: #dc3545;
  font-weight: var(--font-medium);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.emergency-info .btn-danger:hover {
  background: #b02a37;
  border-color: #b02a37;
  transform: translateY(-1px);
}

/* ===== MAP SECTION ===== */
.map-section {
  position: relative;
}

.map-container {
  position: relative;
  height: 450px;
  overflow: hidden;
}

.contact-map {
  width: 100%;
  height: 100%;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(20%);
  transition: filter 0.3s ease;
}

.contact-map:hover iframe {
  filter: grayscale(0%);
}

.map-overlay {
  position: absolute;
  top: 2rem;
  left: 2rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(46, 125, 50, 0.1);
  max-width: 300px;
  z-index: 10;
}

.map-info h5 {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: var(--font-semibold);
  color: var(--primary-black);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.map-info h5 i {
  color: var(--primary-green);
}

.map-info p {
  color: var(--text-gray);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.map-info .btn {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

/* ===== CALL TO ACTION SECTION ===== */
.contact-cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-blue));
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.contact-cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.contact-cta-section h2 {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  font-weight: var(--font-bold);
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-cta-section p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.cta-buttons .btn {
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  font-weight: var(--font-semibold);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-buttons .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.cta-buttons .btn:hover::before {
  left: 100%;
}

.cta-buttons .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.cta-buttons .btn-primary {
  background: var(--white);
  color: var(--primary-green);
  border: 2px solid var(--white);
}

.cta-buttons .btn-primary:hover {
  background: transparent;
  color: var(--white);
}

.cta-buttons .btn-outline-primary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.cta-buttons .btn-outline-primary:hover {
  background: var(--white);
  color: var(--primary-green);
}

.cta-buttons .btn-success {
  background: #25d366;
  color: var(--white);
  border: 2px solid #25d366;
}

.cta-buttons .btn-success:hover {
  background: #128c7e;
  border-color: #128c7e;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991.98px) {
  .contact-hero-title {
    font-size: 2.8rem;
  }
  
  .contact-form-container {
    padding: 2rem;
    margin-bottom: 2rem;
  }
  
  .contact-info-sidebar {
    padding: 1rem;
  }
  
  .map-overlay {
    position: relative;
    top: auto;
    left: auto;
    margin: 1rem;
    max-width: none;
  }
  
  .contact-cta-section h2 {
    font-size: 2rem;
  }
}

@media (max-width: 767.98px) {
  .contact-hero-section {
    height: 60vh;
    min-height: 400px;
  }
  
  .contact-hero-title {
    font-size: 2.2rem;
  }
  
  .contact-hero-subtitle {
    font-size: 1.1rem;
  }
  
  .contact-card {
    padding: 2rem 1rem;
  }
  
  .contact-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .contact-form-container {
    padding: 1.5rem;
  }
  
  .form-title {
    font-size: 1.6rem;
  }
  
  .sidebar-section {
    padding: 1.5rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
}

@media (max-width: 575.98px) {
  .contact-hero-title {
    font-size: 1.8rem;
  }
  
  .contact-hero-subtitle {
    font-size: 1rem;
  }
  
  .contact-methods-section {
    padding: 3rem 0;
  }
  
  .contact-forms-section {
    padding: 3rem 0;
  }
  
  .contact-cta-section {
    padding: 3rem 0;
  }
  
  .contact-cta-section h2 {
    font-size: 1.8rem;
  }
  
  .contact-cta-section p {
    font-size: 1rem;
  }
  
  .scroll-indicator {
    bottom: 1rem;
  }
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
  .contact-card,
  .sidebar-section,
  .contact-form .btn-primary,
  .cta-buttons .btn {
    transition: none;
  }
  
  .scroll-indicator i {
    animation: none;
  }
  
  .contact-card::before,
  .contact-form .btn-primary::before,
  .cta-buttons .btn::before {
    display: none;
  }
}

/* Focus states for better accessibility */
.contact-card:focus-within,
.sidebar-section:focus-within {
  outline: 2px solid var(--primary-green);
  outline-offset: 2px;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  outline: none;
}

/* Print styles */
@media print {
  .contact-hero-section,
  .map-section,
  .contact-cta-section {
    display: none;
  }
  
  .contact-methods-section,
  .contact-forms-section {
    padding: 1rem 0;
  }
  
  .contact-card,
  .sidebar-section {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
