#toast-container .toast{
    opacity: 1 !important;
}
.b-1 {
    border: 1px solid gray
}

.p-2 {
    padding: 2px;
}

.w-content {
    width:max-content;
}

.m-20{
    margin: 20px;
}
.card{
    border: 1px solid #eee;
    border-radius: 4px;
    box-sizing: border-box;
    padding: 0px 8px;
    color: white;
    margin-bottom: 8px;
}
.violet{
    background-color: blueviolet;
}
.blue{
    background-color: blue;
}
.green{
    background-color: #02b502;
}
.teal{
    background-color: #028ab5;
}
.magenta{
    background-color: #880276;
}
.font-36{
    font-size: 36px;
}
.font-24-i{
    font-size: 24px !important;
}
.text-warning-i{
    color: #f70505;
}

.presc-section {
    margin-bottom: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
    overflow: visible !important;
    padding: 0 !important;
}

div.row > div.presc-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.presc-section.col-sm-12 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.presc-header {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
    padding: 3px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.presc-header-title {
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1.3;
}

.presc-body {
    padding: 5px 8px;
    background-color: #f8fafc;
    overflow: visible;
}

.presc-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: visible;
}

.presc-section .input-group {
    margin-bottom: 5px;
    overflow: visible;
}

.presc-section .input-group:last-child {
    margin-bottom: 0;
}

