/* ─── Contact Page ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  gap: 1.5rem 4rem;
  margin-top: 3rem;
  align-items: start;
}

.contact-cell-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-cell-map {
  display: flex;
  align-self: stretch;
  position: relative; /* anchor for the external drag-toggle button */
  /* Lift equals the grid row-gap so the map top sits flush against
     the bottom of the Business Hours card with zero space. */
  --map-lift: 5rem;
}

.contact-cell-map .contact-map-inline {
  flex: 1;
  /* Shift up by --map-lift, then add the same amount to height so the
     bottom still reaches the row end (aligned with What Happens Next). */
  min-height: 0;
  margin-top: calc(-1 * var(--map-lift));
  height: calc(100% + var(--map-lift));
}

.whats-next-card {
  flex: 1;
}

.whats-next-card .epic-pulse-ring {
  left: auto;
  right: calc(1.75rem + 24px);
  transform: translate(50%, -50%);
}

@keyframes epicPulseRight {
  0% {
    transform: translate(50%, -50%) scale(1);
    opacity: 0.6;
  }
  100% {
    transform: translate(50%, -50%) scale(3.5);
    opacity: 0;
  }
}

.whats-next-card .epic-pulse-ring {
  animation-name: epicPulseRight;
}

.whats-next-step {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  color: white;
  box-shadow: 0 2px 10px rgba(58, 180, 233, 0.3);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  position: relative;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
}

.form-group label .form-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(58, 180, 233, 0.15), rgba(42, 235, 235, 0.08));
  font-size: 0.7rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  position: relative;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  transition: opacity 0.2s ease;
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
  opacity: 0.5;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent-4);
  box-shadow: 0 0 0 3px rgba(58, 180, 233, 0.1), 0 0 20px rgba(58, 180, 233, 0.05);
  background: rgba(58, 180, 233, 0.03);
}

.form-group input:hover:not(:focus),
.form-group textarea:hover:not(:focus),
.form-group select:hover:not(:focus) {
  border-color: var(--glass-border-hover);
  background: rgba(255, 255, 255, 0.05);
}

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

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

.form-group select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* The single-column row (Number of Employees) must override the default
   .form-row 1fr 1fr — use class-x-class specificity so source order is
   irrelevant. Width then matches Email + gap + Phone. */
.form-row.form-row--single {
  grid-template-columns: 1fr;
}

/* Employees select: inherit the standard input look (transparent glass bg,
   default font, muted placeholder), but replace the default chevron with a
   smoother SVG animation so it feels premium without standing out as a
   different control. */
.form-group--employees select {
  /* Keep generic font + transparent background from .form-group select */
  padding-right: 3rem;
  /* Hide the default tiny chevron from .form-group select; we draw our own. */
  background-image: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

/* When nothing real is selected, show "Select range" with the same muted
   color as the other inputs' placeholders (e.g. "Your name"). */
.form-group--employees select:has(option[value=""]:checked) {
  color: var(--text-muted);
}
.form-group--employees select option[value=""] {
  /* Match other inputs' placeholder color (in the dropdown list too). */
  color: var(--text-muted);
}

.form-group--employees select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-weight: 500;
  letter-spacing: normal;
}

[data-theme="light"] .form-group--employees select option {
  background: var(--bg-primary);
  color: var(--text-primary);
}

