/* ==========================================================================
   MỤC "THƯ NGỎ TÀI TRỢ" – CSS riêng (tiền tố tt-), không ảnh hưởng phần đã có.
   ========================================================================== */
.tt-section {
  --tt-blue: var(--blue, #075da8);
  --tt-navy: var(--navy, #123b68);
  --tt-teal: var(--teal, #13a6bd);
  --tt-ink: var(--ink, #193957);
  --tt-muted: var(--muted, #566f87);
  --tt-line: var(--line, #d9eaf7);
  --tt-soft: var(--bg-soft, #f4faff);
  --tt-gold: #ffc21a;
  --tt-mono: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  padding: 80px 0;
  background: linear-gradient(180deg, #fff 0%, #fff 100%);
  color: var(--tt-ink);
  font-family: var(--font, "Be Vietnam Pro", system-ui, sans-serif);
  scroll-margin-top: 90px;
}
.tt-section *, .tt-section *::before, .tt-section *::after { box-sizing: border-box; }
.tt-section h2, .tt-section h3, .tt-section h4, .tt-section p, .tt-section ul, .tt-section blockquote { margin: 0; }
.tt-section ul { padding: 0; list-style: none; }
.tt-section a { text-decoration: none; }
.tt-wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }

/* ----- nút ----- */
.tt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px;
  font-family: inherit; font-size: 13.5px; font-weight: 700; line-height: 1.2; text-align: center; cursor: pointer;
  border: 1px solid transparent; border-radius: 10px; transition: background .2s, transform .2s, border-color .2s;
}
.tt-btn:hover { transform: translateY(-1px); }
.tt-btn--block { width: 100%; }
.tt-btn--gold { color: #3a2a00; background: var(--tt-gold); }
.tt-btn--gold:hover { background: #ffd24d; }
.tt-btn--navy { color: #fff; background: var(--tt-navy); }
.tt-btn--navy:hover { background: #0d2c4f; }
.tt-btn--line { color: var(--tt-navy); background: #fff; border-color: #9fcbe8; }
.tt-btn--line:hover { background: var(--tt-soft); }
.tt-btn--mint { color: #06323a; background: #19c3c8; }
.tt-btn--mint:hover { background: #38d4d8; }
.tt-btn--glass { color: #fff; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); }
.tt-btn--glass:hover { background: rgba(255, 255, 255, .16); }
.tt-btn--soft { color: var(--tt-navy); background: #eaf3fb; }
.tt-btn--soft:hover { background: #d9eafa; }

/* ----- đầu mục ----- */
.tt-head {   margin: 0 auto; text-align: center; }
.tt-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; color: var(--tt-blue); background: #e3f1fd; border-radius: 999px; }
.tt-title { margin-top: 16px !important; font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; color: var(--tt-navy); }
.tt-lead { margin-top: 14px !important; font-size: 15px; line-height: 1.65; color: var(--tt-muted); }

/* ----- thư ngỏ ----- */
.tt-letter { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 20px; align-items: stretch; margin-top: 44px; }
.tt-letter__card { position: relative; padding: 32px 34px 28px; overflow: hidden; background: #fff; border: 1px solid var(--tt-line); border-radius: 20px; box-shadow: 0 16px 40px rgba(18, 59, 104, .08); }
.tt-letter__card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--tt-teal), var(--tt-blue) 55%, var(--tt-gold)); }
.tt-letter__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.tt-no { display: inline-block; padding: 3px 9px; font-family: var(--tt-mono); font-size: 12px; font-weight: 700; line-height: 1.4; color: #0b7f93; background: #fff; border: 1px solid #8fd3dd; border-radius: 5px; }
.tt-letter__date { font-size: 12.5px; color: var(--tt-muted); }
.tt-seal { display: inline-block; padding: 3px 10px; font-size: 11.5px; font-weight: 700; color: #c62828; background: #fff5f5; border: 1px solid #f0b4b4; border-radius: 5px; }
.tt-letter__title { margin-top: 18px !important; font-size: clamp(20px, 2.4vw, 28px); font-weight: 800; line-height: 1.25; color: var(--tt-navy); }
.tt-letter__sub { margin-top: 8px !important; font-size: 15px; font-weight: 700; color: var(--tt-blue); }
.tt-letter__quote { margin-top: 20px !important; padding: 18px 20px; font-size: 14px; font-style: italic; line-height: 1.7; color: #3a5670; background: var(--tt-soft); border: 1px solid var(--tt-line); border-left: 4px solid var(--tt-teal); border-radius: 12px; }
.tt-sign { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.tt-avatar { display: grid; flex: none; place-items: center; width: 44px; height: 44px; font-size: 14px; font-weight: 800; color: #fff; background: var(--tt-navy); border-radius: 50%; }
.tt-sign strong { display: block; font-size: 14.5px; color: var(--tt-navy); }
.tt-sign em { display: block; margin-top: 1px; font-size: 11.5px; font-style: normal; font-weight: 600; letter-spacing: .02em; color: var(--tt-muted); }

.tt-letter__side { display: flex; flex-direction: column; gap: 10px; padding: 26px; color: #fff; border-radius: 20px; background: radial-gradient(120% 100% at 100% 0%, #0f6a96 0%, transparent 60%), linear-gradient(160deg, #0d4a82, #0b2a4a); box-shadow: 0 16px 40px rgba(18, 59, 104, .22); }
.tt-side__kicker { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; color: #9fe6ee; }
.tt-side__title { font-size: 22px; font-weight: 800; line-height: 1.2; }
.tt-side__desc { margin-bottom: 8px !important; font-size: 13px; line-height: 1.6; color: #cfe6f8; }

/* ----- bảng gói ----- */
.tt-pkhead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 20px; margin: 56px 0 24px; padding-bottom: 14px; border-bottom: 1px solid var(--tt-line); }
.tt-pkhead__title { font-size: 20px; font-weight: 800; color: var(--tt-navy); }
.tt-pkhead__sub { margin-top: 2px !important; font-size: 13px; color: var(--tt-muted); }
.tt-tabs { display: flex; gap: 4px; padding: 4px; background: #eaf3fb; border-radius: 10px; }
.tt-tab { padding: 7px 14px; font-family: inherit; font-size: 13px; font-weight: 700; color: #4a6580; background: transparent; border: 0; border-radius: 7px; cursor: pointer; }
.tt-tab:hover { color: var(--tt-blue); }
.tt-tab[aria-pressed="true"] { color: #fff; background: var(--tt-navy); }

.tt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.tt-pk { display: flex; min-width: 0; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--tt-line); border-radius: 18px; transition: transform .2s, box-shadow .2s; }
.tt-pk:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(18, 59, 104, .1); }
.tt-pk[hidden] { display: none; }
.tt-pk__body { display: flex; flex: 1; flex-direction: column; padding: 22px 22px 8px; }
.tt-pk .tt-btn { width: calc(100% - 44px); margin: 14px 22px 22px; padding: 13px 16px; }
.tt-pk__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tt-pk__tag { padding: 3px 9px; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; color: #0b5d83; background: #e3f1fd; border-radius: 5px; }
.tt-pk__limit { font-size: 12px; font-weight: 700; color: #c62828; }
.tt-pk__name { margin-top: 14px !important; font-size: 20px; font-weight: 800; line-height: 1.25; color: var(--tt-navy); }
.tt-pk__price { margin-top: 14px; padding: 14px 16px; background: var(--tt-soft); border: 1px solid var(--tt-line); border-radius: 12px; }
.tt-pk__price strong { display: block; font-family: var(--tt-mono); font-size: 24px; font-weight: 700; line-height: 1.2; color: var(--tt-navy); }
.tt-pk__price .tt-pk__price--sm { font-family: inherit; font-size: 20px; }
.tt-pk__price span { display: block; margin-top: 4px; font-size: 12px; color: var(--tt-muted); }
.tt-pk__booth { display: flex; align-items: center; gap: 8px; margin-top: 12px !important; padding: 9px 12px; font-size: 12.5px; font-weight: 600; line-height: 1.4; color: #0b5d83; background: #e8f6fb; border-radius: 9px; }
.tt-pk__booth svg { flex: none; }
.tt-pk__label { margin-top: 18px !important; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; color: var(--tt-muted); }
.tt-pk__perks { display: flex; flex-direction: column; gap: 9px; margin-top: 10px !important; }
.tt-pk__perks li { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; line-height: 1.5; color: #2c4660; }
.tt-pk__perks svg { flex: none; margin-top: 2px; color: var(--tt-blue); }

/* Gói Kim Cương */
.tt-pk--diamond { color: #fff; background: linear-gradient(170deg, #0f3a66 0%, #0a2742 100%); border: 2px solid var(--tt-gold); box-shadow: 0 18px 40px rgba(18, 59, 104, .25); }
.tt-pk__ribbon { padding: 7px 12px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-align: center; color: #3a2a00; background: var(--tt-gold); }
.tt-pk--diamond .tt-pk__tag { color: #3a2a00; background: var(--tt-gold); }
.tt-pk--diamond .tt-pk__limit { color: #ffb4b4; }
.tt-pk--diamond .tt-pk__name { color: #fff; }
.tt-pk--diamond .tt-pk__price { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); }
.tt-pk--diamond .tt-pk__price strong { color: #7fe3ea; }
.tt-pk--diamond .tt-pk__price span, .tt-pk--diamond .tt-pk__label { color: #a9c7e2; }
.tt-pk--diamond .tt-pk__booth { color: #d6f4f8; background: rgba(255, 255, 255, .09); }
.tt-pk--diamond .tt-pk__perks li { color: #dce9f5; }
.tt-pk--diamond .tt-pk__perks svg { color: #7fe3ea; }
/* Gói Vàng */
.tt-pk--gold { border: 2px solid #f2cf6b; }
.tt-pk--gold .tt-pk__tag { color: #7a5600; background: #fff3cc; }

/* ----- popup ----- */
.tt-modal { position: fixed; inset: 0; z-index: 1100; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(8, 39, 70, .62); backdrop-filter: blur(3px); }
.tt-modal.is-open { display: flex; }
.tt-dialog { display: flex; flex-direction: column; width: 100%; max-width: 780px; max-height: calc(100vh - 32px); overflow: hidden; background: #fff; border-radius: 20px; box-shadow: 0 24px 60px rgba(8, 39, 70, .4); animation: tt-in .22s ease; }
.tt-dialog--sm { max-width: 600px; }
@keyframes tt-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.tt-mhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; background: var(--tt-soft); border-bottom: 1px solid var(--tt-line); }
.tt-mhead__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tt-reg__title { font-size: 17px; font-weight: 800; color: var(--tt-navy); }
.tt-close { display: grid; flex: none; place-items: center; width: 36px; height: 36px; padding: 0; color: var(--tt-navy); background: transparent; border: 0; border-radius: 8px; cursor: pointer; }
.tt-close:hover { background: #dfecf7; }
.tt-mbody { flex: 1; overflow-y: auto; padding: 26px 30px; }
.tt-doc__title { font-size: clamp(18px, 2.3vw, 23px); font-weight: 800; line-height: 1.35; color: var(--tt-navy); }
.tt-doc__date { margin-top: 6px !important; font-size: 13px; font-style: italic; color: var(--tt-muted); }
.tt-doc__content { margin-top: 18px; font-size: 15px; line-height: 1.75; color: #2c4660; }
.tt-doc__content p { margin: 0 0 12px; }
.tt-doc__content h4 { margin: 18px 0 8px; font-size: 15px; font-weight: 800; color: var(--tt-navy); }
.tt-doc__content ul { margin: 0 0 12px; padding-left: 20px; list-style: disc; }
.tt-mbody .tt-sign { justify-content: flex-end; margin-top: 26px; padding-top: 18px; border-top: 1px dashed var(--tt-line); }
.tt-mfoot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--tt-line); }

.tt-form { display: flex; min-height: 0; flex-direction: column; }
.tt-field { display: block; margin-bottom: 14px; font-size: 13.5px; font-weight: 600; color: #34506b; }
.tt-field input, .tt-field select, .tt-field textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; font-family: inherit; font-size: 14.5px; font-weight: 400; color: var(--tt-ink); background: #fff; border: 1px solid #cfdfec; border-radius: 8px; outline: none; }
.tt-field input:focus, .tt-field select:focus, .tt-field textarea:focus { border-color: var(--tt-blue); box-shadow: 0 0 0 3px rgba(7, 93, 168, .14); }
.tt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tt-row .tt-field { min-width: 0; }

/* ----- responsive ----- */
@media (max-width: 1000px) {
  .tt-letter { grid-template-columns: minmax(0, 1fr); }
  .tt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .tt-section { padding: 56px 0; }
  .tt-grid { grid-template-columns: minmax(0, 1fr); }
  .tt-letter__card { padding: 26px 20px 22px; }
  .tt-pkhead { align-items: flex-start; }
  .tt-row { grid-template-columns: 1fr; }
  .tt-modal { padding: 0; align-items: flex-end; }
  .tt-dialog { max-height: 94vh; border-radius: 20px 20px 0 0; }
  .tt-mbody { padding: 20px; }
  .tt-mfoot .tt-btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { .tt-dialog { animation: none; } .tt-pk, .tt-btn { transition: none; } }
