/* Bold Music Lessons — proposal page styles.
   Palette inferred from logo: black bg, white text, gold accent.
   Mobile-first because the link is opened from SMS. */

:root {
  --bm-black: #0a0a0a;
  --bm-ink: #111111;
  --bm-card: #161616;
  --bm-card-soft: #1d1d1d;
  --bm-line: #2a2a2a;
  --bm-text: #f5f5f5;
  --bm-muted: #a1a1aa;
  --bm-gold: #f6c62c;
  --bm-gold-deep: #d9a90b;
  --bm-success: #34d399;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body.proposal-body {
  background: var(--bm-black);
  color: var(--bm-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--bm-gold); text-decoration: none; }
a:hover { text-decoration: underline; }

.bm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--bm-line);
  background: #000;
}
.bm-logo img { height: 38px; display: block; }
.bm-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bm-muted);
}

.proposal {
  max-width: 560px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.proposal-hero { text-align: center; margin-bottom: 28px; }
.proposal-hero .kicker {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bm-gold);
  margin: 0 0 8px;
  font-weight: 600;
}
.proposal-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 38px;
  line-height: 1.1;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.proposal-hero .lede {
  font-size: 16px;
  color: var(--bm-text);
  max-width: 460px;
  margin: 0 auto;
}
.proposal-hero strong { color: var(--bm-gold); font-weight: 600; }

.card {
  background: var(--bm-card);
  border: 1px solid var(--bm-line);
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 16px;
}

.teacher-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.teacher-photo {
  width: 110px;
  height: 110px;
  flex: 0 0 110px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--bm-card-soft);
  border: 1px solid var(--bm-line);
}
.teacher-photo.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--bm-muted);
}
.teacher-meta { min-width: 0; flex: 1; }
.teacher-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bm-muted);
  margin: 0 0 4px;
}
.teacher-meta h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  margin: 0 0 8px;
}
.teacher-blurb {
  margin: 0 0 10px;
  color: var(--bm-text);
  font-size: 14.5px;
}
.teacher-link {
  font-size: 14px;
  font-weight: 600;
}

.details-card h3,
.guarantee-card h4 {
  margin: 0 0 14px;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bm-muted);
  font-weight: 600;
}

.details {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.details > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--bm-line);
  gap: 16px;
}
.details > div:last-child { border-bottom: none; }
.details dt {
  margin: 0;
  color: var(--bm-muted);
  font-size: 14px;
}
.details dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.student-block {
  padding: 12px 0;
  border-bottom: 1px solid var(--bm-line);
}
.student-block:last-of-type { border-bottom: none; }
.student-block .student-name {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bm-muted);
  margin-bottom: 6px;
}
.student-block .details > div:last-child { border-bottom: 1px solid var(--bm-line); }

.details-shared {
  margin-top: 4px;
  padding-top: 4px;
}
.details-shared > div:first-child {
  border-top: none;
}

.billing-note {
  margin: 16px 0 0;
  padding: 14px;
  border-radius: 10px;
  background: var(--bm-card-soft);
  font-size: 14px;
  color: var(--bm-text);
}

.guarantee-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: linear-gradient(180deg, #1a1607 0%, var(--bm-card) 80%);
  border-color: rgba(246, 198, 44, 0.25);
}
.guarantee-card h4 { color: var(--bm-gold); margin-bottom: 6px; }
.guarantee-card p { margin: 0; font-size: 14.5px; color: var(--bm-text); }
.guarantee-icon {
  flex: 0 0 36px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bm-gold);
  color: #000;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}

.cta-section {
  margin-top: 28px;
  text-align: center;
}
.expiry {
  font-size: 13px;
  color: var(--bm-muted);
  margin: 0 0 14px;
}
.expiry #countdown { color: var(--bm-gold); font-weight: 600; }

.accept-btn {
  width: 100%;
  background: var(--bm-gold);
  color: #000;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 0;
  border-radius: 12px;
  padding: 18px 24px;
  cursor: pointer;
  transition: transform 0.05s ease, background 0.15s ease;
  box-shadow: 0 6px 24px rgba(246, 198, 44, 0.18);
}
.accept-btn:hover:not(:disabled) { background: var(--bm-gold-deep); }
.accept-btn:active:not(:disabled) { transform: translateY(1px); }
.accept-btn:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; }

.cta-fineprint {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--bm-muted);
}

.counter-toggle {
  margin: 14px 0 0;
  background: transparent;
  color: var(--bm-muted);
  border: 0;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
}
.counter-toggle:hover { color: var(--bm-gold); }
.counter-toggle.open { color: var(--bm-gold); }

