/**
 * FonePro Repairs — Locations Page Styles
 * Author : FonePro Dev
 * Date   : 2026-06-06
 */

/* ── Global: centre all section headers on this page ─── */
.fp-section-header {
  text-align: center;
}
.fp-section-header .fp-section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ── Info Strip ───────────────────────────────────────── */
.fp-info-strip {
  background: #fff;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  padding: 24px 0;
}
.fp-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.fp-info-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(16,185,129,.1);
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.fp-info-label {
  font-size: .8125rem;
  color: #6b7280;
  font-weight: 500;
}
.fp-info-value {
  font-size: .9375rem;
  font-weight: 700;
  color: #111;
}

/* ── Location Cards ───────────────────────────────────── */
.fp-location-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.fp-location-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
  transform: translateY(-2px);
}
.fp-location-map {
  height: 200px;
  position: relative;
  overflow: hidden;
  background: #e5e7eb; /* shown while iframe loads */
}
.fp-location-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.fp-location-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: .6875rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: .04em;
}
.fp-badge-open   { background: #10b981; color: #fff; }
.fp-badge-closed { background: #f3f4f6; color: #6b7280; }

.fp-location-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.fp-location-name {
  font-size: 1.125rem;
  font-weight: 800;
  color: #111;
  letter-spacing: -.02em;
  margin-bottom: 2px;
}
.fp-location-city {
  font-size: .8125rem;
  color: #10b981;
  font-weight: 600;
  margin-bottom: 14px;
}
.fp-location-detail {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .875rem;
  color: #6b7280;
  margin-bottom: 8px;
}
.fp-location-detail i {
  color: #10b981;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}
.fp-location-detail a { color: inherit; }
.fp-location-detail a:hover { color: #10b981; }

.fp-location-hours {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f3f4f6;
}
.fp-location-hours-title {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 8px;
}
.fp-location-hours-row {
  display: flex;
  justify-content: space-between;
  font-size: .8125rem;
  color: #6b7280;
  margin-bottom: 3px;
}
.fp-location-hours-row span:last-child {
  font-weight: 600;
  color: #374151;
}
.fp-location-hours-row.is-today {
  background: rgba(16,185,129,.06);
  border-radius: 4px;
  padding: 2px 4px;
  margin: 0 -4px 3px;
}
.fp-location-hours-row.is-today span:last-child { color: #10b981; }

.fp-location-footer {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}
.fp-location-footer a {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 9px;
  font-size: .8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .15s;
}
.fp-btn-book           { background: #10b981; color: #fff; }
.fp-btn-book:hover     { background: #059669; color: #fff; }
.fp-btn-dir            { background: #f3f4f6; color: #374151; }
.fp-btn-dir:hover      { background: #e5e7eb; color: #111; }

/* ── "Don't see your area" CTA ────────────────────────── */
.fp-no-area-cta {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 56px 24px;
  text-align: center;
  margin-top: 40px;
}
.fp-no-area-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(16,185,129,.1);
  color: #10b981;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.fp-no-area-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #111;
  margin-bottom: 8px;
}
.fp-no-area-sub {
  color: #6b7280;
  font-size: .9375rem;
  max-width: 400px;
  margin: 0 auto 24px;
}

/* ── Empty state (no DB locations) ────────────────────── */
.fp-locations-empty {
  text-align: center;
  padding: 80px 24px;
  color: #6b7280;
}
.fp-locations-empty i {
  font-size: 48px;
  color: #d1d5db;
  margin-bottom: 16px;
  display: block;
}
.fp-locations-empty h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 8px;
}

/* ── Mail-In Section ──────────────────────────────────── */
.fp-mailin-section {
  position: relative;
  background: linear-gradient(135deg, #0a0a0a 0%, #111 55%, #0d1a12 100%);
  padding: 88px 0;
  overflow: hidden;
}

/* Subtle grid texture */
.fp-mailin-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
}

/* Glow orbs */
.fp-mailin-glow {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  pointer-events: none;
}
.fp-mailin-glow--left {
  background: radial-gradient(circle, rgba(16,185,129,.14) 0%, transparent 65%);
  top: -160px;
  left: -160px;
}
.fp-mailin-glow--right {
  background: radial-gradient(circle, rgba(16,185,129,.08) 0%, transparent 65%);
  bottom: -160px;
  right: -120px;
}

.fp-mailin-inner { position: relative; z-index: 2; }

/* Badge */
.fp-mailin-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(16,185,129,.12);
  border: 1px solid rgba(16,185,129,.28);
  color: #10b981;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

/* Headline */
.fp-mailin-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 18px;
}
.fp-mailin-title-accent {
  color: #10b981;
}

.fp-mailin-sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 28px;
}

/* Tick list */
.fp-mailin-list {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fp-mailin-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9375rem;
  color: rgba(255,255,255,.8);
  font-weight: 500;
}
.fp-mailin-list li i {
  color: #10b981;
  font-size: 16px;
  flex-shrink: 0;
}

/* Buttons */
.fp-mailin-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.fp-mailin-btn-primary {
  background: #10b981;
  color: #fff;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: .9375rem;
  border: none;
  transition: background .15s, transform .15s;
}
.fp-mailin-btn-primary:hover {
  background: #059669;
  color: #fff;
  transform: translateY(-1px);
}
.fp-mailin-btn-ghost {
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.85);
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: .9375rem;
  border: 1px solid rgba(255,255,255,.12);
  transition: all .15s;
}
.fp-mailin-btn-ghost:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
  border-color: rgba(255,255,255,.2);
}

/* Right-side steps */
.fp-mailin-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.fp-mailin-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  margin-bottom: 10px;
  transition: background .2s, border-color .2s;
}
.fp-mailin-step:last-child { margin-bottom: 0; }
.fp-mailin-step:hover {
  background: rgba(16,185,129,.07);
  border-color: rgba(16,185,129,.2);
}
.fp-mailin-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #10b981;
  color: #fff;
  font-size: .8125rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.fp-mailin-step-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.fp-mailin-step-body strong {
  font-size: .9375rem;
  font-weight: 700;
  color: #fff;
}
.fp-mailin-step-body span {
  font-size: .8125rem;
  color: rgba(255,255,255,.5);
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 991px) {
  .fp-mailin-section { padding: 64px 0; }
}
@media (max-width: 767px) {
  .fp-mailin-section { padding: 52px 0; }
  .fp-mailin-title   { font-size: 1.875rem; }
  .fp-mailin-actions { flex-direction: column; }
  .fp-mailin-btn-primary,
  .fp-mailin-btn-ghost { width: 100%; text-align: center; }
}

/* ── How It Works ─────────────────────────────────────── */
.fp-how-step {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  height: 100%;
  position: relative;
  transition: box-shadow .2s, transform .2s;
}
.fp-how-step:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.fp-how-num {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #10b981;
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fp-how-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(16,185,129,.1);
  color: #10b981;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px auto 16px;
}
.fp-how-title {
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
}
.fp-how-desc {
  font-size: .875rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

/* ── Why Choose FonePro ───────────────────────────────── */
.fp-section--alt { background: #f9fafb; }

.fp-why-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px 24px;
  height: 100%;
  transition: box-shadow .2s, transform .2s;
}
.fp-why-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.07);
  transform: translateY(-2px);
}
.fp-why-icon {
  display: block;
  font-size: 28px;
  color: #10b981;
  margin-bottom: 14px;
}
.fp-why-title {
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
}
.fp-why-desc {
  font-size: .875rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

/* ── Service Chips ─────────────────────────────────────── */
.fp-service-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: .875rem;
  font-weight: 600;
  color: #374151;
  width: 100%;
}
.fp-service-chip i {
  font-size: 18px;
  color: #10b981;
  flex-shrink: 0;
}

/* ── FAQ Accordion ─────────────────────────────────────── */
.fp-faq-accordion { display: flex; flex-direction: column; gap: 10px; }

.fp-faq-item {
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  overflow: hidden;
  background: #fff;
}
.fp-faq-btn {
  font-size: .9375rem;
  font-weight: 600;
  color: #111;
  background: #fff;
  padding: 18px 20px;
  box-shadow: none !important;
}
.fp-faq-btn:not(.collapsed) {
  color: #10b981;
  background: #fff;
}
.fp-faq-btn::after {
  filter: none;
}
.fp-faq-btn:not(.collapsed)::after {
  filter: invert(48%) sepia(79%) saturate(456%) hue-rotate(115deg) brightness(97%) contrast(87%);
}
.fp-faq-body {
  font-size: .9rem;
  color: #6b7280;
  line-height: 1.7;
  padding: 0 20px 18px;
  border-top: 1px solid #f3f4f6;
}
.fp-faq-body a { color: #10b981; }
.fp-faq-body a:hover { color: #059669; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 767px) {
  body {
    padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
  }
  html { overflow-x: hidden; }
  .fp-hamburger  { display: none !important; }
  .fp-bottom-nav { display: block; }
  .fp-nav-actions  { padding-right: 0; margin-right: -4px; }
  .fp-nav-account  { padding-right: 0; }
  .fp-page-hero    { padding: 28px 0 24px; }
  .fp-how-step     { padding: 28px 16px; }
  .fp-service-chip { padding: 10px 14px; }
}
