/* ThinqShift: Contact form (lives at the bottom of about.html, id="contact"). */

.contact-wrap { max-width: 620px; margin: 0 auto; }
.is-hidden { display: none !important; }

.contact-card {
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow);
}

.contact-form { display: flex; flex-direction: column; gap: 22px; }
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.form-row label .optional { font-weight: 400; color: var(--muted); }

.form-row input,
.form-row select,
.form-row textarea {
  font: inherit; font-size: 0.95rem; color: var(--text);
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; width: 100%;
  transition: border-color .2s ease, background .2s ease;
}
.form-row input::placeholder, .form-row textarea::placeholder { color: var(--muted); }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--border2); background: rgba(136,39,171,0.12);
}
.form-row textarea { resize: vertical; min-height: 100px; }
.form-row select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%23b39ecf' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.form-row select:invalid { color: var(--muted); }
.form-row select option { background: var(--card-solid); color: var(--text); }

.contact-form .btn-primary { align-self: flex-start; border: none; cursor: pointer; }
.contact-form .btn-primary:disabled { opacity: .7; cursor: default; transform: none; }
.form-note { font-size: 0.82rem; color: var(--muted); line-height: 1.6; margin-top: -6px; }
.form-note a { color: var(--lilac); text-decoration: underline; text-underline-offset: 2px; }

.form-status { font-size: 0.9rem; color: var(--text); line-height: 1.6; }
.form-status.is-error { color: var(--coral); }

.cf-success { text-align: center; padding: 20px 0; }
.cf-success-icon { width: 52px; height: 52px; margin: 0 auto 18px; }
.cf-success h2 { font-size: 1.5rem; margin-bottom: 12px; color: var(--white); }
.cf-success p { color: var(--muted); font-size: 1rem; line-height: 1.7; max-width: 440px; margin: 0 auto; }
.cf-success p a { color: var(--lilac); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 640px) { .contact-form .btn-primary { align-self: stretch; text-align: center; } }
