/* ==========================================================================
   PetSmart design system — customer-facing pages
   (landing, sign-in flow, homepage, services, booking, profile)

   Loaded after each page's own CSS and BEFORE the responsive-*.css layer,
   so the existing breakpoint rules keep working. Small-screen adjustments
   that belong to the new look live in ps-site-responsive.css (loaded last).
   ========================================================================== */

body {
  background-color: var(--ps-bg);
  color: var(--ps-ink);
  font-size: var(--ps-text-base);
  line-height: 1.55;
}

/* ==========================================================================
   1. Site header + navigation (every public / customer page)
   ========================================================================== */
body > header,
header.site-header {
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--ps-line);
  color: var(--ps-ink);
  padding: 12px 40px;
  min-height: 68px;
  box-shadow: none;
}
body > header.is-scrolled,
header.site-header.is-scrolled {
  box-shadow: 0 6px 20px rgba(16, 48, 46, 0.06);
}

header .petsmart {
  gap: 10px;
}
header .logo,
header .petsmart .logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
header h1,
header .petsmart .brand-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ps-ink);
  margin: 0;
}
header .brand-link {
  border-radius: var(--ps-r-sm);
}

header nav {
  align-items: center;
  gap: 4px;
}
header nav ul {
  align-items: center;
  gap: 4px;
}
header nav a {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ps-ink-2);
  padding: 9px 16px;
  border-radius: var(--ps-r-pill);
  transition: background-color var(--ps-fast) ease, color var(--ps-fast) ease, box-shadow var(--ps-fast) ease;
}
header nav a:hover {
  background: var(--ps-mint-50);
  color: var(--ps-ink);
}
header nav a.active,
header nav a[aria-current] {
  background: var(--ps-mint-100);
  color: var(--ps-teal-press);
}

/* Sign-in is the one call to action in the public header */
header nav a[href="login.html"] {
  background: var(--ps-teal);
  color: #fff;
  margin-left: 6px;
  padding: 9px 20px;
}
header nav a[href="login.html"]:hover,
header nav a[href="login.html"].active {
  background: var(--ps-teal-hover);
  color: #fff;
}
/* Log out is a quiet, secondary action */
header nav a[href="logout.php"] {
  color: var(--ps-ink-2);
  font-weight: 500;
}
header nav a[href="logout.php"]:hover {
  background: var(--ps-danger-bg);
  color: var(--ps-danger);
}

/* "Services" dropdown */
header nav .dropdown > a::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-right: 1.75px solid currentColor;
  border-bottom: 1.75px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  opacity: 0.7;
}
header nav .menu {
  top: calc(100% + 8px);
  min-width: 190px;
  padding: 6px;
  background: var(--ps-surface);
  border: 1px solid var(--ps-line);
  border-radius: var(--ps-r-md);
  box-shadow: var(--ps-shadow-lg);
}
header nav .menu::before {
  /* hover bridge so the menu doesn't close crossing the gap */
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}
header nav .menu a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--ps-r-sm);
  font-weight: 600;
  font-size: 14px;
  color: var(--ps-ink-2);
  background: transparent;
}
header nav .menu a:hover,
header nav .menu a.active {
  background: var(--ps-mint-50);
  color: var(--ps-teal-press);
}
#services > p:first-of-type {
  margin-bottom: 0;
}
#services > p + p {
  margin-top: 6px;
}
footer {
  background: var(--ps-surface);
  border-top: 1px solid var(--ps-line);
  color: var(--ps-muted);
}

/* ==========================================================================
   2. Shared buttons used across customer pages
   ========================================================================== */
.btnbook {
  gap: 10px;
  margin-top: 8px;
  padding: 14px 22px 14px 26px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  color: #fff;
  background: var(--ps-teal);
  border-radius: var(--ps-r-md);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset, 0 8px 20px rgba(35, 118, 111, 0.28);
  transition: background-color var(--ps-fast) ease, transform var(--ps-fast) var(--ps-ease), box-shadow var(--ps-fast) ease;
}
.btnbook img {
  width: 20px;
}
.btnbook:hover {
  background: var(--ps-teal-hover);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset, 0 12px 26px rgba(35, 118, 111, 0.32);
}
.btnbook:hover img {
  filter: none;
  transform: translateX(3px);
}
.btnbook:active {
  background: var(--ps-teal-press);
  transform: none;
}

/* ==========================================================================
   3. Landing page + logged-in homepage
   ========================================================================== */
#home {
  background-color: var(--ps-mint-50);
}
#home::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.55) 55%, rgba(255, 255, 255, 0.25) 100%);
}
.home-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 40px 48px;
  gap: 56px;
  box-sizing: border-box;
}
.texth {
  padding-left: 0;
  line-height: 1.5;
}
.texth h1 {
  font-size: 52px;
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--ps-ink);
  margin: 0 0 18px;
  max-width: 13ch;
  text-wrap: balance;
}
.texth p {
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--ps-ink-2);
  margin: 0 0 26px;
  max-width: 44ch;
}
.imgh img {
  border-radius: var(--ps-r-xl);
}

