/* CTA Closer – now inside unified footer */
/* .section-cta styles removed — CTA is wrapped in .footer-cta-area */


.cta-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.cta-h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
}

.cta-sub {
  font-size: 1rem;
  color: #c8cde0;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 460px;
}

.cta-chat-window {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-dark-shadow);
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.cta-chat-label {
  padding: 16px 20px;
  font-size: .8rem;
  color: #b8bed8;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.cta-chat-body {
  padding: 20px;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Messenger-style input bar (dark) */
.cta-chat-inputbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  background: rgba(255, 255, 255, .03);
}

.cta-chat-input-field {
  flex: 1;
  min-height: 40px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 20px;
  padding: 4px 16px;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.cta-chat-input-field:focus-within {
  border-color: rgba(79, 110, 247, .45);
  box-shadow: 0 0 0 3px rgba(79, 110, 247, .1);
}

.cta-chat-input-field input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 8px 0;
  color: #fff;
  font-family: var(--ff);
  font-size: .88rem;
  outline: none;
  caret-color: var(--accent);
}

.cta-chat-input-field input::placeholder {
  color: rgba(255, 255, 255, .35);
}

.cta-chat-input-field input:disabled {
  opacity: .5;
  cursor: default;
}

.cta-chat-send-btn {
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
  box-shadow: 0 2px 10px rgba(79, 110, 247, .3);
}

.cta-chat-send-btn:hover {
  background: #3a5bf0;
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(79, 110, 247, .4);
}

.cta-chat-send-btn:disabled {
  opacity: .4;
  cursor: default;
  transform: none;
}

/* Error shake */
.cta-chat-input-field.shake {
  animation: inputShake .45s ease;
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .15) !important;
}

@keyframes inputShake {

  0%,
  100% {
    transform: translateX(0);
  }

  15% {
    transform: translateX(-6px);
  }

  30% {
    transform: translateX(5px);
  }

  45% {
    transform: translateX(-4px);
  }

  60% {
    transform: translateX(3px);
  }

  75% {
    transform: translateX(-2px);
  }
}

/* Success state */
.cta-chat-input-field.success {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .12);
}

.cta-chat-input-field.success input::placeholder {
  color: rgba(255, 255, 255, .85);
  opacity: 1;
  font-weight: 500;
}

/* User message in dark chat */
.cta-chat-body .msg-user {
  background: var(--accent);
  color: #fff;
  align-self: flex-end;
  border-radius: 16px 16px 4px 16px;
  padding: 10px 16px;
  font-size: .85rem;
  max-width: 80%;
  animation: ctaMsgIn .35s ease;
}

.cta-chat-body .msg-bot {
  animation: ctaMsgIn .35s ease;
}

@keyframes ctaMsgIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Typing dots */
.cta-typing {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  align-self: flex-start;
}

.cta-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
  animation: ctaDotBounce 1.2s ease-in-out infinite;
}

.cta-typing span:nth-child(2) {
  animation-delay: .15s;
}

.cta-typing span:nth-child(3) {
  animation-delay: .3s;
}

@keyframes ctaDotBounce {

  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: .4;
  }

  30% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .cta-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}