/* ========================================
   MODERN CONTACT PAGE STYLES (contact.html)
   Beautiful form-free contact page design
======================================== */

/* Import additional Google Fonts for variety */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* Global improvements for contact page */
.sub_page .contact_section {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: 
    linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="contact-grain" width="100" height="100" patternUnits="userSpaceOnUse"><filter id="contactNoiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="1" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23contactNoiseFilter)" opacity="0.02"/></pattern></defs><rect width="100%" height="100%" fill="url(%23contact-grain)"/></svg>');
  position: relative;
  overflow: hidden;
}

.sub_page .contact_section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(0, 187, 240, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(102, 126, 234, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(118, 75, 162, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

/* Enhanced heading container */
.contact_section .heading_container {
  position: relative;
  z-index: 2;
  margin-bottom: 60px;
}

.contact_section .heading_container h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact_section .heading_container h2 span {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.contact_section .heading_container p {
  font-size: 1.25rem;
  color: #4a5568;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 400;
}

/* Contact Intro Hero Section */
.contact_intro {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 24px;
  padding: 60px 40px;
  color: white;
  margin-bottom: 80px;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 20px 60px rgba(102, 126, 234, 0.3),
    0 8px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact_intro::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 100 100"><defs><pattern id="contact-hero-texture" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="0.8" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23contact-hero-texture)"/></svg>');
  pointer-events: none;
}

.contact_intro .row {
  position: relative;
  z-index: 1;
}

.contact_intro h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
  line-height: 1.2;
}

.contact_intro p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: white;
  opacity: 0.95;
}

/* Response Time Badge */
.response_time {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.response_time:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.response_icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: all 0.3s ease;
}

.response_icon i {
  font-size: 1.5rem;
  color: white !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Ensure Font Awesome icons are properly loaded and visible */
.response_icon i.fa {
  font-family: 'FontAwesome' !important;
  font-style: normal !important;
  font-weight: normal !important;
  line-height: 1 !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: auto !important;
}

/* Specific styling for history/time icon */
.response_icon i.fa-history {
  position: relative;
  z-index: 1;
}

.response_icon i.fa-history::before {
  content: "\f1da"; /* FontAwesome history icon code */
  font-family: 'FontAwesome' !important;
  color: white !important;
  font-size: 1.5rem !important;
}

.response_time:hover .response_icon {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.3);
}

.response_text h5 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
  margin-bottom: 4px;
}

.response_text p {
  font-size: 0.95rem;
  color: white;
  opacity: 0.9;
  margin: 0;
}

/* Contact Info Cards Grid */
.contact_info_cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.contact_info_card {
  background: white;
  border-radius: 20px;
  padding: 32px 24px;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.8);
  text-align: center;
}

.contact_info_card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.05), transparent);
  transition: left 0.6s ease;
}

.contact_info_card:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.12),
    0 4px 12px rgba(102, 126, 234, 0.15);
  border-color: rgba(102, 126, 234, 0.2);
}

.contact_info_card:hover::before {
  left: 100%;
}

.contact_icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: all 0.3s ease;
}

.contact_info_card:hover .contact_icon {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.contact_icon i {
  font-size: 1.5rem;
  color: white;
}

.contact_detail h5 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 12px;
}

.contact_detail p {
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 12px;
  font-size: 1rem;
}

.contact_detail a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact_detail a:hover {
  color: #764ba2;
  text-decoration: none;
}

.availability,
.response_time_text {
  font-size: 0.875rem;
  color: #718096;
  font-style: italic;
}

/* Location link styling */
.location_link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: #667eea !important;
  margin-top: 8px;
  transition: all 0.3s ease;
}

.location_link:hover {
  color: #764ba2 !important;
  transform: translateX(2px);
}

/* Chat button styling */
.chat_button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  margin-top: 8px;
}

.chat_button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Business Hours Card */
.business_hours {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.3s ease;
}

.business_hours:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 8px 30px rgba(0, 0, 0, 0.12),
    0 2px 6px rgba(102, 126, 234, 0.1);
}

.business_hours h5 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 16px;
  text-align: center;
}

.hours_list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hours_item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.hours_item:last-child {
  border-bottom: none;
}

.hours_item span:first-child {
  color: #4a5568;
  font-weight: 500;
}

.hours_item span:last-child {
  color: #1a202c;
  font-weight: 600;
}