/* Section rhythm */
#why,
#services,
.vet-section,
#contact {
  padding-top: 80px;
  padding-bottom: 88px;
}
#why {
  background: var(--ps-surface);
}
#why h2,
#services h2,
.vet-heading,
#contact h2 {
  font-size: 34px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ps-ink);
  margin-top: 0;
  margin-bottom: 14px;
  padding-top: 0;
}
#why h2 {
  margin-bottom: 40px;
}
#services p {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ps-muted);
  margin-bottom: 40px;
}
#services::before {
  background: rgba(244, 248, 247, 0.72);
}
#contact::before {
  background: rgba(244, 248, 247, 0.7);
}

/* "Why choose us" — three feature cards */
.why-container {
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}
.why-card {
  width: 300px;
  padding: 32px 28px 30px;
  background: var(--ps-surface);
  border: 1px solid var(--ps-line);
  border-radius: var(--ps-r-lg);
  box-shadow: var(--ps-shadow-sm);
  text-align: left;
  box-sizing: border-box;
}
.why-card img {
  display: block;
  width: 80px;
  height: 80px;
  object-fit: contain;
  padding: 6px;
  margin: 0 0 20px;
  background: var(--ps-mint-50);
  border-radius: var(--ps-r-lg);
  box-sizing: border-box;
}
.why-card h3 {
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--ps-ink);
  margin: 0 0 8px;
}
.why-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ps-muted);
  margin: 0;
}

/* "Our services" — two large entry cards */
#services .services-container {
  gap: 24px;
}
#services .serve {
  width: 380px;
  padding: 32px 32px 30px;
  background: var(--ps-surface);
  border: 1px solid var(--ps-line);
  border-radius: var(--ps-r-xl);
  box-shadow: var(--ps-shadow-sm);
  text-align: left;
  box-sizing: border-box;
  transition: transform var(--ps-med) var(--ps-ease), box-shadow var(--ps-med) ease, border-color var(--ps-med) ease;
}
#services .serve:hover {
  transform: translateY(-3px);
  border-color: var(--ps-mint-300);
  box-shadow: var(--ps-shadow-md);
}
#services .serve img {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin: 0 0 18px;
}
#services .serve h3 {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--ps-ink);
  margin: 0 0 6px;
}
#services .serve p {
  font-size: 15.5px;
  color: var(--ps-muted);
  margin: 0;
  padding-right: 56px;
}
#services .serve .serve-btn {
  right: 26px;
  bottom: 26px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ps-mint-50);
  color: var(--ps-teal);
  font-size: 30px;
  line-height: 1;
  padding-bottom: 4px;
  transition: background-color var(--ps-fast) ease, color var(--ps-fast) ease, transform var(--ps-med) var(--ps-ease);
}
#services .serve:hover .serve-btn,
#services .serve .serve-btn:focus-visible {
  background: var(--ps-teal);
  color: #fff;
  transform: translateX(3px);
}

/* About the veterinarian */
.vet-section {
  background: var(--ps-surface);
}
.vet-heading {
  margin-bottom: 40px;
}
.vet-card {
  max-width: 1080px;
  gap: 40px;
  padding: 20px;
  border: 1px solid var(--ps-line);
  border-radius: var(--ps-r-xl);
  background: var(--ps-surface-2);
  box-shadow: none;
}
.vet-info {
  padding: 28px 8px 20px 24px;
}
.vet-name {
  justify-content: flex-start;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ps-ink);
}
.vet-paw {
  fill: var(--ps-mint);
}
.vet-title {
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ps-teal);
  margin-top: 6px;
}
.vet-divider {
  margin: 18px 0 22px;
  width: 48px;
  height: 3px;
  background: var(--ps-mint);
  opacity: 1;
}
.vet-bio p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ps-ink-2);
  max-width: 64ch;
}
.vet-bio .vet-closing {
  border-left: 3px solid var(--ps-mint);
  padding-left: 16px;
  font-weight: 600;
  color: var(--ps-teal-press);
}
.vet-photo {
  border-radius: var(--ps-r-lg);
}

