/** Leadcraft Marketing — Contact Page */

/** Override frontpage #hero styles — on this page the section is a header, not a viewport */
#hero {
  height: auto;
  display: block;
  padding: 100px 16px 0;
  background: var(--b900);
}

/** Hero article mirrors the section header layout of the frontpage contact block */
#hero article {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

#hero article h1.section-title { color: var(--b100); }
#hero article h2.section-label { color: var(--orange); }

/** CONTACT TRUST LINE */
.contact-trust {
  font-family: var(--font-mono);
  font-size: .7rem; letter-spacing: 2px;
  color: var(--b100); margin-top: 8px;
  display: block;
}

/** CONTACT LAYOUT */
.contact-inner  { max-width: 760px; margin: 0 auto; position: relative; z-index: 1; }
.contact-info-row {
  display: flex; gap: 16px; margin: 32px 0 40px; flex-wrap: wrap;
  justify-content: center;
}
.cinfo {
  background: rgba(29,61,94,.4);
  border: 1px solid var(--border-subtle);
  border-radius: 8px; padding: 16px 24px;
  text-align: left; transition: border-color .25s;
  width: 100%; box-sizing: border-box;
}
.cinfo:hover  { border-color: rgba(240,120,35,.4); }
.cinfo-lbl {
  font-family: var(--font-mono);
  font-size: .62rem; letter-spacing: 3px; color: var(--orange); margin-bottom: 4px;
}
.cinfo-val { font-size: .95rem; color: var(--white); font-weight: 600; }

/** FORM INPUTS */
.fi {
  background: var(--glass-bg);
  border: 1px solid var(--border-mid);
  border-radius: 6px; padding: 14px 18px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem; outline: none; width: 100%;
  transition: border-color .2s, background .2s;
}
.fi::placeholder      { color: rgba(240,248,255,.25); }
.fi:focus             { border-color: var(--orange); background: rgba(240,120,35,.05); }
.fi--error            { border-color: #ef4444 !important; background: rgba(239,68,68,.07) !important; }
.fi-msg {
  font-size: .82rem; margin: 4px 0 6px; padding: 0 4px;
  color: #fca5a5;
}
.fi-msg--server {
  padding: 12px 16px; border-radius: 6px; margin-bottom: 12px;
  background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.25);
}
select.fi             { cursor: pointer; background: var(--b100); color: var(--b700); }
select.fi option      { background: var(--b100); color: var(--b700); }
select.fi:focus       { background: var(--b700); color: var(--b100); border-color: var(--b300); }
textarea.fi           { resize: vertical; min-height: 120px; }

/** FORM GRID */
.form-grid  { display: flex; flex-direction: column; gap: 14px; }
.form-row3  { display: grid; grid-template-columns: 1fr; gap: 14px; }

@media (min-width: 640px) {
  .cinfo     { width: auto; }
  .form-row3 { grid-template-columns: 1fr 1fr; }
}

/** Honeypot — off-screen, invisible to humans but present in the DOM for bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  tab-index: -1;
}

/** Form input wrapper — keeps error message stacked below its input inside the grid cell */
.fi-wrap { display: flex; flex-direction: column; }
.fi-wrap .fi { width: 100%; }

/** MERCI PAGE */

body:has(#merci) {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body:has(#merci) main {
  flex: 1;
  display: flex;
  align-items: center;
}

#merci {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  background: var(--b900);
  position: relative;
  overflow: hidden;
}

#merci::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(0,229,255,.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(102,51,255,.06) 0%, transparent 60%);
  pointer-events: none;
}

.merci-inner {
  text-align: center;
  max-width: 600px;
  position: relative;
  z-index: 1;
}

.merci-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 32px;
  color: #22c55e;
  filter: drop-shadow(0 0 16px rgba(34,197,94,.4));
}

.merci-ring {
  stroke-dasharray: 226;
  stroke-dashoffset: 226;
  animation: merci-ring 0.6s ease forwards;
}

.merci-check {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: merci-check 0.4s ease 0.55s forwards;
}

@keyframes merci-ring {
  to { stroke-dashoffset: 0; }
}

@keyframes merci-check {
  to { stroke-dashoffset: 0; }
}

.merci-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--b100);
  line-height: 1.15;
  margin: 0 0 24px;
}

.merci-body {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--b100);
  margin: 0 0 20px;
}

.merci-body strong {
  color: var(--b100);
  font-weight: 600;
}

.merci-hint {
  font-size: .85rem;
  color: var(--b100);
  margin: 0 0 40px;
  letter-spacing: .02em;
}

.merci-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: 1px solid var(--border-mid);
  border-radius: 6px;
  color: var(--b100);
  font-size: .9rem;
  font-family: var(--font-body);
  text-decoration: none;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  transition: color .2s, border-color .2s, background .2s;
}

.merci-back:hover {
  color: var(--orange);
  border-color: var(--orange);
  background: rgba(0,229,255,.05);
}

@media (min-width: 640px) {
  #hero { padding: 100px 24px 0; }
}

@media (min-width: 900px) {
  #hero { padding: 100px 48px 0; }
}
