@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --brand-green: #166534;
  --brand-green-dark: #14532d;
  --brand-emerald-700: #047857;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
}

.lawn-green { color: var(--brand-green); }

.section-header {
  font-family: 'Playfair Display', Georgia, serif;
  letter-spacing: -0.025em;
}

.section-ribbon {
  display: inline-block;
  padding: 0.25rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background-color: #d1fae5;
  color: #047857;
  border-radius: 9999px;
}

.section-eyebrow {
  text-transform: uppercase;
  color: #047857;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.page-title {
  font-size: 2.25rem;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.03em;
}

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

.page-subtitle {
  margin-top: 0.75rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #475569;
}

.page-wrap {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  padding: 2.5rem 1.5rem 4rem;
}

.page-wrap-wide {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
  padding: 2.5rem 1.5rem 4rem;
}

.nav-link {
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover {
  color: var(--brand-green);
  transform: translateY(-1px);
}

.nav-link-active {
  color: #047857;
  font-weight: 600;
}

.hero-bg {
  background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-dark) 100%);
}

.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.form-input {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
  border-color: var(--brand-green);
}

.field-label {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--brand-green);
}

.pay-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pay-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.08);
}

.security-box {
  background: #fefce8;
  border: 1px solid #fde047;
}

.modal {
  animation: fadeInScale 0.2s ease forwards;
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  background-color: #047857;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 1.5rem;
  transition: background-color 0.2s ease;
}

.btn-primary:hover {
  background-color: #065f46;
}

.card-surface {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1.5rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
}

.measure-progress-track {
  height: 0.5rem;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
}

.auth-progress-indeterminate {
  position: relative;
  overflow: hidden;
}

.auth-progress-indeterminate .measure-progress-bar {
  width: 35%;
  animation: authProgressSlide 1.1s ease-in-out infinite;
}

@keyframes authProgressSlide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

.measure-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #047857, #10b981, #047857);
  background-size: 200% 100%;
  border-radius: 9999px;
  transition: width 0.45s ease;
  animation: measureProgressShimmer 1.4s ease-in-out infinite;
}

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

.schedule-slot-card {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.schedule-slot-card:hover:not(.schedule-slot-full) {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -6px rgb(4 120 87 / 0.2);
}

.schedule-slot-card.schedule-slot-selected {
  border-color: #047857;
  box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.2);
}

.schedule-slot-card.schedule-slot-full {
  cursor: default;
}

.schedule-slot-check {
  display: none;
  color: #047857;
}

.schedule-slot-card.schedule-slot-selected .schedule-slot-check {
  display: inline-block;
}

.schedule-progress-steps {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: #64748b;
}

.schedule-progress-step.is-active {
  color: #047857;
  font-weight: 600;
}

.schedule-progress-step.is-done {
  color: #059669;
}

.account-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.account-avatar {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 1.5rem;
  object-fit: cover;
  border: 3px solid #d1fae5;
}

.account-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ecfdf5;
}

.account-avatar-upload {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 9999px;
  background: #047857;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.15);
  padding: 0;
}

.site-auth-slot {
  flex-shrink: 0;
}

.site-auth-signin {
  display: inline-flex;
  align-items: center;
  height: 2.5rem;
  padding: 0 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #047857;
  border: 2px solid #047857;
  border-radius: 9999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-auth-signin:hover {
  background: #ecfdf5;
}

.site-auth-menu {
  position: relative;
}

.site-auth-trigger {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  border-radius: 9999px;
}

.site-auth-avatar-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  overflow: hidden;
  border: 2px solid #a7f3d0;
  background: #ecfdf5;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.08);
}

.site-auth-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-auth-avatar-fallback {
  font-size: 0.8rem;
  font-weight: 700;
  color: #047857;
}

.site-auth-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 12rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 12px 28px rgb(0 0 0 / 0.12);
  padding: 0.35rem;
  z-index: 60;
}

.site-auth-dropdown-head {
  padding: 0.55rem 0.75rem 0.45rem;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 0.2rem;
}

