/* The contact card once it sends (lead.js adds .lead-send when /assessment/send is set up). Fields, buttons and colours come from style.css. */

.send-field .send-hint {
  margin: -0.15rem 0 0.4rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.send-consent {
  margin: 0 0 0.75rem;
}

.send-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.4rem;
  background: var(--card);
  cursor: pointer;
}

.send-consent-label input {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.18rem 0 0;
  flex-shrink: 0;
  accent-color: var(--amber);
}

.send-consent-label:has(input:checked) {
  border-color: var(--amber);
  box-shadow: inset 0 0 0 1px var(--amber);
  background: var(--amber-tint);
}

.send-consent-label:has(input[aria-invalid="true"]) {
  border-color: #A3412E;
}

.send-consent-label:has(input:focus-visible) {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.send-summary {
  margin: 0 0 1rem;
}

/* The padding and the negative margin make a 44px tap target without changing the line. */
.send-details {
  padding: 0.6rem 0;
  margin: -0.6rem 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--teal-deep);
  text-decoration: underline;
  cursor: pointer;
}

.send-turnstile {
  max-width: 100%;
  margin: 0 0 1rem;
}

.send-turnstile:empty {
  margin: 0;
}

.send-turnstile iframe {
  max-width: 100%;
}

.lead-send .lead-form .btn:disabled {
  opacity: 0.65;
  cursor: progress;
}

.lead-send .lead-form .btn:disabled:hover {
  background: var(--teal);
}

.send-status:empty {
  display: none;
}

.send-status .form-message {
  margin: 1rem 0 0;
}

.send-status .form-message:not(.form-error) {
  padding: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.send-status a {
  overflow-wrap: anywhere;
}

.send-done h3 {
  margin: 0 0 0.25rem;
  color: var(--teal-deep);
}

.send-done p {
  margin: 0;
  overflow-wrap: anywhere;
}

.send-dialog {
  box-sizing: border-box;
  width: min(36rem, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 1.5rem 1.25rem;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: var(--fg);
  box-shadow: 0 18px 50px rgba(28, 35, 44, 0.28);
}

.send-dialog::backdrop {
  background: rgba(28, 35, 44, 0.55);
}

.send-dialog h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.send-dialog p {
  font-size: 0.95rem;
}

.send-dialog .send-close {
  margin-top: 0.5rem;
}

@media print {
  .send-dialog,
  .send-turnstile {
    display: none !important;
  }
}
