/**
 * Stylesheet: Landing Final CTA (Cốm Vòng)
 * Chuẩn màu theo AGENTS.md:
 * - Nút Social: Cốm Green (#A8C957) -> Hover (#8FB83F, chữ trắng)
 * - Nút Hotline: Nền trắng viền Cốm Green/Green Dark (#527A32)
 */

.final-cta-section {
  background: radial-gradient(circle at 50% 15%, #F4F8DE 0%, #FFFDF5 65%, #FAF7EB 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-block: clamp(60px, 7vw, 96px);
}

.final-cta-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(600px, 90vw);
  height: 350px;
  background: radial-gradient(circle, rgba(255, 209, 102, 0.18) 0%, rgba(168, 201, 87, 0.12) 50%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.final-cta-section .container {
  position: relative;
  z-index: 1;
}

.final-lantern-visual {
  width: 46px;
  height: 58px;
  margin: 0 auto 16px;
  filter: drop-shadow(0 0 16px rgba(255, 209, 102, 0.45)) drop-shadow(0 0 32px rgba(244, 162, 97, 0.22));
  animation: lanternSwing 5s ease-in-out infinite alternate;
}

.final-cta-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body, "Be Vietnam Pro", sans-serif);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green-dark, #527A32);
  margin-bottom: 12px;
}

.final-cta-eyebrow::before,
.final-cta-eyebrow::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1.5px;
  background: var(--com-green, #A8C957);
}

.final-cta-title {
  font-family: var(--font-heading, "Noto Serif", serif);
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 700;
  color: var(--deep-green, #31572C);
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.final-cta-sub {
  font-family: var(--font-body, "Be Vietnam Pro", sans-serif);
  font-size: clamp(14.5px, 1.2vw, 17px);
  color: #55724d;
  margin-bottom: 34px;
  font-style: italic;
  max-width: 580px;
  margin-inline: auto;
  line-height: 1.6;
}

.final-cta-wrapper {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Hàng nút Socials theo chuẩn màu Cốm Green (#A8C957) */
.final-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  flex-wrap: wrap;
}

.btn-cta-social {
  flex: 1 1 240px;
  max-width: 300px;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 14px;
  padding: 12px 24px !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  text-align: left;
  background-color: var(--com-green, #A8C957) !important;
  color: var(--deep-green, #31572C) !important;
  border: 1.5px solid #94BE3F !important;
  box-shadow: 0 4px 16px rgba(168, 201, 87, 0.32);
  transition: all var(--transition-normal, 0.3s cubic-bezier(0.16, 1, 0.3, 1));
  /* Reset Flatsome .btn overrides */
  height: auto !important;
  min-height: unset !important;
  aspect-ratio: unset !important;
  line-height: 1.25 !important;
  letter-spacing: normal !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  white-space: nowrap;
}

.btn-cta-social:hover,
.btn-cta-social:focus-visible {
  background-color: var(--com-green-hover, #8FB83F) !important;
  border-color: #8FB83F !important;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(143, 184, 63, 0.45);
}

.btn-cta-social .btn-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(49, 87, 44, 0.12);
  transition: transform 0.25s ease;
}

.btn-cta-social:hover .btn-icon-wrap {
  transform: scale(1.08);
}

.btn-cta-social .btn-icon-wrap img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.btn-cta-social .btn-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.btn-cta-social .btn-title {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: inherit;
}

.btn-cta-social .btn-sub {
  font-size: 11.5px;
  font-weight: 500;
  color: inherit;
  opacity: 0.85;
  margin-top: 2px;
}

/* Đường phân cách */
.final-cta-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  margin: 22px 0 18px;
}

.final-cta-divider::before,
.final-cta-divider::after {
  content: "";
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: #D9E2C4;
}

.final-cta-divider span {
  font-family: var(--font-body, "Be Vietnam Pro", sans-serif);
  font-size: 12.5px;
  color: #6d8866;
  font-style: italic;
  white-space: nowrap;
}

/* Hàng nút Hotline */
.btn-cta-hotline {
  flex: 1 1 240px;
  max-width: 290px;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px;
  padding: 11px 22px !important;
  border-radius: 999px !important;
  background: #FFFFFF !important;
  color: var(--deep-green, #31572C) !important;
  border: 1.5px solid #C4D6AB !important;
  box-shadow: 0 4px 14px rgba(49, 87, 44, 0.06);
  text-decoration: none !important;
  text-align: left;
  transition: all var(--transition-normal, 0.3s cubic-bezier(0.16, 1, 0.3, 1));
  /* Reset Flatsome .btn overrides */
  height: auto !important;
  min-height: unset !important;
  aspect-ratio: unset !important;
  line-height: 1.25 !important;
  letter-spacing: normal !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  white-space: nowrap;
}

.btn-cta-hotline:hover,
.btn-cta-hotline:focus-visible {
  background: var(--bg-cream, #FFFDF5) !important;
  border-color: var(--green-dark, #527A32) !important;
  color: var(--green-dark, #527A32) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(82, 122, 50, 0.16);
}

.btn-cta-hotline .hotline-phone-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #EDF5E3;
  color: var(--green-dark, #527A32);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.btn-cta-hotline:hover .hotline-phone-icon {
  transform: rotate(15deg) scale(1.08);
  background: var(--green-dark, #527A32);
  color: #FFFFFF;
}

.btn-cta-hotline .hotline-content {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.btn-cta-hotline .hotline-tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #657e5e;
  text-transform: uppercase;
}

.btn-cta-hotline .hotline-number {
  font-size: 15px;
  font-weight: 700;
  color: var(--deep-green, #31572C);
  letter-spacing: 0.02em;
}

/* Mobile responsive */
@media (max-width: 767px) {
  .final-cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .btn-cta-social,
  .btn-cta-hotline {
    max-width: 100% !important;
    width: 100% !important;
    padding: 13px 20px !important;
    height: auto !important;
    min-height: unset !important;
    aspect-ratio: unset !important;
    flex: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    border-radius: 999px !important;
  }
  .final-cta-divider span {
    font-size: 11.5px;
  }
}
