@import url("/brand.css");

:root {
  --bg: var(--brand-white);
  --panel: var(--brand-white);
  --primary: var(--brand-teal);
  --primary-accent: var(--brand-teal);
  --accent-light: var(--brand-teal);
  --border: var(--surface-border);
  --text: var(--brand-ink);
  --muted: var(--text-muted);
  --success: #059669;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--brand-font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-underline-offset: 0.18em;
}

.landing-body {
  background: var(--brand-white);
}

.masthead {
  padding: 3rem clamp(1.5rem, 6vw, 5rem) 2rem;
  background: var(--brand-sand);
}

.landing-hero {
  text-align: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.brand-logo {
  width: 176px;
  max-width: 100%;
  height: auto;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--primary);
  font-size: 0.85rem;
}

.masthead h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin: 0 0 0.5rem;
}

.masthead .lede {
  max-width: 720px;
  color: var(--muted);
  margin-bottom: 1rem;
}

.hero-note {
  margin: 0.6rem 0 0;
  color: var(--primary);
  font-weight: 600;
}

.layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  padding: clamp(1.5rem, 5vw, 4rem);
  width: min(100%, 1320px);
  margin: 0 auto;
}

.landing-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: clamp(1.5rem, 5vw, 4rem);
  width: min(100%, 1280px);
  margin: 0 auto;
}

.option-card {
  background: var(--panel);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.option-card:nth-child(2) {
  background: var(--brand-mint);
  border-color: transparent;
}

.option-card:nth-child(3) {
  background: var(--brand-sand);
  border-color: transparent;
}

.option-card ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.option-card li {
  margin-bottom: 0.25rem;
}

.option-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: var(--primary);
  margin-bottom: -0.25rem;
}

.price-tag {
  display: flex;
  flex-direction: column;
  min-width: 120px;
  color: var(--muted);
}

.price-tag strong {
  font-size: 1.3rem;
  color: var(--text);
}

.primary.block,
.ghost.block {
  display: inline-flex;
  justify-content: center;
  width: 180px;
  text-align: center;
}

.card {
  background: var(--panel);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.75rem;
}

.card-header h2 {
  margin: 0;
  font-size: 1.4rem;
}

.card-header p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-weight: 500;
  color: var(--text);
  font-size: 0.95rem;
}

input,
select,
textarea {
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  padding: 0.75rem 0.9rem;
  font: inherit;
  background: #fefefe;
  transition: border 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: var(--focus-ring);
  outline: none;
}

textarea {
  resize: vertical;
}

.input-with-button {
  display: flex;
  gap: 0.5rem;
}

.input-with-button input {
  flex: 1;
}

button {
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.35rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s, border-color 0.2s;
}

.primary {
  min-height: 46px;
  padding: 0.7rem 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--primary);
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.primary:hover {
  background: #115852;
  border-color: #115852;
  transform: translateY(-1px);
}

.ghost {
  min-height: 46px;
  padding: 0.7rem 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--brand-white);
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.ghost:hover {
  border-color: var(--primary);
  background: var(--brand-mint);
}

button.small {
  padding: 0.5rem 0.8rem;
  font-size: 0.85rem;
}

.card-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