/* Contact + opening hours */
#contact h2 {
  margin-bottom: 36px;
}
#contact .about-container {
  max-width: 1080px;
  gap: 8px;
  padding: 20px;
  background: var(--ps-surface);
  border: 1px solid var(--ps-line);
  border-radius: var(--ps-r-xl);
  box-shadow: var(--ps-shadow-md);
  align-items: stretch;
}
.contact {
  padding: 8px 16px;
}
.contact > img {
  border-radius: var(--ps-r-lg);
  max-width: 100%;
  display: block;
}
.contact h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ps-ink);
  margin: 12px 0 4px;
}
.contact hr {
  border-top: 1px solid var(--ps-line);
  margin: 14px 0;
}
.contact p {
  align-items: center;
  font-size: 15.5px;
  color: var(--ps-ink-2);
  margin: 10px 0;
}
.contact p img {
  width: 22px;
  margin-right: 12px;
}
.opening td {
  font-size: 15px;
  color: var(--ps-ink-2);
  padding: 9px 4px;
  border-bottom: 1px solid var(--ps-line);
}
.opening tr:last-child td {
  border-bottom: 0;
}
.opening td:first-child {
  font-weight: 600;
  color: var(--ps-ink);
}
.opening td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.opening .icon {
  width: 16px;
  opacity: 0.85;
}

/* ==========================================================================
   4. Sign-in flow (login, register, verify, forgot / reset password)
   ========================================================================== */
body:has(.login-shell) {
  background:
    radial-gradient(1200px 520px at 50% -120px, rgba(111, 194, 187, 0.22), transparent 70%),
    var(--ps-bg);
}
main:has(> .login-shell) {
  padding: 56px 20px 72px;
}
.login-shell {
  max-width: 460px;
}
.login-shell:has(.grid-two) {
  max-width: 540px;
}
.card-wrapper {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}
.login-card {
  position: relative;
  background: var(--ps-surface);
  border: 1px solid var(--ps-line);
  border-radius: var(--ps-r-xl);
  box-shadow: var(--ps-shadow-lg);
  padding: 36px 36px 30px;
}
.login-card > a:first-child,
.login-card > .back-btn {
  position: absolute;
  top: 20px;
  left: 20px;
}
.login-card > a:first-child {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--ps-line);
  background: var(--ps-surface);
  transition: background-color var(--ps-fast) ease, border-color var(--ps-fast) ease;
}
.login-card > a:first-child:hover {
  background: var(--ps-mint-50);
  border-color: var(--ps-mint-300);
}
.login-card .btnback {
  width: 14px;
  height: 14px;
}
.back-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--ps-line);
  background: var(--ps-surface);
  color: var(--ps-ink-2);
  font-size: 22px;
}
.back-btn:hover {
  background: var(--ps-mint-50);
  border-color: var(--ps-mint-300);
  color: var(--ps-teal-press);
}
.login-card .card-header {
  margin-bottom: 28px;
}
.circle-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border: 0;
  box-shadow: 0 0 0 6px var(--ps-mint-50);
}
.login-card .card-header h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ps-ink);
  margin: 0 0 6px;
}
.login-card .card-header p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ps-muted);
  margin: 0 auto;
  max-width: 34ch;
}
.login-form {
  gap: 16px;
}
.form-group {
  gap: 7px;
}
.form-group label {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ps-ink-2);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  font-size: 15px;
  color: var(--ps-ink);
  background: var(--ps-surface);
  border: 1px solid var(--ps-line-strong);
  border-radius: var(--ps-r-sm);
  box-sizing: border-box;
  transition: border-color var(--ps-fast) ease, box-shadow var(--ps-fast) ease;
}
.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: #AFC4C2;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--ps-teal);
  box-shadow: var(--ps-ring);
}
.form-group input:user-invalid {
  border-color: var(--ps-danger-solid);
}
.input-wrapper input {
  padding-right: 46px;
}
.toggle-pw {
  right: 6px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--ps-r-xs);
  color: var(--ps-subtle);
}
.toggle-pw:hover {
  background: var(--ps-mint-50);
  color: var(--ps-teal-press);
}
.toggle-pw .material-symbols-outlined {
  font-size: 20px;
}
.btn-signin {
  margin-top: 4px;
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--ps-teal);
  border-radius: var(--ps-r-sm);
  box-shadow: 0 1px 2px rgba(16, 48, 46, 0.12);
}
.btn-signin:hover {
  background: var(--ps-teal-hover);
  transform: none;
}
.btn-signin:active {
  background: var(--ps-teal-press);
}
.btn-signin:disabled {
  background: var(--ps-line-strong);
  cursor: not-allowed;
}
.form-group .remember-me-label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ps-ink-2);
  text-transform: none;
}
.remember-me-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--ps-teal);
}
.switch-link {
  font-size: 14px;
  color: var(--ps-muted);
  margin: 4px 0 0;
}
.switch-link a {
  color: var(--ps-link);
  font-weight: 700;
}
.form-row-between .switch-link {
  margin: 0;
}
.otp-countdown {
  color: var(--ps-muted);
}
.pw-checklist {
  background: var(--ps-surface-2);
  border-color: var(--ps-line);
  border-radius: var(--ps-r-sm);
  padding: 12px 14px;
}
.pw-checklist-title {
  color: var(--ps-ink-2);
}
.pw-checklist li {
  color: var(--ps-subtle);
}
.pw-checklist li.met,
.pw-checklist li.met .material-symbols-outlined {
  color: var(--ps-success);
}
.address-suggestions {
  border-color: var(--ps-line);
  border-radius: var(--ps-r-md);
  box-shadow: var(--ps-shadow-lg);
  padding: 4px;
}
.address-suggestion-item {
  border-radius: var(--ps-r-xs);
}

