/* Kế hoạch riêng cho máy nhà mình — /ke-hoach/ (ke-hoach.php + page-ke-hoach.php).
   14/09/2026: làm lại toàn bộ khung nhìn theo file thiết kế "Chọn sản phẩm"
   anh Mừng gửi — hai cột (trái: 4 thẻ câu hỏi bo góc 20px; phải: khung kết
   quả dính, cập nhật sống). Bộ tính/giỏ hàng không đổi, xem ke-hoach.js. */

/* ---------- Dải 4 bước trên hero (tự sáng theo JS) ---------- */
.froga-kh-buoc-dai li { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); color: #FFFFFF; font-size: 13px; font-weight: 600; transition: background .2s, border-color .2s; }
.froga-kh-buoc-dai li.froga-kh-buoc-xong { background: #C9E86B; border-color: #C9E86B; color: #1A582C; }
.froga-kh-buoc-so { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.2); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.froga-kh-buoc-xong .froga-kh-buoc-so { background: #1A582C; color: #FFFFFF; }

/* ---------- Hai cột ---------- */
.froga-kh-hai-cot { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.froga-kh-form { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.froga-kh-canh { flex: 1 1 320px; max-width: 440px; min-width: 0; position: sticky; top: 84px; align-self: flex-start; }

/* ---------- Thẻ câu hỏi ---------- */
.froga-kh-buoc { display: flex; gap: 14px; align-items: flex-start; background: #FFFFFF; border: 1px solid #E4E7E1; border-radius: 20px; padding: clamp(20px, 3vw, 28px); }
.froga-kh-buoc-nhan { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #1A582C; color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }
.froga-kh-than { min-width: 0; flex: 1; }
.froga-kh-than h2 { font-weight: 700; margin: 4px 0 4px; font-size:clamp(16px,2vw,22px); line-height: 1.3; color: #1F2A22; letter-spacing: -0.01em; }
.froga-kh-giai { margin: 0 0 18px; color: #5C6B5F; font-size: 14px; line-height: 1.5; }
.froga-kh-hoi { font-size: 13px; font-weight: 600; color: #3A4A3E; margin: 20px 0 8px; }
.froga-kh-hoi:first-of-type { margin-top: 0; }

.froga-kh-hang { margin-bottom: 4px; }
.froga-kh-hang label { display: block; font-size: 13px; font-weight: 600; color: #3A4A3E; margin-bottom: 8px; }
.froga-kh-tuy { color: #8A968D; font-weight: 500; }
.froga-kh-hang select, .froga-kh-dh input { font: inherit; font-size: 15px; color: #1F2A22; background: #FBFBF8; border: 1.5px solid #D9DED6; border-radius: 12px; padding: 0 14px; height: 48px; width: 100%; max-width: 360px; outline: none; }
.froga-kh-hang select:focus, .froga-kh-dh input:focus { border-color: #23773C; box-shadow: 0 0 0 3px #E8F2E9; }

/* Chip: chữ thường một dòng (số người), hoặc hai dòng bo 14px (mặc định) —
   viền/nền vẽ THẲNG trên <label>, không bọc thêm div để khớp đúng markup
   ke-hoach.php in ra (input rồi tới span, không có div "vien" trung gian). */
.froga-kh-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.froga-kh-chips--mau { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.froga-kh-chip { position: relative; cursor: pointer; display: flex; align-items: center; min-height: 52px; padding: 12px 14px; border-radius: 14px; border: 2px solid #E4E7E1; background: #FBFBF8; color: #1F2A22; font-weight: 700; font-size: 15px; transition: border-color .15s, background .15s; }
.froga-kh-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.froga-kh-chip:hover { border-color: #23773C; }
.froga-kh-chip input:checked ~ * { color: #1A582C; }
.froga-kh-chip:has(input:checked) { background: #E8F2E9; border-color: #23773C; }
.froga-kh-chip input:focus-visible ~ * { outline: 2px solid #23773C; outline-offset: 2px; }

/* Chip hai dòng: tên đậm + mô tả xám nhỏ, thêm được miếng màu trước tên */
.froga-kh-chip--hai { align-items: flex-start; gap: 12px; min-height: 64px; font-weight: normal; }
.froga-kh-chip-mau { flex: none; width: 34px; height: 34px; border-radius: 10px; border: 1px solid rgba(0,0,0,.08); }
.froga-kh-chip-chu { display: flex; flex-direction: column; gap: 3px; }
.froga-kh-chip-ten { font-weight: 700; font-size: 15px; color: #1F2A22; }
.froga-kh-chip-mo { font-size: 12.5px; color: #5C6B5F; line-height: 1.4; }
.froga-kh-chip--hai:has(input:checked) .froga-kh-chip-ten { color: #1A582C; }

.froga-kh-dh-hang { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.froga-kh-dh-nut { padding: 10px 14px; border-radius: 999px; border: 1.5px dashed #9AA89E; background: transparent; color: #1A582C; font-weight: 600; font-size: 13.5px; cursor: pointer; font: inherit; }
.froga-kh-dh-nut[data-mo="1"] { border-color: #23773C; background: #E8F2E9; }
.froga-kh-dh[hidden] { display: none; }
.froga-kh-dh { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: #5C6B5F; }
.froga-kh-dh input { width: 120px; max-width: 120px; height: 44px; }
.froga-kh-dh a { font-weight: 700; color: #23773C; }

.froga-kh-buoc-cuoi { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; padding: 4px 6px; }
.froga-kh-ghi { margin: 0; font-size: 13px; color: #5C6B5F; line-height: 1.5; }
.froga-kh-loi { color: #A3341C; font-weight: 600; font-size: 14.5px; margin: 0; }

/* ---------- Khung kết quả dính (bên phải) ---------- */
.froga-kh-panel { animation: froga-kh-len .25s ease-out; }
@keyframes froga-kh-len { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Trạng thái "chưa đủ": tiến độ */
.froga-kh-td { background: #FFFFFF; border: 1px solid #C6CFC8; border-radius: 22px; padding: clamp(20px, 3vw, 28px); }
.froga-kh-td-dau { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.froga-kh-td-nhan { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: #5C6B5F; }
.froga-kh-td-so { font-size: 13px; font-weight: 700; color: #1A582C; }
.froga-kh-td-thanh { height: 6px; border-radius: 999px; background: #EEF0EA; margin: 12px 0 18px; overflow: hidden; }
.froga-kh-td-thanh > div { height: 100%; background: #23773C; border-radius: 999px; transition: width .3s; }
.froga-kh-td-ds { display: flex; flex-direction: column; gap: 10px; }
.froga-kh-td-dong { display: flex; gap: 10px; align-items: center; font-size: 14.5px; color: #5C6B5F; }
.froga-kh-td-dong.froga-kh-xong { color: #1F2A22; font-weight: 600; }
.froga-kh-td-dau2 { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #C6CFC8; background: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #FFFFFF; flex: none; }
.froga-kh-xong .froga-kh-td-dau2 { border-color: #23773C; background: #23773C; }
.froga-kh-td-gt { margin-left: auto; font-size: 13px; color: #5C6B5F; text-align: right; }
.froga-kh-td-chu { margin: 18px 0 0; font-size: 13px; color: #5C6B5F; line-height: 1.5; }

/* Trạng thái "đủ": kết quả sống */
.froga-kh-kq-song { background: #1A582C; color: #FFFFFF; border-radius: 22px; padding: clamp(20px, 3vw, 28px); }
.froga-kh-kq-nhan { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: #C9E86B; }
.froga-kh-kq-song h3 { margin: 8px 0 4px; font-weight: 700; font-size:clamp(17px,2.2vw,25px); line-height: 1.25; }
.froga-kh-kq-tomtat { margin: 0 0 18px; font-size: 13.5px; color: rgba(255,255,255,.82); line-height: 1.5; }
.froga-kh-kq-dong { display: flex; flex-direction: column; gap: 8px; }
.froga-kh-kq-hang { display: flex; justify-content: space-between; gap: 12px; align-items: center; background: rgba(255,255,255,.08); border-radius: 14px; padding: 12px 14px; }
.froga-kh-kq-hang-ten { font-weight: 700; font-size: 14px; }
.froga-kh-kq-hang-lieu { font-size: 12px; color: rgba(255,255,255,.75); margin-top: 2px; }
.froga-kh-kq-hang-so { text-align: right; flex: none; font-weight: 700; font-size: 16px; line-height: 1; white-space: nowrap; }
.froga-kh-kq-2o { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.froga-kh-kq-o { background: #FFFFFF; color: #1A582C; border-radius: 14px; padding: 14px; }
.froga-kh-kq-o-nhan { font-size: 12px; font-weight: 600; color: #5C6B5F; }
.froga-kh-kq-o-so { font-size: 22px; font-weight: 700; line-height: 1.15; margin-top: 4px; }
.froga-kh-kq-o-ghi { font-size: 11.5px; color: #5C6B5F; margin-top: 4px; line-height: 1.4; }
.froga-kh-kq-loi { margin: 16px 0 0; font-size: 13px; line-height: 1.55; color: rgba(255,255,255,.9); padding: 12px 14px; background: rgba(201,232,107,.14); border-radius: 12px; }
.froga-kh-kq-nut-hang { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.froga-kh-kq-nut-hang button { flex: 1 1 160px; text-align: center; padding: 13px 16px; border-radius: 999px; border: 0; background: #C9E86B; color: #1A582C; font-weight: 700; font-size: 14.5px; cursor: pointer; font: inherit; }
.froga-kh-kq-nut-hang button[disabled] { opacity: .6; cursor: default; }
.froga-kh-kq-lai { padding: 13px 16px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.4); background: transparent; color: #FFFFFF; font-weight: 600; font-size: 13.5px; cursor: pointer; font: inherit; }

/* ---------- Kết quả chi tiết (dưới hai cột, khi đã đủ 4 câu) ---------- */
.froga-kh-kq { margin-top: clamp(30px, 5vw, 50px); display: grid; gap: 22px; }
.froga-kh-kq-dau { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: #23773C; }
.froga-kh-luoi { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.froga-kh-the { background: #FFFFFF; border: 1px solid #E4E7E1; border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.froga-kh-the img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #FBFBF8; border-radius: 12px; }
.froga-kh-the h3 { font-size: 16px; font-weight: 700; margin: 0; color: #1F2A22; line-height: 1.3; }
.froga-kh-the .froga-kh-vai { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #23773C; }
.froga-kh-the .froga-kh-ngay { font-size: 14px; color: #5C6B5F; line-height: 1.55; }
.froga-kh-the .froga-kh-gia { font-weight: 700; font-size: 16px; color: #1F2A22; margin-top: auto; }
.froga-kh-the .froga-kh-them { display: inline-block; text-align: center; border: 1.5px solid #E7F2E4; background: #FFFFFF; color: #1F2A22; font-weight: 700; font-size: 14px; padding: 10px 14px; border-radius: 12px; cursor: pointer; font-family: inherit; }
.froga-kh-the .froga-kh-them:hover { background: #F1F8EE; }
.froga-kh-the .froga-kh-them[disabled] { opacity: .6; cursor: default; }

.froga-kh-hai { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.froga-kh-hop { background: #FBFBF8; border: 1px solid #E4E7E1; border-radius: 18px; padding: 22px; }
.froga-kh-hop h3 { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #23773C; margin: 0 0 12px; }
.froga-kh-hop ul { margin: 0; padding-left: 18px; font-size: 15px; line-height: 1.7; color: #5C6B5F; }
.froga-kh-hop li strong { color: #1F2A22; }
.froga-kh-hop table { width: 100%; border-collapse: collapse; font-size: 14.5px; color: #5C6B5F; }
.froga-kh-hop td { padding: 7px 0; border-top: 1px solid #E4E7E1; vertical-align: top; }
.froga-kh-hop tr:first-child td { border-top: 0; }
.froga-kh-hop td:last-child { text-align: right; font-weight: 700; color: #1F2A22; white-space: nowrap; }

.froga-kh-hanh-dong { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.froga-kh-tat-ca { border: 0; border-radius: 999px; background: #23773C; color: #FFFFFF; font: inherit; font-weight: 700; font-size: 15px; padding: 14px 26px; cursor: pointer; }
.froga-kh-tat-ca:hover { background: #1A582C; }
.froga-kh-tat-ca[disabled] { opacity: .6; cursor: default; }
.froga-kh-chep { border: 1.5px solid #E7F2E4; background: #FFFFFF; color: #1F2A22; font: inherit; font-weight: 700; font-size: 15px; padding: 13px 22px; border-radius: 999px; cursor: pointer; }
.froga-kh-chep:hover { background: #F1F8EE; }
.froga-kh-chu-thich { font-size: 13px; color: #5C6B5F; line-height: 1.6; margin: 0; }
.froga-kh-chu-thich a { color: #23773C; font-weight: 700; }

@media (max-width: 900px) {
  .froga-kh-canh { position: static; max-width: none; }
}

@media (max-width: 700px) {
  .froga-kh-buoc-dai { display: none; } /* dải 4 bước trên hero chật ở điện thoại, đã có tiến độ trong khung kết quả */
  .froga-kh-hai-cot { gap: 12px; }
  .froga-kh-form { gap: 10px; }
  .froga-kh-buoc { padding: 16px; border-radius: 14px; gap: 10px; }
  .froga-kh-buoc-nhan { width: 28px; height: 28px; font-size: 13px; }
  .froga-kh-chips { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
  .froga-kh-hang select { max-width: none; }
  .froga-kh-td, .froga-kh-kq-song { padding: 16px; border-radius: 16px; }
}