/* Custom animated chevron drawn with conic + ::after as an SVG mask. */
.form-group--employees::after {
  content: '';
  position: absolute;
  right: 1.1rem;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: 6px; /* offset for the label height above */
  pointer-events: none;
  background-color: var(--text-muted);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat center / 22px 22px;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat center / 22px 22px;
  transform: translateY(-50%);
  transition:
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    background-color 0.3s ease,
    filter 0.3s ease;
  animation: employeesChevronGlide 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.form-group--employees:hover::after {
  background-color: var(--accent-4);
  filter: drop-shadow(0 0 6px rgba(58, 180, 233, 0.45));
}

.form-group--employees:focus-within::after {
  animation: none;
  transform: translateY(-50%) rotate(-180deg);
  background-color: var(--accent-4);
  filter: drop-shadow(0 0 8px rgba(58, 180, 233, 0.6));
}

@keyframes employeesChevronGlide {
  0%, 100% { transform: translateY(-50%); }
  50%      { transform: translateY(calc(-50% + 4px)); }
}

/* Focus-within glow sweep across the select for a cooler interaction. */
.form-group--employees {
  position: relative;
}

.form-group--employees::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 14px;
  border-radius: 0 0 14px 14px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(58,180,233,0.0), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.form-group--employees:focus-within::before {
  opacity: 1;
  background: linear-gradient(90deg, transparent 0%, rgba(58,180,233,0.35) 50%, transparent 100%);
  animation: employeesFocusSweep 1.6s ease-in-out infinite;
}

@keyframes employeesFocusSweep {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea,
[data-theme="light"] .form-group select {
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus,
[data-theme="light"] .form-group select:focus {
  background: rgba(58, 180, 233, 0.04);
}

[data-theme="light"] .form-group input:hover:not(:focus),
[data-theme="light"] .form-group textarea:hover:not(:focus),
[data-theme="light"] .form-group select:hover:not(:focus) {
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .form-group--employees select option {
  background: #f5f8fc;
  color: #1d2a3a;
}

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

/* ─── Epic Contact Map ─── */
.contact-map-epic {
  position: relative;
  --pin-x: 52%;
  --pin-y: 48%;
  margin-top: 0;
  border-radius: 20px;
  overflow: hidden;
  min-height: 0;
  height: 100%;
  border: 1px solid rgba(58, 180, 233, 0.25);
  background: var(--bg-card);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

/* On stacked/tablet layouts the map is no longer adjacent to Business Hours,
   so disable the lift and use a stable standalone height. */
@media (max-width: 1024px) {
  .contact-cell-map {
    --map-lift: 0;
  }

  .contact-cell-map .contact-map-inline {
    margin-top: 0;
    height: auto;
    min-height: 380px;
  }
}

.contact-map-epic::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent 0%, rgba(58, 180, 233, 0.08) 25%, transparent 50%, rgba(42, 235, 235, 0.06) 75%, transparent 100%);
  animation: epicCardSpin 12s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.contact-map-epic::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 19px;
  background: var(--bg-card);
  z-index: 0;
}

.contact-map-epic:hover {
  border-color: var(--accent-4);
  box-shadow: 0 0 40px rgba(58, 180, 233, 0.15), 0 0 80px rgba(42, 235, 235, 0.06), 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Map Glow */
.map-glow {
  position: absolute;
  inset: 2px;
  border-radius: 18px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.3;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(58, 180, 233, 0.15), transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(42, 235, 235, 0.1), transparent 60%);
  transition: opacity 0.4s ease;
}

.contact-map-epic:hover .map-glow {
  opacity: 0.5;
}

/* Map Border Light Trail */
.map-border-light {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}

.map-border-light::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: radial-gradient(circle, rgba(58, 180, 233, 0.9), transparent 70%);
  border-radius: 50%;
  box-shadow: 0 0 16px 6px rgba(58, 180, 233, 0.35);
  offset-path: path('M10,0 H calc(100%-10) Q 100%,0 100%,10 V calc(100%-10) Q 100%,100% calc(100%-10),100% H10 Q0,100% 0,calc(100%-10) V10 Q0,0 10,0 Z');
  animation: epicBorderTrace 6s linear infinite;
}

/* Map iframe — interactive (drag, zoom, click). */
.contact-map-epic iframe {
  position: relative;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 1;
  pointer-events: auto;
  filter: grayscale(0.5) brightness(0.75) contrast(1.15) saturate(0.8);
  transition: filter 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-map-epic:hover iframe {
  filter: grayscale(0) brightness(0.95) contrast(1.05) saturate(1);
}

[data-theme="light"] .contact-map-epic iframe {
  filter: grayscale(0.25) brightness(1) contrast(1.05);
}

[data-theme="light"] .contact-map-epic:hover iframe {
  filter: none;
}

[data-theme="light"] .contact-map-epic {
  border-color: rgba(58, 180, 233, 0.2);
}

[data-theme="light"] .contact-map-epic::after {
  background: var(--bg-primary);
}

/* ── Floating Map Badge + drag-toggle wrap (top-left of the map) ──
   Decorative location label. The actual geo-anchored marker is rendered
   natively by Google Maps via the `q=lat,lng` URL parameter and stays
   anchored to the coordinates even when the user pans the map.
   The toggle button above the badge enables drag-and-drop repositioning
   of the badge anywhere inside the map area. */
.map-badge-wrap {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  pointer-events: none; /* children opt in */
  will-change: transform;
}

.map-badge-toggle {
  pointer-events: auto;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(58, 180, 233, 0.35);
  background: linear-gradient(135deg, rgba(10, 16, 28, 0.78), rgba(14, 24, 40, 0.65));
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  color: var(--accent-4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  margin-right: 10px; /* roughly center over the badge pin */
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease,
              box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

/* External variant: button is rendered as a sibling of the map (not inside
   it), pinned to the map's right edge so it's outside the rounded card. */
.map-badge-toggle--external {
  position: absolute;
  top: 14px;
  right: -42px;
  margin-right: 0;
  z-index: 6;
}
.map-badge-toggle--external::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -10px;
  width: 8px;
  height: 2px;
  background: linear-gradient(to left, rgba(58,180,233,0.7), transparent);
  transform: translateY(-50%);
  pointer-events: none;
}
@media (max-width: 820px) {
  .map-badge-toggle--external {
    right: 10px;
    top: 10px;
  }
  .map-badge-toggle--external::before { display: none; }
}

.map-badge-toggle svg { width: 14px; height: 14px; }

.map-badge-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--accent-4);
  box-shadow: 0 6px 18px rgba(58, 180, 233, 0.3);
}

/* Small connector line between the toggle button and the badge below it. */
.map-badge-toggle::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 12px;
  width: 2px;
  height: 6px;
  background: linear-gradient(to bottom, rgba(58, 180, 233, 0.7), transparent);
  pointer-events: none;
}

.map-badge-toggle[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--accent-3), var(--accent-4));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 18px rgba(58, 180, 233, 0.55), 0 6px 18px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .map-badge-toggle {
  background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(245,250,255,0.85));
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.map-badge {
  position: relative; /* now flows inside .map-badge-wrap */
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.95rem 0.55rem 0.7rem;
  background: linear-gradient(135deg, rgba(10, 16, 28, 0.78), rgba(14, 24, 40, 0.65));
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(58, 180, 233, 0.3);
  border-radius: 999px;
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(174, 244, 255, 0.06) inset,
    0 0 24px rgba(58, 180, 233, 0.12);
  pointer-events: none; /* opt-in only when draggable */
  animation: mapBadgeFloat 4.5s ease-in-out infinite;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.map-badge-wrap[data-draggable="true"] .map-badge {
  pointer-events: auto;
  cursor: grab;
  border-color: var(--accent-4);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(174, 244, 255, 0.12) inset,
    0 0 28px rgba(58, 180, 233, 0.35);
  animation-play-state: paused;
}

.map-badge-wrap[data-draggable="true"] .map-badge:active {
  cursor: grabbing;
}

[data-theme="light"] .map-badge {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(245, 250, 255, 0.85));
  border-color: rgba(58, 180, 233, 0.25);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

@keyframes mapBadgeFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

.map-badge-pin {
  position: relative;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-4);
  flex-shrink: 0;
}