/* ==========================================================================
   5. Service pages (grooming.php, checkup.php)
   ========================================================================== */
body:has(.service-panel)::before {
  background: linear-gradient(180deg, rgba(244, 248, 247, 0.92), rgba(244, 248, 247, 0.78));
}
.page-frame {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 40px 80px;
  box-sizing: border-box;
}
.service-header {
  gap: 14px;
  margin-bottom: 28px;
}
.service-header a,
.booking-header a,
.page-back {
  width: 40px;
  height: 40px;
  border: 1px solid var(--ps-line);
  background: var(--ps-surface);
  box-shadow: var(--ps-shadow-xs);
  transition: background-color var(--ps-fast) ease, border-color var(--ps-fast) ease;
}
.service-header a:hover {
  background: var(--ps-mint-50);
  border-color: var(--ps-mint-300);
}
.service-header .btnback {
  width: 14px;
  height: 14px;
}
.service-header h2 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ps-ink);
}

/* Featured package — the one bold surface on the page */
.package-card {
  padding: 32px 36px;
  border-radius: var(--ps-r-xl);
  background:
    radial-gradient(600px 260px at 100% 0%, rgba(111, 194, 187, 0.45), transparent 70%),
    linear-gradient(135deg, #1F6E68 0%, #165A55 100%);
  box-shadow: 0 18px 40px rgba(23, 82, 77, 0.22);
  margin-bottom: 44px;
}
.package-card::before {
  background: none;
}
.package-card__icon {
  width: 88px;
  height: 88px;
  min-width: 88px;
  min-height: 88px;
  max-width: 88px;
  max-height: 88px;
  border-radius: var(--ps-r-lg);
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}
.package-card h3 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  margin-bottom: 8px;
}
.package-card h3::first-letter {
  text-transform: uppercase;
}
.package-card p {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.86);
  max-width: 62ch;
}
.package-meta {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.package-meta h4 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.package-card button {
  padding: 13px 26px;
  border-radius: var(--ps-r-md);
  background: #fff;
  color: var(--ps-teal-press);
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}
.package-card button:hover {
  background: var(--ps-mint-50);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}
.currency {
  font-family: inherit;
  font-weight: inherit;
}

.section-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--ps-ink);
  margin: 0 0 18px;
}
.service-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}
.mini-card {
  padding: 22px 22px 20px;
  background: var(--ps-surface);
  border: 1px solid var(--ps-line);
  border-radius: var(--ps-r-lg);
  box-shadow: var(--ps-shadow-sm);
  box-sizing: border-box;
}
.mini-card:hover {
  transform: translateY(-7px);
  border-color: var(--ps-mint-300);
  box-shadow: var(--ps-shadow-md);
}
.mini-card:focus-visible {
  outline: 2px solid var(--ps-teal);
  outline-offset: 2px;
}
.mini-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--ps-r-md);
  background: var(--ps-mint-50);
  margin-bottom: 16px;
}
.mini-card h4 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ps-ink);
  margin: 0 0 6px;
}
.mini-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ps-muted);
  margin-bottom: 18px;
}
.mini-footer {
  padding-top: 14px;
  border-top: 1px solid var(--ps-line);
}
.mini-footer span {
  font-size: 17px;
  font-weight: 800;
  color: var(--ps-ink);
  font-variant-numeric: tabular-nums;
}
.mini-footer::after {
  content: 'Book';
  font-size: 13px;
  font-weight: 700;
  color: var(--ps-teal);
  padding: 6px 12px;
  border-radius: var(--ps-r-pill);
  background: var(--ps-mint-50);
  transition: background-color var(--ps-fast) ease, color var(--ps-fast) ease;
}
.mini-card:hover .mini-footer::after {
  background: var(--ps-teal);
  color: #fff;
}

/* ==========================================================================
   6. Booking flow (booking.php, add-pet.php)
   The booking/service stylesheets read these variables, so re-pointing
   them brings every booking control onto the shared palette at once.
   ========================================================================== */
:root {
  --bg: var(--ps-bg);
  --surface: var(--ps-surface);
  --surface-alt: var(--ps-surface-2);
  --primary: var(--ps-teal);
  --primary-dark: var(--ps-teal-hover);
  --text: var(--ps-ink);
  --muted: var(--ps-muted);
  --border: var(--ps-line);
  --shadow: var(--ps-shadow-md);
}