.counter-panel {
  margin-top: 16px;
  text-align: left;
  background: var(--bm-card);
  border: 1px solid var(--bm-line);
  border-radius: 12px;
  padding: 18px;
}
.counter-panel h4 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--bm-text);
}
.counter-help {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--bm-muted);
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.chip {
  background: transparent;
  color: var(--bm-text);
  border: 1px solid var(--bm-line);
  border-radius: 999px;
  padding: 7px 14px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.12s ease;
}
.chip:hover { border-color: var(--bm-muted); }
.chip.selected {
  background: var(--bm-gold);
  color: #000;
  border-color: var(--bm-gold);
  font-weight: 600;
}
.counter-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bm-muted);
  font-weight: 600;
  margin-bottom: 6px;
}
.counter-panel textarea {
  width: 100%;
  background: var(--bm-card-soft);
  color: var(--bm-text);
  border: 1px solid var(--bm-line);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  resize: vertical;
  min-height: 70px;
}
.counter-panel textarea:focus {
  outline: none;
  border-color: var(--bm-gold-deep);
  box-shadow: 0 0 0 3px rgba(246, 198, 44, 0.15);
}
.counter-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  justify-content: flex-end;
}
.btn-counter-cancel,
.btn-counter-submit {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.12s ease;
}
.btn-counter-cancel {
  background: transparent;
  color: var(--bm-muted);
  border-color: var(--bm-line);
}
.btn-counter-cancel:hover { color: var(--bm-text); border-color: var(--bm-muted); }
.btn-counter-submit {
  background: var(--bm-gold);
  color: #000;
}
.btn-counter-submit:hover:not(:disabled) { background: var(--bm-gold-deep); }
.btn-counter-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.bm-footer {
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: var(--bm-muted);
  border-top: 1px solid var(--bm-line);
}
.bm-footer p { margin: 4px 0; }

.confirm-hero {
  text-align: center;
  padding: 40px 8px 0;
}
.confirm-hero .check {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--bm-gold);
  color: #000;
  font-size: 36px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
}
.confirm-hero .check.muted {
  background: var(--bm-card);
  color: var(--bm-muted);
  border: 1px solid var(--bm-line);
}
.confirm-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 34px;
  margin: 0 0 14px;
  line-height: 1.15;
}
.confirm-hero .lede {
  font-size: 17px;
  margin: 0 auto 14px;
  max-width: 460px;
}
.welcome-note {
  margin-top: 28px;
  font-size: 15px;
  color: var(--bm-gold);
  font-weight: 500;
}

/* ============================================================
   Sales tool (index.html)
   ============================================================ */
body.sales-body {
  background: #f7f7f8;
  color: #18181b;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.sales-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.sales-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid #e4e4e7;
}
.sales-header h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}
.sales-header .small { color: #71717a; font-size: 13px; }

.sales-card {
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  padding: 20px;
}
.sales-card h2 {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 600;
  color: #27272a;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f1f3;
}

.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #52525b;
  margin-bottom: 5px;
}
.field input[type="text"],
.field input[type="tel"],
.field input[type="number"],
.field input[type="date"],
.field input[type="time"],
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d4d4d8;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: #18181b;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--bm-gold-deep);
  box-shadow: 0 0 0 3px rgba(246, 198, 44, 0.18);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row .field { margin-bottom: 0; }
.checkbox-field {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: #27272a;
  margin-bottom: 14px;
}

.btn-row { display: flex; gap: 10px; margin-top: 20px; }
.btn {
  flex: 1;
  padding: 12px 16px;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease;
}
.btn-primary {
  background: #0a0a0a;
  color: #fff;
}
.btn-primary:hover:not(:disabled) { background: #27272a; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-gold {
  background: var(--bm-gold);
  color: #000;
}
.btn-gold:hover:not(:disabled) { background: var(--bm-gold-deep); }
.btn-secondary {
  background: #fff;
  color: #27272a;
  border-color: #d4d4d8;
}

.preview-stack > * + * { margin-top: 16px; }
.preview-section h3 {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #71717a;
}
.preview-sms {
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  padding: 14px;
  font-size: 13.5px;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  line-height: 1.5;
  color: #1f1f23;
}
.preview-teacher {
  display: flex; gap: 12px; align-items: center;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  padding: 12px;
  background: #fafafa;
}
.preview-teacher img {
  width: 56px; height: 56px;
  border-radius: 8px;
  object-fit: cover;
  background: #e4e4e7;
}
.preview-teacher .pt-meta { min-width: 0; }
.preview-teacher .pt-name { font-weight: 600; font-size: 14px; }
.preview-teacher .pt-blurb { font-size: 12.5px; color: #52525b; margin-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.toast {
  position: fixed;
  left: 50%; transform: translateX(-50%);
  bottom: 24px;
  background: #0a0a0a;
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  display: none;
  max-width: 92vw;
}
.toast.show { display: block; }
.toast.success { background: #16a34a; }
.toast.error { background: #dc2626; }

.recent-list { margin-top: 16px; }
.recent-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f1f1f3;
  font-size: 13.5px;
}
.recent-item:last-child { border-bottom: none; }
.recent-item .ri-meta { color: #71717a; font-size: 12.5px; }
.recent-item .ri-status {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}
.ri-status.pending   { background: #fef3c7; color: #92400e; }
.ri-status.accepted  { background: #dcfce7; color: #15803d; }
.ri-status.expired   { background: #f4f4f5; color: #71717a; }
.ri-status.countered { background: #e0e7ff; color: #3730a3; }
.ri-status.send-failed { background: #fee2e2; color: #b91c1c; }

@media (max-width: 720px) {
  .sales-shell { grid-template-columns: 1fr; padding: 16px; }
  .field-row { grid-template-columns: 1fr; }
  .teacher-card { flex-direction: column; align-items: stretch; }
  .teacher-photo { width: 100%; height: 220px; flex-basis: auto; }
  .proposal-hero h1 { font-size: 30px; }
}