.map-badge-pin svg {
  position: relative;
  width: 22px;
  height: 22px;
  z-index: 2;
  filter: drop-shadow(0 2px 6px rgba(58, 180, 233, 0.55));
  animation: mapBadgePinTilt 3.5s ease-in-out infinite;
}

@keyframes mapBadgePinTilt {
  0%, 100% { transform: rotate(-6deg); }
  50%      { transform: rotate(6deg); }
}

.map-badge-radar {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(58, 180, 233, 0.55);
  transform: translate(-50%, -50%);
  animation: mapBadgeRadar 2.2s ease-out infinite;
  pointer-events: none;
}

.map-badge-radar--2 { animation-delay: 1.1s; }

@keyframes mapBadgeRadar {
  0% {
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0.8;
    border-width: 2px;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.6);
    opacity: 0;
    border-width: 0.5px;
  }
}

.map-badge-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  line-height: 1.15;
}

.map-badge-city {
  font-size: 0.78rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent-3), var(--accent-4));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.01em;
}

.map-badge-coords {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

@media (max-width: 600px) {
  .map-badge-wrap {
    top: 10px;
    left: 10px;
  }
  .map-badge {
    padding: 0.45rem 0.75rem 0.45rem 0.55rem;
    gap: 0.55rem;
  }
  .map-badge-city  { font-size: 0.7rem;  }
  .map-badge-coords{ font-size: 0.56rem; }
  .map-badge-pin   { width: 26px; height: 26px; }
  .map-badge-pin svg { width: 18px; height: 18px; }
}

/* Legacy overlay rules (kept inert in case external refs exist) */
.map-overlay {
  position: absolute;
  top: var(--pin-y);
  left: var(--pin-x);
  transform: translate(-50%, -50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
  opacity: 1;
}

.contact-map-epic:hover .map-overlay {
  opacity: 1;
}

.map-pin {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: mapPinBounce 2s ease-in-out infinite;
}

.map-pin svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--accent-4);
  stroke-width: 1.8;
  filter: drop-shadow(0 2px 8px rgba(58, 180, 233, 0.5));
}