.step-intro {
  margin: -16px 0 28px 54px;
  font-size: 15.5px;
  color: var(--ps-muted);
}
.booking-layout {
  gap: 24px;
}
.booking-card {
  border: 1px solid var(--ps-line);
  border-radius: var(--ps-r-xl);
  padding: 32px 36px 34px;
  box-shadow: var(--ps-shadow-sm);
}
.step-pills {
  gap: 6px;
  margin-bottom: 28px;
}
.step-pill {
  height: 5px;
  background: var(--ps-mint-100);
}
.step-pill > span {
  background: var(--ps-teal);
}
.booking-step h3.step-title {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ps-ink);
  margin-bottom: 4px;
}
.booking-step p.step-sub {
  font-size: 14.5px;
  margin-bottom: 26px;
}
.field {
  margin-bottom: 18px;
}
.field label {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ps-ink-2);
  margin-bottom: 7px;
}
.field input[type="text"],
.field input[type="number"],
.field input[type="date"],
.field input[type="tel"],
.field input[type="password"],
.field select,
.field textarea {
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ps-ink);
  background-color: var(--ps-surface);
  border: 1px solid var(--ps-line-strong);
  border-radius: var(--ps-r-sm);
  box-sizing: border-box;
  transition: border-color var(--ps-fast) ease, box-shadow var(--ps-fast) ease;
}
.field select {
  padding-right: 42px;
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #AFC4C2;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ps-teal);
  background-color: var(--ps-surface);
  box-shadow: var(--ps-ring);
}
.field input[readonly] {
  background-color: var(--ps-surface-2);
  color: var(--ps-ink-2);
}
.field-row {
  gap: 16px;
}
.field-hint,
.field-hint2 {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ps-muted);
}
.lock-hint {
  padding: 10px 12px;
  border-radius: var(--ps-r-sm);
  background: var(--ps-info-bg);
  color: var(--ps-info);
  margin-bottom: 18px;
}

.choice-grid,
.slot-grid {
  gap: 10px;
}
.choice-pill,
.slot-pill,
.vacc-toggle label {
  border: 1px solid var(--ps-line-strong);
  background: var(--ps-surface);
  border-radius: var(--ps-r-sm);
  color: var(--ps-ink-2);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}
.choice-pill:hover,
.slot-pill:hover:not(.unavailable):not(.selected) {
  border-color: var(--ps-mint);
  background: var(--ps-mint-50);
}
.choice-pill.selected,
.slot-pill.selected {
  background: var(--ps-teal);
  border-color: var(--ps-teal);
  color: #fff;
  box-shadow: 0 4px 12px rgba(35, 118, 111, 0.25);
}
.slot-pill {
  font-variant-numeric: tabular-nums;
}
.slot-pill.unavailable {
  opacity: 1;
  color: #A3B3B2;
  background: var(--ps-surface-2);
  border-style: dashed;
}
.vacc-toggle label:has(input:checked) {
  border-color: var(--ps-teal);
  background: var(--ps-mint-50);
  color: var(--ps-teal-press);
}
.slot-meta span,
.slot-capacity-text {
  font-size: 13px;
  color: var(--ps-muted);
}

.step-actions {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--ps-line);
}

/* Buttons used in the booking flow, profile and modals */
.btn {
  border-radius: var(--ps-r-sm);
  padding: 12px 22px;
  font-size: 14.5px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0;
  line-height: 1.2;
}
.btn-primary {
  background: var(--ps-teal);
  color: #fff;
  box-shadow: 0 1px 2px rgba(16, 48, 46, 0.12);
}
.btn-primary:hover {
  background: var(--ps-teal-hover);
  transform: none;
}
.btn-primary:active {
  background: var(--ps-teal-press);
}
.btn-primary:disabled {
  background: var(--ps-line-strong);
  color: #fff;
  box-shadow: none;
}
.btn-ghost {
  background: var(--ps-surface);
  color: var(--ps-ink-2);
  border: 1px solid var(--ps-line-strong);
}
.btn-ghost:hover {
  background: var(--ps-surface-2);
  border-color: #AFC4C2;
  color: var(--ps-ink);
}

