/* ==========================================================================
   REHME Warranty Portal — exact-match styling to the warranty mockups.
   Navy #0b2e73 / #163e86 / #335998, gold #c9a227, light page #eef1f6.
   All classes .wty- prefixed (scoped).
   ========================================================================== */

:root { --wty-navy:#0b2e73; --wty-navy2:#163e86; --wty-blue:#335998; --wty-gold:#c9a227; }

.wty-page { background: #eef1f6; }
.wty-page .container-wty { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* ---------- Dedicated navy header ---------- */
.wty-topbar { background: linear-gradient(90deg,#0b2e73,#163e86); color:#fff; }
.wty-topbar-inner { max-width:1100px; margin:0 auto; padding:.7rem 16px; display:flex; align-items:center; gap:1rem; }
.wty-brand img { height:40px; filter: brightness(0) invert(1); }           /* white logo */
.wty-nav { display:flex; gap:1.4rem; margin-left:1.5rem; flex:1; flex-wrap:wrap; }
.wty-nav a { color:#dbe4f5; text-decoration:none; font-weight:600; font-size:.95rem; }
.wty-nav a:hover, .wty-nav a.active { color:#fff; }
.wty-scanbtn { background:#2f6bd8; color:#fff; font-weight:700; padding:.5rem 1rem; border-radius:8px; text-decoration:none; white-space:nowrap; }
.wty-scanbtn:hover { background:#255ab8; color:#fff; }

/* ---------- Navy footer ---------- */
.wty-footer { background:linear-gradient(90deg,#0b2e73,#163e86); color:#cdd8ee; margin-top:2.5rem; }
.wty-footer-inner { max-width:1100px; margin:0 auto; padding:1.4rem 16px; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:1rem; }
.wty-footer-brand { display:flex; align-items:center; gap:.7rem; }
.wty-footer-brand img { height:34px; filter:brightness(0) invert(1); }
.wty-footer-brand span { font-style:italic; color:#e7c766; font-weight:600; }
.wty-footer-nav { display:flex; gap:1.1rem; } .wty-footer-nav a { color:#cdd8ee; text-decoration:none; font-size:.9rem; }
.wty-footer-copy { font-size:.8rem; opacity:.8; width:100%; text-align:center; border-top:1px solid rgba(255,255,255,.12); padding-top:.8rem; }

/* ---------- Section head ---------- */
.wty-main { padding: 2.2rem 0; }
.wty-head { text-align:center; margin-bottom:1.6rem; }
.wty-head h1 { font-weight:800; color:var(--wty-navy); font-size:1.7rem; margin-bottom:.3rem; }
.wty-head p { color:#64718a; margin:0; }

/* ---------- Card ---------- */
.wty-card { background:#fff; border:1px solid #e3e8f1; border-radius:14px; box-shadow:0 10px 30px rgba(11,46,115,.07); padding:1.6rem; }
.wty-card + .wty-card { margin-top:1.2rem; }

/* ---------- Segmented toggle (Scan QR | Enter Serial) ---------- */
.wty-seg { display:flex; border:1px solid #d7deeb; border-radius:10px; overflow:hidden; margin-bottom:1.4rem; }
.wty-seg .seg { flex:1; display:flex; align-items:center; justify-content:center; gap:.6rem; padding:.9rem 1rem;
    background:#fff; color:#33405c; font-weight:700; cursor:pointer; border:0; }
.wty-seg .seg.active { background:var(--wty-navy); color:#fff; }
.wty-seg .seg .qricon { width:18px; height:18px; display:inline-block;
    background:
      linear-gradient(currentColor,currentColor) 0 0/7px 7px no-repeat,
      linear-gradient(currentColor,currentColor) 100% 0/7px 7px no-repeat,
      linear-gradient(currentColor,currentColor) 0 100%/7px 7px no-repeat;
}

/* ---------- Scan row: QR box | OR | serial ---------- */
.wty-scanrow { display:flex; gap:1.4rem; align-items:stretch; flex-wrap:wrap; }
.wty-qrbox { flex:1; min-width:240px; border:1px solid #e3e8f1; border-radius:12px; background:#f7f9fc; padding:1.6rem; text-align:center; }
.wty-qrframe { width:120px; height:120px; margin:0 auto .8rem; border-radius:10px; position:relative; display:flex; align-items:center; justify-content:center; color:var(--wty-navy); font-size:3rem; }
.wty-qrframe::before, .wty-qrframe::after { content:""; position:absolute; width:26px; height:26px; border:3px solid var(--wty-navy); }
.wty-qrframe::before { top:0; left:0; border-right:0; border-bottom:0; border-radius:6px 0 0 0; }
.wty-qrframe::after  { bottom:0; right:0; border-left:0; border-top:0; border-radius:0 0 6px 0; }
.wty-qrbox h6 { font-weight:800; color:var(--wty-navy); margin:.4rem 0 .1rem; }
.wty-qrbox p { color:#6b7890; font-size:.85rem; margin:0; }

.wty-or { display:flex; align-items:center; justify-content:center; color:#9aa6bf; font-weight:700; }
.wty-or span { background:#eef1f6; border:1px solid #d7deeb; border-radius:50%; width:38px; height:38px; display:flex; align-items:center; justify-content:center; }

.wty-serial { flex:1; min-width:240px; }
.wty-serial label { font-weight:700; color:var(--wty-navy); }
.wty-where { color:var(--wty-blue); font-size:.85rem; text-decoration:none; display:inline-block; margin-top:.6rem; }

/* ---------- Buttons ---------- */
.wty-btn { display:inline-flex; align-items:center; justify-content:center; gap:.5rem; background:var(--wty-navy);
    color:#fff; font-weight:700; border:0; border-radius:9px; padding:.8rem 1.4rem; text-decoration:none; cursor:pointer; }
.wty-btn:hover { background:#07214f; color:#fff; }
.wty-btn.block { width:100%; }
.wty-btn.ghost { background:#fff; color:var(--wty-navy); border:2px solid var(--wty-navy); }
.wty-btn.ghost:hover { background:#eef2fb; }
.wty-btn.success { background:#28a745; } .wty-btn.success:hover { background:#1e7e34; }

/* ---------- Bottom 3-item icon strip ---------- */
.wty-strip { display:flex; gap:1rem; background:#f7f9fc; border-top:1px solid #e9edf4; border-radius:0 0 14px 14px; padding:1.1rem; margin:1.4rem -1.6rem -1.6rem; }
.wty-strip .it { flex:1; display:flex; align-items:center; gap:.7rem; justify-content:center; }
.wty-strip .ic { width:40px; height:40px; border-radius:50%; background:#e7eefb; color:var(--wty-navy); display:flex; align-items:center; justify-content:center; font-size:1.1rem; }
.wty-strip .tx b { display:block; color:#263a63; font-size:.9rem; } .wty-strip .tx small { color:#8a93a6; }

/* ---------- Genuine banner ---------- */
.wty-genuine { display:flex; align-items:center; gap:.9rem; background:#eafaf0; border:1px solid #bfe8cd; color:#1b7a3d; border-radius:12px; padding:1rem 1.2rem; margin-bottom:1.2rem; }
.wty-genuine i { font-size:2rem; color:#28a745; }
.wty-genuine strong { color:#166534; font-size:1.15rem; }

/* ---------- Product block + colon-aligned rows ---------- */
.wty-product { display:flex; gap:1.6rem; flex-wrap:wrap; align-items:flex-start; }
.wty-product-img { flex:0 0 190px; width:190px; height:190px; border-radius:12px; background:#f1f4fa; border:1px solid #e6eaf1; display:flex; align-items:center; justify-content:center; color:#9aa6bf; font-size:3rem; overflow:hidden; }
.wty-product-img img { max-width:100%; max-height:100%; object-fit:contain; }
.wty-product-info { flex:1; min-width:250px; }
.wty-product-info h3 { color:var(--wty-navy); font-weight:800; font-size:1.4rem; margin-bottom:1rem; }

.wty-kv { margin:0; }
.wty-kv .row-kv { display:flex; padding:.42rem 0; font-size:.98rem; }
.wty-kv .k { flex:0 0 42%; color:#55627d; position:relative; }
.wty-kv .k::after { content:":"; position:absolute; right:10px; }
.wty-kv .v { flex:1; font-weight:700; color:#1f2937; }

/* ---------- Pills ---------- */
.wty-pill { display:inline-block; font-weight:800; letter-spacing:.3px; padding:.3rem .8rem; border-radius:20px; font-size:.82rem; }
.wty-pill.active  { background:#28a745; color:#fff; }
.wty-pill.pending { background:#ffe3a3; color:#8a5a00; }
.wty-pill.expired { background:#6c757d; color:#fff; }

/* ---------- Need help box ---------- */
.wty-needhelp { background:#eef3fb; border-radius:12px; padding:1rem 1.2rem; display:flex; gap:.8rem; align-items:center; }
.wty-needhelp i { font-size:1.6rem; color:var(--wty-navy); }
.wty-needhelp b { color:var(--wty-navy); } .wty-needhelp .ph { font-weight:800; color:var(--wty-navy); }

/* ---------- Common complaint types list ---------- */
.wty-cclist { list-style:none; padding:0; margin:0; }
.wty-cclist li { display:flex; align-items:center; gap:.7rem; padding:.55rem 0; border-bottom:1px dashed #eef1f6; color:#33405c; }
.wty-cclist li i { color:var(--wty-navy); width:20px; text-align:center; }

/* ---------- Success tick + WhatsApp bar ---------- */
.wty-tick { font-size:3.2rem; color:#28a745; }
.wty-wa { display:flex; align-items:center; gap:.7rem; background:#eafaf0; border:1px solid #bfe8cd; border-radius:10px; padding:.9rem 1.1rem; color:#1b7a3d; }
.wty-wa i { color:#25d366; font-size:1.4rem; }

/* ---------- Status card header ---------- */
.wty-statushdr { display:flex; align-items:center; justify-content:space-between; margin-bottom:1rem; flex-wrap:wrap; gap:.6rem; }
.wty-statushdr h5 { margin:0; color:var(--wty-navy); font-weight:800; }

/* ---------- Scan box (camera) ---------- */
#qrScanner { max-width:300px; margin:.5rem auto 0; }

@media (max-width: 767px) {
    .wty-nav { display:none; }
    .wty-or { width:100%; } .wty-or span { margin:.4rem auto; }
    .wty-strip { flex-direction:column; }
    .wty-product-img { flex-basis:140px; width:140px; height:140px; }
}

/* ---- Cashback offer (e-card CTA on the activation success / status views) ---- */
.wty-btn.gold { background: linear-gradient(135deg,#ffb300,#ff8f00); color:#3a2a00; border:0; font-weight:800; }
.wty-btn.gold:hover { filter:brightness(1.05); color:#3a2a00; }

.wty-cashback {
    display:flex; flex-wrap:wrap; align-items:center; gap:16px;
    background: linear-gradient(135deg,#0b2e73 0%, #163e86 100%);
    border-radius:14px; padding:18px 20px; color:#fff;
    box-shadow:0 6px 18px rgba(11,46,115,.25);
}
.wty-cashback-left {
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    background:rgba(255,255,255,.08); border:2px solid #ffd34d; border-radius:12px;
    padding:12px 18px; min-width:140px;
}
.wty-cashback-won { font-size:.8rem; letter-spacing:1px; text-transform:uppercase; color:#ffd34d; }
.wty-cashback-amt { font-size:2.4rem; font-weight:900; line-height:1; color:#fff; }
.wty-cashback-cb  { font-size:.7rem; font-weight:800; letter-spacing:1px; color:#ffd34d; margin-top:2px; }
.wty-cashback-right { flex:1; min-width:220px; }
.wty-cashback-right p { margin:0; color:#eaf0ff; }
@media (max-width:575px){
    .wty-cashback { flex-direction:column; text-align:center; }
    .wty-cashback-right { min-width:0; }
}

/* ---- Promo banner + landing layout on the Scan & Verify page ---- */
.wty-promo-banner { display:block; border-radius:14px; overflow:hidden;
    box-shadow:0 6px 20px rgba(0,0,0,.15); line-height:0; }
.wty-promo-banner img { width:100%; height:auto; display:block; }

/* Default (mobile / no promo): single column, banner centered on top. */
.wty-landing-promo { max-width:520px; margin:0 auto 18px; }
.wty-landing-main { }

/* Desktop: banner on the LEFT, Scan & Verify on the RIGHT. */
@media (min-width:992px){
    .wty-landing.has-promo {
        display:grid;
        grid-template-columns: minmax(300px, 420px) 1fr;
        gap:28px;
        align-items:start;
    }
    .wty-landing.has-promo .wty-landing-promo {
        margin:0;
        position:sticky; top:90px;   /* keeps the poster in view while the form is used */
    }
    .wty-landing.has-promo .wty-landing-main .wty-head { text-align:left; }
}
