/* ============================================
   CONTACT PAGE STYLES
   Uses contact- prefix
   Bowland Pharmacy — Blue + Green palette
   ============================================ */

/* ============================================
   DECORATIVE BLOBS & DOTS (used in hero form)
   ============================================ */
.contact-hero-blob-1 {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(63, 115, 174, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
}

.contact-hero-blob-2 {
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(121, 188, 46, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  animation: float 10s ease-in-out infinite reverse;
  pointer-events: none;
}

.contact-hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(63, 115, 174, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: 1;
  pointer-events: none;
}

/* ============================================
   CONTACT INFO CARDS
   ============================================ */
.contact-info-section {
  padding: 5rem 0;
  background: var(--white);
}

.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .contact-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .contact-info-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.contact-info-card {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 1.25rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.contact-info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(63, 115, 174, 0.12);
  border-color: var(--brand-primary);
}

.contact-info-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(63, 115, 174, 0.1), rgba(63, 115, 174, 0.05));
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.5rem;
  color: var(--brand-primary);
  transition: all 0.3s ease;
}

.contact-info-card:hover .contact-info-icon {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
  color: var(--white);
  transform: scale(1.1);
}

.contact-info-label {
  font-size: 1.125rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 0.75rem;
  font-family: var(--font-heading);
}

.contact-info-value {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.5;
  margin: 0;
}

.contact-info-phone,
.contact-info-email {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-primary);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.contact-info-phone:hover,
.contact-info-email:hover {
  color: var(--brand-dark);
}

.contact-info-sublabel {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0.25rem 0 0;
}

.contact-info-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-primary);
  text-decoration: none;
  margin-top: 0.75rem;
  transition: color 0.3s ease;
}

.contact-info-link:hover {
  color: var(--brand-dark);
}

/* Hours grid inside card */
.contact-hours-grid {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0.25rem 1rem;
  text-align: left;
  margin: 0 auto;
  width: fit-content;
}

