/* ==========================================
   More-Fire Gas Website - Contact Page Styles
   ========================================== */

/* --- Contact Hero Section --- */
.contact-hero {
  background: linear-gradient(135deg, var(--light-blue), var(--white));
  min-height: 40vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 0 80px;
}

.contact-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/hero-pattern.svg') center/cover;
  opacity: 0.1;
  z-index: 1;
}

.contact-hero .container {
  position: relative;
  z-index: 2;
}

.contact-hero .hero-title {
  font-size: 3.5rem;
  font-weight: var(--font-weight-extrabold);
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

.contact-hero .hero-subtitle {
  font-size: 1.2rem;
  color: var(--gray);
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
}

/* --- Contact Information Section --- */
.contact-info-section {
  background: var(--white);
}

.contact-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  transition: left 0.4s ease;
  z-index: -1;
  opacity: 0.05;
}

.contact-card:hover::before {
  left: 0;
  opacity: 0.1;
}

.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 102, 204, 0.2);
  border-color: var(--primary-blue);
}

.contact-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
  transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
  transform: scale(1.1);
  box-shadow: 0 10px 25px rgba(0, 102, 204, 0.3);
}

.contact-card h4 {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--dark-gray);
  margin-bottom: 0.5rem;
}

.contact-card p {
  color: var(--gray);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.contact-link:hover {
  background: rgba(0, 102, 204, 0.1);
  color: var(--secondary-blue);
  transform: translateX(5px);
}

.contact-link i {
  color: var(--primary-blue);
  width: 20px;
}

/* --- Business Information Section --- */
.business-info-section {
  background: var(--light-gray);
}

.info-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  height: 100%;
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 102, 204, 0.15);
}

.info-header {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--light-blue);
}

.info-header i {
  font-size: 2rem;
  color: var(--primary-blue);
  margin-right: 1rem;
}

.info-header h3 {
  font-size: 1.75rem;
  font-weight: var(--font-weight-bold);
  color: var(--dark-gray);
  margin: 0;
}

.info-content {
  color: var(--gray);
}

/* Business Hours */
.hours-list {
  margin-bottom: 1.5rem;
}

.hour-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 102, 204, 0.1);
}

.hour-item:last-child {
  border-bottom: none;
}

.day {
  font-weight: 500;
  color: var(--dark-gray);
}

.time {
  color: var(--primary-blue);
  font-weight: 500;
}

.emergency-note {
  background: rgba(220, 53, 69, 0.1);
  color: var(--primary-red);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}

/* Service Areas */
.service-areas {
  margin-bottom: 1.5rem;
}

.area-item {
  display: flex;
  align-items: center;
  padding: 10px 0;
  color: var(--gray);
}

.area-item i {
  color: var(--primary-blue);
  width: 24px;
  margin-right: 12px;
}

.delivery-note {
  background: rgba(0, 102, 204, 0.1);
  color: var(--primary-blue);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}

/* --- Google Maps Section --- */
.map-section {
  background: var(--white);
}

.map-container {
  position: relative;
  height: 450px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.google-map {
  width: 100%;
  height: 100%;
  filter: grayscale(20%);
  transition: filter 0.3s ease;
}

.google-map:hover {
  filter: grayscale(0%);
}

/* Google Maps Iframe Styles */
.google-map-iframe {
  width: 100%;
  height: 450px;
  border-radius: 0;
  overflow: hidden;
  position: relative;
}

.google-map-iframe iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(20%) contrast(0.9);
  transition: filter 0.3s ease;
}

.google-map-iframe:hover iframe {
  filter: grayscale(0%) contrast(1);
}

.map-overlay {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  padding: 1.5rem;
  max-width: 300px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.map-info h4 {
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  color: var(--dark-gray);
  margin-bottom: 0.75rem;
}

.map-info p {
  color: var(--gray);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.map-info .btn {
  font-size: 0.875rem;
  padding: 8px 16px;
}

/* --- Quick Actions Section --- */
.quick-actions-section {
  background: linear-gradient(135deg, var(--light-blue), var(--white));
  position: relative;
}

.quick-actions-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/hero-pattern.svg') center/cover;
  opacity: 0.05;
  animation: pulse-bg 4s ease-in-out infinite;
}

@keyframes pulse-bg {
  0%, 100% { opacity: 0.05; }
  50% { opacity: 0.1; }
}

.quick-actions-section .container {
  position: relative;
  z-index: 2;
}

.action-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.action-btn {
  display: flex;
  align-items: center;
  background: var(--white);
  color: var(--dark-gray);
  text-decoration: none;
  border-radius: 20px;
  padding: 1.5rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  min-width: 250px;
}

.action-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 102, 204, 0.2);
  color: var(--dark-gray);
}

