/* ============================================================
   ORDER MEDICATION PAGE — order-medication.css
   Prefix: .om-page
   ============================================================ */

/* ── Main page body offset (clears fixed header) ── */
.om-page-body {
  padding-top: 194px;
}
.om-warning-bar {
  background: rgba(217,119,6,.1);
  border-bottom: 1px solid rgba(217,119,6,.2);
  padding: .75rem 0;
}
.om-warning-bar .container { display: flex; align-items: flex-start; gap: .75rem; }
.om-warning-icon { color: #d97706; flex-shrink: 0; margin-top: .1rem; }
.om-warning-text { font-size: .9rem; color: #1a1a1a; line-height: 1.5; }
.om-warning-text strong { color: #d97706; }
.om-warning-text a { color: #d97706; text-decoration: underline; font-weight: 600; }

/* ── Page hero ── */
.om-hero {
  background: #000;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}
.om-hero::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 35%;
  background: linear-gradient(135deg, rgba(204,0,0,.06), rgba(204,0,0,.12));
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
  pointer-events: none;
}
.om-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}
.om-sec-tag {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: .625rem;
}
.om-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: .75rem;
}
.om-hero h1 em { font-style: italic; font-weight: 400; color: #CC0000; }
.om-hero-sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,.55);
  line-height: 1.85;
  max-width: 540px;
}
.om-hero-meta {
  display: flex;
  gap: 2rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}
.om-hm-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  color: rgba(255,255,255,.5);
}
.om-hm-item svg { color: rgba(204,0,0,.8); flex-shrink: 0; }
.om-hero-badge {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 1.75rem;
  text-align: center;
  flex-shrink: 0;
  min-width: 168px;
}
.om-pgb-icon { font-size: 2.25rem; margin-bottom: .5rem; }
.om-pgb-label {
  font-size: .8125rem;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
}
.om-pgb-val {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: #fff;
  margin-top: .25rem;
}

/* ── Main layout ── */
.om-main-layout { padding: 3.5rem 0 5rem; }
.om-form-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3.5rem;
  align-items: start;
}

/* ── Form card ── */
.om-form-card {
  background: #fff;
  border: 1px solid #E6E6E6;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.09);
  overflow: hidden;
}
.om-form-card-head {
  background: #000;
  padding: 1.75rem 2rem;
  border-bottom: 3px solid #CC0000;
}
.om-form-card-head h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .25rem;
}
.om-form-card-head p { font-size: .875rem; color: rgba(255,255,255,.45); line-height: 1.5; }
.om-form-card-body { padding: 2rem; }