.selection-list {
  border: 1px dashed var(--border);
  border-radius: 1rem;
  padding: 1rem;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.selection-list.chip-list {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
}

.selection-list.chip-list.empty {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.selection-list.empty {
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.file-upload {
  border: 1px dashed var(--border);
  border-radius: 1rem;
  padding: 1rem;
  background: var(--brand-sand);
}

.file-label input[type="file"] {
  border: none;
  padding: 0;
  font-size: 0.95rem;
  margin-top: 0.4rem;
}

.attachment-preview {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 0.75rem;
}

.attachment-preview.hidden {
  display: none;
}

.attachment-preview img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 0.85rem;
  border: 1px solid var(--border);
  background: #fff;
}

.attachment-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.attachment-name {
  font-weight: 600;
  margin: 0;
}

.attachment-size {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.medicine-pill {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: var(--brand-mint);
}

.medicine-pill header {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--primary);
}

.symptom-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: var(--brand-mint);
  color: var(--primary);
  font-weight: 600;
  width: fit-content;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.muted.small {
  font-size: 0.8rem;
}

.inline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.checkbox {
  flex-direction: row;
}

.legal {
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--brand-sand);
  border-radius: 0.75rem;
  padding: 0.8rem;
  margin-top: 1.25rem;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.response {
  margin-top: 0.75rem;
  font-weight: 500;
}

.response.success {
  color: var(--success);
}

.response.error {
  color: #e03939;
}

.info-card .timeline {
  padding-left: 1rem;
  color: var(--muted);
}

.info-card .timeline li {
  margin-bottom: 0.8rem;
}

.info-blurb {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--brand-sand);
  padding: 1rem 1.2rem;
  margin: 1.25rem 0;
  color: var(--text);
}

.info-blurb p {
  margin: 0.2rem 0;
}

.pill {
  background: var(--brand-mint);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  color: var(--primary);
}

.pill a {
  color: var(--primary-accent);
  font-weight: 600;
}

.footnote {
  text-align: center;
  padding: 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: #e03939;
  color: #fff;
  padding: 0.85rem 1.25rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(224, 57, 57, 0.25);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  transform: translateY(10px);
  z-index: 1000;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success {
  background: var(--success);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 28, 39, 0.55);
  backdrop-filter: blur(2px);
  z-index: 900;
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 950;
}

.modal.hidden,
.modal-backdrop.hidden,
.toast.hidden {
  pointer-events: none;
  opacity: 0;
}

.modal-content {
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  width: min(90vw, 420px);
  border: 1px solid var(--border);
  box-shadow: 0 18px 48px rgba(21, 52, 59, 0.16);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--muted);
  cursor: pointer;
}

.contract-fields {
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 0.9rem;
  background: var(--brand-sand);
  margin-top: 0.75rem;
}

.contract-fields.hidden {
  display: none;
}

/* Tom Select tweaks */
.ts-wrapper {
  font-size: 0.95rem;
}

.ts-wrapper .ts-control {
  border-radius: 0.8rem;
  border-color: var(--border);
  padding: 0.5rem;
}

.ts-dropdown {
  border-radius: 0.8rem;
  border-color: var(--border);
}

.option-title {
  font-weight: 600;
  color: var(--text);
}

.option-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 768px) {
  .hero-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
/* Terms & Conditions layout */
.terms-body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--brand-font);
  margin: 0;
}

.terms-hero {
  padding: clamp(2rem, 6vw, 4rem);
  background: var(--brand-sand);
  border-bottom: 1px solid var(--border);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.back-link:hover {
  text-decoration: underline;
}

.terms-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.terms-hero .lede {
  margin: 0.75rem 0 1.5rem;
  max-width: 720px;
  color: var(--muted);
}

.terms-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.meta-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}

.meta-value {
  margin: 0.15rem 0 0;
  font-weight: 600;
  color: var(--text);
}

.meta-note {
  margin: 0;
  color: var(--muted);
}

