/* ═══════════════════════════════════════════════════════════════
   TRANG TRA CỨU BẢO HÀNH — LABO A-TECH
   Token & component dùng chung nằm ở general.css
═══════════════════════════════════════════════════════════════ */

/* ─── HERO ──────────────────────────────────────────────────── */
.wr-hero {
  position: relative; overflow: hidden;
  padding: 2.5rem 0 5rem;
  background:
    radial-gradient(950px 560px at 80% 4%, rgba(127, 192, 234, .28), transparent 62%),
    radial-gradient(680px 480px at 2% 90%, rgba(201, 162, 39, .1), transparent 60%),
    var(--porcelain);
}
.wr-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(15, 42, 63, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 42, 63, .045) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 28%, transparent 78%);
          mask-image: radial-gradient(120% 90% at 50% 0%, #000 28%, transparent 78%);
}
.wr-hero > .container { position: relative; z-index: 1; }
.wr-hero-orb { display: none; }

.wr-eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--porcelain-2); border: var(--rule); border-radius: 999px;
  padding: .45rem 1.1rem; font-size: .72rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--enamel-deep);
  box-shadow: 0 12px 30px -22px rgba(15, 42, 63, .7);
}
.wr-eyebrow-dot {
  width: .42rem; height: .42rem; border-radius: 50%; background: var(--coral);
  box-shadow: 0 0 0 4px rgba(240, 168, 64, .18);
}
.wr-title {
  font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.02;
  letter-spacing: -.025em; margin: 1.4rem 0 0;
}
.wr-grad {
  background: var(--grad-enamel);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.wr-desc {
  color: var(--ink-soft); line-height: 1.9; font-size: 1.02rem;
  max-width: 36rem; margin: 1.5rem 0 2.2rem;
}
.wr-crumb { display: none; }  /* breadcrumb đã do layout dựng */

/* ─── THẺ BẢO HÀNH MẪU ─────────────────────────────────────── */
.wr-card-demo {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--porcelain-2);
  border-radius: 1.6rem; padding: 1.9rem;
  box-shadow: var(--shadow-lift);
}
.wr-card-demo::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(420px 260px at 90% 0%, rgba(127, 192, 234, .32), transparent 62%),
    radial-gradient(320px 220px at 0% 100%, rgba(240, 168, 64, .2), transparent 62%);
}
.wr-card-demo > * { position: relative; z-index: 1; }
.wr-card-demo-top {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.wr-card-demo-brand {
  font-family: 'Roboto', sans-serif; font-size: 1.15rem; letter-spacing: .12em; color: #fff;
}
.wr-card-demo-tag {
  font-size: .62rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--enamel-lite); border: 1px solid rgba(127, 192, 234, .4);
  border-radius: 999px; padding: .28rem .7rem;
}
.wr-card-demo-code { margin: 1.5rem 0; }
.wr-card-demo-code span {
  display: block; font-size: .68rem; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(255, 253, 250, .5);
}
.wr-card-demo-code strong {
  display: block; margin-top: .5rem;
  font-family: 'Roboto', sans-serif; font-size: 1.75rem; letter-spacing: .04em; color: #fff;
}
.wr-card-demo-list { list-style: none; padding: 0; margin: 0; }
.wr-card-demo-list li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .75rem 0; border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .85rem;
}
.wr-card-demo-list span { color: rgba(255, 253, 250, .5); }
.wr-card-demo-list b { color: #fff; font-weight: 500; }
.wr-card-demo-note {
  margin: 1.3rem 0 0; font-size: .74rem; line-height: 1.7;
  color: rgba(255, 253, 250, .45);
}

/* ─── PHÂN ĐOẠN CHUNG ──────────────────────────────────────── */
.wr-section { padding: 6rem 0; }
.wr-section:nth-of-type(even) { background: var(--shell); }
.wr-section .section-sub { max-width: 46rem; margin: 1.2rem auto 0; }
.wr-section .text-center .section-eyebrow::after {
  content: ''; width: 2.2rem; height: 1px; background: var(--enamel);
}

/* ─── CTA ──────────────────────────────────────────────────── */
/* Footer cũng nền navy — thẻ CTA nền tối đặt sát sẽ dính liền
   thành một khối, nên đổi sang thẻ sáng viền Rule theo token
   chung, chữ bên trái, cụm nút dồn bên phải. */
.wr-cta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.6rem 2.5rem; flex-wrap: wrap;
  background: var(--porcelain-2); border: var(--rule);
  border-radius: 1.6rem; padding: 2.6rem 2.4rem;
  box-shadow: var(--shadow-soft);
}
.wr-cta-copy { max-width: 34rem; }
.wr-cta h2 {
  font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.15; margin: 0;
}
.wr-cta p {
  color: var(--ink-soft); line-height: 1.8; margin: .6rem 0 0;
}
.wr-cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

