/* =====================================================================
   TRANG THIẾT KẾ VÁY MAY ĐO (thiet-ke-vay.html)
   Khung 2 cột (.studio, .mirror, .fit-score, .models) dùng chung với styles.css;
   file này chỉ thêm phần đầu trang (slogan) và bước chọn ngân sách – không còn giá theo từng lựa chọn.
   ===================================================================== */

/* Đầu trang: slogan nghiêng kiểu thiệp cưới + vài điểm khác biệt */
.bespoke-head { align-items: end; }
.bespoke-head h1 { margin-bottom: 6px; }
.section-head p.bespoke-slogan { max-width: 620px; margin: 0; text-wrap: balance; font: italic 700 clamp(17px, 2vw, 21px)/1.45 var(--font-title); color: var(--brand-dark); }
.bespoke-perks { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bespoke-perks li { padding: 5px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink); }

/* Bước 3 – ngân sách mong muốn: lưới thẻ khoảng giá (3 cột máy tính, 2 cột điện thoại) */
.budget-card { scroll-margin-top: 90px; }
.budget-card h3 { margin-bottom: 4px; }
.budget-lead { margin: 0; }
.budget-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.budget-option { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0;
  padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink);
  font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.budget-option:hover { border-color: var(--brand); }
.budget-option strong { font-size: 15px; }
.budget-option span:last-child { font-size: 12px; color: var(--muted); line-height: 1.35; }
.budget-option.active { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.budget-option.active strong { color: var(--brand-dark); }
.budget-option:focus-visible { outline: 3px solid var(--brand-soft); outline-offset: 2px; }
.budget-badge { position: absolute; top: -9px; right: 10px; padding: 1px 8px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; }

/* Số tiền cụ thể: ô nhập có chữ "đ" ở cuối + thanh trượt; viền sáng lên khi đang dùng thay cho thẻ khoảng */
.budget-exact { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px dashed var(--line); border-radius: 12px; transition: border-color .15s, background .15s; }
.budget-exact.active { border-style: solid; border-color: var(--brand); background: #fffaf8; }
.budget-exact p { margin: 0; }
.money-input { position: relative; }
.money-input .input { padding-right: 34px; font-weight: 700; }
.money-input span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; pointer-events: none; }
.money-input .input[aria-invalid="true"] { border-color: var(--red); background: #fffafa; }
.budget-scale { display: flex; justify-content: space-between; margin-top: -4px; }

/* Lời hứa tư vấn: giá chốt sau buổi gặp, không phát sinh bất ngờ */
.budget-promise { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 12px 44px; position: relative;
  border-radius: 12px; background: var(--green-soft); font-size: 13px; line-height: 1.5; }
.budget-promise::before { content: '✓'; position: absolute; left: 14px; top: 13px; width: 20px; height: 20px; display: grid; place-items: center;
  border-radius: 50%; background: var(--green); color: #fff; font-size: 12px; font-weight: 800; }
.budget-promise strong { color: var(--green); }

/* Bấm đặt lịch khi chưa chọn ngân sách → nháy viền thẻ */
.budget-card.nudge { animation: budget-nudge 1.4s ease; }
@keyframes budget-nudge { 0%, 60% { box-shadow: 0 0 0 3px var(--brand); } 100% { box-shadow: var(--shadow); } }

/* Bước 4 – tóm tắt: thông số, ngân sách dự kiến, 3 đợt cọc (chỉ tỉ lệ, không số tiền) */
.bespoke-specs { margin-top: 6px; color: var(--ink); }
.bespoke-budget { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--brand-soft); }
.bespoke-budget strong { font: 700 22px/1.3 var(--font-title); color: var(--brand-dark); }
.bespoke-budget.is-empty { background: #fdfbf9; border: 1px dashed var(--line); }
.bespoke-budget.is-empty strong { color: var(--muted); font-size: 18px; }
.budget-goto { align-self: flex-start; padding: 0; border: 0; background: none; color: var(--brand-dark); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.bespoke-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bespoke-steps li { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fdfbf9; line-height: 1.35; min-width: 0; }
.bespoke-step-pct { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-light), var(--brand-dark)); color: #fff; font: 700 14px var(--font-title); }

/* Điện thoại: 3 đợt xếp dọc, số % nằm bên trái cho gọn chiều cao */
@media (max-width: 560px) {
  .budget-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bespoke-steps { grid-template-columns: minmax(0, 1fr); }
  .bespoke-steps li { flex-direction: row; align-items: center; padding: 10px 12px; }
  .bespoke-perks li { font-size: 12px; padding: 4px 10px; }
}
@media (prefers-reduced-motion: reduce) { .budget-card.nudge { animation: none; } }