/* CTA Section */
.contact_cta_section {
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 20px 60px rgba(26, 32, 44, 0.3),
    0 8px 20px rgba(0, 0, 0, 0.1);
}

.contact_cta_section::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 100 100"><defs><pattern id="cta-dots" width="30" height="30" patternUnits="userSpaceOnUse"><circle cx="15" cy="15" r="1" fill="rgba(102,126,234,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23cta-dots)"/></svg>');
  pointer-events: none;
}

.cta_content {
  position: relative;
  z-index: 1;
}

.cta_content h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  line-height: 1.2;
}

.cta_content p {
  font-size: 1.125rem;
  color: #cbd5e0;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.cta_buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta_buttons .btn {
  padding: 16px 32px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  border: 2px solid transparent;
}

.cta_buttons .btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: transparent;
}

.cta_buttons .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
  color: white;
}

.cta_buttons .btn-outline {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

.cta_buttons .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  color: white;
}

/* Enhanced animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Animation delays for staggered effect */
.contact_intro {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1s ease-out 0.1s both;
}

.contact_info_card {
  opacity: 0;
  transform: translateY(40px);
}

.contact_info_card:nth-child(1) { animation: fadeInUp 0.8s ease-out 0.2s both; }
.contact_info_card:nth-child(2) { animation: fadeInUp 0.8s ease-out 0.3s both; }
.contact_info_card:nth-child(3) { animation: fadeInUp 0.8s ease-out 0.4s both; }
.contact_info_card:nth-child(4) { animation: fadeInUp 0.8s ease-out 0.5s both; }

.business_hours {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.contact_cta_section {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1s ease-out 0.7s both;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .contact_section .heading_container h2 {
    font-size: 3rem;
  }
  
  .contact_intro {
    padding: 50px 30px;
  }
  
  .contact_info_cards {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 992px) {
  .contact_section .heading_container h2 {
    font-size: 2.5rem;
  }
  
  .contact_intro h3 {
    font-size: 1.875rem;
  }
  
  .contact_intro {
    text-align: center;
    padding: 40px 25px;
  }
  
  .contact_info_cards {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cta_content h3 {
    font-size: 1.875rem;
  }
}

@media (max-width: 768px) {
  .contact_section .heading_container h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
  }
  
  .contact_section .heading_container p {
    font-size: 1.125rem;
  }
  
  .contact_intro {
    padding: 35px 20px;
  }
  
  .contact_intro h3 {
    font-size: 1.625rem;
  }
  
  .contact_intro p {
    font-size: 1rem;
  }
  
  .contact_info_cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .contact_info_card {
    padding: 28px 20px;
  }
  
  .contact_cta_section {
    padding: 50px 25px;
    margin-top: 60px;
  }
  
  .cta_buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta_buttons .btn {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 576px) {
  .contact_section .heading_container h2 {
    font-size: 1.875rem;
  }
  
  .contact_intro {
    padding: 30px 15px;
  }
  
  .contact_intro h3 {
    font-size: 1.5rem;
  }
  
  .response_time {
    padding: 20px;
  }
  
  .response_icon {
    width: 50px;
    height: 50px;
  }
  
  .contact_info_card {
    padding: 24px 16px;
  }
  
  .contact_icon {
    width: 60px;
    height: 60px;
  }
  
  .contact_detail h5 {
    font-size: 1.125rem;
  }
  
  .business_hours {
    padding: 20px;
  }
  
  .contact_cta_section {
    padding: 40px 20px;
  }
  
  .cta_content h3 {
    font-size: 1.625rem;
  }
  
  .cta_content p {
    font-size: 1rem;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .contact_intro,
  .contact_info_card,
  .business_hours,
  .contact_cta_section {
    animation: none;
    opacity: 1;
    transform: none;
  }
  
  .contact_info_card,
  .response_time,
  .business_hours,
  .chat_button,
  .btn {
    transition: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .contact_intro,
  .contact_info_card,
  .business_hours,
  .contact_cta_section {
    border: 2px solid #000;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .sub_page .contact_section {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
  }
  
  .contact_section .heading_container h2 {
    color: #f7fafc;
  }
  
  .contact_section .heading_container p {
    color: #cbd5e0;
  }
  
  .contact_info_card,
  .business_hours {
    background: #2d3748;
    border-color: #4a5568;
  }
  
  .contact_detail h5,
  .business_hours h5 {
    color: #f7fafc;
  }
  
  .contact_detail p,
  .hours_item span {
    color: #cbd5e0;
  }
}