.site-auth-dropdown-user {
  font-size: 0.8rem;
  font-weight: 600;
  color: #0f172a;
}

.site-auth-dropdown-meta {
  font-size: 0.7rem;
  color: #64748b;
  margin-top: 0.1rem;
}

.site-auth-dropdown-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #334155;
  border-radius: 0.65rem;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}

.site-auth-dropdown-link:hover {
  background: #f8fafc;
}

.site-auth-dropdown-signout {
  color: #b91c1c;
}

.split-with-or {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 768px) {
  .split-with-or {
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
  }
}

.or-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
}

.or-divider::before,
.or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.or-divider span {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #64748b;
  background: #f8fafc;
  padding: 0.35rem 0.7rem;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
}

@media (min-width: 768px) {
  .or-divider {
    flex-direction: column;
    width: auto;
    align-self: stretch;
    padding: 0.25rem 0;
  }

  .or-divider::before,
  .or-divider::after {
    width: 1px;
    height: auto;
    flex: 1;
  }
}

.legal-doc {
  line-height: 1.65;
}

.legal-section {
  margin-bottom: 1.75rem;
}

.legal-section h2 {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.65rem;
}

.legal-section p,
.legal-section li {
  font-size: 0.875rem;
  color: #475569;
}

.legal-section ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0.5rem 0 0.75rem;
}

.legal-section li + li {
  margin-top: 0.35rem;
}

.site-auth-mobile-block {
  border-top: 1px solid #e2e8f0;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
}

.account-quick-link {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid #a7f3d0;
  color: #047857;
  background: #ecfdf5;
  transition: background 0.15s ease;
}

.account-quick-link:hover {
  background: #d1fae5;
}

.account-quick-link.is-active {
  background: #047857;
  border-color: #047857;
  color: #fff;
}

.account-quick-link-emphasis {
  background: #047857;
  border-color: #047857;
  color: #fff;
}

.account-quick-link-emphasis:hover {
  background: #065f46;
  border-color: #065f46;
  color: #fff;
}

button.account-quick-link {
  cursor: pointer;
  font-family: inherit;
}

.schedule-nav-wrap {
  position: relative;
  display: inline-flex;
}

.schedule-nav-wrap.is-highlighted #btn-nav-schedule {
  position: relative;
  z-index: 2;
  border-color: #047857;
  background: #d1fae5;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.28);
}

.schedule-btn-pulse {
  animation: schedule-btn-pulse 2.2s ease-in-out infinite;
}

@keyframes schedule-btn-pulse {
  0%, 100% {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.28);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(16, 185, 129, 0.14);
  }
}

.schedule-highlight-bubble {
  position: absolute;
  left: 50%;
  top: calc(100% + 12px);
  transform: translateX(-50%);
  z-index: 30;
  width: max-content;
  max-width: min(280px, 88vw);
  padding: 0.85rem 1rem 0.75rem;
  background: #047857;
  color: #ecfdf5;
  border-radius: 1rem;
  box-shadow: 0 12px 28px rgba(4, 120, 87, 0.28);
  text-align: left;
}

.schedule-highlight-bubble::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -7px;
  transform: translateX(-50%) rotate(45deg);
  width: 14px;
  height: 14px;
  background: #047857;
}

.schedule-highlight-bubble-title {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.35rem;
}

.schedule-highlight-badge {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.1rem 0.45rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.schedule-highlight-bubble-text {
  font-size: 0.72rem;
  line-height: 1.45;
  color: #d1fae5;
  margin: 0 0 0.55rem;
}

.schedule-highlight-dismiss {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease;
}

.schedule-highlight-dismiss:hover {
  background: rgba(255, 255, 255, 0.22);
}

@media (max-width: 640px) {
  .schedule-highlight-bubble {
    left: 0;
    transform: none;
  }

  .schedule-highlight-bubble::before {
    left: 1.5rem;
    transform: rotate(45deg);
  }
}

/* Discreet staff portal link — footer only, not main customer nav */
.site-staff-login {
  color: rgba(167, 243, 208, 0.45);
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-staff-login:hover {
  color: rgba(255, 255, 255, 0.75);
}