/* call-setup.css — Styles for the AI Call Answering setup page */

.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 48px 100px;
}

.page-header {
  margin-bottom: 56px;
  max-width: 600px;
}

.page-title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  color: var(--fg);
  margin-bottom: 16px;
  margin-top: 12px;
}

.page-sub {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* Two-column layout */
.setup-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Left: how-it-works panel */
.how-panel-inner {
  position: sticky;
  top: 32px;
}

.how-panel h2 {
  font-size: 22px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 32px;
}

.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 40px;
}

.steps-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-dot {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green);
  color: #F5EEE6;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.steps-list strong {
  display: block;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 4px;
  font-size: 15px;
}

.steps-list p {
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.65;
}

.steps-list a {
  color: var(--accent);
  text-decoration: none;
}

.steps-list a:hover {
  text-decoration: underline;
}

.webhook-url {
  display: block;
  margin-top: 6px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--green);
  word-break: break-all;
  font-family: 'Courier New', monospace;
  cursor: text;
  user-select: all;
}

.script-preview {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.script-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.script-preview blockquote {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--fg);
  line-height: 1.65;
  margin-bottom: 14px;
}

.script-note {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* Right: form + cards */
.form-panel {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}

.card h2 {
  font-size: 20px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 24px;
}

/* Form */
.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
}

.field-optional {
  font-weight: 400;
  color: var(--fg-muted);
}

.field input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  color: var(--fg);
  background: var(--bg);
  transition: border-color 0.15s;
  outline: none;
}

.field input:focus {
  border-color: var(--green);
}

.btn-primary {
  width: 100%;
  padding: 13px;
  background: var(--green);
  color: #F5EEE6;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 4px;
}

.btn-primary:hover {
  background: var(--green-light);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-msg {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
}

.form-msg.success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.form-msg.error {
  background: #fce8e6;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

.form-msg.hidden {
  display: none;
}

/* Setups list */
.setup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.setup-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.setup-row:first-child {
  padding-top: 0;
}

.setup-info {
  min-width: 0;
}

.setup-label {
  font-weight: 600;
  font-size: 15px;
  color: var(--fg);
  margin-bottom: 2px;
}

.setup-phones {
  font-size: 13px;
  color: var(--fg-muted);
}

.setup-badge {
  flex-shrink: 0;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}

.btn-delete {
  flex-shrink: 0;
  background: none;
  border: 1.5px solid var(--border);
  color: var(--fg-muted);
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.15s, color 0.15s;
}

.btn-delete:hover {
  border-color: #ef9a9a;
  color: #c62828;
}

/* Call logs */
.log-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.log-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.log-row:first-child {
  padding-top: 0;
}

.log-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 14px;
  margin-top: 1px;
}

.log-caller {
  font-weight: 600;
  font-size: 14px;
  color: var(--fg);
  margin-bottom: 2px;
}

.log-meta {
  font-size: 12px;
  color: var(--fg-muted);
}

.empty-msg {
  color: var(--fg-muted);
  font-size: 14px;
  padding: 8px 0;
}

/* Mobile */
@media (max-width: 768px) {
  .page-wrap { padding: 40px 24px 80px; }
  .setup-layout { grid-template-columns: 1fr; }
  .how-panel-inner { position: static; }
}