/* Progress steps */
.om-form-progress {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #E6E6E6;
}
.om-fp-step {
  flex: 1;
  text-align: center;
  padding: .625rem .5rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .25s ease;
  border-right: 1px solid #E6E6E6;
  color: #888;
  background: #fff;
  font-family: 'Source Sans 3', -apple-system, sans-serif;
  border-top: none;
  border-bottom: none;
  border-left: none;
}
.om-fp-step:last-child { border-right: none; }
.om-fp-step.active { background: #000; color: #fff; }
.om-fp-step.done { background: rgba(22,163,74,.1); color: #16a34a; }
.om-fp-step.done::after { content: " ✓"; }

/* Step panels */
.om-step-panel { display: none; }
.om-step-panel.active { display: block; }

/* Field groups */
.om-field-group { margin-bottom: 1.5rem; }
.om-field-group-title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #888;
  padding-bottom: .625rem;
  border-bottom: 1px solid #E6E6E6;
  margin-bottom: 1.125rem;
}
.om-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .875rem; }
.om-form-field { margin-bottom: .875rem; }
.om-form-field label {
  display: block;
  font-size: .8125rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: .35rem;
  letter-spacing: .01em;
}
.om-form-field label .req { color: #CC0000; margin-left: .15rem; }
.om-form-field input,
.om-form-field select,
.om-form-field textarea {
  width: 100%;
  background: #fff;
  border: 1.5px solid #d0d0d0;
  border-radius: 6px;
  padding: .75rem 1rem;
  font-family: 'Source Sans 3', -apple-system, sans-serif;
  font-size: .9375rem;
  color: #1a1a1a;
  transition: all .25s ease;
}
.om-form-field input::placeholder,
.om-form-field textarea::placeholder { color: #888; }
.om-form-field select {
  color: #5a5556;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.om-form-field select option { color: #1a1a1a; }
.om-form-field input:focus,
.om-form-field select:focus,
.om-form-field textarea:focus {
  outline: none;
  border-color: #CC0000;
  box-shadow: 0 0 0 3px rgba(204,0,0,.08);
}
.om-form-field input.error,
.om-form-field select.error { border-color: #CC0000; background: rgba(204,0,0,.03); }
.om-form-field .om-err-msg {
  font-size: .8rem;
  color: #CC0000;
  margin-top: .3rem;
  display: none;
}
.om-form-field.has-error .om-err-msg { display: block; }
.om-form-field textarea { resize: vertical; min-height: 100px; line-height: 1.6; }

/* Checkbox */
.om-check-group { display: flex; flex-direction: column; gap: .625rem; }
.om-check-item { display: flex; align-items: flex-start; gap: .75rem; cursor: pointer; }
.om-check-item input[type=checkbox] {
  width: 18px; height: 18px;
  accent-color: #CC0000;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}
.om-check-item-label { font-size: .9375rem; color: #1a1a1a; line-height: 1.5; }

/* Medication rows */
.om-med-rows { display: flex; flex-direction: column; gap: .875rem; }
.om-med-row {
  background: #F5F5F5;
  border: 1px solid #E6E6E6;
  border-radius: 12px;
  padding: 1rem;
}
.om-med-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: .75rem;
  align-items: end;
}
.om-med-row .om-form-field { margin-bottom: 0; }
.om-remove-med {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: transparent;
  color: #888;
  border: 1.5px solid #d0d0d0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .25s ease;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  font-family: inherit;
}
.om-remove-med:hover { background: #CC0000; color: #fff; border-color: #CC0000; }
.om-add-med-btn {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  font-weight: 600;
  color: #CC0000;
  margin-top: .625rem;
  padding: .375rem 0;
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'Source Sans 3', -apple-system, sans-serif;
  transition: color .25s ease;
}
.om-add-med-btn:hover { color: #a30000; }

/* Form nav */
.om-form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid #E6E6E6;
}
.om-form-nav-back {
  font-size: .9rem;
  font-weight: 600;
  color: #888;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem 0;
  display: flex;
  align-items: center;
  gap: .35rem;
  font-family: 'Source Sans 3', -apple-system, sans-serif;
  transition: color .25s ease;
}
.om-form-nav-back:hover { color: #000; }
.om-form-note {
  font-size: .8rem;
  color: #888;
  line-height: 1.5;
  margin-top: .875rem;
  text-align: center;
}
.om-form-note a { color: #CC0000; text-decoration: underline; }

/* Success state */
.om-success-state { display: none; text-align: center; padding: 3rem 2rem; }
.om-success-state.show { display: block; }
.om-success-icon {
  width: 72px; height: 72px;
  background: rgba(22,163,74,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.om-success-state h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: .625rem;
}
.om-success-state p { color: #5a5556; font-size: .9375rem; line-height: 1.8; max-width: 360px; margin: 0 auto; }
.om-success-next {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  align-items: center;
}

/* ── Sidebar ── */
.om-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.om-info-card {
  background: #fff;
  border: 1px solid #E6E6E6;
  border-radius: 16px;
  overflow: hidden;
}
.om-ic-head {
  background: #F5F5F5;
  padding: 1.125rem 1.25rem;
  border-bottom: 1px solid #E6E6E6;
  display: flex;
  align-items: center;
  gap: .625rem;
}
.om-ic-head h3 {
  font-size: .875rem;
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.om-ic-head svg { color: #CC0000; flex-shrink: 0; }
.om-ic-body { padding: 1.25rem; }

/* Hours */
.om-hours-list { display: flex; flex-direction: column; gap: .5rem; }
.om-hour-row { display: flex; justify-content: space-between; font-size: .9rem; }
.om-hour-day { color: #5a5556; }
.om-hour-time { font-weight: 600; color: #000; }
.om-hour-row.today .om-hour-day { color: #CC0000; font-weight: 700; }
.om-hour-row.today .om-hour-time { color: #CC0000; }

/* Clinic list */
.om-clinic-list { display: flex; flex-direction: column; gap: .875rem; }
.om-clinic-item { padding-bottom: .875rem; border-bottom: 1px solid #E6E6E6; }
.om-clinic-item:last-child { border-bottom: none; padding-bottom: 0; }
.om-clinic-name { font-weight: 700; font-size: .9375rem; margin-bottom: .2rem; }
.om-clinic-loc {
  font-size: .8125rem;
  color: #888;
  margin-bottom: .375rem;
  display: flex;
  align-items: center;
  gap: .3rem;
}
.om-clinic-ph {
  font-size: .875rem;
  color: #CC0000;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .35rem;
  text-decoration: none;
  transition: color .25s ease;
}
.om-clinic-ph:hover { color: #a30000; }

/* Security card */
.om-security-card {
  background: #000;
  border-radius: 16px;
  padding: 1.5rem;
}
.om-security-card .om-sec-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: .25rem;
}
.om-sec-items { display: flex; flex-direction: column; gap: .875rem; margin-top: 1rem; }
.om-sec-item { display: flex; align-items: flex-start; gap: .75rem; }
.om-sec-check {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(22,163,74,.1);
  border: 1px solid rgba(22,163,74,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: .1rem;
}
.om-sec-item p { font-size: .875rem; color: rgba(255,255,255,.55); line-height: 1.6; }
.om-sec-item strong { color: rgba(255,255,255,.9); display: block; font-size: .9rem; }

/* ── Review summary ── */
.om-review-summary {
  background: #F5F5F5;
  border: 1px solid #E6E6E6;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.om-review-summary-label {
  font-size: .875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #888;
  margin-bottom: 1rem;
}
.om-summary-content { font-size: .9375rem; line-height: 1.85; color: #5a5556; }
.om-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem 1.5rem;
  margin-bottom: .875rem;
}
.om-summary-label {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #888;
}
.om-summary-section {
  margin-top: .875rem;
  padding-top: .875rem;
  border-top: 1px solid #E6E6E6;
}

/* ── FAQ ── */
.om-faq-section { background: #F5F5F5; padding: 5rem 0; }
.om-faq-sec-tag {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #CC0000;
  margin-bottom: .75rem;
}
.om-faq-sec-h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.12;
  margin-bottom: 1rem;
}
.om-faq-list { max-width: 760px; margin: 3rem auto 0; }
.om-faq-item { border-bottom: 1px solid #d0d0d0; }
.om-faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  font-family: 'Source Sans 3', -apple-system, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #000;
  text-align: left;
  cursor: pointer;
  gap: 1rem;
  background: none;
  border: none;
  transition: color .3s ease;
}
.om-faq-q:hover { color: #CC0000; }
.om-faq-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(204,0,0,.07);
  color: #CC0000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .3s ease, background .3s ease;
  font-size: 1.1rem;
  font-weight: 700;
}
.om-faq-item.open .om-faq-icon {
  transform: rotate(45deg);
  background: #CC0000;
  color: #fff;
}
.om-faq-body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.om-faq-item.open .om-faq-body { max-height: 300px; }
.om-faq-body p { padding: .25rem 0 1.25rem; color: #5a5556; line-height: 1.85; font-size: .9375rem; }
.om-faq-body a { color: #CC0000; }

/* ── CTA band ── */
.om-cta-band {
  background: #CC0000;
  padding: 4.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.om-cta-band::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(0,0,0,.1);
}
.om-cta-band .container { position: relative; z-index: 1; }
.om-cta-band h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: .75rem;
  letter-spacing: -.025em;
}
.om-cta-band p {
  font-size: 1.0625rem;
  color: rgba(255,255,255,.8);
  max-width: 480px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}
.om-cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.om-btn-wht {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Source Sans 3', -apple-system, sans-serif;
  font-weight: 700;
  font-size: .9375rem;
  padding: .875rem 1.75rem;
  border-radius: 4px;
  background: #fff;
  color: #CC0000;
  border: none;
  cursor: pointer;
  transition: all .3s ease;
  text-decoration: none;
}
.om-btn-wht:hover { background: #f5f5f5; transform: translateY(-1px); }
.om-btn-ol-wht {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Source Sans 3', -apple-system, sans-serif;
  font-weight: 600;
  font-size: .9375rem;
  padding: .875rem 1.75rem;
  border-radius: 4px;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.4);
  cursor: pointer;
  transition: all .3s ease;
  text-decoration: none;
}
.om-btn-ol-wht:hover { background: #fff; color: #CC0000; }

/* ── Mobile sticky ── */
.om-mob-sticky {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 998;
  background: #fff;
  padding: .75rem 1rem;
  box-shadow: 0 -2px 20px rgba(0,0,0,.12);
  gap: .75rem;
}
.om-mob-sticky a { flex: 1; justify-content: center; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .om-form-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .om-page-body { padding-top: 194px; } /* fallback if JS hasn't run yet */
  .om-hero { padding: 3rem 0; }
  .om-hero-inner { grid-template-columns: 1fr; }
  .om-hero-badge { display: none; }
  .om-mob-sticky { display: flex; }
  body.om-page-body { padding-bottom: 80px; }
}
@media (max-width: 640px) {
  .om-field-row { grid-template-columns: 1fr; }
  .om-med-row-grid { grid-template-columns: 1fr 1fr; }
}
