/* Landing "Chạm tay vào di sản" — mộc mạc: giấy gạo, gỗ, tre */
.xp-hero .xp-eyebrow { text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.xp-eyebrow { font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; }

.xp-paper {
    background-color: #efe8d6;
    background-image:
        radial-gradient(rgba(35, 77, 42, .035) 1px, transparent 1px),
        radial-gradient(rgba(184, 128, 31, .04) 1px, transparent 1px);
    background-size: 22px 22px, 31px 31px;
    background-position: 0 0, 11px 7px;
}

.xp-frame { border-radius: 1.25rem; overflow: hidden; box-shadow: 0 24px 48px -24px rgba(35, 77, 42, .45); background: #d9ccb0; }
.xp-placeholder {
    width: 100%;
    background: repeating-linear-gradient(90deg, #cdb98f 0 14px, #c4ae80 14px 15px), #cdb98f;
    min-height: 220px; display: flex; align-items: center; justify-content: center;
}
.xp-placeholder span { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(35, 77, 42, .55); background: rgba(247, 244, 233, .7); padding: .4rem .9rem; border-radius: 99px; }

.xp-rich a { text-decoration: underline; text-underline-offset: 3px; }
.xp-rich ul { list-style: none; padding: 0; }
.xp-rich li { position: relative; padding-left: 1.6rem; margin: .55rem 0; }
.xp-rich li::before { content: ""; position: absolute; left: .2rem; top: .62em; width: .5rem; height: .5rem; border-radius: 99px; background: #e2a72c; }
.xp-checks li::before { content: "✓"; background: none; color: #b8801f; font-weight: 800; top: 0; width: auto; height: auto; }

.xp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 3.25rem; padding: .85rem 1.75rem; border-radius: 999px;
    font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .9rem;
    transition: background-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.xp-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(0, 0, 0, .18); }
.xp-btn-gold { background: #e2a72c; color: #234d2a; }
.xp-btn-gold:hover { background: #f0b941; }
.xp-btn-ghost { border: 1.5px solid rgba(247, 244, 233, .7); color: #f7f4e9; }
.xp-btn-ghost:hover { background: #f7f4e9; color: #234d2a; }
.xp-btn-ink { background: #234d2a; color: #f7f4e9; }
.xp-btn-ink:hover { background: #1a3b20; }
.xp-btn-outline { border: 1.5px solid #234d2a; color: #234d2a; text-transform: none; letter-spacing: 0; font-size: 1rem; }
.xp-btn-outline:hover { background: #234d2a; color: #f7f4e9; }

/* Tiêu đề section căn giữa + gạch vàng */
.xp-head { text-align: center; max-width: 42rem; margin: 0 auto 2.5rem; }
.xp-head h2 { font-family: "Noto Serif", serif; font-weight: 700; font-size: clamp(1.9rem, 5vw, 2.75rem); line-height: 1.15; margin-top: .6rem; }
.xp-head h2::after { content: ""; display: block; width: 56px; height: 2px; background: #e2a72c; margin: 1.1rem auto 0; }
.xp-head p:not(.xp-eyebrow) { margin-top: 1.1rem; font-size: 1.075rem; line-height: 1.7; color: rgba(35, 77, 42, .75); }
.xp-head-dark p:not(.xp-eyebrow) { color: rgba(247, 244, 233, .8); }
@media (min-width: 640px) { .xp-head { margin-bottom: 3.5rem; } }

.xp-pill { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .95rem; border-radius: 999px; font-size: .88rem; font-weight: 600; background: rgba(255, 255, 255, .65); border: 1px solid rgba(35, 77, 42, .15); }
.xp-pill::before { content: ""; width: .4rem; height: .4rem; border-radius: 99px; background: #e2a72c; }
.xp-pill-dark { background: rgba(247, 244, 233, .1); border-color: rgba(247, 244, 233, .25); color: #f7f4e9; backdrop-filter: blur(4px); }

/* Dòng thời gian 5 điểm chạm */
.xp-timeline { position: relative; display: grid; gap: 1.5rem; padding-left: 2.6rem; }
.xp-timeline::before { content: ""; position: absolute; left: 1rem; top: .5rem; bottom: .5rem; width: 2px; background: rgba(184, 128, 31, .35); }
.xp-timeline > li { position: relative; }
.xp-step { position: absolute; left: -2.6rem; top: 1.25rem; width: 2.1rem; height: 2.1rem; display: grid; place-items: center; border-radius: 99px; background: #f7f4e9; border: 2px solid #e2a72c; font-weight: 800; font-size: .78rem; color: #234d2a; }
@media (min-width: 640px) { .xp-timeline { gap: 2rem; padding-left: 3.75rem; } .xp-timeline::before { left: 1.35rem; } .xp-step { left: -3.75rem; width: 2.75rem; height: 2.75rem; font-size: .9rem; } }
.xp-tag { flex-shrink: 0; padding: .25rem .7rem; border-radius: 99px; background: rgba(226, 167, 44, .16); border: 1px solid rgba(226, 167, 44, .5); color: #8a5f12; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }

.xp-slot { display: block; border-radius: 1.25rem; background: #fff; border: 1.5px solid rgba(35, 77, 42, .12); padding: 1.4rem 1.5rem; transition: border-color .2s, box-shadow .2s, transform .2s; }
.xp-slot:hover, .xp-slot:focus-visible { border-color: #e2a72c; box-shadow: 0 14px 30px -18px rgba(184, 128, 31, .6); transform: translateY(-2px); }


/* Form trên nền xanh đậm */
.xp-field { display: block; border: 0; padding: 0; margin: 0; min-width: 0; }
.xp-field > span, .xp-field > legend { display: block; font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(247, 244, 233, .85); margin-bottom: .5rem; }
.xp-field input:not([type=radio]), .xp-field textarea {
    width: 100%; font-size: 1rem; padding: .85rem 1.1rem; border-radius: .9rem;
    background: rgba(255, 255, 255, .06); border: 1.5px solid rgba(247, 244, 233, .16); color: #f7f4e9; color-scheme: dark;
}
.xp-field input::placeholder, .xp-field textarea::placeholder { color: rgba(247, 244, 233, .4); }
.xp-field input:focus, .xp-field textarea:focus { outline: none; border-color: #e2a72c; box-shadow: 0 0 0 3px rgba(226, 167, 44, .25); }
.xp-field em { display: block; font-style: normal; color: #fca5a5; font-size: .85rem; margin-top: .35rem; }
.xp-field em:empty { display: none; }
.xp-field.has-error input, .xp-field.has-error .xp-chip span { border-color: #f87171; }

.xp-chip { position: relative; cursor: pointer; display: block; }
.xp-chip input { position: absolute; opacity: 0; pointer-events: none; }
.xp-chip span {
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
    min-height: 3rem; padding: .55rem .5rem; border-radius: .9rem; line-height: 1.25;
    border: 1.5px solid rgba(247, 244, 233, .16); background: rgba(255, 255, 255, .06);
    color: #f7f4e9; font-weight: 600; font-size: .92rem; transition: all .15s;
}
.xp-chip span small { font-weight: 500; opacity: .65; font-size: .75rem; }
.xp-chip span b { white-space: nowrap; font-size: .85rem; }
.xp-chip:hover span { border-color: rgba(226, 167, 44, .6); }
.xp-chip input:checked + span { background: rgba(226, 167, 44, .16); color: #e2a72c; border-color: #e2a72c; }
.xp-chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(226, 167, 44, .45); }

.xp-lightbox { padding: 0; border: 0; background: transparent; max-width: min(96vw, 1400px); }
.xp-lightbox::backdrop { background: rgba(10, 22, 12, .88); }
.xp-lightbox img { max-height: 84vh; width: auto; margin: 0 auto; border-radius: .75rem; }
.xp-lightbox p { color: #f7f4e9; text-align: center; margin-top: .75rem; }
.xp-lightbox p:empty { display: none; }
.xp-lb-close { position: fixed; top: 1rem; right: 1.25rem; font-size: 2.5rem; line-height: 1; color: #f7f4e9; }

@media (prefers-reduced-motion: reduce) { .xp-hero-video { display: none; } }

/* ---------- Hero toàn màn hình, căn giữa ---------- */
.xp-hero-vignette { background: radial-gradient(ellipse at center, rgba(20, 42, 25, .05) 0%, rgba(20, 42, 25, .55) 75%), linear-gradient(to top, rgba(20, 42, 25, .85), transparent 40%); }
.xp-hero-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .95rem; border-radius: 999px; background: rgba(20, 42, 25, .55); border: 1px solid rgba(247, 244, 233, .25); backdrop-filter: blur(4px); color: #f7f4e9; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.xp-hero-title { font-family: "Noto Serif", serif; font-weight: 700; color: #f7f4e9; font-size: clamp(2.35rem, 9.5vw, 5.25rem); line-height: 1.12; letter-spacing: .03em; margin-top: 1.1rem; text-wrap: balance; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.xp-hero-sub { font-family: "Noto Serif", serif; font-style: italic; color: #e2a72c; font-size: clamp(1.1rem, 3.6vw, 1.85rem); letter-spacing: .06em; margin-top: .6rem; text-wrap: balance; text-shadow: 0 1px 12px rgba(0, 0, 0, .4); }
.xp-hero .xp-pill-dark { font-size: .8rem; }

/* ---------- Tiêu đề section: chữ in hoa do CMS nhập ---------- */
.xp-head h2 { font-size: clamp(1.55rem, 5.4vw, 2.6rem); letter-spacing: .02em; line-height: 1.22; text-wrap: balance; }
/* Nhãn nhỏ phía trên tiêu đề ("Cội nguồn"...) — chữ viết tay, có gạch hai bên */
.xp-head .xp-eyebrow {
    display: inline-flex; align-items: center; gap: .75rem;
    font-family: "Dancing Script", cursive; font-weight: 700; font-size: clamp(1.45rem, 5vw, 1.85rem);
    text-transform: none; letter-spacing: 0; line-height: 1.2;
}
.xp-head .xp-eyebrow::before, .xp-head .xp-eyebrow::after { content: ""; width: 1.75rem; height: 1px; background: currentColor; opacity: .55; }

/* ---------- Nút đăng ký nổi ---------- */
.xp-sticky {
    position: fixed; z-index: 45; left: .75rem; right: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom));
    display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3.4rem; border-radius: 999px;
    background: #e2a72c; color: #234d2a; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .92rem;
    box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .45), 0 0 0 3px rgba(247, 244, 233, .7);
    transform: translateY(160%); opacity: 0; pointer-events: none; transition: transform .35s ease, opacity .35s ease;
}
.xp-sticky.on { transform: none; opacity: 1; pointer-events: auto; }
.xp-sticky:hover { background: #f0b941; }
body.xp-sticky-on #float-btns { bottom: calc(5.25rem + env(safe-area-inset-bottom)); }
@media (min-width: 768px) {
    .xp-sticky { left: 50%; right: auto; transform: translate(-50%, 160%); padding: 0 1.75rem; bottom: 1.25rem; }
    .xp-sticky.on { transform: translate(-50%, 0); }
    body.xp-sticky-on #float-btns { bottom: 1.25rem; }
}
/* Chừa chỗ cuối trang để thanh nổi không che footer */
@media (max-width: 767px) {
    body.xp-page { padding-bottom: 4.75rem; }
    /* Ở hero mobile đã có nút đăng ký — tạm ẩn nút Gọi/Zalo/Facebook để không đè lên nút */
    #float-btns { transition: bottom .3s, opacity .3s; }
    body.xp-hero-on #float-btns { opacity: 0; pointer-events: none; }
}