.presc-section .form-control {
    height: 28px;
    padding: 3px 8px;
    font-size: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background-color: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.presc-section .form-control:focus {
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.presc-section .input-group-btn .btn {
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    line-height: 1;
    transition: transform 0.1s ease, box-shadow 0.15s ease;
}

.presc-section .input-group-btn .btn:active {
    transform: translateY(0.5px);
}

.presc-section .btn-success {
    background-color: #10b981;
    color: #ffffff;
}

.presc-section .btn-danger {
    background-color: #ef4444;
    color: #ffffff;
}

.presc-section .btn-primary {
    background-color: #6366f1;
    color: #ffffff;
}

.presc-section .btn-sm {
    padding: 4px 10px;
    font-size: 12px;
}

.presc-header .btn {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 11px;
    line-height: 1;
    border-radius: 4px;
}

.followup-section .presc-header {
    background: linear-gradient(135deg, #b45309 0%, #f59e0b 100%);
}

.followup-section .presc-body {
    background-color: #fffbeb;
}

/* full-width but never wider than the box it sits in */
.followup-section .form-control {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border-color: #fcd34d;
}

.followup-section .form-control:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.followup-section .followup-custom {
    margin-top: 6px;
}

.followup-note {
    display: block;
    color: #92400e;
    font-size: 11px;
    line-height: 1.4;
    margin-top: 5px;
}

.oe-row {
    display: flex;
    gap: 3px;
    align-items: stretch;
    flex-wrap: nowrap;
    min-width: 0;
}

.oe-part-1 {
    flex: 4 1 0;
    min-width: 0;
}

.oe-part-2 {
    flex: 3 1 0;
    min-width: 0;
}

.oe-part-3-wrapper {
    flex: 3 1 0;
    display: flex;
    align-items: stretch;
    gap: 2px;
    min-width: 0;
}

.oe-part-3-wrapper .form-control {
    flex: 1 1 auto;
    min-width: 0;
}

.oe-part-3-wrapper .input-group-btn {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex-shrink: 0;
    width: auto;
    min-width: 20px;
    justify-content: center;
}

.oe-part-3-wrapper .input-group-btn .btn {
    height: 14px !important;
    min-width: 14px !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 2px !important;
    font-size: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    line-height: 1 !important;
}

.oe-actions .btn:active {
    transform: translateY(0.5px);
}

.oe-actions .btn-danger {
    background-color: #ef4444;
}

.oe-actions .btn-success {
    background-color: #10b981;
}

.oe-actions .btn-default {
    background-color: #94a3b8;
    color: #ffffff;
}

.presc-section .input-sm {
    padding-left: 10px;
    padding-right: 10px;
}

.presc-section .dropdown-menu {
    z-index: 1050;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-top: 4px;
}

/* ...but an input carrying typeahead-append-to-body moves its
   <ul class="dropdown-menu"> out to <body>, where the rule above - scoped to
   .presc-section - no longer reaches it and Bootstrap's own .dropdown-menu
   z-index of 1000 applies. On a plain page that is high enough. Inside a modal
   (backdrop 1040, window 1050) it is painted behind the dialog: the matches are
   built and the list is display:block, it is simply invisible and unclickable.
   That is why the disease-template editor looked like it had no suggestion data
   for H/O, R/F, O/E, diagnosis, investigation done, plan of treatment,
   investigation and advice, while the medicine boxes - the only ones in that
   form without append-to-body - worked.
   Scoped to body.modal-open, so this is inert on the prescription form and
   everywhere else no modal is open; a direct child of <body> with this class is
   by definition a menu that was appended there. */
body.modal-open > .dropdown-menu {
    z-index: 1060;
}

.presc-section .dropdown-menu > li > a {
    padding: 6px 12px;
    font-size: 13px;
    color: #334155;
}

.presc-section .dropdown-menu > li > a:hover,
.presc-section .dropdown-menu > li > a:focus {
    background-color: #f1f5f9;
    color: #0f766e;
}

.presc-section .dropdown-menu .active a,
.presc-section .dropdown-menu .active a:hover,
.presc-section .dropdown-menu .active a:focus {
    background-color: #0d9488;
    color: #ffffff;
}

@media (max-width: 768px) {
    .oe-row {
        flex-wrap: wrap;
    }

    .oe-part-1,
    .oe-part-2,
    .oe-part-3-wrapper {
        flex: 1 1 100%;
    }

    .oe-part-3-wrapper {
        flex-direction: row;
    }
}

/* Landing Page overrides for body.app background */
body.landing-page-active .app,
body.landing-page-active #app {
  background: #fff !important;
  background-image: none !important;
}

/* Landing Page */
.landing-page {
  font-family: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #334155;
  line-height: 1.6;
  overflow-x: hidden;
  background: #fff;
}

.landing-page * {
  box-sizing: border-box;
}

.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.landing-nav.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.landing-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.landing-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #0f766e;
  font-weight: 700;
  font-size: 20px;
}

.landing-logo img {
  height: 36px;
  width: auto;
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.landing-nav-links a {
  text-decoration: none;
  color: #475569;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.landing-nav-links a:hover {
  color: #0d9488;
}

.landing-nav-cta {
  background: #0d9488 !important;
  color: #fff !important;
  padding: 8px 20px !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
}

.landing-nav-cta:hover {
  background: #0f766e !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.landing-mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: #334155;
  cursor: pointer;
}

.landing-hero {
  padding: 140px 0 100px;
  background: linear-gradient(135deg, #f0fdfa 0%, #e0f2fe 50%, #f0f9ff 100%);
  position: relative;
  overflow: hidden;
}

.landing-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.landing-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.landing-hero-content h1 {
  font-size: 52px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.landing-hero-content h1 span {
  color: #0d9488;
}

.landing-hero-content p {
  font-size: 18px;
  color: #64748b;
  margin-bottom: 32px;
  line-height: 1.7;
  max-width: 480px;
}

.landing-hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.btn-landing-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0d9488;
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-landing-primary:hover {
  background: #0f766e;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(13, 148, 136, 0.3);
  color: #fff;
}

.btn-landing-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #0d9488;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border: 2px solid #0d9488;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-landing-secondary:hover {
  background: #f0fdfa;
  transform: translateY(-2px);
  color: #0d9488;
}

.landing-hero-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #94a3b8;
}

.landing-hero-trust i {
  color: #10b981;
  font-size: 16px;
}

.landing-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-hero-placeholder {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  box-shadow: 0 25px 60px rgba(13, 148, 136, 0.25);
}

.landing-trust {
  padding: 40px 0;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}

.landing-trust-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.landing-trust-item {
  text-align: center;
}

.landing-trust-number {
  font-size: 36px;
  font-weight: 800;
  color: #0d9488;
  line-height: 1;
}

.landing-trust-label {
  font-size: 13px;
  color: #64748b;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.landing-section {
  padding: 100px 0;
}

.landing-section-header {
  text-align: center;
  margin-bottom: 60px;
}

.landing-section-header h2 {
  font-size: 36px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.landing-section-header p {
  font-size: 18px;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
}

.landing-section-alt {
  background: #f8fafc;
}

.landing-features-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.landing-feature-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 36px;
  transition: all 0.3s ease;
}

.landing-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: #0d9488;
}

.landing-feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  margin-bottom: 20px;
}

