/* Lesson pages: site fonts, booking buttons, the booking form and the phone Call/Book bar.
   Loaded after each page's inline styles and css/site-chrome.css. */

:root {
  --head: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --body: 'Open Sans', Arial, sans-serif;
}

/* The page bodies use 18px type; give the site header and footer the site's base type. */
.header, .footer { font-family: var(--font-body); font-size: 16px; line-height: 1.6; }
.header ul, .footer ul { padding-left: 0; margin: 0; }
/* style.css's global reset and heading/paragraph defaults, applied to the footer only.
   :where() keeps these at zero specificity so the footer's own rules still win. */
:where(.footer) * { margin: 0; padding: 0; }
:where(.footer) :where(h3, h4) { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
:where(.footer) p { margin-bottom: 1rem; }

/* The site header is fixed; keep page content clear of it. */
/* Header heights in style.css: 73px to 480px wide, 91px to 768px, 82px above, 84px on wide screens. */
body { padding-top: 73px; }
@media (min-width: 481px) and (max-width: 768px) { body { padding-top: 92px; } }
@media (min-width: 769px) { body { padding-top: 82px; } }
@media (min-width: 1501px) { body { padding-top: 85px; } }

/* Booking buttons, matching the site's .btn-primary / .btn-secondary. */
.lesson-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 8px; }
.lesson-cta .btn { margin: 0; }
.btn.btn-book,
.btn.btn-call {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 28px; border-radius: 10px;
  font-family: var(--body); font-weight: 700; font-size: 1rem;
  text-transform: uppercase; letter-spacing: .5px; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn.btn-book {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-purple-dark) 100%);
  color: #fff; border: 2px solid transparent;
}
.btn.btn-call { background: #fff; color: var(--color-primary); border: 2px solid var(--color-accent); }
.btn.btn-book:hover, .btn.btn-call:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(255, 45, 146, .3); }
.btn.btn-book:focus-visible, .btn.btn-call:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 3px; }

/* Booking section */
.book-section { scroll-margin-top: 110px; }
.book-section .book-inner { max-width: 760px; margin: 0 auto; }
.book-section .book-intro { margin-bottom: 1.5rem; }
.book-call { margin-top: 1.25rem; font-weight: 600; }
.book-call a { color: var(--color-primary); }
.lesson-form { display: grid; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.lesson-form .form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.lesson-form .form-group { display: grid; gap: 6px; min-width: 0; }
.lesson-form label { font-weight: 700; font-size: .95rem; color: var(--color-primary); }
.lesson-form input, .lesson-form select, .lesson-form textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--ink);
  border: 1px solid #cdbfd0; border-radius: 8px; background: #fff;
}
.lesson-form input:focus, .lesson-form select:focus, .lesson-form textarea:focus {
  outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(255, 45, 146, .18);
}
.lesson-form button { justify-self: start; border: 0; cursor: pointer; }
.lesson-form .form-note { font-size: .9rem; color: #5d5266; margin: 0; }
.form-success { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; text-align: center; }

/* Phone-only sticky Call / Book bar */
.lesson-sticky { display: none; }
@media (max-width: 768px) {
  .lesson-sticky {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
    box-shadow: 0 -4px 16px rgba(21, 14, 47, .08);
  }
  .lesson-sticky .btn { width: 100%; padding: 10px 12px; min-height: 46px; font-size: .9rem; }
  body { padding-bottom: 76px; }
  .lesson-cta .btn { flex: 1 1 100%; }
}