@media (max-width: 767px) {
  .wr-cta { padding: 2rem 1.5rem; }
  .wr-cta-actions .btn-primary-q,
  .wr-cta-actions .btn-outline-q { flex: 1; justify-content: center; }
}

@media (max-width: 991px) {
  .wr-hero { padding: 1.5rem 0 3.5rem; }
  .wr-section { padding: 4rem 0; }
  .wr-card-demo { margin-top: 2.5rem; }
}

/* ══════ FORM TRA CỨU Ở HERO ══════ */
/* Dùng lại nền tối của thẻ mẫu cũ để giữ nguyên nhịp thị giác của hero. */
.wr-lookup-card {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--porcelain-2);
  border-radius: 1.6rem; padding: 1.9rem;
  box-shadow: var(--shadow-lift);
}
.wr-lookup-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(420px 260px at 90% 0%, rgba(127, 192, 234, .32), transparent 62%),
    radial-gradient(320px 220px at 0% 100%, rgba(240, 168, 64, .2), transparent 62%);
}
.wr-lookup-card > * { position: relative; z-index: 1; }

.wr-lookup-card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.wr-lookup-card-desc {
  margin: 1.1rem 0 1.25rem;
  font-size: .95rem; color: rgba(255, 255, 255, .8);
}

.wr-lookup-field { margin-bottom: 1rem; }
.wr-lookup-field label {
  display: block; margin-bottom: .4rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255, 255, 255, .65);
}
.wr-lookup-input {
  width: 100%;
  padding: .8rem 1rem;
  font-size: 1.02rem; letter-spacing: .03em;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border: 1.5px solid rgba(255, 255, 255, .18);
  border-radius: .7rem;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.wr-lookup-input::placeholder { color: rgba(255, 255, 255, .4); }
.wr-lookup-input:focus {
  outline: none;
  background: rgba(255, 255, 255, .12);
  border-color: rgba(127, 192, 234, .9);
  box-shadow: 0 0 0 4px rgba(127, 192, 234, .18);
}
.wr-lookup-submit {
  width: 100%; justify-content: center;
  margin-top: .35rem;
}
/* btn-primary-q mặc định là navy --ink, đặt trên thẻ nền tối sẽ chìm hẳn,
   nên đổi sang xanh chính cho nổi. */
.wr-lookup-card .wr-lookup-submit {
  background: var(--enamel);
  color: #fff;
  box-shadow: 0 16px 30px -14px rgba(40, 136, 200, .9);
}
.wr-lookup-card .wr-lookup-submit:hover {
  background: var(--enamel-lite);
  color: var(--ink);
  box-shadow: 0 22px 40px -16px rgba(127, 192, 234, .85);
}

/* ══════ MODAL KẾT QUẢ ══════ */
.wr-modal .modal-content { border: 0; border-radius: 1.25rem; overflow: hidden; }
.wr-modal .modal-header { border-bottom-color: rgba(15, 42, 68, .08); padding: 1.15rem 1.5rem; }
.wr-modal .modal-title { font-family: 'Roboto', sans-serif; font-size: 1.25rem; }
.wr-modal .modal-body { padding: 1.5rem; }
.wr-modal .modal-footer {
  border-top-color: rgba(15, 42, 68, .08);
  gap: .6rem; padding: 1rem 1.5rem;
}

.wr-result-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding-bottom: 1rem; border-bottom: 1px solid rgba(15, 42, 68, .08);
}
.wr-result-label {
  display: block;
  font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: #6b7c93;
}
.wr-result-code { font-size: 1.5rem; letter-spacing: .06em; color: #0f2a44; }

.wr-status { padding: .4rem .85rem; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.wr-status-valid { background: rgba(25, 155, 96, .12); color: #14804a; }
.wr-status-expired { background: rgba(214, 60, 60, .12); color: #b02a2a; }

.wr-result-table { width: 100%; margin-top: .75rem; }
.wr-result-table th,
.wr-result-table td {
  padding: .68rem .25rem;
  border-bottom: 1px solid rgba(15, 42, 68, .07);
  vertical-align: top;
}
.wr-result-table th { width: 45%; font-weight: 500; color: #55677f; }
.wr-result-table td { font-weight: 600; color: #0f2a44; }
.wr-result-table tr:last-child th,
.wr-result-table tr:last-child td { border-bottom: 0; }

.wr-result-note { margin: 1rem 0 0; font-size: .92rem; color: #55677f; }

/* Không tìm thấy thẻ */
.wr-result-empty {
  display: flex; gap: .9rem; align-items: flex-start;
  padding: 1.15rem;
  background: #fff7f7; border: 1px solid rgba(214, 60, 60, .25); border-radius: .9rem;
}
.wr-result-empty i { font-size: 1.4rem; color: #b02a2a; line-height: 1.3; }
.wr-result-empty p { margin-top: .35rem; font-size: .92rem; color: #55677f; }

@media (max-width: 575.98px) {
  .wr-lookup-card { padding: 1.4rem; }
  .wr-result-table th { width: 50%; }
}
