/* 123AlcoholSafety page refresh (LIQ-style). Loaded after application.css.
   Only applies to pages whose <body> has class "lx" (set in layouts/application). */

body.lx {
  background: #eef4fb;
  color: #1f2d3d;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}
body.lx h1, body.lx h2, body.lx h3, body.lx h4 {
  font-family: inherit;
  color: #14233a;
  letter-spacing: -0.01em;
}
body.lx a { color: #1d6fd8; }
body.lx a:hover { color: #1559b0; }
body.lx .header-main { background: #fff; box-shadow: 0 2px 10px rgba(20, 35, 58, .06); position: relative; z-index: 2; }

/* ---------- buttons ---------- */
body.lx .btn {
  border-radius: 8px;
  background-image: none;
  text-shadow: none;
  box-shadow: none;
  font-weight: 600;
}
body.lx .btn-success, body.lx .lx-btn {
  background: #1d6fd8;
  border: 1px solid #1d6fd8;
  color: #fff;
}
body.lx .btn-success:hover, body.lx .lx-btn:hover { background: #1559b0; border-color: #1559b0; color: #fff; }
body.lx .lx-btn-ghost { background: #fff; border: 1px solid #c9d8ec; color: #1d6fd8; }
body.lx .lx-btn-ghost:hover { background: #f1f6fd; color: #1559b0; }

/* ---------- hero banner ---------- */
.lx-hero {
  background: linear-gradient(120deg, #1557b8 0%, #1d6fd8 55%, #3b9cf0 100%);
  color: #fff;
  padding: 44px 0 96px;
}
.lx-hero.lx-hero-sm { padding: 36px 0 80px; }
.lx-hero h1 { color: #fff; font-size: 34px; line-height: 1.2; font-weight: 700; margin: 6px 0 12px; max-width: 720px; }
.lx-hero .lx-lead { font-size: 17px; color: #e6f0fd; max-width: 680px; margin: 0 0 14px; }
.lx-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(255, 255, 255, .16); padding: 4px 10px; border-radius: 999px; color: #fff;
}
.lx-badges { list-style: none; margin: 8px 0 0; padding: 0; }
.lx-badges li {
  display: inline-block; margin: 0 16px 6px 0; font-size: 14px; color: #fff; font-weight: 600;
}
.lx-badges li:before { content: "\2713"; margin-right: 6px; color: #9fe3b0; }
.lx-hero .alert { margin-bottom: 14px; }

/* ---------- body + cards ---------- */
.lx-body { margin-top: -64px; padding-bottom: 56px; position: relative; z-index: 1; }
.lx-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(20, 35, 58, .08);
  padding: 28px 32px;
  margin-bottom: 24px;
}
.lx-card h2 { font-size: 22px; margin: 0 0 12px; }
.lx-desc h3 { font-size: 18px; margin: 22px 0 8px; }
.lx-desc ul { margin-left: 20px; }
.lx-desc img { max-width: 100%; height: auto; }

/* price / enroll card */
.lx-buy { position: sticky; top: 20px; padding: 0; overflow: hidden; }
.lx-buy-top { padding: 24px 26px 18px; }
.lx-buy .lx-price { font-size: 34px; font-weight: 800; color: #1d6fd8; line-height: 1; }
.lx-buy .lx-price small { font-size: 14px; color: #5b6b80; font-weight: 600; margin-left: 4px; }
.lx-buy .lx-price-name { font-size: 15px; font-weight: 600; color: #14233a; margin: 8px 0 14px; }
.lx-buy .btn, .lx-buy .btn-toolbar .btn {
  display: block; width: 100%; box-sizing: border-box; text-align: center;
  font-size: 17px; padding: 12px 16px; margin: 0 0 8px; float: none;
  background: #1d6fd8; border: 1px solid #1d6fd8; color: #fff;
}
.lx-buy .btn:hover { background: #1559b0; border-color: #1559b0; color: #fff; }
body.lx .btn-enroll-now, body.lx .lx-buy .btn {
  border-radius: 8px !important; background: #1d6fd8 !important; border-color: #1d6fd8 !important;
  color: #fff !important; text-transform: none !important; letter-spacing: 0 !important; height: auto !important; padding: 12px 16px !important; font-size: 17px !important; line-height: 1.3 !important;
}
body.lx .btn-enroll-now:hover, body.lx .lx-buy .btn:hover { background: #1559b0 !important; border-color: #1559b0 !important; }
.lx-buy .btn-toolbar { margin: 0; }
.lx-buy .lx-note { font-size: 13px; color: #5b6b80; margin: 4px 0 0; }
.lx-buy .course-progress { margin: 0 0 10px; }
.lx-facts { list-style: none; margin: 0; padding: 16px 26px; background: #f3f8fe; border-top: 1px solid #e3edf9; border-bottom: 1px solid #e3edf9; }
.lx-facts li { padding: 5px 0; font-size: 14px; color: #34465c; overflow: hidden; }
.lx-facts li:before { content: "\2713"; color: #1d6fd8; font-weight: 700; margin-right: 8px; }
.lx-facts li span { float: right; font-weight: 600; color: #14233a; }
.lx-secure { text-align: center; padding: 16px 20px 6px; }
.lx-secure img { max-height: 26px; max-width: 46%; width: auto; margin: 0 4px 6px; vertical-align: middle; }
.lx-contact { text-align: center; font-size: 14px; padding: 0 20px 20px; color: #34465c; }
.lx-contact a { font-weight: 600; }

/* other courses list */
.lx-others h3 { font-size: 16px; margin: 0 0 10px; }
.lx-others ul { list-style: none; margin: 0; padding: 0; }
.lx-others li { border-top: 1px solid #edf2f8; }
.lx-others li:first-child { border-top: 0; }
.lx-others li a { display: block; padding: 9px 0; color: #1f2d3d; font-weight: 500; }
.lx-others li a:hover { color: #1d6fd8; text-decoration: none; }
.lx-others ul { columns: 2; column-gap: 32px; }
.lx-others li { break-inside: avoid; }
.lx-others li a span { float: right; color: #1d6fd8; font-weight: 700; margin-left: 10px; }
.lx-others li.active a { color: #1d6fd8; font-weight: 700; }

/* course cards (state view) */
.lx-grid { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.lx-course-card {
  flex: 1 1 300px; margin: 0 10px 20px; background: #fff; border-radius: 16px;
  box-shadow: 0 8px 28px rgba(20, 35, 58, .08); padding: 22px 24px; display: flex; flex-direction: column;
}
.lx-course-card h3 { font-size: 18px; line-height: 1.3; margin: 0 0 8px; }
.lx-course-card h3 a { color: #14233a; }
.lx-course-card p { color: #4a5b70; font-size: 14px; flex: 1; }
.lx-cc-foot { display: flex; align-items: center; margin-top: 10px; }
.lx-cc-price { font-size: 22px; font-weight: 800; color: #1d6fd8; margin-right: auto; }
.lx-cc-foot .btn { margin-left: 8px; padding: 8px 14px; white-space: nowrap; }
.lx-cc-price { white-space: nowrap; }
.lx-steps { counter-reset: s; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.lx-steps li { counter-increment: s; flex: 1 1 180px; margin: 6px 12px 6px 0; font-weight: 600; color: #14233a; }
.lx-steps li:before {
  content: counter(s); display: inline-block; width: 28px; height: 28px; line-height: 28px; text-align: center;
  border-radius: 50%; background: #1d6fd8; color: #fff; margin-right: 8px; font-size: 14px;
}

/* ---------- text pages (FAQ, contact, terms, policies, CMS, login) ---------- */
body.lx-text {
  background: linear-gradient(120deg, #1557b8 0%, #1d6fd8 55%, #3b9cf0 100%) no-repeat top / 100% 260px, #eef4fb;
}
body.lx-text > .container,
body.lx-text > .choose-state-section {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(20, 35, 58, .08);
  padding: 30px 40px 36px;
  margin-top: 36px;
  margin-bottom: 56px;
  box-sizing: border-box;
}
body.lx-text > .choose-state-section { max-width: 1170px; margin-left: auto; margin-right: auto; }
body.lx-text > .container h1 { font-size: 30px; font-weight: 700; margin-top: 4px; }
body.lx-text .breadcrumb { background: none; padding: 0; margin: 0 0 6px; font-size: 13px; }
body.lx-text .well { background: #f3f8fe; border: 1px solid #e3edf9; border-radius: 12px; box-shadow: none; }
body.lx-text input[type=text], body.lx-text input[type=email], body.lx-text input[type=password],
body.lx-text input[type=tel], body.lx-text select, body.lx-text textarea {
  border-radius: 8px; border: 1px solid #c9d8ec; box-shadow: none; min-height: 34px;
}

/* ---------- mobile ---------- */
@media (max-width: 767px) {
  .lx-hero { padding: 28px 16px 84px; }
  .lx-hero h1 { font-size: 26px; }
  .lx-body { padding-left: 10px; padding-right: 10px; }
  .lx-card { padding: 20px; }
  .lx-buy { position: static; }
  .lx-others ul { columns: 1; }
  body.lx-text > .container, body.lx-text > .choose-state-section { padding: 20px; margin: 20px 10px 36px; }
}

/* ---------- choose state ---------- */
.lx-states h1 { margin-bottom: 6px; }
.lx-states .lx-sub { font-size: 16px; color: #4a5b70; margin: 0 0 18px; max-width: 720px; }
.lx-search { position: relative; max-width: 560px; margin: 0 0 14px; }
.lx-search:before {
  content: ""; position: absolute; left: 16px; top: 50%; width: 14px; height: 14px; margin-top: -10px;
  border: 2px solid #7d8fa6; border-radius: 50%;
}
.lx-search:after {
  content: ""; position: absolute; left: 30px; top: 50%; width: 7px; height: 2px; margin-top: 5px;
  background: #7d8fa6; transform: rotate(45deg);
}
body.lx .lx-search input {
  width: 100%; box-sizing: border-box; height: 52px; padding: 0 16px 0 46px; font-size: 17px;
  border: 1px solid #c9d8ec; border-radius: 12px; box-shadow: 0 2px 8px rgba(20, 35, 58, .05); margin: 0;
}
body.lx .lx-search input:focus { border-color: #1d6fd8; outline: none; box-shadow: 0 0 0 3px rgba(29, 111, 216, .15); }
.lx-popular { margin: 0 0 24px; font-size: 14px; }
.lx-popular span { color: #5b6b80; font-weight: 600; margin-right: 6px; }
.lx-popular a {
  display: inline-block; margin: 0 6px 8px 0; padding: 5px 12px; border-radius: 999px;
  background: #eaf2fd; color: #1d6fd8; font-weight: 600; text-decoration: none;
}
.lx-popular a:hover { background: #1d6fd8; color: #fff; text-decoration: none; }
.lx-state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.lx-state {
  display: flex; align-items: center; padding: 12px 14px; border: 1px solid #e3edf9; border-radius: 12px;
  background: #fff; color: #14233a; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.lx-state:hover { border-color: #1d6fd8; box-shadow: 0 6px 18px rgba(20, 35, 58, .10); transform: translateY(-1px); text-decoration: none; color: #14233a; }
.lx-flag { flex: 0 0 56px; width: 56px; height: 38px; border-radius: 6px; overflow: hidden; background: #eef4fb; margin-right: 12px; box-shadow: 0 0 0 1px rgba(20, 35, 58, .08); }
.lx-flag img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lx-state-text { display: flex; flex-direction: column; min-width: 0; }
.lx-state-name { font-weight: 700; font-size: 15px; line-height: 1.25; }
.lx-state-count { font-size: 13px; color: #5b6b80; }
.lx-state-nat { grid-column: 1 / -1; background: #f3f8fe; border-color: #cfe0f6; }
.lx-state-nat .lx-flag { flex-basis: 56px; }
.lx-empty { margin-top: 16px; color: #5b6b80; }
@media (max-width: 767px) {
  .lx-state-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .lx-flag { flex-basis: 40px; width: 40px; height: 28px; margin-right: 8px; }
  .lx-state { padding: 10px; }
}

/* ---------- home "Choose State" picker (home page is not .lx, so these are unscoped) ---------- */
.btn-group .dropdown-menu.lx-picker {
  width: 320px; max-width: 90vw; padding: 0; margin-top: 8px; border: 1px solid #dbe6f4; border-radius: 14px;
  box-shadow: 0 16px 40px rgba(20, 35, 58, .18); overflow: hidden; background: #fff; text-align: left;
}
.lx-picker-search { padding: 12px; border-bottom: 1px solid #edf2f8; background: #f7faff; }
.lx-picker .lx-picker-q {
  width: 100%; box-sizing: border-box; height: 42px; margin: 0; padding: 0 12px; font-size: 16px;
  border: 1px solid #c9d8ec; border-radius: 10px; box-shadow: none;
}
.lx-picker .lx-picker-q:focus { border-color: #1d6fd8; outline: none; box-shadow: 0 0 0 3px rgba(29, 111, 216, .15); }
.lx-picker-list { max-height: 330px; overflow-y: auto; padding: 6px; }
.lx-picker a.lx-picker-item {
  display: flex; align-items: center; padding: 8px 10px; border-radius: 8px; color: #14233a;
  font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; line-height: 1.3;
}
.lx-picker a.lx-picker-item:hover, .lx-picker a.lx-picker-item:focus { background: #eaf2fd; color: #1d6fd8; text-decoration: none; }
.lx-picker a.lx-picker-item img {
  width: 30px; height: 20px; object-fit: cover; border-radius: 3px; margin-right: 10px; flex: 0 0 30px;
  box-shadow: 0 0 0 1px rgba(20, 35, 58, .1);
}
.lx-picker a.lx-picker-nat { background: #f3f8fe; margin-bottom: 4px; }
.lx-picker-empty { padding: 10px; color: #5b6b80; font-size: 14px; }
/* the home hero is a one-slide slick slider whose .slick-list clips the menu */
.slider-section .slick-list { overflow: visible; }
.slider-section { position: relative; z-index: 5; }
.btn-group .dropdown-menu.lx-picker { z-index: 1000; }

/* old theme styles still point at a retired S3 bucket (app/assets scss); switch those images off without an asset rebuild */
.new-contactus, .contactus, .login, .brand, .navbar .nav > li > a.socialicons,
.first-carousel, .second-carousel, .third-carousel, .bq3, .bq3 p { background-image: none !important; }

/* PR #14: white course title on the blue hero; "Get started" steps (the old theme's ol li / ol li:before rules pushed the numbers off to the left) */
body.lx .lx-hero h1,body.lx .lx-hero h2{color:#fff}
body.lx ol.lx-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:14px 18px;padding:0;margin:8px 0 0;overflow:visible;list-style:none;counter-reset:s}
body.lx ol.lx-steps li{float:none;position:static;display:flex;align-items:center;gap:10px;width:auto;margin:0;line-height:1.3;counter-increment:s}
body.lx ol.lx-steps li:before{content:counter(s);position:static;float:none;flex:0 0 32px;width:32px;height:32px;top:auto;left:auto;margin:0;font:700 15px/32px inherit;text-align:center;border-radius:50%;background:#1d6fd8;color:#fff;counter-increment:none}
