/* =============================================
   YOUR EMR NEEDS PAGE  (load with base.css + nav.css)
   Header + tabs live in nav.css
   ============================================= */
.cf-panel[hidden] { display: none; }
.emr-inner { padding: clamp(40px, 5vw, 64px) var(--pad); }

/* =============================================
   TAB 1 — STARTING UP
   ============================================= */
.emr-h2 {
  font-size: var(--fs-header);   /* 53.33 / 42 / 32 */
  font-weight: 400;
  line-height: 1.2;
  color: #1a1a1a;
  max-width: 760px;
  margin-bottom: 26px;
}
.emr-lead { font-size: var(--fs-normal); line-height: 1.5; color: #000; margin-bottom: 16px; }
.emr-bullets { list-style: none; max-width: 820px; margin: 0 0 22px; }
.emr-bullets li {
  position: relative;
  padding-left: 20px;
  font-size: var(--fs-body);
  line-height: 1.5;
  color: #000;
  margin-bottom: 9px;
}
.emr-bullets li::before { content: "•"; position: absolute; left: 4px; color: #000; }
.emr-note { font-size: var(--fs-body); line-height: 1.55; color: #000; max-width: 820px; }

/* =============================================
   TAB 2 — FAQ ACCORDION (coloured rows)
   ============================================= */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border-radius: 6px; overflow: hidden; }
.faq-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  border: none;
  background: transparent;
  padding: 14px 26px;
  min-height: 64px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
}
.faq-q { flex: 1;     font-size: 24px;
 line-height: 1.35; color: #000; }
.faq-chev {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.faq-chev svg { width: 13px; height: 13px; display: block; }
.faq-row[aria-expanded="true"] .faq-chev { transform: rotate(180deg); }
.faq-panel { padding: 0 26px 24px; }
.faq-panel[hidden] { display: none; }
.faq-panel p { font-size: 18px; line-height: 1.55; color: #000; }
.faq-panel .faq-sub { margin-bottom: 6px; }
.faq-panel ul { list-style: none; margin-top: 4px; }
.faq-panel li {
  position: relative;
  padding-left: 18px;
  font-size: var(--fs-body);
  line-height: 1.5;
  color: #000;
  margin-bottom: 4px;
}
.faq-panel li::before { content: "•"; position: absolute; left: 2px; color: #000; }

/* =============================================
   TAB 3 — CONTACTS
   ============================================= */
.emr-contact-lead { font-size: var(--fs-normal); line-height: 1.5; color: #000; margin-bottom: clamp(28px, 4vw, 46px); }
.emr-contact-lead a { display: inline-block; color: #1a7eab; font-weight: 700; text-decoration: none; margin-top: 4px; }
.emr-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);   /* three cards fill the full page width */
  gap: clamp(16px, 2vw, 26px);
  align-items: stretch;
}
.emr-card {
  min-width: 0;
  border-radius: 2px;
  padding: clamp(26px, 3vw, 40px) clamp(22px, 2.4vw, 36px) clamp(40px, 5vw, 62px);
  min-height: clamp(180px, 18vw, 200px);
}
.emr-card__title { font-size: var(--fs-card); line-height: 1.15; font-weight: 400; color: #1a1a1a; margin-bottom: 22px; }
.emr-card__org { font-size: var(--fs-body); font-weight: 700; color: #1a1a1a; margin-bottom: 16px; }
.emr-card__line { font-size: var(--fs-body); line-height: 1.5; color: #000; margin-bottom: 12px; }

/* =============================================
   TAB 4 — LET THE SHOW BEGIN (multi-step demo request form)
   ============================================= */
.emr-placeholder { font-size: var(--fs-body); color: #6a6a6a; }

.emr-wizard { display: flex; align-items: flex-start; gap: clamp(24px, 5vw, 80px); }
.emr-wizard[hidden] { display: none; }
.emr-wizard__body { flex: 1; min-width: 0; max-width: 867px; }

/* --- Stepper (numbered, segmented rail — matches the Figma component) --- */
.emr-stepper { flex: 0 0 auto; width: 300px; display: flex; flex-direction: column; gap: 14px; }
.emr-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0 16px 24px;
  background: none;
  border: none;
  font-family: var(--font);
  text-align: left;
  cursor: default;
}
.emr-step::before {   /* 3px vertical bar segment */
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: #cfd6dc;
  transition: background 0.2s;
}
.emr-step.is-active::before { background: #0061a9; }
.emr-step__num {
  flex-shrink: 0;
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; line-height: 20px; font-weight: 500;
  color: #abb7c2;
  border-radius: 50%;
}
.emr-step__label { font-size: 14px; line-height: 20px; color: #abb7c2; }
.emr-step.is-active .emr-step__num { color: #0061a9; }
.emr-step.is-active .emr-step__label { color: #0061a9; }
.emr-step.is-done { cursor: pointer; }
.emr-step.is-done .emr-step__label { color: #000; }
.emr-step.is-done .emr-step__num {
  background: #0061a9;
  color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 6.3L5 8.8L9.5 3.5' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* --- Server-rendered stepper states (ASP.NET postback wizard) --- */
.emr-stepper { list-style: none; margin: 0; padding: 0; }
.emr-step.selected::before { background: #0061a9; }
.emr-step.selected .emr-step__num { color: #0061a9; }
.emr-step.selected .emr-step__label { color: #0061a9; }
.emr-step.done { cursor: default; }
.emr-step.done .emr-step__label { color: #000; }
.emr-step.done .emr-step__num {
  background: #0061a9;
  color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 6.3L5 8.8L9.5 3.5' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* --- Fields --- */
.emr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 19px; align-items: start; }
.emr-split { display: grid; grid-template-columns: 1fr 1fr; gap: 19px; }
.emr-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.emr-field--full { grid-column: 1 / -1; }
.emr-field label { font-size: 14px; line-height: 1.5; color: #000; }

/* Validation: the field label becomes the red error message (no layout shift) */
.emr-field.has-error label { color: #d92d20; }
.emr-field.has-error .emr-input,
.emr-field.has-error .emr-select,
.emr-field.has-error .emr-control,
.emr-field.has-error .emr-textarea { border-color: #d92d20; }

.emr-input, .emr-select, .emr-control {
  box-sizing: border-box;
  height: 44px;
  border: 1px solid #667085;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  font-family: var(--font);
  font-size: 16px;
  color: #101828;
}
.emr-input, .emr-select { width: 100%; padding: 10px 14px; }
.emr-input:focus, .emr-select:focus { outline: none; border: 2px solid #006cb5; }
.emr-input::placeholder { color: #98a2b3; }

.emr-control { display: flex; align-items: center; gap: 8px; padding: 10px 14px; position: relative; }
.emr-control:focus-within { border: 2px solid #006cb5; }
.emr-control__icon { flex-shrink: 0; width: 20px; height: 20px; color: #667085; }
.emr-control input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font: inherit; color: inherit; }
.emr-control input::placeholder { color: #98a2b3; }
/* make the whole date pill open the picker; hide the native indicator */
.emr-control input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer;
}

.emr-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='9' viewBox='0 0 15 9' fill='none'%3E%3Cpath d='M1 1l6.5 6L14 1' stroke='%23101828' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.emr-select:invalid, .emr-select option[disabled] { color: #98a2b3; }

.emr-textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 200px;
  padding: 14px 16px;
  border: 1px solid #98a2b3;
  border-radius: 12px;
  background: #fff;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: #101828;
  resize: vertical;
}
.emr-textarea:focus { outline: none; border-color: #006cb5; }
.emr-textarea::placeholder { color: #98a2b3; }

.emr-actions { display: flex; justify-content: flex-end; margin-top: 40px; }
.emr-proceed {
  height: 44px;
  padding: 0 26px;
  background: #006cb5;
  border: 1px solid #006cb5;
  border-radius: 75px;
  color: #fff;
  font-family: var(--font);
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.emr-proceed:hover { background: #00588f; transform: translateY(-1px); }

/* --- Success popup --- */
.emr-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.emr-modal[hidden] { display: none; }
.emr-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.emr-modal__dialog {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 800px;
  padding: clamp(32px, 5vw, 56px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.emr-modal__close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  font-size: 30px;
  line-height: 1;
  color: #666;
  cursor: pointer;
  transition: color 0.2s;
}
.emr-modal__close:hover { color: #000; }

/* --- Success screen --- */
.emr-success { max-width: 620px; margin: 0 auto; text-align: center; }
.emr-success__icon { width: 72px; height: 72px; margin: 0 auto 24px; }
.emr-success__icon svg { width: 100%; height: 100%; display: block; }
.emr-success__title { font-size: clamp(28px, 3vw, 34px); font-weight: 400; color: #000; margin-bottom: 16px; }
.emr-success__text { font-size: var(--fs-normal); line-height: 1.5; color: #333; margin-bottom: 32px; }
.emr-success__btn {
  display: inline-block;
  padding: 12px 30px;
  background: #006cb5;
  color: #fff;
  text-decoration: none;
  border-radius: 75px;
  font-size: 18px;
  transition: background 0.2s, transform 0.2s;
}
.emr-success__btn:hover { background: #00588f; transform: translateY(-1px); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 760px) {
  .emr-h2 { font-size: 32px; }
  .emr-card__title { font-size: 24px; }
  .emr-cards { grid-template-columns: 1fr; }   /* stack full-width on mobile */

  /* wizard: stepper becomes a horizontal scrollable row above the fields */
  .emr-wizard { flex-direction: column; gap: 28px; }
  .emr-stepper { width: 100%; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 20px; scrollbar-width: none; }
  .emr-stepper::-webkit-scrollbar { display: none; }
  .emr-step { flex-shrink: 0; padding: 0 0 10px; }
  .emr-step__label { white-space: nowrap; }
  .emr-step::before { top: auto; bottom: 0; left: 0; right: 0; width: auto; height: 3px; }
  .emr-grid, .emr-split { grid-template-columns: 1fr; }

  .faq-q {
    flex: 1;
    font-size: 20px;
    line-height: 1.35;
    color: #000;
}

.faq-panel p {
    font-size: 16px;
    line-height: 1.55;
    color: #000;
}

.emr-wizard__body { width: 100%; }

.emr-actions { display: flex; justify-content: center; margin-top: 40px; }


}