/* Booking summary — deep teal ticket that stays in view */
.summary-panel {
  top: 92px;
  border-radius: var(--ps-r-xl);
  padding: 26px 24px 24px;
  background:
    radial-gradient(420px 200px at 100% 0%, rgba(111, 194, 187, 0.22), transparent 70%),
    var(--ps-deep);
  box-shadow: 0 18px 40px rgba(15, 59, 57, 0.28);
}
.summary-panel h4 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #fff;
  margin-bottom: 12px;
}
.summary-row {
  font-size: 14px;
  padding: 11px 0;
  border-bottom-color: rgba(255, 255, 255, 0.09);
}
.summary-row span:first-child {
  color: rgba(255, 255, 255, 0.62);
}
.summary-fee {
  border-top: 1px dashed rgba(255, 255, 255, 0.22);
}
.summary-fee span:first-child {
  font-size: 13.5px;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.7);
}
.summary-fee span:last-child {
  font-size: 28px;
  color: var(--ps-mint-200);
}
.summary-fee span:last-child,
.confirm-row.total span:last-child,
.receipt-total strong {
  font-family: inherit;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

/* Confirmation + receipt */
.confirm-list {
  border-color: var(--ps-line);
  border-radius: var(--ps-r-md);
}
.confirm-row {
  padding: 14px 18px;
  background: var(--ps-surface);
  border-bottom-color: var(--ps-line);
}
.confirm-row:nth-child(even) {
  background: var(--ps-surface-2);
}
.confirm-row.total span:last-child {
  color: var(--ps-teal-press);
}
.success-icon {
  background: var(--ps-success-bg);
  color: var(--ps-success);
}
.success-wrap h3 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.receipt-box {
  border: 1px dashed var(--ps-line-strong);
  border-radius: var(--ps-r-md);
  background: var(--ps-surface-2);
}
.receipt-header,
.receipt-total {
  border-color: var(--ps-line);
}
.receipt-header h4 {
  color: var(--ps-ink);
}
.receipt-total strong {
  color: var(--ps-teal-press);
}

/* Date picker */
.date-picker-popup {
  border-color: var(--ps-line);
  border-radius: var(--ps-r-lg);
  box-shadow: var(--ps-shadow-lg);
  padding: 16px;
}
.date-picker-day {
  border-radius: var(--ps-r-sm);
  font-variant-numeric: tabular-nums;
}
.date-picker-day.dp-selected {
  background: var(--ps-teal);
}
.date-picker-day.dp-today {
  box-shadow: inset 0 0 0 1.5px var(--ps-mint);
}
.date-picker-day.dp-closed {
  color: var(--ps-danger);
  background: var(--ps-danger-bg);
}

/* Autocomplete + notices */
.pet-suggestions {
  border-color: var(--ps-line);
  border-radius: var(--ps-r-md);
  box-shadow: var(--ps-shadow-lg);
  padding: 4px;
}
.pet-suggestion-item {
  border-radius: var(--ps-r-xs);
  border-bottom: 0;
}
.pet-suggestion-item:hover,
.pet-suggestion-item.active {
  background: var(--ps-mint-50);
}
.checkup-notice {
  background: var(--ps-mint-50);
  border-color: var(--ps-mint-200);
  border-radius: var(--ps-r-md);
}
.health-notes-onfile {
  background: var(--ps-warning-bg);
  border-color: #F3DDB4;
  color: var(--ps-warning);
  border-radius: var(--ps-r-md);
}

/* Small confirm / OTP dialogs */
.confirm-modal-overlay,
.img-lightbox-overlay {
  background: rgba(12, 34, 33, 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.confirm-modal-box {
  border-radius: var(--ps-r-xl);
  padding: 28px 26px 24px;
  box-shadow: var(--ps-shadow-lg);
}
.otp-input {
  border: 1px solid var(--ps-line-strong);
  border-radius: var(--ps-r-sm);
  font-variant-numeric: tabular-nums;
}
.otp-input:focus {
  border-color: var(--ps-teal);
  box-shadow: var(--ps-ring);
}
.otp-modal-error {
  color: var(--ps-danger);
}

/* ==========================================================================
   7. Profile (profile.php, pet-archive.php)
   ========================================================================== */
/* Calm, flat working surface: the decorative photo + white wash are
   replaced by the system background (the wash only ever covered the
   first screen, so lower cards sat on a busier pattern). */
body:has(.account-info),
body:has(#petsArchiveList) {
  background: var(--ps-bg);
}
body:has(.account-info)::before,
body:has(#petsArchiveList)::before {
  display: none;
}
body:has(.account-info) > main,
body:has(#petsArchiveList) > main {
  position: relative;
  max-width: 1200px;
  margin: 32px auto 0;
  padding: 0 32px 72px;
  gap: 24px;
  box-sizing: border-box;
}
#liveApptSection {
  gap: 24px;
}

body:has(.account-info) section,
body:has(#petsArchiveList) section,
.account-info,
.schedule,
.history-card {
  position: relative;
  background: var(--ps-surface);
  border: 1px solid var(--ps-line);
  border-radius: var(--ps-r-xl);
  box-shadow: var(--ps-shadow-sm);
  padding: 24px 26px;
}
.account-info {
  gap: 40px;
}
.account-info .profile + .pets {
  padding-left: 40px;
  border-left: 1px solid var(--ps-line);
}
body:has(.account-info) section h2,
body:has(#petsArchiveList) section h2,
.history-card h2 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ps-ink);
  border-bottom: 0;
  padding-bottom: 0;
  margin: 0 0 16px;
}
.section-header-row {
  gap: 12px;
  margin-bottom: 18px;
}
.section-header-row h2 {
  margin: 0 !important;
}

/* Secondary pill buttons (Edit profile, Add pet, pager …) */
.pill-btn,
.history-pager .pager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  color: var(--ps-ink-2);
  background: var(--ps-surface);
  border: 1px solid var(--ps-line-strong);
  border-radius: var(--ps-r-sm);
  text-decoration: none;
  transition: background-color var(--ps-fast) ease, border-color var(--ps-fast) ease, color var(--ps-fast) ease;
}
.pill-btn:hover,
.history-pager .pager-btn:hover:not(:disabled) {
  background: var(--ps-mint-50);
  border-color: var(--ps-mint-300);
  color: var(--ps-teal-press);
}
.history-pager .pager-btn:disabled {
  opacity: 0.45;
}
#addPetBtn {
  background: var(--ps-teal);
  border-color: var(--ps-teal);
  color: #fff;
}
#addPetBtn:hover {
  background: var(--ps-teal-hover);
  border-color: var(--ps-teal-hover);
}
.pill-btn.full-width {
  padding: 12px 16px;
  font-size: 14.5px;
  font-weight: 700;
  background: var(--ps-teal);
  border-color: var(--ps-teal);
  color: #fff;
}
.pill-btn.full-width:hover {
  background: var(--ps-teal-hover);
  border-color: var(--ps-teal-hover);
  color: #fff;
}
.pill-btn.full-width.danger {
  background: var(--ps-surface);
  border-color: #EBC3C3;
  color: var(--ps-danger);
}
.pill-btn.full-width.danger:hover {
  background: var(--ps-danger-bg);
  border-color: var(--ps-danger-solid);
  color: var(--ps-danger);
}
.history-pager .pager-status {
  font-size: 13px;
  color: var(--ps-muted);
  font-variant-numeric: tabular-nums;
}

