/* Contact page (tools/contact.mjs). Flat surfaces with thin borders; the demonstration repeats the
   floating form of Leadzy Formulários on the conversation background, wine for what is sent. */

.ct-hero {
  padding: clamp(36px, 4.5vw, 70px) 0 clamp(52px, 6vw, 92px);
  background: radial-gradient(ellipse 60% 85% at 88% 40%, color-mix(in srgb, var(--light-rose) 50%, transparent), transparent 85%), var(--surface-paper);
}
.ct-opening { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.ct-intro h1 { max-width: 17ch; }
.ct-lead { max-width: 46ch; margin-top: 20px; font-size: clamp(17px, 1.45vw, 19px); color: var(--on-ground-soft); }
.ct-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.ct-actions .btn .i { width: 18px; height: 18px; }
.ct-wa .brand-icon { width: 20px; height: 20px; color: #25d366; }
.ct-hours { display: flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 15px; color: var(--on-ground-soft); }
.ct-hours .i { width: 18px; height: 18px; color: var(--prompt-wine-light); }
html[data-site-theme="night"] .ct-hours .i { color: #edbdce; }

/* The demonstration: a fixed stage, so nothing below moves while it plays. */
.ct-demo { margin: 0; }
.ct-stage { position: relative; height: 584px; overflow: hidden; border: 1px solid var(--ground-hairline); border-radius: 22px; background: var(--demo-thread); }
.ct-stage > div { position: absolute; inset: 0; }
/* The demo is product UI: it keeps the light screen in the night theme too. */
.ct-stage p { color: #20181c; }
.ct-demo figcaption { margin-top: 14px; font-size: 14.5px; line-height: 1.5; color: var(--on-ground-soft); }
.ct-demo figcaption a { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--prompt-wine-light); }
html[data-site-theme="night"] .ct-demo figcaption a { color: #edbdce; }
.ct-demo figcaption .i { width: 15px; height: 15px; }

.ct-panel {
  position: absolute; right: 26px; bottom: 82px; width: min(318px, calc(100% - 40px));
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid rgb(41 25 36 / 12%); border-radius: 16px; background: #fff; color: #20181c;
  transition: opacity 320ms ease, transform 420ms var(--ease);
}
.ct-panel-head { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 8px 0 15px; border-bottom: 1px solid #ece7ea; font-size: 14px; }
.ct-close { display: grid; place-items: center; width: 30px; height: 30px; color: #6b6168; }
.ct-close .i { width: 17px; height: 17px; }
.ct-form { position: relative; display: grid; gap: 10px; padding: 14px 16px 12px; }
.ct-form-title { margin: -14px -16px 2px; padding: 9px 16px; background: linear-gradient(180deg, #fbe5ec, #fff5f8); font-size: 13px; font-weight: 600; }
.ct-field > span { display: block; font-size: 13px; font-weight: 600; line-height: 1.3; }
.ct-field em { font-style: normal; color: #bd205e; }
.ct-hint { display: block; margin-top: 2px; font-size: 11.5px; color: #73686d; }
.ct-field > i { display: flex; align-items: center; height: 32px; margin-top: 5px; padding: 0 11px; border: 1px solid #ddd5da; border-radius: 9px; font-style: normal; font-size: 13px; transition: border-color 180ms ease; }
.ct-phone small { margin-right: 10px; padding-right: 10px; border-right: 1px solid #e6dfe3; font-size: 12.5px; color: #594f54; }
.ct-field output { white-space: nowrap; overflow: hidden; }
.ct-field[data-active] > i { border-color: var(--prompt-wine); box-shadow: inset 0 0 0 1px var(--prompt-wine); }
.ct-field[data-active] output::after { content: ''; display: inline-block; width: 1px; height: 15px; margin-left: 1px; vertical-align: -3px; background: #20181c; animation: ct-caret 900ms steps(1) infinite; }
.ct-choice p { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 5px; }
.ct-choice p i { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 11px; border: 1px solid #ddd5da; border-radius: 9px; font-style: normal; font-size: 13px; transition: border-color 180ms ease, background-color 180ms ease; }
.ct-choice p i::before { content: ''; width: 14px; height: 14px; flex: none; border: 1.5px solid #a99ea4; border-radius: 50%; transition: border 180ms ease; }
.ct-demo[data-step="4"] [data-pick], .ct-demo[data-step="5"] [data-pick], .ct-demo[data-step="6"] [data-pick] { border-color: var(--prompt-wine); background: #faf2f6; }
.ct-demo[data-step="4"] [data-pick]::before, .ct-demo[data-step="5"] [data-pick]::before, .ct-demo[data-step="6"] [data-pick]::before { border: 4.5px solid var(--prompt-wine); }
.ct-submit { display: grid; place-items: center; height: 38px; margin-top: 2px; border-radius: 9px; background: var(--prompt-wine); color: #fff; font-size: 13.5px; font-weight: 600; transition: transform 140ms ease, background-color 140ms ease; }
.ct-demo[data-step="5"] .ct-submit { transform: scale(.97); background: var(--prompt-ink); }
.ct-made { text-align: center; font-size: 11px; color: #73686d; }

.ct-thanks {
  position: absolute; inset: 44px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 24px; text-align: center; background: #fff; opacity: 0; pointer-events: none; transition: opacity 260ms ease;
}
.ct-check { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 6px; border-radius: 50%; background: #f6e8ef; color: var(--prompt-wine); }
.ct-check .i { width: 24px; height: 24px; }
.ct-thanks b { font-size: 18px; letter-spacing: -.02em; }
.ct-thanks p { font-size: 13.5px; color: #594f54; }
.ct-progress { width: 150px; height: 4px; margin-top: 14px; overflow: hidden; border-radius: 4px; background: #efe7eb; }
.ct-progress i { display: block; width: 0; height: 100%; background: var(--prompt-wine); }
.ct-demo[data-step="6"] .ct-thanks { opacity: 1; }
.ct-demo[data-step="6"] .ct-progress i { width: 100%; transition: width 2400ms linear; }
.ct-demo[data-step="7"] .ct-panel, .ct-demo[data-step="8"] .ct-panel { opacity: 0; transform: translateY(14px); }

/* What follows the reply: the WhatsApp conversation opens, and the lead is already in the CRM. */
.ct-after { position: absolute; left: 50%; top: 50%; display: grid; gap: 12px; width: min(320px, calc(100% - 40px)); transform: translate(-50%, -58%); pointer-events: none; }
.ct-wa-card, .ct-crm-card { border: 1px solid rgb(41 25 36 / 12%); border-radius: 16px; background: #fff; color: #20181c; opacity: 0; transform: translateY(10px); transition: opacity 320ms ease, transform 420ms var(--ease); }
.ct-wa-card { padding: 12px 14px 14px; }
.ct-wa-card header { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid #ece7ea; font-size: 13.5px; }
.ct-wa-card .brand-icon { width: 20px; height: 20px; color: #25d366; }
.ct-wa-card p { width: fit-content; max-width: 88%; margin-left: auto; padding: 9px 12px; border-radius: 12px 12px 4px 12px; background: var(--demo-reply); color: var(--demo-reply-ink); font-size: 13.5px; line-height: 1.4; }
.ct-crm-card { padding: 12px 14px; }
.ct-crm-card header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.ct-crm-card header span { padding: 3px 9px; border-radius: 20px; background: var(--light-mauve); color: #452238; font-size: 11.5px; font-weight: 600; }
.ct-crm-card header small { font-size: 11.5px; color: #73686d; }
.ct-crm-card b { font-size: 14.5px; }
.ct-crm-card p { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12.5px; color: #594f54; }
.ct-crm-card .brand-icon { width: 14px; height: 14px; color: #25d366; }
.ct-demo[data-step="7"] .ct-wa-card, .ct-demo[data-step="8"] .ct-wa-card, .ct-demo[data-step="8"] .ct-crm-card { opacity: 1; transform: none; }

/* A page of the visitor's site behind the form, so the corner button reads as part of a site. */
.ct-site { position: absolute; inset: 0; padding: 26px 28px; }
.ct-site i { display: block; height: 10px; border-radius: 6px; background: rgb(69 34 56 / 9%); }
.ct-site i:nth-child(1) { width: 34%; height: 12px; margin-bottom: 26px; }
.ct-site i:nth-child(2) { width: 52%; height: 20px; margin-bottom: 12px; background: rgb(69 34 56 / 13%); }
.ct-site i:nth-child(3) { width: 44%; margin-bottom: 8px; }
.ct-site i:nth-child(4) { width: 38%; margin-bottom: 22px; }
.ct-site i:nth-child(5) { width: 40%; height: 120px; border-radius: 12px; background: rgb(255 255 255 / 55%); border: 1px solid rgb(69 34 56 / 8%); }
.ct-launcher { position: absolute; right: 26px; bottom: 24px; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px 0 15px; border-radius: 999px; background: var(--prompt-wine); color: #fff; font-size: 14px; font-weight: 600; }
.ct-launcher .brand-icon { width: 20px; height: 20px; color: #fff; }

@keyframes ct-caret { 50% { opacity: 0; } }

/* Channels. */
.ct-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.ct-card { display: flex; flex-direction: column; padding: clamp(20px, 2vw, 28px); border: 1px solid var(--ground-hairline); border-radius: 16px; background: var(--surface-paper); }
.ct-card-sales { background: color-mix(in srgb, var(--light-rose) 42%, var(--surface-paper)); border-color: color-mix(in srgb, var(--light-rose) 80%, transparent); }
.ct-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--ground-raised); border: 1px solid var(--ground-hairline); color: var(--prompt-wine-light); }
html[data-site-theme="night"] .ct-icon { color: #edbdce; }
.ct-icon .i, .ct-icon .brand-icon { width: 22px; height: 22px; }
.ct-icon-wa .brand-icon { color: #25d366; }
.ct-card h3 { margin-top: 18px; }
.ct-card strong { margin-top: 6px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: var(--on-ground); overflow-wrap: anywhere; }
.ct-card p { flex: 1; margin-top: 8px; font-size: 15.5px; color: var(--on-ground-soft); }
.ct-card .btn, .ct-card .link-arrow { align-self: flex-start; margin-top: 18px; }
.ct-card .btn { min-height: 46px; padding: 0 18px; font-size: 15px; }

/* Hours, company data and offices. */
.ct-info-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.ct-info h2 { font-size: clamp(24px, 2.2vw, 30px); }
.ct-facts { display: grid; gap: 34px; }
.ct-facts p { margin-top: 12px; font-size: 18px; color: var(--on-ground-soft); }
.ct-facts h3 { display: flex; align-items: center; gap: 9px; font-size: 17px; }
.ct-facts h3 .i { width: 20px; height: 20px; color: var(--prompt-wine-light); }
.ct-facts address { margin-top: 10px; font-style: normal; font-size: 15.5px; line-height: 1.65; color: var(--on-ground-soft); }
.ct-places h2 { margin-bottom: 18px; }
.ct-places figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ct-places figcaption .i { width: 17px; height: 17px; color: var(--prompt-wine-light); }

/* Other subjects and social profiles. */
.ct-topics h2 { margin-bottom: 22px; font-size: clamp(24px, 2.2vw, 30px); }
.ct-topics ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ct-topics li a { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 16px; align-items: center; padding: 18px 20px; border: 1px solid var(--ground-hairline); border-radius: 14px; background: var(--surface-paper); transition: border-color 160ms ease; }
.ct-topics li b { font-size: 17px; color: var(--on-ground); }
.ct-topics li span { grid-row: 2; margin-top: 3px; font-size: 15px; color: var(--on-ground-soft); }
.ct-topics li .i { grid-row: 1 / span 2; grid-column: 2; width: 20px; height: 20px; color: var(--on-ground-soft); transition: transform 180ms var(--ease); }
.ct-social { margin-top: 44px; }
.ct-social h3 { font-size: 17px; }
.ct-social p { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.ct-social-link { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 16px; border: 1px solid var(--ghost-line); border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--on-ground); transition: border-color 160ms ease; }
.ct-social-link .i { width: 15px; height: 15px; transform: rotate(-45deg); }
@media (hover: hover) and (pointer: fine) {
  .ct-topics li a:hover, .ct-social-link:hover { border-color: var(--ground-line); }
  .ct-topics li a:hover .i { transform: translateX(3px); }
  .ct-demo figcaption a:hover { text-decoration: underline; text-underline-offset: 3px; }
}
:is(.ct-topics li a, .ct-social-link, .ct-demo figcaption a, .ct-places a):focus-visible { outline: 2px solid var(--on-ground); outline-offset: 2px; }

@media (max-width: 1100px) {
  .ct-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .ct-opening, .ct-info-grid { grid-template-columns: 1fr; }
  .ct-intro h1 { max-width: 16ch; }
}
@media (max-width: 640px) {
  .ct-cards, .ct-topics ul { grid-template-columns: 1fr; }
  .ct-actions .btn { flex: 1 1 100%; }
  /* On phones the real floating button already sits in this corner: the demo shows only the panel. */
  .ct-stage { height: 500px; }
  .ct-panel { right: 16px; bottom: 20px; width: calc(100% - 32px); }
  .ct-launcher { display: none; }
  .company-page .ct-places .company-cities { grid-template-columns: 1fr 1fr; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .ct-panel, .ct-wa-card, .ct-crm-card, .ct-thanks, .ct-submit, .ct-progress i { transition: none !important; }
  .ct-field[data-active] output::after { animation: none; }
}
