:root {
  --pvi-primary: #0d4f8c;
  --pvi-primary-deep: #073564;
  --pvi-secondary: #1f3c88;
  --pvi-accent: #ed1c24;
  --pvi-accent-deep: #c8141b;
  --pvi-ink: #0f172a;
  --pvi-surface: #f8fafc;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Be Vietnam Pro", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--pvi-ink);
  background:
    radial-gradient(circle at 0% 0%, rgba(13, 79, 140, 0.14), transparent 38%),
    radial-gradient(circle at 100% 0%, rgba(237, 28, 36, 0.11), transparent 35%),
    var(--pvi-surface);
}

.site-shell {
  min-height: 100vh;
}

.program-slider {
  position: relative;
  min-height: clamp(26rem, 70vh, 42rem);
  overflow: hidden;
  border-radius: 0 0 2rem 2rem;
}

.program-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.045);
  transition: opacity 0.8s ease, transform 1.1s ease;
  pointer-events: none;
}

.program-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--slide-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
}

.program-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(130deg, rgba(4, 18, 42, 0.82) 10%, rgba(7, 53, 100, 0.6) 58%, rgba(237, 28, 36, 0.38) 100%);
}

.program-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.program-slide.is-active::before {
  transform: scale(1);
  transition: transform 6.6s ease;
}

.program-slide-inner {
  position: relative;
  z-index: 2;
}

.slider-dot {
  height: 0.625rem;
  width: 0.625rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.35);
  transition: width 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.slider-dot.is-active {
  width: 1.8rem;
  background: var(--pvi-accent);
  border-color: var(--pvi-accent);
}

.glass-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px);
}

.spotlight-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  box-shadow: 0 24px 50px -32px rgba(15, 23, 42, 0.45);
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}

.spotlight-card:hover {
  transform: translateY(-6px);
  border-color: rgba(13, 79, 140, 0.38);
  box-shadow: 0 32px 65px -30px rgba(5, 19, 45, 0.5);
}

.spotlight-card::before {
  content: "";
  position: absolute;
  inset: -35% -35% auto auto;
  height: 13rem;
  width: 13rem;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(237, 28, 36, 0.17), rgba(237, 28, 36, 0));
  pointer-events: none;
}

.section-title {
  font-family: "Merriweather", Georgia, "Times New Roman", serif;
  letter-spacing: -0.01em;
}

.info-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 9999px;
  border: 1px solid rgba(13, 79, 140, 0.22);
  background: rgba(13, 79, 140, 0.08);
  color: var(--pvi-primary-deep);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
}

.process-step {
  border-radius: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 14px 36px -32px rgba(15, 23, 42, 0.58);
}

.faq-item {
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: #fff;
}

.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  padding: 1rem 1.1rem;
  color: var(--pvi-ink);
  cursor: pointer;
}