.landing-feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}

.landing-feature-card p {
  font-size: 15px;
  color: #64748b;
  line-height: 1.7;
  margin: 0;
}

.landing-steps {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.landing-step {
  text-align: center;
  position: relative;
}

.landing-step-number {
  width: 48px;
  height: 48px;
  background: #0d9488;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto 16px;
}

.landing-step h4 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.landing-step p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

.landing-pricing-grid {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.landing-pricing-card {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.landing-pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.landing-pricing-card.popular {
  border-color: #0d9488;
  box-shadow: 0 20px 50px rgba(13, 148, 136, 0.15);
  transform: scale(1.03);
}

.landing-pricing-card.popular:hover {
  transform: scale(1.03) translateY(-6px);
}

.landing-pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
  color: #fff;
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.landing-pricing-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.landing-pricing-price {
  font-size: 48px;
  font-weight: 800;
  color: #0d9488;
  margin-bottom: 4px;
  line-height: 1;
}

.landing-pricing-price span {
  font-size: 18px;
  font-weight: 500;
  color: #64748b;
}

.landing-pricing-period {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 24px;
}

.landing-pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  text-align: left;
}

.landing-pricing-features li {
  padding: 10px 0;
  font-size: 14px;
  color: #475569;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.landing-pricing-features li i {
  margin-top: 3px;
  font-size: 14px;
}

.landing-pricing-features li i.fa-check {
  color: #10b981;
}

.landing-pricing-features li i.fa-times {
  color: #ef4444;
}

.landing-testimonials-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.landing-testimonial-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s ease;
}

.landing-testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.landing-testimonial-stars {
  color: #f59e0b;
  font-size: 14px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.landing-testimonial-text {
  font-size: 15px;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.landing-testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.landing-testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.landing-testimonial-info strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.landing-testimonial-info span {
  font-size: 13px;
  color: #64748b;
}

.landing-faq-list {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.landing-faq-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.landing-faq-item:hover {
  border-color: #0d9488;
}

.landing-faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.landing-faq-question i {
  color: #0d9488;
  transition: transform 0.2s ease;
  font-size: 14px;
}

.landing-faq-item.active .landing-faq-question i {
  transform: rotate(180deg);
}

.landing-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.landing-faq-item.active .landing-faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

.landing-faq-answer p {
  font-size: 15px;
  color: #64748b;
  line-height: 1.7;
  margin: 0;
}

.landing-cta {
  padding: 100px 0;
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.landing-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('/app/img/axiom-pattern.png');
  opacity: 0.05;
}

.landing-cta-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.landing-cta h2 {
  font-size: 40px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}

.landing-cta p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
}

.landing-cta .btn-landing-primary {
  background: #fff;
  color: #0d9488;
  font-size: 18px;
  padding: 16px 40px;
}

.landing-cta .btn-landing-primary:hover {
  background: #f0fdfa;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.landing-cta-note {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.landing-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 60px 0 30px;
}

.landing-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.landing-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.landing-footer-brand {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.landing-footer-desc {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.landing-footer-social {
  display: flex;
  gap: 12px;
}

.landing-footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.2s ease;
}

.landing-footer-social a:hover {
  background: #0d9488;
  color: #fff;
}

.landing-footer h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.landing-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.landing-footer-links li {
  margin-bottom: 10px;
}

.landing-footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.landing-footer-links a:hover {
  color: #0d9488;
}

.landing-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

.landing-footer-bottom a {
  color: #0d9488;
  text-decoration: none;
}

.landing-footer-bottom a:hover {
  text-decoration: underline;
}

.landing-fade-up {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 992px) {
  .landing-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .landing-hero-content p {
    max-width: 100%;
  }

  .landing-hero-buttons {
    justify-content: center;
  }

  .landing-hero-trust {
    justify-content: center;
  }

  .landing-hero-visual {
    order: -1;
  }

  .landing-hero-content h1 {
    font-size: 40px;
  }

  .landing-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .landing-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .landing-pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .landing-pricing-card.popular {
    transform: none;
  }

  .landing-pricing-card.popular:hover {
    transform: translateY(-6px);
  }

  .landing-testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .landing-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .landing-nav-links {
    display: none;
  }

  .landing-mobile-toggle {
    display: block;
  }

  .landing-hero {
    padding: 120px 0 60px;
  }

  .landing-hero-content h1 {
    font-size: 32px;
  }

  .landing-features-grid {
    grid-template-columns: 1fr;
  }

  .landing-steps {
    grid-template-columns: 1fr;
  }

  .landing-testimonials-grid {
    grid-template-columns: 1fr;
  }

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

  .landing-section {
    padding: 70px 0;
  }

  .landing-section-header h2 {
    font-size: 28px;
  }

  .landing-cta h2 {
    font-size: 28px;
  }
}



/* Prescription patient-info block: labels live inside the fields (placeholders)
   so the header takes fewer vertical lines. */
.patient-info-row > [class*="col-"] {
  margin-bottom: 6px;
}

.patient-info-row .form-control::-webkit-input-placeholder {
  color: #7a8794;
  opacity: 1;
}

.patient-info-row .form-control::-moz-placeholder {
  color: #7a8794;
  opacity: 1;
}

.patient-info-row .form-control:-ms-input-placeholder {
  color: #7a8794;
}

.patient-info-row .form-control::placeholder {
  color: #7a8794;
  opacity: 1;
}

.patient-info-row .input-group-addon input[type="checkbox"] {
  margin: 0 3px 0 0;
  vertical-align: middle;
}

/* Backdate: one calendar button that both shows and toggles the state,
   replacing the checkbox that sat next to a look-alike calendar icon */
.backdate-group .backdate-toggle {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    color: #64748b;
    box-shadow: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.backdate-group .backdate-toggle:hover,
.backdate-group .backdate-toggle:focus {
    background-color: #e2e8f0;
    border-color: #94a3b8;
    color: #334155;
    outline: none;
}

.backdate-group .backdate-toggle.active,
.backdate-group .backdate-toggle.active:hover,
.backdate-group .backdate-toggle.active:focus {
    background-color: #0d9488;
    border-color: #0d9488;
    color: #ffffff;
    box-shadow: none;
}

.backdate-group .backdate-input[disabled] {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
}

/* ---- patient name in the PID / patient suggestion list -------------
   Shared by the prescription form, appointments and the public booking form
   (post-custom-template.tmpl.html).

   Was an inline rgb(139, 1, 86) - a dark purple that sat heavily on white and,
   being inline, could not be overridden anywhere: on Bootstrap's selected row
   (#fff on #337ab7) the name stayed dark purple on blue and was the hardest
   thing in the list to read. A class can answer both states. */
.pid-name {
    color: #0f766e;
    font-weight: 600;
}

.dropdown-menu > .active > a .pid-name {
    color: #fff;
}
