/**
 * TSDC Conversion Fixes — Meta Ads Landing Optimization
 * topsmiledentalclinic.com — 2026-10-29
 */

/* ── Sticky Booking Bar (appears on scroll, all pages) ─────────── */
.tsdc-sticky-book {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  z-index: 9990;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  padding: 12px 16px;
  transition: bottom 0.3s ease;
  display: none;
}
.tsdc-sticky-book.is-visible {
  bottom: 0;
  display: block;
}
.tsdc-sticky-book-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.tsdc-sticky-book-text {
  flex: 1;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0F172A;
  line-height: 1.3;
}
.tsdc-sticky-book-text small {
  display: block;
  font-weight: 400;
  font-size: 0.8125rem;
  color: #64748B;
  margin-top: 2px;
}
.tsdc-sticky-book-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.tsdc-sticky-book-form input {
  padding: 10px 14px;
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  font-size: 0.875rem;
  width: 150px;
  outline: none;
  transition: border-color 0.2s;
}
.tsdc-sticky-book-form input:focus {
  border-color: #0A7C8C;
}
.tsdc-sticky-book-form button {
  padding: 10px 20px;
  background: #8B6914;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.tsdc-sticky-book-form button:hover {
  background: #6D5210;
}
.tsdc-sticky-book-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #94A3B8;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

/* Mobile: stack vertically, full-width inputs */
@media (max-width: 768px) {
  .tsdc-sticky-book-inner {
    flex-wrap: wrap;
  }
  .tsdc-sticky-book-text {
    width: 100%;
    font-size: 0.8125rem;
  }
  .tsdc-sticky-book-text small {
    display: none;
  }
  .tsdc-sticky-book-form {
    width: 100%;
  }
  .tsdc-sticky-book-form input {
    flex: 1;
    min-width: 0;
  }
  /* Hide when mobile CTA bar is showing */
  .tsdc-mobile-cta ~ .tsdc-sticky-book {
    bottom: 56px;
  }
}

/* ── Quick-Book Modal (2 fields only: name + phone) ────────────── */
.tsdc-qbook-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.tsdc-qbook-overlay.is-open {
  display: flex;
}
.tsdc-qbook {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.tsdc-qbook-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #94A3B8;
  cursor: pointer;
}
.tsdc-qbook h3 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 4px;
}
.tsdc-qbook .tsdc-qbook-sub {
  font-size: 0.875rem;
  color: #64748B;
  margin: 0 0 20px;
}
.tsdc-qbook-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8125rem;
  color: #64748B;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #F1F5F9;
}
.tsdc-qbook-trust strong {
  color: #0F172A;
}
.tsdc-qbook label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 4px;
}
.tsdc-qbook input,
.tsdc-qbook select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  font-size: 0.9375rem;
  margin-bottom: 12px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.tsdc-qbook input:focus,
.tsdc-qbook select:focus {
  border-color: #0A7C8C;
}
.tsdc-qbook-submit {
  width: 100%;
  padding: 14px;
  background: #8B6914;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.2s;
}
.tsdc-qbook-submit:hover {
  background: #6D5210;
}
.tsdc-qbook-footer {
  text-align: center;
  margin-top: 12px;
  font-size: 0.8125rem;
  color: #94A3B8;
}
.tsdc-qbook-footer a {
  color: #25D366;
  font-weight: 600;
  text-decoration: none;
}

/* ── Success state in quick-book ───────────────────────────────── */
.tsdc-qbook-success {
  text-align: center;
  padding: 20px 0;
}
.tsdc-qbook-success .tsdc-qbook-check {
  width: 56px;
  height: 56px;
  background: #ECFDF5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #059669;
  font-size: 1.5rem;
}
.tsdc-qbook-success h3 {
  color: #059669;
  margin-bottom: 8px;
}
.tsdc-qbook-success p {
  color: #64748B;
  font-size: 0.875rem;
}
