/* =========================
   OEM Page (oem.css)
   Depends on markup in page-oem.php
   ========================= */

.oem {
  padding: 36px 0 60px;
}

/* =============================
   Clickable contact highlights
   ============================= */
.oem-side__list .oem-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(126, 34, 206, 0.18);
  background: rgba(126, 34, 206, 0.08);
  color: #5b21b6;
}

.oem-side__list .oem-link:hover {
  background: rgba(126, 34, 206, 0.12);
  border-color: rgba(126, 34, 206, 0.3);
}

.oem-side__list .oem-link--zalo {
  border-color: rgba(14, 165, 233, 0.25);
  background: rgba(14, 165, 233, 0.12);
  color: #0369a1;
}

.oem-side__list .oem-link--zalo:hover {
  background: rgba(14, 165, 233, 0.18);
  border-color: rgba(14, 165, 233, 0.4);
}

.oem-side__list .oem-link--email {
  border-color: rgba(34, 197, 94, 0.25);
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
}

.oem-side__list .oem-link--email:hover {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.4);
}

/* =============================
   Gallery lightbox
   ============================= */
.oem-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.oem-lightbox.is-open {
  display: block;
}

.oem-lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.oem-lightbox__dialog {
  position: relative;
  max-width: 1000px;
  width: calc(100% - 24px);
  margin: 0 auto;
  top: 50%;
  transform: translateY(-50%);
  background: #0b0b0d;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.45);
}

.oem-lightbox__img {
  width: 100%;
  height: auto;
  display: block;
  background: #0b0b0d;
}

.oem-lightbox__caption {
  padding: 10px 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
}

.oem-lightbox__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.oem-lightbox__close:hover {
  background: rgba(0, 0, 0, 0.75);
  border-color: rgba(255, 255, 255, 0.3);
}

/* =============================
   Fluent Forms basic styling
   ============================= */
.oem-quote .fluentform,
.oem-quote .ff-el-form-control {
  font-size: 16px;
}

.oem-quote .ff-btn,
.oem-quote button[type="submit"] {
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 800;
}

.oem-quote .ff-el-form-control {
  border-radius: 12px;
}

.oem-quote .ff-el-group {
  margin-bottom: 16px;
}

/* If theme doesn't have .container, keep this as fallback */
.oem .container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}

/* Headings */
.oem-h2 {
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 18px;
  letter-spacing: -0.2px;
}

/* Sections */
.oem-section {
  margin: 0 0 42px;
}

/* Cards */
.oem-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.oem-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.oem-card p {
  margin: 0;
  color: rgba(0,0,0,0.72);
}

/* =========================
   HERO
   ========================= */
.oem-hero .oem-hero__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 18px;
  align-items: start;
}

.oem-hero__card {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(250,250,250,1));
  box-shadow: 0 10px 26px rgba(0,0,0,0.05);
}

.oem-hero__title {
  margin: 0 0 10px;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.4px;
}

.oem-hero__subtitle {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(0,0,0,0.70);
}

.oem-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}

.oem-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.02);
  font-size: 13px;
  line-height: 1;
  color: rgba(0,0,0,0.78);
}

.oem-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.oem-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  color: rgba(0,0,0,0.86);
  background: #fff;
}

.oem-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.oem-btn--primary {
  background: #111;
  border-color: #111;
  color: #fff;
}

.oem-side__card {
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 10px 26px rgba(0,0,0,0.05);
}

.oem-side__title {
  margin: 0 0 10px;
  font-size: 16px;
}

.oem-side__list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}

.oem-side__list li {
  padding: 8px 0;
  border-bottom: 1px dashed rgba(0,0,0,0.10);
  color: rgba(0,0,0,0.78);
  font-size: 14px;
  line-height: 1.5;
}

.oem-side__list li:last-child {
  border-bottom: 0;
}

.oem-kpis {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.oem-kpi {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(0,0,0,0.02);
}

.oem-kpi b {
  display: block;
  font-size: 12px;
  color: rgba(0,0,0,0.55);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.oem-kpi span {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: rgba(0,0,0,0.86);
}

/* =========================
   GRIDS / LISTS
   ========================= */
.oem-grid {
  display: grid;
  gap: 14px;
}

.oem-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.oem-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.oem-list {
  margin: 10px 0 0;
  padding-left: 18px;
}

.oem-list li {
  margin: 7px 0;
  color: rgba(0,0,0,0.76);
}

/* Why cards */
.oem-why .oem-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.oem-why .oem-card p {
  font-size: 14px;
  line-height: 1.6;
}

/* =========================
   PROCESS (steps)
   ========================= */
.oem-steps {
  display: grid;
  gap: 12px;
}

.oem-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.oem-step__num {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #111;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
}

.oem-step__title {
  display: inline-block;
  font-size: 15px;
  margin-bottom: 4px;
}

.oem-step__text {
  color: rgba(0,0,0,0.72);
  font-size: 14px;
  line-height: 1.6;
}

/* =========================
   GALLERY (4 images)
   ========================= */
.oem-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.oem-figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(0,0,0,0.02);
}

.oem-figure img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.oem-figure figcaption {
  padding: 10px 12px;
  font-size: 13px;
  color: rgba(0,0,0,0.72);
  border-top: 1px solid rgba(0,0,0,0.06);
  background: #fff;
}

/* =========================
   FAQ (Q/A cards)
   ========================= */
.oem-qa__q {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
}

.oem-qa__a {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(0,0,0,0.72);
}

/* Quote block */
.oem-quote .oem-card p {
  margin: 0;
  color: rgba(0,0,0,0.70);
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 992px) {
  .oem-hero .oem-hero__grid {
    grid-template-columns: 1fr;
  }

  .oem-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .oem-hero__title {
    font-size: 34px;
  }
}

@media (max-width: 640px) {
  .oem {
    padding: 24px 0 44px;
  }

  .oem-h2 {
    font-size: 22px;
  }

  .oem-hero__title {
    font-size: 28px;
  }

  .oem-grid--2,
  .oem-grid--3 {
    grid-template-columns: 1fr;
  }

  .oem-figure img {
    height: 150px;
  }

  .oem-step {
    grid-template-columns: 40px 1fr;
  }

  .oem-step__num {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
}
