/* The original page styling is retained in site.css. */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* Keep the phone number visible in the original sticky header on phones. */
@media (max-width: 639px) {
  .header-call { gap: .375rem; font-size: .8125rem; }
  .header-call span { display: inline; }
  .header-call svg { width: 1rem; height: 1rem; }
  header .container { gap: .5rem; }
}
@media (max-width: 359px) {
  header .font-bold { font-size: 1rem; }
  .header-call { font-size: .75rem; }
}

/* Keep the consultation and contact links usable on narrow screens. */
#consultation { scroll-margin-top: 5rem; min-width: 0; }
#consultation .consultation-contact {
  display: flex; flex-wrap: wrap; column-gap: 1rem; row-gap: .375rem;
  margin-top: .75rem; font-size: .875rem; font-weight: 600;
}
#consultation .consultation-contact a { color: var(--primary); text-decoration: underline; }
#consultation-form label { margin-bottom: .4rem; }
#consultation-form input { min-height: 2.75rem; }
#consultation-form button { white-space: normal; }
.consultation-status:empty { display: none; }
.consultation-status { font-size: .875rem; padding: .65rem .8rem; border: 1px solid; border-radius: .5rem; }
.consultation-status[data-state="sending"] { color: var(--muted-foreground); }
#consultation[data-form-enabled="true"] #consultation-intro { display: none; }
.consultation-status[data-state="error"] { color: #7f1d1d; background: #fef2f2; }
.petnanny-actions a { white-space: normal; min-width: 0; text-align: center; }
@media (max-width: 639px) {
  .petnanny-actions a { width: 100%; }
  #consultation [data-slot="card-content"] { padding: 1rem; }
}
.consultation-email { margin-top: .75rem; overflow-wrap: anywhere; }
[data-form-enabled="true"] .consultation-contact { display: none !important; }
.call-desktop-label { display: none; }
@media (max-width: 639px) {
  .petnanny-actions > a[href^="tel:"] {
    background: var(--primary); color: var(--primary-foreground);
  }
  .petnanny-actions-bottom > a[href^="tel:"] {
    border: 1px solid var(--primary-foreground);
  }
}
@media (min-width: 640px) {
  .petnanny-actions > a[href^="sms:"] { display: none; }
  .consultation-contact > a[href^="sms:"] { display: none; }
  .petnanny-actions > a[href^="tel:"] {
    background: transparent; box-shadow: none; color: var(--primary);
    display: inline-flex; min-height: 44px; height: auto; padding: 0;
    text-decoration: underline; text-underline-offset: .2em;
  }
  .petnanny-actions-bottom > a[href^="tel:"] { color: var(--primary-foreground); }
  .petnanny-actions > a[href^="tel:"] svg, .call-mobile-label { display: none; }
  .call-desktop-label { display: inline; }
}

/* Make a confirmed request unmistakable, even on a folded phone. */
#consultation.consultation-confirmed {
  display: block;
  padding: 0;
  background: #f0fdf4;
  border-color: #86b99a;
  color: #143b27;
}
.consultation-confirmation {
  box-sizing: border-box;
  min-width: 0;
  padding: clamp(1.125rem, 5vw, 2.5rem);
  text-align: center;
  overflow-wrap: anywhere;
}
.consultation-check {
  display: grid;
  place-items: center;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  margin: 0 auto .875rem;
  background: #166534;
  color: #fff;
}
.consultation-check svg { width: 2.375rem; height: 2.375rem; }
.consultation-confirmation h2 {
  margin: 0 0 .6rem;
  font-size: clamp(1.75rem, 6vw, 2.375rem);
  font-weight: 750;
  line-height: 1.15;
}
.consultation-confirmation p { margin: 0; font-size: 1.1875rem; line-height: 1.38; }
.consultation-confirmation .consultation-confirmation-email { margin-top: 1rem; }
.consultation-confirmation-email a {
  display: block;
  color: #14532d;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: .15em;
}
.consultation-confirmation h2:focus { outline: none; }
.consultation-confirmation-email a { font-size: 1.0625rem; }
