/* ============================================================
   COMPONENTS.CSS — Class tái sử dụng cho mọi page
   Dùng @apply-style nhưng viết CSS thuần (vì xài Tailwind CDN)
   ============================================================ */

/* ---- Nút ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 2rem; border-radius: 10px;
  font-weight: 700; font-size: 1rem; cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  text-decoration: none; border: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(245,166,35,.35); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-urgent { background: var(--urgent); color: #fff; box-shadow: 0 6px 18px rgba(231,76,60,.3); }
.btn-urgent:hover { background: #c0392b; }
.btn-outline { background: #fff; color: var(--ink); border: 2px solid var(--brand); }
.btn-outline:hover { background: var(--brand-cream); }

/* ---- Card ---- */
.card {
  background: #fff; border-radius: 14px; padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,.12); }

/* ---- Section wrapper ---- */
.section-pad { padding: 4.5rem 1.25rem; }
.container { max-width: var(--container); margin: 0 auto; width: 100%; }

/* ---- Heading section ---- */
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 800; color: var(--ink); text-align: center; line-height: 1.25;
}
.section-title .hl { color: var(--brand); }

/* ---- Form ---- */
.field {
  width: 100%; padding: .85rem 1rem; border-radius: 10px;
  border: 1px solid #ddd; font-size: .95rem; margin-bottom: .85rem;
  transition: border .2s ease;
}
.field:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(245,166,35,.15); }

/* ---- Badge ---- */
.badge {
  display: inline-block; padding: .3rem .9rem; border-radius: 999px;
  font-size: .8rem; font-weight: 700; background: var(--brand-cream); color: var(--brand-dark);
}
.badge-urgent { background: #fdecea; color: var(--urgent); }

/* ---- Floating contact buttons ---- */
@keyframes float-ring-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes float-ring-pulse {
  0%, 100% { opacity: .55; transform: scale(1); }
  50%       { opacity: 0;   transform: scale(1.5); }
}

.float-contact {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  display: flex; flex-direction: column; gap: 12px;
}
.float-contact a {
  position: relative;
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  transition: transform .15s ease;
  overflow: visible;
}
/* Vòng xoay dashed */
.float-contact a::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px dashed rgba(255,255,255,.75);
  animation: float-ring-spin 3.5s linear infinite;
  pointer-events: none;
}
/* Vòng pulse mở rộng */
.float-contact a::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.45);
  animation: float-ring-pulse 2.2s ease-in-out infinite;
  pointer-events: none;
}
.float-contact a:hover { transform: scale(1.1); }
.float-contact img { width: 30px; height: 30px; position: relative; z-index: 1; }

/* ---- Section title on dark background ---- */
/* Dùng class này thay vì text-white (bị override bởi theme.css cascade) */
.section-title.on-dark { color: #fff; }

/* ---- Eyebrow câu hỏi dẫn dắt flow ---- */
.eyebrow {
  text-align: center;
  display: inline-block;
  width: 100%;
  color: var(--brand);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .03em;
  margin-bottom: .5rem;
}

/* ---- FAQ accordion ---- */
.faq-item {
  background: #fff;
  border: 1px solid #EFE6D6;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  color: var(--brand);
  font-size: 1.5rem;
  font-weight: 400;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { content: '-'; }
.faq-item p {
  margin-top: .85rem;
  color: #6b6b6b;
  font-size: .95rem;
  line-height: 1.6;
}