.map-pin-pulse {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid rgba(58, 180, 233, 0.65);
  background: transparent;
  animation: mapPinPulse 2s ease-out infinite;
}

@keyframes mapPinBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes mapPinPulse {
  0% {
    transform: translateX(-50%) scale(1);
    opacity: 0.6;
  }
  100% {
    transform: translateX(-50%) scale(4);
    opacity: 0;
  }
}

.map-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.5rem 1.25rem;
  background: rgba(10, 12, 24, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(58, 180, 233, 0.2);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .map-label {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(58, 180, 233, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.map-label-city {
  font-size: 0.95rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent-3), var(--accent-4));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.map-label-coords {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ─── Epic FAQ Cards ─── */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.faq-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.75rem;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

.faq-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent 0%, rgba(58, 180, 233, 0.06) 25%, transparent 50%, rgba(42, 235, 235, 0.04) 75%, transparent 100%);
  animation: epicCardSpin 14s linear infinite;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.faq-card:hover::before {
  opacity: 1;
}

.faq-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 15px;
  background: var(--bg-card);
  z-index: 0;
}

.faq-card:hover {
  border-color: rgba(58, 180, 233, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(58, 180, 233, 0.1), 0 15px 35px rgba(0, 0, 0, 0.12);
}

.faq-card-glow {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse at var(--glow-x, 50%) var(--glow-y, 50%), rgba(58, 180, 233, 0.12), transparent 60%);
  transition: opacity 0.3s ease;
}

.faq-card:hover .faq-card-glow {
  opacity: 1;
}

.faq-icon {
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(58, 180, 233, 0.12), rgba(42, 235, 235, 0.06));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  transition: all 0.4s ease;
  border: 1px solid rgba(58, 180, 233, 0.1);
}

.faq-card:hover .faq-icon {
  background: var(--brand-gradient);
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 4px 20px rgba(58, 180, 233, 0.35);
  border-color: transparent;
}

.faq-card h4 {
  position: relative;
  z-index: 2;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.faq-card:hover h4 {
  background: linear-gradient(90deg, var(--accent-3), var(--accent-4));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.faq-card p {
  position: relative;
  z-index: 2;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

[data-theme="light"] .faq-card:hover {
  box-shadow: 0 0 25px rgba(58, 180, 233, 0.08), 0 12px 30px rgba(0, 0, 0, 0.06);
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-card {
  display: flex;
  gap: 1.25rem;
  padding: 2rem 2.25rem;
  min-height: 110px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  transition: all var(--transition-med);
}

.contact-info-card h4 {
  font-size: 1.05rem;
}

.contact-info-card .epic-highlight {
  font-size: 0.95rem;
}

.contact-info-card:hover {
  border-color: var(--glass-border-hover);
  box-shadow: var(--glow-sm);
}

/* ─── Epic Info Cards (shared) ─── */
.contact-info-card--epic {
  position: relative;
  background: linear-gradient(135deg, rgba(58, 180, 233, 0.08), rgba(42, 235, 235, 0.04));
  border-color: rgba(58, 180, 233, 0.25);
  overflow: hidden;
  cursor: pointer;
  perspective: 800px;
  transform-style: preserve-3d;
  transition: transform 0.15s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  padding: 1.75rem;
}

.contact-info-card--epic::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent 0%, rgba(58, 180, 233, 0.12) 25%, transparent 50%, rgba(42, 235, 235, 0.08) 75%, transparent 100%);
  animation: epicCardSpin 8s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.contact-info-card--epic::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 15px;
  background: var(--bg-card);
  z-index: 0;
}

.contact-info-card--epic:hover {
  border-color: var(--accent-4);
  box-shadow: 0 0 30px rgba(58, 180, 233, 0.2), 0 0 60px rgba(42, 235, 235, 0.08), 0 20px 40px rgba(0,0,0,0.15);
}

/* Aurora Background */
.epic-aurora {
  position: absolute;
  inset: 2px;
  border-radius: 14px;
  z-index: 1;
  opacity: 0.4;
  background:
    linear-gradient(120deg, rgba(58,180,233,0.15) 0%, transparent 40%),
    linear-gradient(240deg, rgba(42,235,235,0.12) 0%, transparent 40%),
    linear-gradient(0deg, rgba(120,80,220,0.08) 0%, transparent 40%);
  background-size: 200% 200%;
  animation: epicAurora 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes epicAurora {
  0%, 100% { background-position: 0% 50%, 100% 50%, 50% 100%; }
  33% { background-position: 100% 30%, 0% 70%, 30% 0%; }
  66% { background-position: 50% 100%, 50% 0%, 100% 50%; }
}

/* Border Light Trail */
.epic-border-light {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.epic-border-light::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background: radial-gradient(circle, rgba(58,180,233,0.9), transparent 70%);
  border-radius: 50%;
  box-shadow: 0 0 12px 4px rgba(58,180,233,0.4);
  offset-path: path('M8,0 H calc(100%-8) Q 100%,0 100%,8 V calc(100%-8) Q 100%,100% calc(100%-8),100% H8 Q0,100% 0,calc(100%-8) V8 Q0,0 8,0 Z');
  animation: epicBorderTrace 4s linear infinite;
}

@keyframes epicBorderTrace {
  0% { offset-distance: 0%; }
  100% { offset-distance: 100%; }
}

/* Pulse Rings */
.epic-pulse-ring {
  position: absolute;
  top: 50%;
  left: calc(1.75rem + 24px);
  width: 48px;
  height: 48px;
  transform: translate(-50%, -50%);
  border: 1.5px solid rgba(58, 180, 233, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  animation: epicPulse 3s ease-out infinite;
}

.epic-pulse-ring--2 { animation-delay: 1s; }
.epic-pulse-ring--3 { animation-delay: 2s; }

@keyframes epicPulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(3.5);
    opacity: 0;
  }
}

/* Glassmorphism Depth Layers */
.epic-glass {
  position: absolute;
  border-radius: 14px;
  border: 1px solid rgba(58,180,233,0.06);
  pointer-events: none;
  z-index: 1;
}

.epic-glass--1 {
  inset: -3px -4px -4px -3px;
  background: rgba(58,180,233,0.02);
  /* Backdrop blur removed: it was bleeding around the contact info cards
     and made them look softly out of focus, especially on hover. */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.epic-glass--2 {
  inset: -6px -8px -8px -6px;
  background: rgba(42,235,235,0.01);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 18px;
}

/* Particle Container */
.epic-particles {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
  border-radius: 16px;
}

.epic-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  pointer-events: none;
}

/* Epic Card Content */
.epic-card-content {
  position: relative;
  z-index: 5;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.contact-info-card--epic .contact-info-icon {
  background: var(--brand-gradient);
  color: white;
  font-size: 1.4rem;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(58, 180, 233, 0.3);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.contact-info-card--epic:hover .contact-info-icon {
  box-shadow: 0 4px 25px rgba(58, 180, 233, 0.5), 0 0 40px rgba(42,235,235,0.15);
  transform: scale(1.05);
}

/* Epic Card Icon SVG animation */
.epic-icon-wrap {
  position: relative;
  overflow: visible;
}

.epic-icon-wrap svg {
  width: 26px;
  height: 26px;
  stroke: white;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.epic-icon-wrap .icon-static {
  opacity: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.epic-icon-wrap .icon-hover {
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%) scale(0.8);
}

.contact-info-card--epic:hover .icon-static {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
}

.contact-info-card--epic:hover .icon-hover {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.contact-info-card--epic:hover .anim-path {
  animation: epicLetterSlide 0.6s 0.2s ease forwards;
}

@keyframes epicLetterSlide {
  to { stroke-dashoffset: 0; }
}

/* Epic Card Highlight Text */
.epic-highlight {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  background: linear-gradient(90deg, var(--accent-3), var(--accent-4));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

/* Epic Card CTA */
.epic-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--accent-4);
  font-weight: 500;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s ease;
}

/* Email card: put the address and the "Click to copy" CTA on the same row
   so the address can take full width without the CTA pushing under it. */
.epic-card-body--inline .epic-email-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 0.85rem;
}
.epic-card-body--inline .epic-email-row .epic-highlight { margin: 0; }
.epic-card-body--inline .epic-email-row .epic-cta { margin-top: 0; }

/* FAQ section — sits a comfortable gap below the contact grid + map. */
.faq-section--tight {
  margin-top: 3rem !important;
}
.faq-section--tight .section-label { margin-top: 0 !important; margin-bottom: 0.5rem !important; }
.faq-section--tight h2 { margin-top: 0 !important; margin-bottom: 0.85rem !important; }

.contact-info-card--epic:hover .epic-cta {
  opacity: 1;
  transform: translateX(0);
}

.contact-info-card--no-copy {
  cursor: default;
}

.contact-info-card--no-copy .epic-cta,
.contact-info-card--no-copy:hover .epic-cta {
  opacity: 0.9;
  transform: translateX(0);
  color: var(--text-secondary);
}

@keyframes epicCardSpin {
  to { transform: rotate(360deg); }
}

[data-theme="light"] .contact-info-card--epic {
  background: linear-gradient(135deg, rgba(58, 180, 233, 0.06), rgba(42, 235, 235, 0.03));
}

[data-theme="light"] .contact-info-card--epic::after {
  background: var(--bg-primary);
}

[data-theme="light"] .epic-aurora {
  opacity: 0.25;
}

[data-theme="light"] .epic-glass--1,
[data-theme="light"] .epic-glass--2 {
  background: rgba(58,180,233,0.03);
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(58, 180, 233, 0.1), rgba(42, 235, 235, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}


/* ── FAQ Expandable ── */
.faq-card {
  cursor: pointer;
}
.faq-card .faq-toggle {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(58,180,233,0.1);
  border: 1px solid rgba(58,180,233,0.2);
  color: var(--accent-3);
  font-size: 1.1rem;
  font-weight: 300;
  flex-shrink: 0;
  margin-left: auto;
  transition: transform 0.35s, background 0.3s;
  line-height: 1;
}
.faq-card.open .faq-toggle {
  transform: rotate(45deg);
  background: var(--brand-gradient);
  color: #fff;
  border-color: transparent;
}
.faq-card .faq-q-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.faq-card .faq-q-row h4 {
  margin-bottom: 0;
}
.faq-card p {
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
  margin-bottom: 0;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin-top 0.3s ease;
}
.faq-card.open p {
  max-height: 200px;
  opacity: 1;
  margin-top: 0.75rem;
}


/* ── Contact Form Validation ── */
.form-group { position: relative; }
.form-group .auth-hint { position: absolute; bottom: -18px; left: 0; }
.form-asterisk { color: #f44; margin-left: 2px; }

/* ── Booking Section ── */
.booking-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.booking-card:hover {
  border-color: var(--accent-3);
  box-shadow: 0 8px 32px rgba(58,180,233,0.1);
}
.booking-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.booking-slot {
  padding: 0.6rem;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  background: var(--bg-secondary);
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text-primary);
}
.booking-slot:hover {
  border-color: var(--accent-3);
}
.booking-slot.selected {
  background: var(--brand-gradient);
  color: #fff;
  border-color: transparent;
}
.booking-slot-day {
  font-weight: 600;
  font-size: 0.9rem;
  display: block;
}
.booking-slot-time {
  font-size: 0.78rem;
  opacity: 0.8;
}

@media (max-width: 1024px) {
  .auth-modal { padding: 1.5rem; width: 95%; }
  .nav-user-dropdown { width: 240px; right: 0.5rem; }

  /* ── Contact grid: stack to single column ── */
  .contact-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 1rem;
    margin-top: 1rem;
  }

  /* On mobile the map is no longer adjacent to anything — give it a fixed height */
  .contact-cell-map {
    --map-lift: 0;
  }
  .contact-cell-map .contact-map-inline {
    margin-top: 0;
    height: auto;
    min-height: 260px;
  }

  /* Form rows: collapse 2-col pairs to single column */
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Remove extra bottom margin on stacked form groups */
  .form-row .form-group {
    margin-bottom: 0.85rem;
  }

  /* Info cards: tighten padding */
  .contact-info-card--epic {
    padding: 1.25rem;
  }
  .contact-info-card--epic .contact-info-icon {
    width: 48px;
    height: 48px;
  }

  /* Email card: wrap address + CTA vertically */
  .epic-card-body--inline .epic-email-row {
    flex-direction: column;
    gap: 0.25rem;
  }

  /* FAQ grid: single column */
  .faq-grid {
    grid-template-columns: 1fr;
  }

  /* Cancel the desktop negative pull-up — let FAQ sit naturally after the grid */
  .faq-section--tight {
    margin-top: 1.25rem !important;
    padding-top: 0 !important;
  }

  /* Collapse grid rows to all-auto so the 1fr row doesn't create a giant void */
  .contact-grid {
    grid-template-rows: auto;
  }

  /* Map cell: remove stretch so it doesn't inflate the row */
  .contact-cell-map {
    align-self: auto;
  }

  /* Booking slots: 2 columns on mobile */
  .booking-slots {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Mobile ordering: Send + What Happens Next before info cards */
  .contact-cell-form { order: 1; }
  .contact-cell-bottom-left { order: 2; }
  .contact-info-col { order: 3; }
  .contact-cell-map { order: 4; }
}

/* Always show email CTA hint on touch devices (no hover state on mobile) */
@media (pointer: coarse) {
  .contact-info-card--epic .epic-cta {
    opacity: 0.85;
    transform: translateX(0);
  }
}

/* Hide booking section on mobile — too tall; user reaches out via the form */
@media (max-width: 1024px) {
  #bookingSection {
    display: none;
  }
}