.contact-hours-day {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

.contact-hours-time {
  font-size: 0.875rem;
  color: #4b5563;
}

.contact-hours-closed {
  color: #dc2626;
  font-weight: 600;
}

/* ============================================
   CONTACT FORM + MAP SECTION (HERO)
   ============================================ */
.contact-form-section {
  padding: 5rem 0;
  background: linear-gradient(to bottom, #ffffff, #f8fafc);
}

/* When used as the hero (first section on page) */
.contact-form-hero {
  position: relative;
  padding: 80px 0 5rem;
  background: linear-gradient(to bottom, var(--brand-light), #ffffff);
  overflow: hidden;
}

.contact-form-hero .section-container {
  position: relative;
  z-index: 10;
}

.contact-form-header {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-form-title {
  font-size: 3rem;
  font-weight: 900;
  color: #111827;
  margin: 1rem 0 0.75rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-family: var(--font-heading);
}

@media (min-width: 1024px) {
  .contact-form-title {
    font-size: 4rem;
  }
}

.contact-form-subtitle {
  font-size: 1.15rem;
  color: #4b5563;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.7;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .contact-form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

/* Form Styles */
.contact-form-wrapper {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .contact-form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form-group {
  display: flex;
  flex-direction: column;
}

.contact-form-full {
  margin-bottom: 1.25rem;
}

.contact-form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.contact-required {
  color: #dc2626;
}

.contact-form-group input,
.contact-form-group select,
.contact-form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid #d1d5db;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-family: var(--font-primary);
  color: #111827;
  background: #fafbfc;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.contact-form-group input:focus,
.contact-form-group select:focus,
.contact-form-group textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(63, 115, 174, 0.15);
  background: var(--white);
}

.contact-form-group input.contact-error,
.contact-form-group select.contact-error,
.contact-form-group textarea.contact-error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.contact-form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Honeypot — visually hidden */
.contact-form-hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.contact-form-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.contact-submit-btn {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.contact-form-disclaimer {
  font-size: 0.8rem;
  color: #9ca3af;
  line-height: 1.5;
  margin: 0;
}

/* Status messages */
.contact-form-status {
  margin-top: 1rem;
  padding: 0;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  display: none;
}

.contact-form-status.contact-status-success {
  display: block;
  padding: 1rem 1.25rem;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.contact-form-status.contact-status-error {
  display: block;
  padding: 1rem 1.25rem;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* Map */
.contact-map-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-map-iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 1.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

@media (min-width: 1024px) {
  .contact-map-iframe {
    height: 100%;
    min-height: 450px;
  }
}

.contact-map-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1rem 1.5rem;
}

.contact-map-info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #4b5563;
}

.contact-map-info-item i {
  color: var(--brand-primary);
}

.contact-map-directions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-map-directions:hover {
  color: var(--brand-dark);
}

/* ============================================
   FAQ SECTION — matches weight-loss FAQ aesthetic
   ============================================ */
.contact-faq-section {
  padding: 6rem 0;
  background: var(--brand-light);
  position: relative;
  overflow: hidden;
}

.contact-faq-section::before {
  content: '';
  position: absolute;
  top: -15%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(63, 115, 174, 0.04);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.contact-faq-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.contact-faq-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: #111827;
  margin-top: 0;
  margin-bottom: 0;
  line-height: 1.15;
  font-family: var(--font-heading);
}

@media (min-width: 768px) {
  .contact-faq-title {
    font-size: 3rem;
  }
}

.contact-faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.contact-faq-item {
  background: var(--white);
  border: 1.5px solid rgba(63, 115, 174, 0.1);
  border-radius: 1.25rem;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.contact-faq-item:hover {
  border-color: rgba(63, 115, 174, 0.25);
  box-shadow: 0 8px 24px rgba(63, 115, 174, 0.08);
  transform: translateY(-2px);
}

.contact-faq-item.contact-faq-active {
  border-color: var(--brand-primary);
  box-shadow: 0 12px 32px rgba(63, 115, 174, 0.12);
  border-left: 4px solid var(--brand-primary);
}

.contact-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
}

.contact-faq-number {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.contact-faq-item:hover .contact-faq-number {
  transform: scale(1.05);
}

.contact-faq-question-text {
  flex: 1;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
}

.contact-faq-toggle {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(63, 115, 174, 0.08);
  border-radius: 50%;
  color: var(--brand-primary);
  font-size: 0.85rem;
  transition: transform 0.3s ease, background 0.3s ease;
  flex-shrink: 0;
}

.contact-faq-active .contact-faq-toggle {
  transform: rotate(45deg);
  background: rgba(63, 115, 174, 0.15);
}

.contact-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.contact-faq-active .contact-faq-answer {
  max-height: 400px;
  padding: 0 2rem 2rem 6rem;
}

.contact-faq-answer p {
  font-size: 1.0625rem;
  color: var(--text-gray);
  line-height: 1.8;
  margin: 0;
}

.contact-faq-answer a {
  color: var(--brand-primary);
  font-weight: 600;
  text-decoration: none;
}

.contact-faq-answer a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .contact-faq-question {
    padding: 1.25rem;
    gap: 1rem;
  }

  .contact-faq-active .contact-faq-answer {
    padding: 0 1.25rem 1.5rem 1.25rem;
  }
}

/* ============================================
   FINAL CTA SECTION
   ============================================ */
.contact-cta-section {
  position: relative;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
  padding: 8rem 0;
  overflow: hidden;
  text-align: center;
}

.contact-cta-blob-1 {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.contact-cta-blob-2 {
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 700px;
  height: 700px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.contact-cta-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

.contact-cta-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
}

.contact-cta-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.contact-cta-badge {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.625rem 1.5rem;
  border-radius: 9999px;
  color: var(--white);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-cta-title {
  font-size: 3rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  font-family: var(--font-heading);
}

@media (min-width: 1024px) {
  .contact-cta-title {
    font-size: 4rem;
  }
}

.contact-cta-description {
  font-size: 1.375rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 3rem;
  line-height: 1.6;
}

.contact-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .contact-cta-actions {
    flex-direction: row;
  }
}

.contact-cta-button-white {
  background: var(--white);
  color: var(--brand-dark);
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.contact-cta-button-white:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: scale(1.05);
}

.contact-cta-button-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
}

.contact-cta-button-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.contact-cta-trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 2rem;
}

.contact-cta-trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.contact-cta-trust-item i {
  font-size: 1.25rem;
  color: var(--white);
}
/* ============================================
   Item 24 — Compact homepage-style map (contact column)
   ============================================ */
.location-compact { display: flex; flex-direction: column; height: 100%; position: relative; }

.location-compact .location-map-wrapper.location-compact-map {
  position: relative;
  inset: auto;
  width: 100%;
  flex: 1 1 auto;
  min-height: 420px;
  border-radius: 1.25rem;
  overflow: hidden;
  transform: none;
  box-shadow: 0 10px 30px rgba(63, 115, 174, 0.12);
}

@media (min-width: 1024px) {
  .location-compact .location-map-wrapper.location-compact-map { transform: none; }
}

.location-compact-map .location-map-embed { min-height: 0; height: 100%; }

.location-compact-map .location-map-overlay {
  background: linear-gradient(to bottom, transparent 55%, rgba(17, 24, 39, 0.14) 100%);
}

/* Floating hours card (homepage style) inside the compact map */
.location-compact-card {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 3;
  max-width: calc(100% - 2rem);
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(63, 115, 174, 0.15);
  border-radius: 1rem;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.18);
  padding: 0.85rem 1rem;
}

.location-compact-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.location-compact-card-header .location-detail-icon {
  width: 1.6rem;
  height: 1.6rem;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.6rem;
  background: rgba(63, 115, 174, 0.1);
  color: var(--brand-primary);
  flex: 0 0 auto;
}

.location-compact-card-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-primary);
}

.location-compact-card .location-hours-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  padding: 0.15rem 0;
}

.location-compact-card .location-hours-day { color: var(--text-gray, #6b7280); }
.location-compact-card .location-hours-time { font-weight: 700; color: var(--text-dark, #111827); }
.location-compact-card .location-hours-closed { color: #dc2626; }

.location-compact-card-divider {
  height: 1px;
  background: rgba(63, 115, 174, 0.12);
  margin: 0.6rem 0;
}

.location-compact-card .location-compact-parking {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.location-compact-card .location-parking-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.75rem;
  line-height: 1.25;
}

.location-compact-card .location-parking-name { color: var(--text-dark, #111827); font-weight: 600; }

.location-compact-card .location-parking-directions {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--brand-primary);
  white-space: nowrap;
}

.location-compact-card .location-parking-directions:hover { text-decoration: underline; }

/* Info bar — mobile-first: flows BELOW the map (not overlaid). */
.location-compact-card.location-compact-bar {
  position: static;
  max-width: none;
  margin-top: 0.85rem;
  border-radius: 1.25rem;
  display: flex;
  align-items: stretch;
  gap: 1.25rem;
  padding: 0.85rem 1.1rem;
}

/* Desktop: float the card near the bottom of the map, inset from the edges
   so all four corners stay rounded (matching the form card on the left). */
@media (min-width: 601px) {
  .location-compact-card.location-compact-bar {
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.85rem;
    margin-top: 0;
    border-radius: 1rem;
  }
}

.location-compact-col--hours { flex: 0 0 auto; }

.location-compact-col--parking {
  flex: 1 1 auto;
  min-width: 0;
  border-left: 1px solid rgba(63, 115, 174, 0.12);
  padding-left: 1.25rem;
}

@media (max-width: 600px) {
  .location-compact-card.location-compact-bar {
    flex-direction: column;
    gap: 0.6rem;
  }
  .location-compact-col--parking {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(63, 115, 174, 0.12);
    padding-top: 0.6rem;
  }
}

/* Item 24 — keep the pharmacy pin balloon visible on the compact map,
   including mobile (globals hides .location-pin-label below 1024px). */
.location-compact-map .location-pin-label { display: flex; }