.faq-trigger-icon {
  flex: none;
  margin-top: 0.22rem;
  height: 1.15rem;
  width: 1.15rem;
  border-radius: 9999px;
  background: rgba(237, 28, 36, 0.12);
  color: var(--pvi-accent-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 700;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.faq-trigger[aria-expanded="true"] .faq-trigger-icon {
  transform: rotate(45deg);
  background: rgba(237, 28, 36, 0.22);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.faq-content {
  padding: 0 1.1rem 1rem;
  color: rgb(71, 85, 105);
  line-height: 1.65;
}

.bhxh-consult-card {
  border-radius: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(180deg, rgba(13, 79, 140, 0.92) 0%, rgba(7, 53, 100, 0.86) 100%);
  padding: 1.1rem;
  box-shadow: 0 26px 54px -34px rgba(2, 12, 27, 0.7);
  backdrop-filter: blur(2px);
}

.bhxh-consult-title {
  margin: 0 0 0.8rem;
  text-align: center;
  font-size: 1.72rem;
  line-height: 1.15;
  letter-spacing: 0.02em;
  font-weight: 900;
  color: #eef4ff;
}

.bhxh-consult-input {
  width: 100%;
  border-radius: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(235, 237, 242, 0.98);
  color: #1e293b;
  font-size: 1.05rem;
  padding: 0.8rem 0.86rem;
}

.bhxh-consult-input::placeholder {
  color: #8b8f96;
}

.bhxh-consult-input:focus {
  outline: 0;
  border-color: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.bhxh-service-option {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #eef4ff;
  font-size: 1.02rem;
  font-weight: 700;
}

.bhxh-service-option input[type="radio"] {
  height: 1.15rem;
  width: 1.15rem;
  accent-color: var(--pvi-accent);
}

.bhxh-consult-submit {
  border: 0;
  border-radius: 0.55rem;
  background: linear-gradient(180deg, var(--pvi-accent) 0%, var(--pvi-accent-deep) 100%);
  color: #fff;
  text-align: center;
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  padding: 0.62rem 0.95rem;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.bhxh-consult-submit:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.quote-shell {
  border-radius: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: #ffffff;
  box-shadow: 0 24px 55px -40px rgba(15, 23, 42, 0.58);
}

.quote-field label {
  display: block;
  margin-bottom: 0.42rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: rgb(30, 41, 59);
}

.quote-field input,
.quote-field select,
.quote-field textarea {
  width: 100%;
  border-radius: 0.85rem;
  border: 1px solid rgb(203, 213, 225);
  background: #fff;
  font-size: 0.95rem;
  color: rgb(15, 23, 42);
  padding: 0.68rem 0.8rem;
}

.quote-field input:focus,
.quote-field select:focus,
.quote-field textarea:focus {
  border-color: rgba(237, 28, 36, 0.85);
  box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.16);
  outline: 0;
}

.insurance-type-grid {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 860px) {
  .insurance-type-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.insurance-type-option {
  border: 1px solid rgb(212, 217, 229);
  background: #f5f7fd;
  color: #111827;
  border-radius: 0.65rem;
  padding: 0.72rem 0.6rem;
  text-align: center;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.insurance-type-option.is-active {
  border-color: #39b7d1;
  background: #39b7d1;
  color: #fff;
}

.addon-toggle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 0.75rem;
  border: 1px solid rgb(226, 232, 240);
  background: rgb(248, 250, 252);
  font-size: 0.87rem;
  color: rgb(30, 41, 59);
  padding: 0.5rem 0.62rem;
}

.fee-card {
  border-radius: 0.95rem;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: linear-gradient(160deg, #ffffff 0%, #f8fbff 100%);
  padding: 0.9rem;
}

.fee-card p {
  margin: 0;
}

.form-feedback {
  border-radius: 0.75rem;
  padding: 0.78rem 0.88rem;
  font-size: 0.875rem;
}

.form-feedback.is-error {
  border: 1px solid rgba(239, 68, 68, 0.28);
  background: rgba(254, 242, 242, 1);
  color: rgb(153, 27, 27);
}

.form-feedback.is-success {
  border: 1px solid rgba(16, 185, 129, 0.34);
  background: rgb(236, 253, 245);
  color: rgb(6, 95, 70);
}

/* --- Khối liên hệ demo (BHXH): gradient cố định, không phụ thuộc Tailwind JIT --- */
.pvi-contact-strip {
  background-image: linear-gradient(90deg, #132858 0%, #1f3c88 50%, #dc2626 100%);
  box-shadow: 0 24px 50px -36px rgba(15, 23, 42, 0.45);
}

/* --- CTA đồng bộ mẫu Downloads/pvi (nền trắng / viền kính) --- */
.pvi-btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: #fff;
  color: #1f3c88;
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1.25;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.pvi-btn-solid:hover {
  background: #f1f5f9;
  color: #132858;
}

.pvi-btn-solid--wide {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.pvi-btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1.25;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.pvi-btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.8);
}

.pvi-slider-arrow {
  cursor: pointer;
  flex-shrink: 0;
}

.pvi-slider-arrow:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Fluent Forms BHXH: nút gửi giống .bhxh-consult-submit (demo HTML) */
.pvi-bhxh-fluent-form .ff-btn-submit,
.pvi-bhxh-fluent-form button[type="submit"],
.pvi-bhxh-fluent-form input[type="submit"] {
  border: 0 !important;
  border-radius: 0.55rem !important;
  background: linear-gradient(180deg, var(--pvi-accent) 0%, var(--pvi-accent-deep) 100%) !important;
  color: #fff !important;
  font-size: 1.9rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.02em !important;
  padding: 0.62rem 0.95rem !important;
  cursor: pointer !important;
  transition: filter 0.2s ease, transform 0.2s ease !important;
  width: 100%;
  text-transform: none;
}

.pvi-bhxh-fluent-form .ff-btn-submit:hover,
.pvi-bhxh-fluent-form button[type="submit"]:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* Fluent Forms phi nhân thọ: giống nút đỏ demo (rounded-xl, text-sm, uppercase tracking) */
.pvi-lead-form .ff-btn-submit,
.pvi-lead-form button[type="submit"],
.pvi-lead-form input[type="submit"] {
  border: 0 !important;
  border-radius: 0.75rem !important;
  background: #dc2626 !important;
  color: #fff !important;
  font-size: 0.875rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.16em !important;
  padding: 0.75rem 1.25rem !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease, transform 0.2s ease !important;
  width: 100%;
  text-transform: uppercase;
}

.pvi-lead-form .ff-btn-submit:hover,
.pvi-lead-form button[type="submit"]:hover {
  background: #b91c1c !important;
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .program-slide,
  .program-slide::before,
  .slider-dot,
  .spotlight-card,
  .faq-panel,
  .faq-trigger-icon,
  .bhxh-consult-submit {
    transition: none;
  }
}

