/* ─── Cutera Find a Provider Plugin Styles ─────────────────────────── */

:root {
  --fap-primary:   #003087;
  --fap-secondary: #00a3e0;
  --fap-text:      #1a1a2e;
  --fap-muted:     #6b7280;
  --fap-border:    #e5e7eb;
}

/* ─── Map ────────────────────────────────────────────────────────────── */
#googleMap {
  width: 100%;
  height: 460px;
}

@media (min-width: 768px) {
  #googleMap { height: 620px; }
  #googleMapHldr { position: sticky; top: 80px; }
}

/* ─── Provider list container ────────────────────────────────────────── */
#cutera-fap-provider-list {
  display: flex;
  flex-direction: column;
  max-height: 620px;
  overflow-y: auto;
}

#cutera-fap-provider-list::-webkit-scrollbar       { width: 4px; }
#cutera-fap-provider-list::-webkit-scrollbar-track { background: #f1f1f1; }
#cutera-fap-provider-list::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }

#cutera-fap-provider-list > h3 {
  padding: 24px 0;
  color: var(--fap-muted);
  font-size: 15px;
  font-weight: 400;
}

.cutera-fap__no-results-header {
  padding: 24px 0 0;
  font-size: 18px;
  margin-bottom: 8px;
}

/* ─── Provider card ──────────────────────────────────────────────────── */
.cutera-fap__provider {
  padding: 24px 0;
  border-bottom: 1px solid var(--fap-border);
}

/* Distance — teal, small caps style */
.cutera-fap__provider-distance {
  font-size: 13px;
  color: var(--fap-secondary);
  font-weight: 400;
  margin-bottom: 6px;
}

/* Provider name — large like production */
.cutera-fap__provider-name {
  font-size: 24px;
  font-weight: 400;
  color: var(--fap-text);
  margin: 0 0 16px;
  line-height: 1.2;
}

/* Contact block */
.cutera-fap__provider-contact {
  margin-bottom: 16px;
}

/* Address with pin icon */
.cutera-fap__provider-address {
  font-style: normal;
  font-size: 14px;
  line-height: 1.7;
  color: var(--fap-text);
  margin-bottom: 4px;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0 4px;
}

.cutera-fap__provider-address::before {
  content: "";
  display: block;
  width: 14px;
  height: 18px;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231a1a2e'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  grid-row: span 2;
}

.cutera-fap__provider-phone,
.cutera-fap__provider-email {
  display: block;
  font-size: 14px;
  color: var(--fap-text);
  text-decoration: underline;
  margin-top: 0;
  padding-left: 22px;
}
.cutera-fap__provider-phone:hover,
.cutera-fap__provider-email:hover { color: var(--fap-secondary); }

/* Action buttons row */
.cutera-fap__provider-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

/* Bottom row: badge right-aligned next to request button */
.cutera-fap__provider-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Badge */
.cutera-fap__badge {
  width: 52px !important;
  height: 52px !important;
  object-fit: contain;
  flex-shrink: 0;
}

/* ─── Buttons ────────────────────────────────────────────────────────── */
.cutera-fap__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
  line-height: 1.4;
}

/* Outline pill — View on Map / View Website */
.cutera-fap__btn--outline {
  border: 1.5px solid #333;
  color: var(--fap-text);
  background: #fff;
}
.cutera-fap__btn--outline:hover {
  background: var(--fap-text);
  color: #fff;
}

/* Request Appointment — dark navy pill, auto width */
.cutera-fap__btn--primary {
  border: none;
  background: var(--fap-primary);
  color: #fff;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  width: auto;
}
.cutera-fap__btn--primary:hover { background: #002070; }

/* ─── Error ──────────────────────────────────────────────────────────── */
.cutera-fap__error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 12px 16px;
  color: #dc2626;
  font-size: 14px;
  margin-bottom: 16px;
}
.cutera-fap__error ul { margin: 0; padding-left: 20px; }

/* ─── Modal ──────────────────────────────────────────────────────────── */
.cutera-fap__modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cutera-fap__modal[hidden] { display: none; }

.cutera-fap__modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.cutera-fap__modal-box {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  margin: 16px;
}

.cutera-fap__modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--fap-muted);
  padding: 4px;
  border-radius: 4px;
}
.cutera-fap__modal-close:hover { color: var(--fap-text); }

.cutera-fap__modal-title    { font-size: 20px; font-weight: 700; margin: 0 0 6px; color: var(--fap-text); }
.cutera-fap__modal-provider { font-size: 14px; color: var(--fap-muted); margin-bottom: 20px; }

/* ─── Appointment form ───────────────────────────────────────────────── */
.cutera-fap__appt-form  { display: flex; flex-direction: column; gap: 14px; }
.cutera-fap__appt-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cutera-fap__appt-field { display: flex; flex-direction: column; gap: 5px; }

.cutera-fap__appt-field label { font-size: 13px; font-weight: 600; color: var(--fap-text); }
.cutera-fap__appt-field input,
.cutera-fap__appt-field textarea {
  padding: 9px 12px;
  border: 1px solid var(--fap-border);
  border-radius: 6px;
  font-size: 14px;
  color: var(--fap-text);
  background: #fff;
  font-family: inherit;
  transition: border-color .2s;
}
.cutera-fap__appt-field input:focus,
.cutera-fap__appt-field textarea:focus {
  outline: none;
  border-color: var(--fap-secondary);
  box-shadow: 0 0 0 3px rgba(0,163,224,0.15);
}
.cutera-fap__appt-field textarea { resize: vertical; min-height: 80px; }

.cutera-fap__appt-status          { font-size: 14px; padding: 8px 0; }
.cutera-fap__appt-status--success { color: #16a34a; }

/* ─── Body scroll lock ───────────────────────────────────────────────── */
body.cutera-fap-modal-open { overflow: hidden; }

/* ─── Utilities ──────────────────────────────────────────────────────── */
.hide { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