/* Customer card */
.avatar-placeholder {
  background: var(--ps-mint-100);
  color: var(--ps-teal-press);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.avatar-edit-btn,
.pet-photo-edit-btn {
  border: 1px solid var(--ps-line-strong);
  background: var(--ps-surface);
  box-shadow: var(--ps-shadow-xs);
}
.avatar-edit-btn:hover,
.pet-photo-edit-btn:hover {
  background: var(--ps-mint-100);
  border-color: var(--ps-mint);
}
.customer-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ps-ink);
}
.info-line {
  gap: 10px;
  font-size: 15px;
  color: var(--ps-ink-2);
  margin: 6px 0;
}
.account-info hr {
  border-top-color: var(--ps-line);
}
.date-registered,
.empty-note {
  font-size: 13px;
  color: var(--ps-muted);
}
.empty-note {
  font-style: normal;
}

/* List rows: pets, upcoming appointments, history */
.pet-row,
.appt-row,
.history-row {
  background: var(--ps-surface-2);
  border: 1px solid var(--ps-line);
  border-radius: var(--ps-r-md);
  padding: 10px 14px;
  margin-bottom: 8px;
  transition: background-color var(--ps-fast) ease, border-color var(--ps-fast) ease;
}
.pet-row:hover,
.appt-row-clickable:hover,
.history-row-clickable:hover,
.history-row-clickable:focus-visible {
  background: var(--ps-mint-50);
  border-color: var(--ps-mint-200);
}
.pet-row-text strong,
.appt-text strong,
.history-row strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--ps-ink);
}
.pet-row-text span,
.appt-text span {
  font-size: 13px;
  color: var(--ps-muted);
}
.chevron {
  color: var(--ps-subtle);
  font-weight: 400;
  font-size: 22px;
}
.archived-pet-row {
  background: #F7F3F4;
}
.archived-badge,
.pet-status-value {
  color: #8A5B66;
}

/* Status badges */
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: var(--ps-r-pill);
  letter-spacing: 0;
}
.status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status.confirmed { background: var(--ps-mint-100); color: var(--ps-teal-press); }
.status.upcoming  { background: var(--ps-info-bg); color: var(--ps-info); }
.status.pending   { background: var(--ps-violet-bg); color: var(--ps-violet); }
.status.completed { background: var(--ps-success-bg); color: var(--ps-success); }
.status.cancelled { background: var(--ps-danger-bg); color: var(--ps-danger); }

.cancel-btn {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: var(--ps-muted);
  background: var(--ps-surface);
  border: 1px solid var(--ps-line-strong);
  border-radius: var(--ps-r-sm);
}
.cancel-btn:hover {
  background: var(--ps-danger-bg);
  border-color: #EBC3C3;
  color: var(--ps-danger);
}
.two-col {
  gap: 24px;
}
.pet-health-notes-box {
  background: var(--ps-warning-bg);
  border-color: #F3DDB4;
  border-radius: var(--ps-r-md);
}
.pet-health-notes-box strong {
  text-transform: none;
  font-size: 13px;
  letter-spacing: 0;
  color: var(--ps-warning);
}