.terms-content {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.terms-section {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.terms-section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.3rem;
  color: var(--primary);
  display: flex;
  gap: 0.5rem;
}

.terms-section h2 span {
  color: var(--muted);
}

.terms-section p {
  margin: 0 0 0.8rem;
}

.terms-section ul {
  margin: 0.3rem 0 0.8rem 1.25rem;
}

.definition-list {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.definition-list dt {
  font-weight: 600;
  margin-bottom: 0.15rem;
  color: var(--primary);
}

.definition-list dd {
  margin: 0;
}

.terms-section .important {
  font-weight: 600;
  color: var(--primary);
}

.terms-footnote {
  margin-top: 2rem;
}

@media (max-width: 640px) {
  .terms-section {
    padding: 1.1rem;
  }
  .definition-list {
    grid-template-columns: 1fr;
  }
}
.payfast-button-wrapper {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px dashed var(--border);
  border-radius: 0.9rem;
  background: var(--brand-sand);
  text-align: center;
}

.payfast-button-wrapper.hidden {
  display: none;
}

.payfast-button-wrapper form {
  display: inline-flex;
  justify-content: center;
  width: 100%;
}

.payfast-button-wrapper .payfast-button-form {
  width: 100%;
}

.payfast-button-wrapper button,
.payfast-button-wrapper input[type="submit"],
.payfast-button-wrapper input[type="image"],
.payfast-button-wrapper a {
  margin: 0 auto;
}

/* FM Med shared header and public-site layout */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(203, 222, 217, 0.78);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(100% - 2rem, 1280px);
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.wordmark-shell {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  background: var(--brand-mint);
}

.wordmark {
  display: block;
  width: 151px;
  height: 40px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1rem, 2.2vw, 2rem);
  margin-left: auto;
}

.desktop-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
}

.desktop-nav a:hover {
  color: var(--primary);
}

.header-cta {
  flex: 0 0 auto;
  min-width: 118px;
  padding: 0.65rem 1.2rem;
  text-align: center;
}

.mobile-nav {
  display: none;
  margin-left: auto;
  position: relative;
}

.mobile-nav summary {
  min-width: 48px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text);
  background: var(--brand-white);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  list-style: none;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav nav {
  position: absolute;
  top: calc(100% + 0.7rem);
  right: 0;
  width: min(17rem, calc(100vw - 2rem));
  padding: 0.55rem;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--brand-white);
  box-shadow: 0 14px 36px rgba(21, 52, 59, 0.12);
}

