@import "../inner.css";

body { padding-top: 72px; }
.demo-layout {
  display: grid;
  grid-template-columns: 480px 1fr;
  min-height: calc(100vh - 72px);
}
.demo-form-panel {
  padding: 56px 48px;
  background: var(--off-white);
  border-right: 1px solid var(--gray-100);
  overflow-y: auto;
}
.demo-form-header { margin-bottom: 36px; }
.demo-form-header h1 { font-size: clamp(28px, 3vw, 40px); margin: 12px 0 16px; }
.demo-form-header p { font-size: 15px; color: var(--gray-500); }
.demo-form { display: grid; gap: 18px; }
.form-group { display: grid; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--navy); }
.form-group input {
  padding: 11px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-dark);
  background: white;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-group input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34,197,227,.12);
}
.form-group input::placeholder { color: var(--gray-300); }
.demo-submit { width: 100%; margin-top: 8px; }
.demo-disclaimer { font-size: 12px; color: var(--gray-300); text-align: center; }

/* SIMULADOR WHATSAPP */
.demo-simulator-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ECE5DD;
  padding: 40px;
  position: relative;
}
.simulator-placeholder {
  text-align: center;
  max-width: 380px;
  padding: 48px 32px;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}
.placeholder-icon { font-size: 48px; margin-bottom: 20px; }
.simulator-placeholder h3 { color: var(--navy); font-size: 22px; margin-bottom: 12px; }
.simulator-placeholder p  { font-size: 14px; color: var(--gray-500); margin-bottom: 24px; }
.placeholder-features { display: grid; gap: 8px; text-align: left; }
.pf-item { font-size: 14px; color: var(--gray-700); display: flex; align-items: center; gap: 8px; }
.pf-item span { color: #27ae60; font-weight: 700; }

/* WhatsApp UI */
.whatsapp-simulator {
  width: 100%;
  max-width: 420px;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 180px);
  max-height: 680px;
}
.wa-header {
  background: #075E54;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.wa-avatar {
  width: 40px; height: 40px;
  background: var(--cyan);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px;
  color: var(--navy);
  flex-shrink: 0;
}
.wa-info { flex: 1; }
.wa-name   { font-size: 15px; font-weight: 600; color: white; }
.wa-status { font-size: 12px; color: rgba(255,255,255,.65); }
.wa-badge  { font-size: 11px; background: rgba(255,255,255,.15); color: white; padding: 3px 8px; border-radius: 10px; }
.wa-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #ECE5DD;
}
.wa-msg {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.55;
  position: relative;
}
.wa-msg.bot { background: white; align-self: flex-start; border-top-left-radius: 2px; }
.wa-msg.user { background: #DCF8C6; align-self: flex-end; border-top-right-radius: 2px; }
.wa-msg-time { font-size: 10px; color: var(--gray-300); text-align: right; margin-top: 4px; }
.wa-typing {
  background: white;
  padding: 10px 16px;
  border-radius: 8px;
  align-self: flex-start;
  font-size: 13px;
  color: var(--gray-300);
}
.wa-input-area {
  padding: 12px 14px;
  background: #F0F0F0;
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--gray-100);
}
.wa-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 20px;
  border: none;
  background: white;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  color: var(--text-dark);
}
.wa-send {
  width: 40px; height: 40px;
  background: #075E54;
  color: white;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
  flex-shrink: 0;
}
.wa-send:hover { background: #128C7E; }

@media(max-width: 900px) {
  .demo-layout { grid-template-columns: 1fr; }
  .demo-simulator-panel { min-height: 60vh; }
  .whatsapp-simulator { max-height: 500px; }
}
@media(max-width: 600px) {
  .demo-form-panel { padding: 32px 24px; }
}