/* Modals (profile + pet forms) */
.modal-overlay {
  background: rgba(12, 34, 33, 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.modal-box {
  border-radius: var(--ps-r-xl);
  padding: 26px 28px 28px;
  box-shadow: var(--ps-shadow-lg);
  border: 1px solid var(--ps-line);
}
.modal-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ps-line);
}
.modal-header h3 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ps-ink);
}
.modal-close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 22px;
  color: var(--ps-muted);
  transition: background-color var(--ps-fast) ease, color var(--ps-fast) ease;
}
.modal-close:hover {
  background: var(--ps-surface-2);
  color: var(--ps-ink);
}
.modal-box .field {
  gap: 7px;
}
.modal-box .field label {
  margin-bottom: 0;
}
.pw-hint,
.pw-hint2 {
  font-size: 12.5px;
  color: var(--ps-muted);
}
.pet-info-icon {
  background: var(--ps-mint-50);
  border-radius: var(--ps-r-lg);
}
.pet-info-details .info-row {
  font-size: 14.5px;
  border-bottom-color: var(--ps-line);
  padding-bottom: 8px;
}
.pet-info-details .info-row span {
  color: var(--ps-muted);
}
.hd-label {
  font-size: 12.5px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ps-muted);
}
.hd-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--ps-ink);
}
.reason-item {
  border: 1px solid var(--ps-line-strong);
  border-radius: var(--ps-r-sm);
  background: var(--ps-surface);
}
.reason-item:has(input:checked) {
  border-color: var(--ps-teal);
  background: var(--ps-mint-50);
}
.reason-item input {
  accent-color: var(--ps-teal);
}
.phone-otp-resend a {
  color: var(--ps-link);
}

/* ==========================================================================
   8. AI chat widget (homepage, profile)
   ========================================================================== */
.chat-widget .chat-bubble {
  width: 58px;
  height: 58px;
  background: var(--ps-teal);
  box-shadow: 0 10px 24px rgba(35, 118, 111, 0.35);
  transition: transform var(--ps-med) var(--ps-ease), background-color var(--ps-fast) ease;
}
.chat-widget .chat-bubble:hover {
  background: var(--ps-teal-hover);
  transform: translateY(-2px);
}
.chat-widget .chat-panel {
  border-radius: var(--ps-r-xl);
  border: 1px solid var(--ps-line);
  box-shadow: var(--ps-shadow-lg);
}
.chat-widget .chat-header {
  background: var(--ps-deep);
  padding: 14px 14px;
}
.chat-widget .chat-header-text strong {
  color: #fff;
  font-size: 15px;
}
.chat-widget .chat-header-text p {
  color: rgba(255, 255, 255, 0.65);
}
.chat-widget .chat-status {
  color: var(--ps-mint-200);
}
.chat-widget .chat-close,
.chat-widget .chat-expand {
  top: 8px;
  color: rgba(255, 255, 255, 0.8);
}
.chat-widget .chat-close:hover,
.chat-widget .chat-expand:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.chat-widget .chat-messages {
  background: var(--ps-surface-2);
  padding: 16px 14px;
}
.chat-widget .msg {
  font-size: 14px;
  line-height: 1.5;
  padding: 9px 13px;
  border-radius: 16px;
}
.chat-widget .msg-owner {
  background: var(--ps-surface);
  border: 1px solid var(--ps-line);
  border-bottom-left-radius: 6px;
  color: var(--ps-ink);
}
.chat-widget .msg-customer {
  background: var(--ps-teal);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.chat-widget .msg-customer .msg-time {
  color: rgba(255, 255, 255, 0.7);
}
.chat-widget .chat-suggestion-chip {
  border: 1px solid var(--ps-mint-300);
  color: var(--ps-teal-press);
  border-radius: var(--ps-r-pill);
  font-size: 13px;
  padding: 7px 13px;
  font-weight: 600;
}
.chat-widget .chat-suggestion-chip:hover {
  background: var(--ps-mint-50);
  color: var(--ps-teal-press);
}
.chat-widget .chat-suggestion-chip-cta {
  background: var(--ps-teal);
  border-color: var(--ps-teal);
  color: #fff;
}
.chat-widget .chat-suggestion-chip-cta:hover {
  background: var(--ps-teal-hover);
  border-color: var(--ps-teal-hover);
  color: #fff;
}
.chat-widget .chat-input-area {
  border-top-color: var(--ps-line);
  padding: 10px;
  background: var(--ps-surface);
}
.chat-widget .chat-input-area input {
  border-color: var(--ps-line-strong);
  padding: 10px 14px;
  font-size: 14px;
}
.chat-widget .chat-input-area input:focus {
  border-color: var(--ps-teal);
  box-shadow: var(--ps-ring);
}

/* Fields with an icon inside keep clear of it */
.field .date-display-input {
  padding-right: 42px;
}
.field .input-wrapper input,
.modal-box .input-wrapper input {
  padding-right: 46px;
}
.modal-box .toggle-pw {
  right: 6px;
}
