/* MD gift certificates (/gift/). Uses the md-tools tokens (red #E71C02, ink #150502, blush #F9E8E5). */
.mdg { max-width: 980px; margin: 0 auto; }
.mdg [hidden] { display: none !important; }
.mdg .mdg-ticks, .mdg .mdg-steps { list-style: none !important; margin-left: 0 !important; padding-left: 0 !important; }
.mdg .mdg-ticks li, .mdg .mdg-steps li { list-style: none !important; }
.mdg .mdg-ticks li::marker, .mdg .mdg-steps li::marker { content: none; }
.mdg-steps span { overflow-wrap: anywhere; }
.mdg-kicker { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mdt-accent); }
.mdg-season { display: inline-block; margin: 0 0 14px; padding: 6px 12px; border-radius: 999px; background: var(--mdt-ink); color: #fff; font-size: 14px; font-weight: 600; }

/* Hero */
.mdg-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(18px, 4vw, 40px); align-items: center; margin: 0 0 28px; }
.mdg-hero__title { margin: 0 0 12px !important; font-size: clamp(28px, 4.4vw, 44px); line-height: 1.1; color: var(--mdt-ink); }
.mdg-hero__lead { font-size: 18px; margin: 0 0 14px; }
.mdg-ticks { list-style: none; margin: 0; padding: 0; }
.mdg-ticks li { position: relative; padding-left: 28px; margin: 6px 0; }
.mdg-ticks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 3px solid var(--mdt-accent); border-bottom: 3px solid var(--mdt-accent); transform: rotate(-45deg); }
.mdg-price { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 20px; border-radius: 18px; background: linear-gradient(150deg, #E71C02, #a82413); color: #fff; box-shadow: 0 18px 40px rgba(168, 36, 19, .28); }
.mdg-price__was { font-size: 16px; opacity: .9; }
.mdg-price__was s { font-weight: 700; }
.mdg-price__now { font-size: clamp(56px, 8vw, 76px); line-height: 1; font-weight: 800; margin: 6px 0 4px; letter-spacing: -.02em; }
.mdg-price__tax { font-size: 15px; opacity: .95; margin-bottom: 16px; }
.mdg-price .mdg-price__btn { background: #fff; color: var(--mdt-accent) !important; border-color: #fff; }
.mdg-price .mdg-price__btn:hover { background: var(--mdt-soft); border-color: var(--mdt-soft); }

/* Steps */
.mdg-steps { list-style: none; counter-reset: mdg; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 0 0 28px; padding: 0; }
.mdg-steps li { counter-increment: mdg; position: relative; margin: 0 !important; padding: 16px 16px 16px 58px; border-radius: 14px; background: #fff; border: 1px solid var(--mdt-line); }
.mdg-steps li::before { content: counter(mdg); position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--mdt-accent); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.mdg-steps strong { display: block; color: var(--mdt-ink); }
.mdg-steps span { font-size: 14px; }

/* Form */
.mdg-box { max-width: 760px; scroll-margin-top: 90px; }
.mdg-h { margin: 18px 0 10px !important; font-size: 19px; color: var(--mdt-ink); }
.mdg-for { margin-bottom: 4px; }
.mdg-date { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 4px; }
.mdg-date .mdt-field { flex: 1 1 220px; }
.mdg-chip { min-height: 48px; margin: 0 0 14px; padding: 8px 14px; border: 1.5px dashed var(--mdt-accent); border-radius: 10px; background: #fff; color: var(--mdt-accent); font: inherit; font-weight: 700; cursor: pointer; }
.mdg-chip:hover { background: var(--mdt-soft); }
.mdg-count { display: block; text-align: right; font-size: 12px; color: #8a7d7a; margin-top: 4px; }
.mdg-req { font-style: normal; }
.mdg-summary { margin: 6px 0 16px; padding: 14px 16px; border-radius: 12px; background: var(--mdt-soft); }
.mdg-summary div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 4px 0; font-size: 15px; }
.mdg-summary div span:last-child { white-space: nowrap; flex: none; }
.mdg-summary__total { margin-top: 6px; padding-top: 10px !important; border-top: 1px solid var(--mdt-line); font-weight: 800; color: var(--mdt-ink); font-size: 17px !important; }

/* Order received */
.mdg-done h3 { margin: 0 0 8px !important; font-size: 24px; color: var(--mdt-ink); }
.mdg-done:focus { outline: none; }
.mdg-pay { margin: 12px 0 16px; padding: 0; border: 2px solid var(--mdt-accent); border-radius: 14px; overflow: hidden; }
.mdg-pay div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--mdt-line); }
.mdg-pay div:last-child { border-bottom: 0; }
.mdg-pay dt { font-size: 14px; color: #6b5f5d; margin: 0; }
.mdg-pay dd { margin: 0; font-size: 18px; font-weight: 800; color: var(--mdt-ink); word-break: break-all; }
.mdg-copy { margin-left: 8px; padding: 4px 10px; border: 1px solid var(--mdt-line); border-radius: 8px; background: #fff; font: inherit; font-size: 13px; font-weight: 600; color: var(--mdt-accent); cursor: pointer; vertical-align: middle; }

/* FAQ + terms */
.mdg-faq, .mdg-terms { max-width: 760px; margin: 34px auto 0; }
.mdg-faq h2, .mdg-terms h2 { font-size: 24px; }
.mdg-faq details { border-bottom: 1px solid var(--mdt-line); padding: 12px 0; }
.mdg-faq summary { cursor: pointer; font-weight: 700; color: var(--mdt-ink); }
.mdg-faq details p { margin: 8px 0 0; }
.mdg-terms { font-size: 14px; scroll-margin-top: 90px; }
.mdg-terms li { margin: 6px 0; }

/* Certificate view */
.mdg-note { max-width: 760px; margin: 0 auto 18px; padding: 16px 18px; border-radius: 12px; background: var(--mdt-soft); }
.mdg-note h2 { margin: 0 0 6px !important; font-size: 21px; }
.mdg-note p { margin: 0; }
.mdg-cert { max-width: 760px; margin: 0 auto 14px; padding: 10px; border-radius: 20px; background: linear-gradient(150deg, #E71C02, #a82413); box-shadow: 0 18px 40px rgba(168, 36, 19, .22); }
.mdg-cert__in { padding: clamp(22px, 5vw, 46px) clamp(16px, 4vw, 40px); border-radius: 13px; background: #fffaf8; text-align: center; border: 1px dashed rgba(231, 28, 2, .35); }
.mdg-cert__logo { width: 150px; max-width: 50%; height: auto; margin: 0 auto 14px; display: block; }
.mdg-cert__kicker { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: var(--mdt-accent); }
.mdg-cert__title { margin: 10px 0 6px !important; font-size: clamp(26px, 5vw, 42px); line-height: 1.1; color: var(--mdt-ink); }
.mdg-cert__sub { margin: 0 0 16px; color: #5a4c49; }
.mdg-cert__who { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; margin: 0 0 10px; font-size: 18px; color: var(--mdt-ink); }
.mdg-cert__msg { max-width: 460px; margin: 10px auto 6px; padding: 0; border: 0; font: italic 18px/1.5 Georgia, serif; color: #3a2f2d; }
.mdg-cert__code { display: inline-block; margin: 16px 0 10px; padding: 10px 18px; border: 2px dashed #a82413; border-radius: 8px; background: #fff; font: 700 24px/1 "Courier New", monospace; letter-spacing: .08em; color: var(--mdt-ink); }
.mdg-cert__fine { margin: 0; font-size: 13px; color: #5a4c49; }
.mdg-actions { text-align: center; margin: 0 0 20px; }
.mdg-status { text-align: center; font-weight: 600; color: var(--mdt-ink); }
.mdg-times { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.mdg-times legend { width: 100%; }
.mdg-times label { display: flex; align-items: center; gap: 8px; min-height: 40px; }
.mdg-times input { width: 18px; height: 18px; accent-color: var(--mdt-accent); }

/* Product choice in the order form */
.mdg-products { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border: 0; padding: 0; margin: 0 0 14px; }
.mdg-products legend { margin-bottom: 8px; font-weight: 700; color: var(--mdt-ink); }
.mdg-product { position: relative; display: block; cursor: pointer; }
.mdg-product input { position: absolute; opacity: 0; pointer-events: none; }
.mdg-product span { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 14px 16px; border: 2px solid var(--mdt-line); border-radius: 14px; background: #fff; }
.mdg-product strong { font-size: 17px; color: var(--mdt-ink); }
.mdg-product em { font-style: normal; font-size: 20px; font-weight: 800; color: var(--mdt-accent); }
.mdg-product small { font-size: 13px; color: #6b5f5d; }
.mdg-product input:checked + span { border-color: var(--mdt-accent); box-shadow: 0 8px 20px rgba(168, 36, 19, .12); background: #fffaf8; }
.mdg-product input:focus-visible + span { outline: 3px solid rgba(231, 28, 2, .35); outline-offset: 2px; }

/* Total Fitness Assessment page */
.mdx-hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
.mdx-photo { position: relative; }
.mdx-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 18px; }
.mdx-price { margin: -46px 14px 0; position: relative; padding: 18px 16px; }
.mdx-price .mdg-price__now { font-size: clamp(46px, 6vw, 60px); }
.mdx-section { margin: 0 0 34px; }
.mdx-section > h2, .mdx-two h2 { margin: 0 0 8px !important; font-size: clamp(24px, 3.2vw, 30px); color: var(--mdt-ink); }
.mdx-lead { margin: 0 0 14px; font-size: 17px; }
.mdx .mdx-grid { list-style: none !important; margin: 14px 0 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.mdx .mdx-grid li { list-style: none !important; margin: 0 !important; padding: 16px; border-radius: 14px; background: #fff; border: 1px solid var(--mdt-line); border-top: 4px solid var(--mdt-accent); }
.mdx .mdx-grid li::marker { content: none; }
.mdx-grid strong { display: block; margin-bottom: 4px; color: var(--mdt-ink); font-size: 17px; }
.mdx-grid span { font-size: 14px; }
.mdx-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.mdx-two > div { padding: 20px; border-radius: 14px; background: var(--mdt-soft); }
.mdx-steps { margin-bottom: 0; }
.mdx-safe, .mdx-coach { max-width: 760px; }
.mdx-safe { padding: 18px 20px; border-left: 4px solid var(--mdt-accent); background: #fffaf8; border-radius: 0 14px 14px 0; }
.mdx-safe p, .mdx-coach p { margin: 0; }
.mdx-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; align-items: stretch; margin-top: 18px; }
.mdx-plan { position: relative; display: flex; flex-direction: column; padding: 24px 20px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--mdt-line); }
.mdx-plan.is-best { border: 2px solid var(--mdt-accent); box-shadow: 0 14px 30px rgba(168, 36, 19, .14); }
.mdx-plan__tag { position: absolute; top: -12px; left: 18px; padding: 3px 10px; border-radius: 999px; background: var(--mdt-ink); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.mdx-plan.is-best .mdx-plan__tag { background: var(--mdt-accent); }
.mdx-plan h3 { margin: 0 0 6px !important; font-size: 21px; color: var(--mdt-ink); }
.mdx-plan__price { margin: 0; font-size: 34px; font-weight: 800; color: var(--mdt-ink); }
.mdx-plan__price small { font-size: 15px; font-weight: 600; color: var(--mdt-text); }
.mdx-plan__sub { margin: 2px 0 12px; font-size: 14px; color: #6b5f5d; }
.mdx-plan .mdg-ticks { margin-bottom: 16px; flex: 1; }
.mdx-giftline { margin: 14px 0 0; text-align: center; }

@media (max-width: 760px) {
	.mdg-hero { grid-template-columns: 1fr; }
	.mdg-price { order: -1; }
	.mdx-hero .mdx-photo { order: -1; }
	.mdx-price { margin: -40px 10px 0; }
	.mdg-products { grid-template-columns: 1fr; }
}

@media print {
	body * { visibility: hidden !important; }
	.mdg-cert, .mdg-cert * { visibility: visible !important; }
	.mdg-cert { position: absolute; left: 0; top: 0; width: 100%; max-width: none; margin: 0; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.md-mbar { display: none !important; }
}