.mobile-nav nav a {
  padding: 0.72rem 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.mobile-nav nav a:hover {
  background: var(--brand-mint);
}

.home-hero {
  width: min(100% - 2rem, 1280px);
  margin: 1.5rem auto 0;
  padding: clamp(2rem, 6vw, 5.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5.5rem);
  border-radius: var(--radius-xl);
  background: var(--brand-sand);
  overflow: hidden;
}

.hero-copy {
  max-width: 650px;
}

.hero-copy h1 {
  margin: 0.45rem 0 1rem;
  max-width: 720px;
  color: var(--text);
  font-size: clamp(2.7rem, 6vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.hero-copy .lede {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

.hero-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-actions a {
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-copy .hero-note {
  margin-top: 1rem;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
}

.hero-panel {
  position: relative;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgba(203, 222, 217, 0.9);
  border-radius: var(--radius-xl);
  background: var(--brand-white);
}

.hero-panel::before {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  right: -64px;
  top: -64px;
  border-radius: 50%;
  background: var(--brand-mint);
  z-index: 0;
}

.hero-panel > * {
  position: relative;
  z-index: 1;
}

.hero-panel-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.hero-panel-brand img {
  width: 162px;
  height: auto;
}

.hero-panel-brand span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.care-mode {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--brand-white);
}

.care-mode-featured {
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 0;
  background: var(--brand-mint);
}

.care-mode h2 {
  margin: 0.35rem 0 0.4rem;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.18;
}

.care-mode p {
  margin: 0;
}

.care-label {
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.care-mode-grid {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.care-mode-grid strong {
  display: block;
  margin-top: 0.2rem;
  line-height: 1.25;
}

.practice-strip {
  width: min(100% - 2rem, 1180px);
  margin: 0 auto;
  padding: 1.35rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1.6fr;
  border-bottom: 1px solid var(--border);
}

.practice-strip div {
  padding: 0.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
}

.practice-strip div:last-child {
  border-right: 0;
}

.practice-strip span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.practice-strip strong {
  margin-top: 0.2rem;
  font-size: 0.9rem;
}

.services-section,
.process-section {
  padding: clamp(4rem, 8vw, 7rem) 1rem;
}

.services-section {
  scroll-margin-top: 6rem;
}

.section-intro {
  width: min(100%, 720px);
  margin: 0 auto;
  text-align: center;
}

.section-intro h2 {
  margin: 0.35rem 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-intro > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.services-section .landing-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 2.4rem 0 0;
}

.option-card h3 {
  margin: 0.35rem 0 0.5rem;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  line-height: 1.2;
}

.option-card > div:first-child > p:not(.eyebrow) {
  color: var(--muted);
}

.option-card .option-footer {
  margin-top: auto;
  align-items: flex-end;
}

.service-note {
  max-width: 150px;
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.price-tag small {
  max-width: 190px;
  line-height: 1.35;
}

.process-section {
  background: var(--brand-mint);
}

.process-list {
  width: min(100%, 1120px);
  margin: 2.5rem auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  list-style: none;
}

.process-list li {
  padding: 1.35rem;
  display: flex;
  gap: 1rem;
  border: 1px solid rgba(23, 107, 100, 0.2);
  border-radius: var(--radius-md);
  background: var(--brand-white);
}

.process-list li > span {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.process-list p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  padding: clamp(2.5rem, 6vw, 4.5rem) 1rem 1.5rem;
  color: var(--brand-white);
  background: var(--brand-ink);
}

.footer-inner {
  width: min(100%, 1180px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-inner > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.footer-wordmark {
  width: 151px;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--brand-white);
}

.footer-inner a,
.footer-inner span,
.footer-tagline {
  color: #d6e2df;
  font-size: 0.88rem;
}

.footer-inner a {
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--brand-white);
  text-decoration: underline;
}

.footer-tagline {
  margin: 0.45rem 0 0;
}

.footer-clinical-note {
  width: min(100%, 1180px);
  margin: 2.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(221, 235, 231, 0.2);
  color: #abc0bb;
  font-size: 0.78rem;
}

.page-hero {
  text-align: center;
}

.page-hero .brand {
  justify-content: center;
}

.page-hero .lede {
  margin-left: auto;
  margin-right: auto;
}

.payment-status-card {
  max-width: 600px;
  margin: clamp(2rem, 8vw, 5rem) auto;
  padding: clamp(1.5rem, 5vw, 2.5rem);
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .header-cta {
    margin-left: auto;
  }

  .mobile-nav {
    display: block;
    margin-left: 0;
  }

  .home-hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-panel {
    width: min(100%, 700px);
  }

  .services-section .landing-options,
  .process-list {
    grid-template-columns: 1fr;
  }

  /* On narrow screens, lead with the online consultation, then renewal,
     and place the in-person booking option last. */
  .services-section .landing-options .option-card:nth-child(1) {
    order: 3;
  }

  .services-section .landing-options .option-card:nth-child(2) {
    order: 2;
  }

  .services-section .landing-options .option-card:nth-child(3) {
    order: 1;
  }

  .option-card {
    min-height: 0;
  }

  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .header-inner {
    min-height: 66px;
  }

  .wordmark-shell {
    padding: 0.25rem 0.6rem;
  }

  .wordmark {
    width: 116px;
    height: 32px;
  }

  .header-cta {
    min-width: auto;
    padding: 0.55rem 0.85rem;
    font-size: 0.84rem;
  }

  .home-hero {
    width: calc(100% - 1rem);
    margin-top: 0.5rem;
    padding: 2rem 1.2rem;
    border-radius: var(--radius-lg);
  }

  .hero-copy h1 {
    font-size: clamp(2.45rem, 13vw, 4rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions a {
    width: 100%;
  }

  .hero-panel-brand {
    align-items: flex-start;
    flex-direction: column;
  }

  .care-mode-grid,
  .practice-strip {
    grid-template-columns: 1fr;
  }

  .practice-strip {
    padding: 0.8rem 0;
  }

  .practice-strip div {
    padding: 0.8rem 0.5rem;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .practice-strip div:last-child {
    border-bottom: 0;
  }

  .services-section,
  .process-section {
    padding: 3.75rem 1rem;
  }

  .option-footer {
    align-items: stretch;
  }

  .primary.block,
  .ghost.block {
    width: 100%;
    min-height: 48px;
    align-items: center;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 470px) {
  .header-inner {
    width: calc(100% - 1rem);
    gap: 0.45rem;
  }

  .mobile-nav {
    margin-left: auto;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* Refined FM Med landing presentation. Scoped so inner pages retain their layout. */
.landing-body .site-header {
  padding: 0.9rem 1rem 0;
  border-bottom: 0;
  background: rgba(244, 240, 232, 0.92);
}

.landing-body .header-inner {
  width: min(100%, 1180px);
  min-height: 78px;
  padding: 0.55rem 0.7rem 0.55rem 1.15rem;
  border: 1px solid rgba(203, 222, 217, 0.82);
  border-radius: 1.25rem;
  background: var(--brand-white);
  box-shadow: 0 10px 30px rgba(21, 52, 59, 0.06);
}

.landing-body .wordmark-shell {
  padding: 0;
  border-radius: 0;
  background: transparent;
  text-decoration: none;
}

.landing-logo {
  display: inline-grid;
  flex: 0 0 auto;
  color: var(--brand-ink);
  font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
  font-size: 1.95rem;
  font-weight: 800;
  letter-spacing: -0.09em;
  line-height: 0.73;
  text-decoration: none;
}

.landing-logo > span {
  display: block;
  text-decoration: none;
}

.landing-logo-fm {
  color: var(--brand-ink);
}

.landing-logo-med {
  color: var(--brand-teal);
}

.landing-logo-tagline {
  margin-top: 0.72em;
  color: var(--brand-ink);
  font-size: 0.17em;
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1;
  white-space: nowrap;
}

.wordmark-shell .landing-logo-tagline {
  display: none;
}

.wordmark-shell .landing-logo {
  row-gap: 0.1em;
  letter-spacing: -0.035em;
  line-height: 0.82;
}

.landing-logo-large {
  padding: 1.05rem 1.15rem 1rem;
  border: 1px solid rgba(203, 222, 217, 0.9);
  border-radius: 1.65rem;
  background: var(--brand-white);
  font-size: clamp(3.1rem, 5vw, 4rem);
  box-shadow: 0 12px 28px rgba(21, 52, 59, 0.07);
}

.landing-body .desktop-nav {
  justify-content: center;
}

.landing-body .desktop-nav a {
  font-size: 0.9rem;
}

.home-hero {
  width: min(calc(100% - 2rem), 1180px);
  min-height: 570px;
  margin-top: 1rem;
  padding: 0;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 0;
  border: 1px solid rgba(203, 222, 217, 0.88);
  border-radius: 2rem;
  background: var(--brand-white);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: none;
  padding: clamp(3.5rem, 7vw, 6rem) clamp(2.5rem, 6vw, 5.7rem);
}

.hero-copy h1 {
  max-width: 620px;
  margin: 0.65rem 0 1.35rem;
  font-size: clamp(3.15rem, 5.8vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-copy .lede {
  max-width: 570px;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.7;
}

.hero-copy .lede strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--brand-ink);
  font-size: 1.18em;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-actions {
  margin-top: 2rem;
}

.hero-actions a {
  min-height: 50px;
  padding-inline: 1.55rem;
}

.hero-panel {
  min-height: 100%;
  padding: clamp(2rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 0;
  border-left: 1px solid rgba(203, 222, 217, 0.8);
  border-radius: 0;
  background: var(--brand-sand);
  isolation: isolate;
  overflow: hidden;
}

.hero-panel::before {
  width: 430px;
  height: 430px;
  top: -210px;
  right: -170px;
  border-radius: 50%;
  background: var(--brand-mint);
  z-index: -1;
}

.hero-panel::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 390px;
  left: -155px;
  bottom: -245px;
  border-radius: 50%;
  background: var(--brand-white);
  transform: rotate(22deg);
  z-index: -1;
}

.hero-panel-brand {
  align-items: flex-start;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.hero-panel-brand .landing-logo-large {
  color: var(--brand-ink);
  row-gap: 0.1em;
  font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(3.1rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.82;
}

.hero-panel-brand .landing-logo-large > span {
  padding: 0;
  font-size: 1em;
  font-weight: 800;
  line-height: 0.82;
}

.hero-panel-brand .landing-logo-large > .landing-logo-fm {
  color: var(--brand-ink);
}

.hero-panel-brand .landing-logo-large > .landing-logo-med {
  color: var(--brand-teal);
}

.hero-panel-brand .landing-logo-large > .landing-logo-tagline {
  margin-top: 0.72em;
  color: var(--brand-ink);
  font-size: 0.17em;
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1;
}

.hero-panel-brand > span:last-child {
  padding-top: 0.35rem;
  color: var(--brand-ink);
  font-size: 0.76rem;
}

.care-mode {
  padding: 1.05rem 1.15rem;
  border-color: rgba(203, 222, 217, 0.9);
  border-radius: 1rem;
}

.care-mode-featured {
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border: 0;
  border-radius: 1.5rem;
  color: var(--brand-white);
  background: var(--brand-ink);
}

.care-mode-featured .care-label {
  color: var(--brand-mint);
}

.care-mode-featured h2 {
  color: var(--brand-white);
}

.care-mode-featured p:last-child {
  color: #dbe7e4;
}

.care-mode-grid {
  margin-top: 0.85rem;
  gap: 0.85rem;
}

.practice-strip {
  width: min(calc(100% - 2rem), 1180px);
  margin-top: 1.15rem;
  padding: 1.15rem 0.45rem;
  grid-template-columns: 1fr 1.15fr 1fr 1.2fr;
  border: 1px solid rgba(203, 222, 217, 0.88);
  border-radius: 1.15rem;
  background: var(--brand-white);
}

.practice-strip div {
  padding: 0.35rem 1.35rem;
}

.practice-strip strong {
  line-height: 1.55;
}

@media (max-width: 980px) {
  .home-hero {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .hero-panel {
    width: 100%;
    min-height: 500px;
    border-top: 1px solid rgba(203, 222, 217, 0.8);
    border-left: 0;
  }

  .practice-strip {
    grid-template-columns: 1fr 1fr;
  }

  .practice-strip div:nth-child(2) {
    border-right: 0;
  }

  .practice-strip div:nth-child(-n + 2) {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .practice-strip div:nth-child(n + 3) {
    padding-top: 1rem;
  }
}

@media (max-width: 700px) {
  .landing-body .site-header {
    padding: 0.5rem 0.5rem 0;
  }

  .landing-body .header-inner {
    width: 100%;
    min-height: 66px;
    padding: 0.45rem 0.55rem 0.45rem 0.8rem;
    gap: 0.6rem;
    border-radius: 1rem;
  }

  .landing-logo {
    font-size: 1.58rem;
  }

  .landing-logo-large {
    padding: 0.9rem 1rem 0.85rem;
    font-size: 3rem;
  }

  .hero-panel-brand .landing-logo-large {
    font-size: 3rem;
  }

  .home-hero {
    width: calc(100% - 1rem);
    margin-top: 0.6rem;
    padding: 0;
    border-radius: 1.5rem;
  }

  .hero-copy {
    padding: 3.25rem 1.4rem 3rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.8rem, 14vw, 4rem);
  }

  .hero-copy .lede {
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero-panel {
    min-height: auto;
    padding: 1.5rem 1.25rem 1.75rem;
  }

  .hero-panel-brand {
    align-items: flex-start;
    flex-direction: row;
    margin-bottom: 2.2rem;
  }

  .practice-strip {
    width: calc(100% - 1rem);
    margin-top: 0.6rem;
    padding: 0.55rem 1rem;
    grid-template-columns: 1fr;
  }

  .practice-strip div,
  .practice-strip div:nth-child(n) {
    padding: 0.9rem 0.15rem;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .practice-strip div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 470px) {
  .care-mode-grid {
    grid-template-columns: 1fr;
  }

  .landing-body .header-cta {
    padding-inline: 0.75rem;
  }
}
