/* vinrelais.pro — offer v2 (new.html) */
.offer-v2 {
  --v2-radius: 18px;
  --v2-radius-sm: 12px;
  --v2-radius-pill: 999px;
}

.offer-v2 .badge-container,
.offer-v2 .mobile-cta-dock {
  display: none !important;
}

.offer-v2 .btn,
.offer-v2 .header__cta,
.offer-v2 .hero-form .btn {
  border-radius: var(--v2-radius-pill) !important;
}

.offer-v2 .trust-pill,
.offer-v2 .step,
.offer-v2 .fraud-card,
.offer-v2 .review-card,
.offer-v2 .license-card,
.offer-v2 .case-analysis-form-wrapper,
.offer-v2 .cta-band,
.offer-v2 .form-modal__content,
.offer-v2 .hero-form-wrapper {
  border-radius: var(--v2-radius) !important;
}

.offer-v2 .form-group input,
.offer-v2 .form-group--light input,
.offer-v2 .iti input {
  border-radius: var(--v2-radius-sm) !important;
}

.offer-v2 .hero__title {
  letter-spacing: -0.02em;
}

.offer-v2-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(247,250,255,0.88) 100%),
    url('v2/dept-bg.jpg') center/cover no-repeat;
  opacity: 0.3;
}

.offer-v2 > :not(.offer-v2-bg) {
  position: relative;
  z-index: 1;
}

.dept-team {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.dept-team__card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: start;
  background: #fff;
  border: 1px solid rgba(30, 111, 217, 0.12);
  border-radius: var(--v2-radius);
  padding: 14px;
  box-shadow: 0 10px 28px rgba(15, 35, 66, 0.06);
}

.dept-team__card img {
  width: 120px;
  height: 150px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.dept-team__body h3 {
  font-size: 1.02rem;
  margin-bottom: 4px;
}

.dept-team__role {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e6fd9;
  margin-bottom: 8px;
}

.dept-team__body p:last-child {
  font-size: 0.88rem;
  line-height: 1.45;
  color: #4a5f78;
}

@media (max-width: 959px) {
  .dept-team { grid-template-columns: 1fr; }
}

.lead-chat__avatar--photo {
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.lead-chat__avatar--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-widget__launcher-icon svg {
  width: 34px;
  height: 34px;
  display: block;
}

.chat-widget__launcher--pulse {
  animation: launcherPulse 1.2s ease-in-out infinite;
}

.chat-widget--attention .chat-widget__panel {
  box-shadow: 0 0 0 0 rgba(30, 111, 217, 0.35);
  animation: panelPulse 1.2s ease-in-out infinite;
}

.chat-toast {
  pointer-events: auto;
  width: min(340px, calc(100vw - 24px));
  background: #fff;
  border: 1px solid rgba(30, 111, 217, 0.18);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 16px 40px rgba(15, 35, 66, 0.16);
  transform: translateY(8px);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.chat-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.chat-toast strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 4px;
  color: #0f2342;
}

.chat-toast p {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #4a5f78;
  margin: 0;
}

@keyframes launcherPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 14px 34px rgba(30, 111, 217, 0.35); }
  50% { transform: scale(1.04); box-shadow: 0 0 0 10px rgba(30, 111, 217, 0.12), 0 18px 38px rgba(30, 111, 217, 0.42); }
}

@keyframes panelPulse {
  0%, 100% { box-shadow: 0 24px 60px rgba(15, 35, 66, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(30, 111, 217, 0.12), 0 24px 60px rgba(15, 35, 66, 0.22); }
}

.hero-kpis {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
}

.hero-kpis li {
  background: #fff;
  border: 1px solid rgba(30, 111, 217, 0.14);
  border-radius: 14px;
  padding: 10px 12px;
  text-align: left;
}

.hero-kpis strong {
  display: block;
  font-size: 0.95rem;
  color: #0f2342;
  line-height: 1.2;
}

.hero-kpis span {
  display: block;
  margin-top: 4px;
  font-size: 0.74rem;
  line-height: 1.35;
  color: #5b6f88;
}

@media (max-width: 959px) {
  .hero-kpis {
    grid-template-columns: 1fr;
  }
}

/* Floating chat widget */
.chat-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 12000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}

