﻿/* Public online Mass booking (/onlinemassbooking). Same colours as the Parish Management System. */
:root { --navy: #13284a; --blue: #1e4e9c; --blue-soft: #e7eef9; --gold: #e9b425; --gold-soft: #fbf2d6; --stone: #eef1f5;
        --ink: #1c2533; --muted: #5b6577; --line: #d5dce6; --ok: #1e6b47; --ok-soft: #e3f2ea; --warn-ink: #5a3d00; --bad: #b3261e; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--stone); color: var(--ink); font: 16px/1.45 "Source Sans 3", "Segoe UI", Arial, sans-serif; }
a { color: var(--blue); } a:hover { color: var(--navy); }
.bk-head { background: var(--navy); color: #fff; border-bottom: 3px solid var(--gold); }
.bk-head-in { max-width: 1120px; margin: 0 auto; padding: 14px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; }
.bk-church { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; min-width: 0; }
.bk-church:hover { color: #fff; }
.bk-logo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: #fff; border: 2px solid var(--gold); flex: none; }
.bk-name { display: flex; flex-direction: column; min-width: 0; }
.bk-name b { font-family: Marcellus, serif; font-weight: 400; font-size: 22px; line-height: 1.2; }
.bk-name span { font-size: 14px; color: #c9d4e6; }
.bk-tag { font-size: 13px; font-weight: 600; color: var(--gold); border: 1px solid var(--gold); border-radius: 16px; padding: 4px 12px; white-space: nowrap; }
/* step bar under the header: numbered circles joined by a line; finished steps get a tick */
.bk-steps { background: #fff; border-bottom: 1px solid #e3e7ee; }
.bk-steps ol { list-style: none; margin: 0 auto; padding: 12px 16px; max-width: 640px; display: flex; align-items: center; }
.bk-steps li { display: flex; align-items: center; gap: 8px; font-size: 15px; color: #6b7280; white-space: nowrap; }
.bk-steps li + li::before { content: ""; width: 56px; height: 2px; background: #d6dbe4; margin: 0 12px; flex: 1 1 24px; }
.bk-steps li { flex: 0 1 auto; }
.bk-steps li + li { flex: 1 1 auto; }
.bk-steps .n { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #c4cbd8; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex: none; }
.bk-steps li.on { color: var(--navy); font-weight: 700; }
.bk-steps li.on .n { background: var(--navy); border-color: var(--navy); color: #fff; }
.bk-steps li.done { color: var(--navy); }
.bk-steps li.done .n { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.bk-steps li.done::before, .bk-steps li.on::before { background: var(--gold); }
@media (max-width: 560px) {
  .bk-head-in { padding: 10px 14px; }
  .bk-logo { width: 44px; height: 44px; }
  .bk-name b { font-size: 19px; }
  .bk-name span { font-size: 13px; }
  .bk-tag { display: none; }
  .bk-steps li { font-size: 13px; gap: 6px; }
  .bk-steps li + li::before { margin: 0 8px; }
  .bk-steps li:not(.on) .t { display: none; }
}
.bk-test { background: var(--gold-soft); color: var(--warn-ink); text-align: center; font-size: 14px; padding: 6px 12px; }
.bk-main { max-width: 1120px; margin: 0 auto; padding: 18px 16px 24px; display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.bk-col { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.bk-narrow { max-width: 560px; margin: 0 auto; width: 100%; }
.bk-side { flex: 1 1 280px; display: flex; flex-direction: column; gap: 14px; }
.bk-card { background: #fff; border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.bk-card h1 { margin: 0; font-size: 24px; color: var(--navy); }
.bk-card h2 { margin: 0; font-size: 17px; color: var(--navy); }
.bk-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.bk-muted { color: var(--muted); font-size: 14px; }
.bk-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.bk-day { min-height: 64px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none;
          display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.bk-day small { font-size: 11px; font-weight: 600; }
.bk-day b { font-size: 20px; }
.bk-day.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.bk-other { display: flex; gap: 6px; align-items: center; font-size: 14px; }
.bk-other input { font: inherit; border: 1px solid #b9c3d1; border-radius: 6px; padding: 4px 6px; }
.bk-masses { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.bk-mass { position: relative; display: block; }
.bk-mass input { position: absolute; opacity: 0; }
.bk-mass span.box { min-height: 72px; border-radius: 10px; border: 2px solid var(--line); background: #fff; display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 10px 14px; cursor: pointer; }
.bk-mass b.t { font-size: 19px; color: var(--navy); }
.bk-mass b.p { font-size: 16px; text-align: right; }
.bk-mass .l { font-weight: 600; font-size: 15px; grid-column: 1 / -1; }
.bk-mass .n { font-size: 13px; color: var(--muted); grid-column: 1 / -1; }
.bk-mass input:checked + span.box { border-color: var(--blue); background: var(--blue-soft); }
.bk-mass input:focus-visible + span.box { outline: 3px solid var(--gold); outline-offset: 2px; }
.bk-mass input:disabled + span.box { opacity: .5; cursor: not-allowed; }
.bk-note { background: var(--gold-soft); color: var(--warn-ink); border-radius: 10px; padding: 12px 14px; font-size: 15px; }
.bk-error { background: #fdecea; color: var(--bad); border-radius: 10px; padding: 12px 14px; font-size: 15px; }
.bk-error ul { margin: 0; padding-left: 18px; }
.bk-btn { min-height: 50px; border-radius: 10px; border: 0; background: var(--blue); color: #fff; font: inherit; font-size: 17px; font-weight: 700;
          display: inline-flex; align-items: center; justify-content: center; padding: 0 24px; text-decoration: none; cursor: pointer; }
.bk-btn:hover { background: var(--navy); color: #fff; }
.bk-btn.light { background: #fff; color: var(--blue); border: 1px solid var(--blue); }
.bk-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.bk-actions .bk-btn { min-width: 220px; }
.bk-field { display: flex; flex-direction: column; gap: 4px; }
.bk-field label, .bk-field .lbl { font-size: 14px; font-weight: 600; }
.bk-field input[type=text], .bk-field input[type=tel], .bk-field textarea { font: inherit; font-size: 16px; border: 1px solid #b9c3d1; border-radius: 8px; padding: 10px 12px; width: 100%; }
.bk-field textarea { resize: vertical; min-height: 84px; }
.bk-field .count { font-size: 13px; color: var(--muted); text-align: right; }
.bk-field .err { color: var(--bad); font-size: 14px; }
.bk-phone { display: flex; gap: 8px; }
.bk-phone span { display: flex; align-items: center; padding: 0 12px; border: 1px solid #b9c3d1; border-radius: 8px; background: var(--stone); }
.bk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-chip input { position: absolute; opacity: 0; }
.bk-chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid #b9c3d1; background: #fff; font-weight: 600; cursor: pointer; }
.bk-chip input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.bk-chip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.bk-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.bk-check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; }
.bk-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bk-sum { display: flex; flex-direction: column; }
.bk-sum div { display: grid; grid-template-columns: 120px 1fr; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--stone); }
.bk-sum dt, .bk-sum span:first-child { color: var(--muted); }
.bk-sum b { font-weight: 600; }
.bk-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 8px; }
.bk-total b { font-size: 26px; color: var(--navy); }
.bk-big { text-align: center; align-items: center; }
.bk-icon { width: 60px; height: 60px; border-radius: 30px; display: flex; align-items: center; justify-content: center; }
.bk-icon.ok { background: var(--ok-soft); color: var(--ok); }
.bk-icon.warn { background: var(--gold-soft); color: #7a5300; }
.bk-receiptno { font-size: 26px; font-weight: 700; color: var(--navy); letter-spacing: .02em; }
.bk-times div { display: grid; grid-template-columns: 96px 1fr; gap: 8px; font-size: 14px; padding: 5px 0; border-bottom: 1px solid var(--stone); }
.bk-policy h2 { margin: 6px 0 2px; }
.bk-policy p { margin: 0; }
.bk-foot { padding: 16px 20px 24px; font-size: 13px; color: var(--muted); text-align: center; display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; }
@media (max-width: 520px) {
  .bk-days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bk-actions .bk-btn { width: 100%; }
  .bk-sum div { grid-template-columns: 100px 1fr; }
}
@media print { .bk-steps, .bk-tag, .bk-site, .bk-foot, .bk-actions, .bk-test, .credit { display: none !important; } body { background: #fff; } .bk-card { padding: 0; } }

/* "will not be announced" confirmation before step 2 */
.bk-hint { margin: 12px 0 0; color: #5b6472; font-size: 15px; }
.bk-dialog { border: 0; border-radius: 16px; padding: 26px 26px 22px; max-width: 460px; width: calc(100% - 32px); box-shadow: 0 12px 40px rgba(16,24,40,.25); }
.bk-dialog::backdrop { background: rgba(16,24,40,.45); }
.bk-dialog h2 { margin: 0 0 10px; font-size: 21px; color: var(--navy); }
.bk-dialog p { margin: 0 0 10px; line-height: 1.5; }
.bk-dialog-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 16px; }
.bk-dialog-actions .bk-btn { width: auto; min-width: 0; padding-left: 18px; padding-right: 18px; }
.bk-btn-light { background: #fff !important; color: var(--navy) !important; border: 2px solid var(--navy) !important; }

/* link back to the parish's main website */
.bk-head-right { display: flex; align-items: center; gap: 14px; }
.bk-site { color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.45); padding-bottom: 1px; white-space: nowrap; }
.bk-site:hover, .bk-site:focus-visible { color: var(--gold); border-color: var(--gold); }
@media (max-width: 560px) { .bk-site { font-size: 13px; } }

/* convenience-fee note on the Pay step */
.bk-fee { margin: 0; background: #faf1dc; color: #6b4a07; border-radius: 10px; padding: 10px 14px; font-size: 14px; line-height: 1.5; }

/* optional feedback after a successful payment */
.bk-feedback h2 { margin: 0 0 4px; font-size: 20px; color: var(--navy); }
.bk-fb-form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.bk-stars { border: 0; margin: 0; padding: 0; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.bk-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bk-stars label { font-size: 40px; line-height: 1; color: #c9cfda; cursor: pointer; padding: 2px; }
.bk-stars input:checked ~ label, .bk-stars label:hover, .bk-stars label:hover ~ label { color: var(--gold); }
.bk-stars input:focus-visible + label { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 6px; }
.bk-fb-label { font-weight: 600; }
.bk-fb-form textarea { width: 100%; box-sizing: border-box; border: 1px solid #cfd6e2; border-radius: 10px; padding: 10px 12px; font: inherit; resize: vertical; }
.bk-fb-actions { display: flex; justify-content: flex-end; }
.bk-fb-actions .bk-btn { width: auto; }
@media print { .bk-feedback { display: none; } }

/* Bible verse on the confirmation page, matched to the Mass type */
.bk-verse { margin: 0; padding: 18px 22px; border: 1px solid #ecd9a3; border-left: 1px solid #ecd9a3; border-radius: 14px; background: #fff8e6; text-align: center; }
.bk-verse blockquote { margin: 0; font-family: Marcellus, Georgia, serif; font-size: 19px; line-height: 1.5; color: #4a3708; }
.bk-verse figcaption { margin-top: 8px; font-size: 14px; font-weight: 600; color: #8a6512; }
@media print { .bk-verse { display: none; } }

/* feedback asked in a popup */
.bk-fb-dialog { position: relative; }
.bk-fb-dialog h2 { margin: 0 0 4px; padding-right: 28px; }
.bk-fb-x { position: absolute; top: 12px; right: 12px; border: 0; background: none; font-size: 20px; line-height: 1; color: #5b6472; cursor: pointer; padding: 6px; }
.bk-fb-open { text-align: center; margin: 4px 0 0; }
.bk-linkbtn { border: 0; background: none; color: var(--navy); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; padding: 6px; }
.bk-fb-done { text-align: center; margin: 4px 0 0; font-weight: 600; color: var(--navy); }
@media print { .bk-fb-open, .bk-fb-done, .bk-fb-dialog { display: none !important; } }

/* intention preview before payment */
.bk-readout { margin: 0; padding: 14px 16px; border-radius: 12px; background: #fff8e6; border: 1px solid #ecd9a3; font-family: Marcellus, Georgia, serif; font-size: 20px; line-height: 1.45; color: #13284a; word-break: break-word; }
