/* ===== COMPACT CONTACT PAGE STYLES - ARM COALTEC ===== */
/* Professional, Compact, Premium Design matching website theme */

/* Ensure header remains fixed on contact page */
.header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
}

/* Import design system variables */
:root {
  /* Using existing website color scheme */
  --deep-muted-green: #1e392f;
  --off-white-cream: #fdfdf5;
  --muted-gold: #daa520;
  --deep-green-text: #1e392f;
  --keyline-border: rgba(42, 74, 63, 0.3);
  --premium-shadow: rgba(0, 0, 0, 0.08);
  --transition-duration: 0.3s;
  --gold-accent: #e6b800;
}

/* Compact Contact Hero Section */
.contact-hero-compact {
  position: relative;
  background: linear-gradient(135deg, var(--deep-muted-green) 0%, #2a4a3f 100%);
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 40px;
  text-align: center;
  overflow: hidden;
}

.contact-hero-compact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 30%, rgba(218, 165, 32, 0.1) 0%, transparent 70%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

.contact-hero-content-compact {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.contact-hero-title-compact {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--off-white-cream);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.contact-hero-subtitle-compact {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--off-white-cream);
  opacity: 0.9;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  margin-bottom: 0;
}

/* Alert Messages - Compact */
.alert-compact {
  padding: 0.75rem 0;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
}

.alert-success-compact {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
  border-bottom: 2px solid #28a745;
}

.alert-error-compact {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
  border-bottom: 2px solid #dc3545;
}

/* Main Compact Contact Section */
.contact-main-compact {
  background: linear-gradient(to bottom, #ffffff 0%, var(--off-white-cream) 100%);
  padding: 2rem 0;
}

.contact-container-compact {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Compact Contact Information */
.contact-info-compact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-card-compact {
  background: #ffffff;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(218, 165, 32, 0.1);
  transition: all var(--transition-duration) cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.contact-card-compact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--muted-gold), var(--gold-accent));
  transform: scaleX(0);
  transition: transform var(--transition-duration) ease;
}

.contact-card-compact:hover::before {
  transform: scaleX(1);
}

.contact-card-compact:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(218, 165, 32, 0.15);
  border-color: rgba(218, 165, 32, 0.2);
}

.card-icon-compact {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--muted-gold), var(--gold-accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--deep-green-text);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(218, 165, 32, 0.3);
  transition: transform var(--transition-duration) ease;
}

.contact-card-compact:hover .card-icon-compact {
  transform: scale(1.1);
}

.card-content-compact {
  flex: 1;
  min-width: 0;
}

.card-title-compact {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--deep-green-text);
  margin-bottom: 0.25rem;
}

.card-text-compact {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: #6c757d;
  line-height: 1.4;
}

.card-text-compact a {
  color: #6c757d;
  text-decoration: none;
  transition: color var(--transition-duration) ease;
}

.card-text-compact a:hover {
  color: var(--muted-gold);
}

/* Form & Map Grid - Compact */
.form-map-grid-compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

/* Compact Contact Form */
.contact-form-compact {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(218, 165, 32, 0.1);
  position: relative;
  overflow: hidden;
}

.contact-form-compact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(218, 165, 32, 0.02) 0%, transparent 50%);
  pointer-events: none;
}

.form-title-compact {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--deep-green-text);
  margin-bottom: 1.25rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.form-compact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.form-row-compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-input-compact,
.form-select-compact,
.form-textarea-compact {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(52, 58, 64, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--deep-green-text);
  transition: all var(--transition-duration) cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  width: 100%;
}

.form-input-compact::placeholder,
.form-textarea-compact::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.form-input-compact:focus,
.form-select-compact:focus,
.form-textarea-compact:focus {
  border-color: var(--muted-gold);
  box-shadow: 0 0 0 4px rgba(218, 165, 32, 0.1);
  transform: translateY(-2px);
  background: #ffffff;
}

.form-textarea-compact {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}

.form-submit-compact {
  background: linear-gradient(135deg, var(--muted-gold) 0%, var(--gold-accent) 100%);
  color: var(--deep-green-text);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-duration) cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  box-shadow: 0 4px 16px rgba(218, 165, 32, 0.3);
  position: relative;
  overflow: hidden;
}

