/* =====================================================================
   M-CSC · contact.css - contact form (light editorial)
   Requires base.css. Re-skin of the existing web3forms contact form.
   ===================================================================== */

.contact-main { padding-top: clamp(40px, 6vw, 76px); padding-bottom: clamp(48px, 7vw, 96px); }
.contact-col { max-width: 720px; margin-inline: auto; }
.contact-head { margin-bottom: 8px; }
.contact-head .eyebrow { margin-bottom: 14px; }
.contact-head h1 { margin-bottom: 14px; }
.contact-head .lead { color: var(--muted); }

form { display: grid; gap: 18px; margin-top: 30px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

label { display: block; margin-bottom: 7px; font-size: 0.9rem; font-weight: 600; color: var(--text); }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text);
  padding: 12px 14px;
  font-size: 1rem;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
input::placeholder, textarea::placeholder { color: var(--dim); }
select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236c6c75' stroke-width='2.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; padding-right: 40px; }
input:focus, textarea:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
textarea { min-height: 140px; resize: vertical; }
@media (min-width: 901px) { input:not([type="checkbox"]), select { height: 50px; } }

.check { display: flex; gap: 11px; align-items: flex-start; color: var(--text-soft); font-size: 0.92rem; }
.check input { width: 18px; height: 18px; margin-top: 3px; padding: 0; flex-shrink: 0; accent-color: var(--brand); }
.check a { color: var(--brand-strong); text-decoration: none; border-bottom: 1px solid rgba(75, 95, 214, 0.35); }
.check a:hover { border-bottom-color: var(--brand); }

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }

/* Emergency mode (security-notfall) */
.emergency-box { display: none; margin-top: 2px; padding: 18px; border-radius: var(--r-md); border: 1px solid rgba(197, 48, 45, 0.3); background: var(--danger-tint); }
.emergency-box.is-visible { display: block; }
.emergency-box p { margin: 0; color: #7a2320; }
.emergency-primary { border-radius: var(--r-sm); display: grid; gap: 12px; }
.emergency-primary .btn { background: var(--danger); color: #fff; }
.emergency-primary .btn:hover { background: #a8302d; }
.emergency-tips { display: none; margin-top: 14px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.emergency-tips.is-visible { display: block; }
.emergency-tips h3 { margin: 0 0 10px; font-size: 1rem; }
.emergency-tips ul { margin: 0; padding-left: 18px; color: var(--text-soft); display: grid; gap: 7px; font-size: 0.94rem; }

/* Thank-you overlay */
.thankyou-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center; text-align: center; padding: 24px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease);
}
.thankyou-overlay.is-open { opacity: 1; pointer-events: auto; }
.thankyou-box {
  max-width: 560px; width: min(92vw, 560px);
  border-radius: var(--r-xl); padding: 44px 32px;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateY(12px) scale(0.99); transition: transform 0.4s var(--ease-out);
}
.thankyou-overlay.is-open .thankyou-box { transform: none; }
.thankyou-title { margin: 0; font-size: clamp(2rem, 7vw, 3rem); }
.thankyou-text { margin: 12px 0 26px; font-size: 1.1rem; color: var(--muted); }

/* Entrance reveal */
.fly-in { opacity: 0; transform: translateY(16px); transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); transition-delay: var(--fly-delay, 0ms); }
.fly-in.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .fly-in, .fly-in.is-in { opacity: 1; transform: none; transition: none; } }

@media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }
