/* Taskr Automations — contact, legal and 404 page styles */

/* Contact layout */
.contact-section { padding-top: 20px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.contact-grid > * { min-width: 0; }
.contact-side { display: grid; gap: 22px; }
.contact-side > * { min-width: 0; }

/* Cards on this page hold content, not links: keep them still on hover */
.contact-grid .card:hover { transform: none; box-shadow: none; border-color: var(--border); }
.form-card { padding: 36px; }
.form-card h2 { font-size: 1.6rem; margin-bottom: 6px; }
.form-card .form-intro { margin-bottom: 26px; }

.field .req { color: var(--accent-2); margin-left: 2px; }
.field .opt { color: var(--dim); font-weight: 400; margin-left: 4px; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); opacity: 1; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa3b7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field [aria-invalid="true"] { border-color: #f87171; }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.16); }

/* Honeypot: off-screen for people, still present for bots */
.hp-field { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.form-actions .form-status { flex: 1 1 220px; }
.form .btn[disabled] { opacity: .6; cursor: progress; transform: none; box-shadow: none; }
.form-note a, .form-status a, .form-success a, .faq details a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }

/* Success state */
.form-success { text-align: left; padding: 8px 0; }
.form-success:focus { outline: none; }
.form-success .icon { background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.35); color: var(--ok); }
.form-success h2 { font-size: 1.7rem; }

/* Side cards */
.contact-side h2 { font-size: 1.25rem; margin-bottom: 10px; }
.email-link { display: inline-block; font-family: var(--display); font-weight: 600; font-size: 1.08rem; color: var(--text); overflow-wrap: anywhere; word-break: break-word; border-bottom: 1px solid rgba(34, 211, 238, 0.5); transition: color .2s, border-color .2s; }
.email-link:hover { color: var(--accent-2); border-color: var(--accent-2); }

.steps { counter-reset: step; display: grid; gap: 18px; margin: 16px 0 0; padding: 0; list-style: none; }
.steps li { counter-increment: step; position: relative; padding-left: 48px; color: var(--muted); }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--mono); font-size: 0.82rem; color: #b8a6ff;
  background: var(--accent-soft); border: 1px solid rgba(124, 92, 255, 0.3);
}
.steps strong { display: block; color: var(--text); font-family: var(--display); font-weight: 600; margin-bottom: 2px; }
.contact-side .check-list { margin-top: 16px; }
.contact-side .check-list li:last-child { margin-bottom: 0; }

/* Legal pages */
.page-hero--compact { padding: 84px 0 36px; }
.page-hero--compact h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
.legal-section { padding-top: 30px; }
.legal-meta { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.04em; color: var(--dim); margin: 0; }
.prose > h2:first-child { margin-top: 0; }
.prose p, .prose li { overflow-wrap: anywhere; }
.prose strong { color: var(--text); font-weight: 600; }

/* 404 */
.notfound { padding: 130px 0 150px; text-align: center; }
.notfound .code { font-family: var(--mono); font-size: clamp(4.5rem, 18vw, 9rem); font-weight: 500; line-height: 1; letter-spacing: -0.04em; margin: 0 0 18px; }
.notfound h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.notfound .lead { margin: 0 auto 32px; }
.notfound .btn-row { justify-content: center; }
.notfound-links { margin-top: 34px; font-size: 0.95rem; color: var(--dim); }
.notfound-links a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; margin: 0 8px; white-space: nowrap; }
.notfound-links a:hover { color: var(--text); }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .form-card { padding: 24px 20px; }
  .contact-side .card { padding: 24px 20px; }
  .form-actions .btn { width: 100%; }
  .page-hero--compact { padding: 60px 0 24px; }
  .notfound { padding: 84px 0 100px; }
  .notfound .btn-row .btn { flex: 1 1 100%; }
}
