/* ============================================
   Talk to Sales — Vercel-pattern layout
   ============================================ */

/* ── Page layout ────────────────────────────── */

.tts-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 48px 80px;
}

.tts-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}

/* ── Left column ────────────────────────────── */

.tts-left {
  padding-top: 16px;
}

.tts-h1 {
  font-size: 32px;
  font-weight: 600;
  line-height: 40px;
  letter-spacing: -1.28px;
  color: var(--text-primary);
  margin: 0 0 32px;
}

/* Pitch blocks with icons */
.tts-pitch {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tts-pitch-block {
}

.tts-pitch-block p {
  font-size: 16px;
  line-height: 24px;
  color: #4d4d4d;
  margin: 0;
}

.tts-pitch-block strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Divider */
.tts-divider {
  border: none;
  border-top: 1px solid #eaeaea;
  margin: 32px 0;
}

/* Cases cards */
.tts-cases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.tts-case-card {
  padding: 20px;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  background: #fafafa;
}

.tts-case-metric {
  font-size: 14px;
  line-height: 20px;
  color: #4d4d4d;
  margin: 0 0 16px;
}

.tts-case-metric strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Quote */
.tts-quote {
  padding: 24px;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  background: #fafafa;
}

.tts-quote p {
  font-size: 16px;
  line-height: 24px;
  color: #4d4d4d;
  margin: 0;
}

.tts-quote strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ── Right column ───────────────────────────── */

.tts-right {
  padding: 40px;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  background: #ffffff;
}

/* ── Form (State A) ─────────────────────────── */

.tts-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tts-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.tts-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tts-field label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.tts-optional {
  font-weight: 400;
  color: #666;
}

.tts-field input,
.tts-field select,
.tts-field textarea {
  font-family: var(--font-geist-sans), -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  background: #fff;
  color: var(--text-primary);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
}

.tts-field textarea {
  height: auto;
  min-height: 150px;
  padding: 10px 12px;
  resize: vertical;
}

.tts-field input:focus,
.tts-field select:focus,
.tts-field textarea:focus {
  border-color: #0a0a0a;
  box-shadow: 0 0 0 1px #0a0a0a;
}

.tts-field input::placeholder,
.tts-field textarea::placeholder {
  color: #a1a1a1;
}

.tts-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 5L6 8L9 5' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* Phone row */
.tts-phone-row {
  display: flex;
  gap: 8px;
}

.tts-country-code {
  font-family: var(--font-geist-sans), -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  height: 40px;
  padding: 0 8px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  background: #fff;
  color: var(--text-primary);
  outline: none;
  width: 100px;
  flex-shrink: 0;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 5L6 8L9 5' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  padding-right: 22px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tts-country-code:focus {
  border-color: #0a0a0a;
  box-shadow: 0 0 0 1px #0a0a0a;
}

.tts-phone-row input[type="tel"] {
  font-family: var(--font-geist-sans), -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  background: #fff;
  color: var(--text-primary);
  outline: none;
  flex: 1;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tts-phone-row input[type="tel"]:focus {
  border-color: #0a0a0a;
  box-shadow: 0 0 0 1px #0a0a0a;
}

.tts-phone-row input[type="tel"]::placeholder {
  color: #a1a1a1;
}

/* Error state */
.tts-error {
  display: none;
  font-size: 13px;
  color: #e00;
}

.tts-field.has-error input,
.tts-field.has-error select,
.tts-field.has-error textarea {
  border-color: #e00;
}

.tts-field.has-error .tts-error {
  display: block;
}

/* Privacy Policy toggle */
.tts-privacy {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  background: #fafafa;
}

.tts-privacy-text {
  flex: 1;
}

.tts-privacy-heading {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 6px;
}

.tts-privacy-body {
  font-size: 13px;
  line-height: 18px;
  color: #666;
  margin: 0;
}

/* iOS-style toggle */
.tts-toggle {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 24px;
  cursor: pointer;
  margin-top: 2px;
}

.tts-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.tts-toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #d4d4d4;
  border-radius: 24px;
  transition: background 0.2s ease;
}

.tts-toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  top: 2px;
  left: 2px;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.tts-toggle input:checked + .tts-toggle-slider {
  background: #0a0a0a;
}

.tts-toggle input:checked + .tts-toggle-slider::before {
  transform: translateX(20px);
}

/* Submit — 3 explicit states */
.tts-submit {
  width: 100%;
  height: 48px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 9999px;
  margin-top: 4px;
  background: #0a0a0a;
  color: #ffffff;
  border: 1px solid #0a0a0a;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.tts-submit:hover:not(:disabled) {
  background: #333;
  border-color: #333;
}

/* Disabled: gray until privacy accepted */
.tts-submit:disabled {
  background: #d4d4d4;
  color: #6b6b6b;
  border-color: #d4d4d4;
  cursor: not-allowed;
}

/* Loading state applied via JS class */
.tts-submit.is-loading {
  opacity: 0.7;
  cursor: wait;
}

.tts-submit-error {
  font-size: 13px;
  color: #e00;
  margin: 0;
  min-height: 0;
}

/* ── Thank you (State B) ───────────────────── */

.tts-thankyou-block {
  margin-bottom: 32px;
}

.tts-thankyou-h2 {
  font-size: 28px;
  font-weight: 600;
  line-height: 36px;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin: 0;
}

.tts-thankyou-fade {
  color: #888;
}

/* Survey card */
.tts-survey-card {
  padding: 24px;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  margin-bottom: 16px;
}

.tts-survey-heading {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 12px;
}

.tts-survey-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

select.tts-survey-select {
  font-family: var(--font-geist-sans), -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  height: 40px;
  min-height: 40px;
  padding: 0 36px 0 12px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  background: #fff;
  color: var(--text-primary);
  outline: none;
  flex: 1;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 5L6 8L9 5' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tts-survey-select:focus {
  border-color: #0a0a0a;
  box-shadow: 0 0 0 1px #0a0a0a;
}

.tts-survey-btn {
  height: 40px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 9999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.tts-survey-thanks {
  font-size: 14px;
  font-weight: 500;
  color: #0a0a0a;
  margin: 8px 0 0;
}

/* Banner card */
.tts-banner-card {
  padding: 24px;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  background: #fafafa;
}

.tts-banner-text p {
  font-size: 15px;
  line-height: 22px;
  color: #4d4d4d;
  margin: 0 0 16px;
}

.tts-banner-text strong {
  color: var(--text-primary);
}

.tts-banner-btn {
  display: inline-flex;
  align-items: center;
}

/* ── Mobile ─────────────────────────────────── */

@media (max-width: 768px) {
  .tts-page {
    padding: 0 0 80px;
  }

  .tts-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  /* ── Card 1: Heading + Subheads (bg cinza, como Vercel) ── */
  .tts-left {
    order: 1;
    padding: 32px 24px;
    background: #fafafa;
  }

  .tts-h1 {
    font-size: 24px;
    line-height: 32px;
    text-align: center;
    margin-bottom: 24px;
  }

  .tts-pitch-block p {
    font-size: 15px;
    text-align: center;
  }

  /* Hide divider, cases, and quote in left column on mobile —
     they render AFTER the form via separate mobile sections */
  .tts-divider,
  .tts-cases,
  .tts-quote {
    display: none;
  }

  /* ── Card 2: Form / Thank-you ── */
  .tts-right {
    order: 2;
    padding: 32px 24px;
    border: none;
    border-radius: 0;
    border-top: 1px solid #eaeaea;
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
  }

  .tts-form {
    gap: 24px;
  }

  .tts-row-2 {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .tts-field input,
  .tts-field select,
  .tts-field textarea {
    height: 48px;
    padding: 0 16px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
  }

  /* Override: country code must stay small inside phone row */
  .tts-phone-row .tts-country-code {
    width: 80px;
    min-width: 80px;
    max-width: 80px;
  }

  .tts-field textarea {
    height: auto;
    padding: 12px 16px;
  }

  .tts-phone-row {
    display: flex;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
  }

  .tts-country-code {
    height: 48px;
    font-size: 14px;
    width: 80px;
    flex-shrink: 0;
    box-sizing: border-box;
    padding: 0 4px;
    padding-right: 18px;
    background-position: right 4px center;
  }

  .tts-phone-row input[type="tel"] {
    height: 48px;
    font-size: 16px;
    padding: 0 16px;
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
  }

  .tts-submit {
    height: 48px;
    font-size: 16px;
    margin-top: 8px;
    margin-bottom: 24px;
  }

  /* Privacy: heading + toggle on same row, body below */
  .tts-privacy {
    flex-wrap: wrap;
    padding: 16px;
    gap: 8px;
  }

  .tts-privacy-text {
    display: contents;
  }

  .tts-privacy-heading {
    flex: 1;
    font-size: 15px;
    margin: 0;
    line-height: 24px;
  }

  .tts-toggle {
    margin-top: 0;
  }

  .tts-privacy-body {
    width: 100%;
    font-size: 13px;
    line-height: 18px;
  }

  /* Thank-you state */
  .tts-thankyou-h2 {
    font-size: 24px;
    line-height: 32px;
  }

  .tts-survey-row {
    flex-direction: column;
    gap: 12px;
  }

  select.tts-survey-select {
    width: 100%;
    height: 48px;
    min-height: 48px;
    font-size: 16px;
    padding: 0 36px 0 16px;
    box-sizing: border-box;
  }

  button.tts-survey-btn {
    width: 100%;
    height: 48px;
    min-height: 48px;
    font-size: 16px;
  }
}

/* ── Mobile: cases + quote shown AFTER form via duplicated section ── */
/* In mobile, the left column hides cases/quote. We use CSS to show
   the ones in tts-left only on desktop. On mobile, we rely on
   tts-mobile-social (added in HTML) which appears after the form. */
.tts-mobile-social {
  display: none;
}

@media (max-width: 768px) {
  .tts-mobile-social {
    display: block;
    order: 3;
    padding: 24px;
  }

  .tts-mobile-social .tts-cases {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
  }

  .tts-mobile-social .tts-case-card {
    padding: 16px;
  }

  .tts-mobile-social .tts-quote {
    display: block;
  }

  /* Move ContactDrawer FAB up on talk-to-sales to avoid submit overlap */
  .cd-fab {
    bottom: 80px;
  }
}

/* Honeypot field - hidden from users, catches bots */
.honeypot { display: none; }