.form-submit-compact::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.form-submit-compact:hover::before {
  left: 100%;
}

.form-submit-compact:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(218, 165, 32, 0.4);
  background: linear-gradient(135deg, var(--gold-accent) 0%, #f0c814 100%);
}

/* Compact Map Section */
.map-compact {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(218, 165, 32, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.map-title-compact {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--deep-green-text);
  margin: 0;
  padding: 1rem 1.5rem 0.5rem;
  text-align: center;
}

.map-container-compact {
  flex: 1;
  min-height: 200px;
  position: relative;
  margin: 0 1rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-container-compact iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(20%) contrast(1.05);
  transition: filter var(--transition-duration) ease;
}

.map-container-compact:hover iframe {
  filter: grayscale(0%) contrast(1);
}

.map-actions-compact {
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--off-white-cream) 0%, #ffffff 100%);
  border-top: 1px solid rgba(218, 165, 32, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.directions-compact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--muted-gold) 0%, var(--gold-accent) 100%);
  color: var(--deep-green-text);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(218, 165, 32, 0.3);
  transition: all var(--transition-duration) ease;
  position: relative;
  overflow: hidden;
}

.directions-compact::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.5s ease;
}

.directions-compact:hover::before {
  left: 100%;
}

.directions-compact:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(218, 165, 32, 0.4);
  background: linear-gradient(135deg, #c8941c 0%, #d4a017 100%);
  color: #ffffff;
}

.directions-compact:hover svg {
  color: #ffffff;
}

.social-compact {
  display: flex;
  gap: 0.5rem;
}

.social-link-compact {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(30, 57, 47, 0.05);
  border-radius: 8px;
  color: var(--deep-green-text);
  text-decoration: none;
  border: 1px solid rgba(218, 165, 32, 0.2);
  transition: all var(--transition-duration) ease;
  position: relative;
  overflow: hidden;
}

.social-link-compact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--muted-gold) 0%, var(--gold-accent) 100%);
  opacity: 0;
  transition: opacity var(--transition-duration) ease;
}

.social-link-compact svg {
  position: relative;
  z-index: 2;
  transition: all var(--transition-duration) ease;
}

.social-link-compact:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(218, 165, 32, 0.3);
  border-color: var(--muted-gold);
}

.social-link-compact:hover::before {
  opacity: 1;
}

.social-link-compact:hover svg {
  color: #ffffff;
  transform: scale(1.1);
}

/* Compact Business Hours */
.business-hours-compact {
  background: var(--deep-muted-green);
  padding: 1.5rem 0;
  position: relative;
  overflow: hidden;
}

.business-hours-compact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(218, 165, 32, 0.08) 0%, transparent 70%);
  animation: businessGlow 10s ease-in-out infinite alternate;
}

.hours-container-compact {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hours-title-compact {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--off-white-cream);
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hours-grid-compact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  max-width: 800px;
  margin: 0 auto;
}