.call-btn:hover {
  border-color: #28a745;
}

.whatsapp-btn:hover {
  border-color: #25D366;
}

.email-btn:hover {
  border-color: var(--primary-blue);
}

.btn-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-right: 1rem;
  transition: all 0.3s ease;
}

.call-btn .btn-icon {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: var(--white);
}

.whatsapp-btn .btn-icon {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: var(--white);
}

.email-btn .btn-icon {
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  color: var(--white);
}

.action-btn:hover .btn-icon {
  transform: scale(1.1);
}

.btn-content {
  text-align: left;
}

.btn-title {
  display: block;
  font-size: 1.1rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 0.25rem;
}

.btn-subtitle {
  display: block;
  font-size: 0.9rem;
  color: var(--gray);
}

/* --- FAQ Section --- */
.faq-section {
  background: var(--white);
}

.accordion-item {
  border: 1px solid rgba(0, 102, 204, 0.1);
  border-radius: 15px;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.accordion-button {
  background: var(--white);
  color: var(--dark-gray);
  font-weight: 500;
  padding: 1.5rem;
  border: none;
  border-radius: 15px;
  box-shadow: none;
  transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
  background: var(--light-blue);
  color: var(--primary-blue);
  box-shadow: none;
}

.accordion-button:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 0.25rem rgba(0, 102, 204, 0.25);
}

.accordion-button::after {
  background-image: none;
  content: '\f107';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 1rem;
  color: var(--primary-blue);
  transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
  transform: rotate(180deg);
}

.accordion-body {
  padding: 1.5rem;
  background: var(--white);
  color: var(--gray);
  line-height: 1.6;
  border-top: 1px solid rgba(0, 102, 204, 0.1);
}

/* --- Section Titles --- */
.section-title {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--dark-gray);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--gray);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
  .contact-hero .hero-title {
    font-size: 2.8rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .contact-card {
    padding: 2rem 1.5rem;
  }
  
  .info-card {
    padding: 2rem;
  }
  
  .map-overlay {
    position: relative;
    top: auto;
    right: auto;
    margin: 1rem;
    max-width: none;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    padding: 100px 0 60px;
  }
  
  .contact-hero .hero-title {
    font-size: 2.2rem;
  }
  
  .contact-hero .hero-subtitle {
    font-size: 1rem;
  }
  
  .contact-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .contact-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .info-card {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .info-header {
    flex-direction: column;
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .info-header i {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
  
  .action-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .action-btn {
    min-width: auto;
    width: 100%;
    max-width: 350px;
  }
  
  .map-container {
    height: 350px;
    margin: 0 1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .contact-hero .hero-title {
    font-size: 1.8rem;
  }
  
  .contact-card h4 {
    font-size: 1.25rem;
  }
  
  .info-header h3 {
    font-size: 1.5rem;
  }
  
  .action-btn {
    padding: 1.25rem 1.5rem;
  }
  
  .btn-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  .accordion-button {
    padding: 1.25rem;
    font-size: 0.95rem;
  }
  
  .accordion-body {
    padding: 1.25rem;
  }
  
  .map-container {
    height: 300px;
    border-radius: 15px;
  }
}

/* --- Loading States --- */
.contact-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 102, 204, 0.2);
  border-left: 4px solid var(--primary-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* --- Accessibility Improvements --- */
.contact-link:focus,
.action-btn:focus,
.accordion-button:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

.contact-card:focus-within {
  outline: 2px solid var(--primary-blue);
  outline-offset: 4px;
}

/* --- Print Styles --- */
@media print {
  .map-section,
  .quick-actions-section {
    display: none !important;
  }
  
  .contact-card,
  .info-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* --- Animations for Page Load --- */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-card {
  animation: slideInUp 0.6s ease-out;
}

.contact-card:nth-child(1) { animation-delay: 0.1s; }
.contact-card:nth-child(2) { animation-delay: 0.2s; }
.contact-card:nth-child(3) { animation-delay: 0.3s; }
.contact-card:nth-child(4) { animation-delay: 0.4s; }

/* --- Glass Morphism for Contact Cards --- */
.contact-card.glass-effect {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* --- Interactive Hover Effects --- */
.contact-card:active {
  transform: translateY(-8px) scale(0.98);
}

.action-btn:active {
  transform: translateY(-3px) scale(0.98);
}

/* --- Map Loading State --- */
.google-map.loading {
  background: linear-gradient(90deg, #f0f0f0 25%, transparent 37%, transparent 63%, #f0f0f0 75%);
  background-size: 400% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