.chat-widget__panel {
  pointer-events: auto;
  width: min(380px, calc(100vw - 24px));
  max-height: min(620px, calc(100dvh - 110px));
  transform: translateY(calc(100% + 24px)) scale(0.96);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease, visibility 0.28s;
}

.chat-widget.is-open .chat-widget__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
}

.chat-widget__launcher {
  pointer-events: auto;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 12px 14px;
  border-radius: var(--v2-radius-pill);
  background: linear-gradient(135deg, #1e6fd9, #1557b0);
  color: #fff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 14px 34px rgba(30, 111, 217, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.chat-widget__launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(30, 111, 217, 0.42);
}

.chat-widget.is-open .chat-widget__launcher {
  transform: scale(0.96);
  opacity: 0.95;
}

.chat-widget__launcher-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  font-size: 1rem;
}

.chat-widget__launcher-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ff4d4f;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.chat-widget.is-open .chat-widget__launcher-badge {
  display: none;
}

.lead-chat {
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid rgba(30, 111, 217, 0.14);
  border-radius: 22px;
  box-shadow:
    0 24px 60px rgba(15, 35, 66, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  flex-direction: column;
}

.lead-chat__top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 14px 16px;
  background: #0f2342;
  color: #fff;
}

.lead-chat__head-text {
  flex: 1;
  min-width: 0;
}

.lead-chat__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.82rem;
  background: linear-gradient(135deg, #1e6fd9, #49a7ff);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.lead-chat__name {
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.2;
}

.lead-chat__status {
  margin-top: 2px;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.78);
  display: flex;
  align-items: center;
  gap: 6px;
}

.lead-chat__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3cff8f;
  box-shadow: 0 0 0 0 rgba(60, 255, 143, 0.45);
  animation: chatPing 1.8s ease-out infinite;
}

.chat-widget__close {
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.lead-chat__messages {
  flex: 1;
  padding: 16px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 260px;
  overflow-y: auto;
}

.chat-msg {
  max-width: 92%;
  padding: 11px 13px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.45;
  animation: chatIn 0.35s ease both;
}

.chat-msg--bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid rgba(15, 35, 66, 0.08);
  color: #1b2b42;
  border-bottom-left-radius: 6px;
}

.chat-msg--user {
  align-self: flex-end;
  background: #1e6fd9;
  color: #fff;
  border-bottom-right-radius: 6px;
}

.chat-msg--typing {
  align-self: flex-start;
  background: #eef4fc;
  color: #5b6f88;
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.chat-msg--typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7ea6d8;
  animation: chatDot 1.1s infinite ease-in-out;
}

.chat-msg--typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-msg--typing span:nth-child(3) { animation-delay: 0.3s; }

.lead-chat__choices {
  padding: 8px 12px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chat-choice {
  border: 1px solid rgba(30, 111, 217, 0.25);
  background: #fff;
  color: #0f2342;
  border-radius: var(--v2-radius-pill);
  padding: 9px 13px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.chat-choice:hover {
  transform: translateY(-1px);
  background: #edf5ff;
  border-color: rgba(30, 111, 217, 0.45);
}

.lead-chat__form-panel {
  padding: 0 12px 14px;
  overflow-y: auto;
  max-height: 340px;
}

.lead-chat__form-panel:not([hidden]) {
  animation: chatIn 0.35s ease both;
}

.lead-chat__form .form-title {
  font-size: 1rem;
  margin-bottom: 4px;
}

.lead-chat__form .form-subtitle {
  margin-bottom: 12px;
  font-size: 0.86rem;
}

.lead-chat__form .btn {
  width: 100%;
}

@media (max-width: 639px) {
  .chat-widget {
    right: 12px;
    bottom: 12px;
  }

  .chat-widget__launcher-text {
    display: none;
  }

  .chat-widget__launcher {
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
}

@keyframes chatIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes chatDot {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
  40% { transform: translateY(-4px); opacity: 1; }
}

@keyframes chatPing {
  0% { box-shadow: 0 0 0 0 rgba(60, 255, 143, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(60, 255, 143, 0); }
  100% { box-shadow: 0 0 0 0 rgba(60, 255, 143, 0); }
}