.hours-item-compact {
  background: rgba(253, 253, 245, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(253, 253, 245, 0.15);
  border-radius: 10px;
  padding: 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: all var(--transition-duration) ease;
}

.hours-item-compact:hover {
  background: rgba(253, 253, 245, 0.12);
  border-color: rgba(218, 165, 32, 0.3);
  transform: translateY(-2px);
}

.day-compact {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.time-compact {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--off-white-cream);
  opacity: 0.9;
}

/* Animations */
@keyframes heroGlow {
  0% {
    opacity: 0.6;
  }

  100% {
    opacity: 1;
  }
}

@keyframes businessGlow {
  0% {
    opacity: 0.4;
  }

  100% {
    opacity: 0.8;
  }
}

/* Responsive Design - Mobile First */
@media (max-width: 1024px) {
  .form-map-grid-compact {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-info-compact {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .contact-hero-compact {
    padding: 100px 0 30px 0;
  }

  .contact-container-compact {
    padding: 0 1rem;
  }

  .contact-main-compact {
    padding: 1.5rem 0;
  }

  .contact-info-compact {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .contact-card-compact {
    padding: 0.75rem;
  }

  .card-icon-compact {
    width: 32px;
    height: 32px;
  }

  .form-row-compact {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .contact-form-compact,
  .map-compact {
    padding: 1.25rem;
  }

  .form-title-compact {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  .map-container-compact {
    min-height: 180px;
    margin: 0 0.5rem;
  }

  .map-actions-compact {
    padding: 0.75rem 1rem;
    flex-direction: column;
    gap: 0.75rem;
  }

  .social-compact {
    justify-content: center;
  }

  .hours-grid-compact {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .hours-item-compact {
    padding: 0.5rem 0.4rem;
  }
}

@media (max-width: 480px) {
  .contact-hero-compact {
    padding: 90px 0 25px 0;
  }

  .contact-hero-content-compact {
    padding: 0 1rem;
  }

  .contact-container-compact {
    padding: 0 0.75rem;
  }

  .contact-main-compact {
    padding: 1.25rem 0;
  }

  .contact-card-compact {
    padding: 0.625rem;
    gap: 0.5rem;
  }

  .card-icon-compact {
    width: 28px;
    height: 28px;
  }

  .card-title-compact {
    font-size: 0.8rem;
  }

  .card-text-compact {
    font-size: 0.75rem;
  }

  .contact-form-compact,
  .map-compact {
    padding: 1rem;
  }

  .form-title-compact {
    font-size: 1.2rem;
  }

  .form-input-compact,
  .form-select-compact,
  .form-textarea-compact {
    padding: 0.625rem 0.75rem;
    font-size: 0.85rem;
  }

  .form-submit-compact {
    padding: 0.625rem 1.25rem;
    font-size: 0.85rem;
  }

  .map-title-compact {
    font-size: 1.2rem;
    padding: 0.75rem 1rem 0.5rem;
  }

  .map-container-compact {
    min-height: 160px;
  }

  .directions-compact {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }

  .directions-compact:hover {
    color: #ffffff;
  }

  .directions-compact:hover svg {
    color: #ffffff;
  }

  .social-link-compact {
    width: 28px;
    height: 28px;
  }

  .social-link-compact:hover svg {
    color: #ffffff;
  }

  .hours-container-compact {
    padding: 0 1rem;
  }

  .hours-title-compact {
    font-size: 1.3rem;
  }

  .hours-grid-compact {
    grid-template-columns: 1fr;
  }

  .day-compact {
    font-size: 0.7rem;
  }

  .time-compact {
    font-size: 0.65rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus states */
.form-input-compact:focus-visible,
.form-select-compact:focus-visible,
.form-textarea-compact:focus-visible,
.form-submit-compact:focus-visible,
.directions-compact:focus-visible,
.social-link-compact:focus-visible {
  outline: 2px solid var(--muted-gold);
  outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {

  .contact-card-compact,
  .contact-form-compact,
  .map-compact {
    border: 2px solid var(--deep-green-text);
  }

  .form-input-compact,
  .form-select-compact,
  .form-textarea-compact {
    border: 2px solid var(--deep-green-text);
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {

  .form-input-compact,
  .form-select-compact,
  .form-textarea-compact {
    min-height: 44px;
  }

  .form-submit-compact,
  .directions-compact {
    min-height: 44px;
  }

  .social-link-compact {
    min-width: 44px;
    min-height: 44px;
  }

  /* Ensure buttons remain visible on touch devices */
  .directions-compact:active {
    background: linear-gradient(135deg, #c8941c 0%, #d4a017 100%);
    color: #ffffff;
  }

  .directions-compact:active svg {
    color: #ffffff;
  }

  .social-link-compact:active::before {
    opacity: 1;
  }

  .social-link-compact:active svg {
    color: #ffffff;
  }
}

/* Ensure SVG icons inherit color properly */
.directions-compact svg,
.social-link-compact svg {
  stroke: currentColor;
  fill: none;
}

/* Additional contrast improvements */
.directions-compact {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.directions-compact:hover {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Ensure proper z-index for interactive elements */
.map-actions-compact {
  position: relative;
  z-index: 10;
}

.directions-compact,
.social-link-compact {
  position: relative;
  z-index: 11;
}