/* ── AOC Inquiry Form ─────────────────────────────────────────────────────── */
:root {
  --navy: #1a2744;
  --navy-light: #2a3f6a;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --bg: #f3f4f6;
  --card: #ffffff;
  --text: #1f2937;
  --text-muted: #6b7280;
  --border: #d1d5db;
  --success: #059669;
  --error: #dc2626;
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  background: var(--navy);
  color: #fff;
  padding: 2rem 1.5rem;
  text-align: center;
}
.logo {
  max-height: 48px;
  margin-bottom: 0.5rem;
  background: #fff;
  padding: 6px 14px;
  border-radius: 6px;
}
header h1 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
header p  { font-size: 0.95rem; opacity: 0.8; margin-top: 0.25rem; }

/* Main */
main {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 2rem 1rem;
}

/* Card */
.form-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  padding: 2rem;
  width: 100%;
  max-width: 560px;
}

/* Fields */
.field { margin-bottom: 1.25rem; }
.row { display: flex; gap: 1rem; }
.row .field { flex: 1; }

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}
.req { color: var(--error); }
.req-either { color: var(--accent); }
.hint { font-size: 0.8rem; color: var(--text-muted); margin: -0.75rem 0 1rem; }

input, select, textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
textarea { resize: vertical; }

/* Checkbox */
.checkbox-field { margin-bottom: 1.5rem; }
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  width: auto;
  margin-top: 0.2rem;
  accent-color: var(--accent);
}

/* Button */
button[type="submit"] {
  width: 100%;
  padding: 0.75rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
button[type="submit"]:hover { background: var(--accent-hover); }
button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Status message */
.status {
  display: none;
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
}
.status.success { display: block; background: #ecfdf5; color: var(--success); border: 1px solid #a7f3d0; }
.status.error   { display: block; background: #fef2f2; color: var(--error);   border: 1px solid #fecaca; }
.status.info    { display: block; background: #eff6ff; color: var(--accent);  border: 1px solid #bfdbfe; }

/* Success state (public mode) */
.success-heading {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.success-detail {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.submit-another-btn {
  background: none;
  border: 1px solid var(--success);
  color: var(--success);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.submit-another-btn:hover {
  background: var(--success);
  color: #fff;
}

/* Zoho links in success message (agent mode) */
.zoho-links { font-size: 0.85rem; }
.zoho-links a { color: var(--success); font-weight: 600; text-decoration: underline; }
.zoho-links a:hover { color: #047857; }

/* Contact match banner */
.match-banner {
  display: none;
  margin: -0.5rem 0 1rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  background: #eff6ff;
  color: var(--navy);
  border: 1px solid #bfdbfe;
}
.match-banner.visible { display: flex; align-items: center; gap: 0.5rem; }
.match-banner .match-fill {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}
.match-banner .match-fill:hover { text-decoration: underline; }

/* TCPA consent notice */
.tcpa-notice {
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.tcpa-notice p {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}
.tcpa-notice a {
  color: var(--text-muted);
  text-decoration: underline;
}

/* Hide reCAPTCHA badge (allowed by Google ToS when text attribution is shown) */
.grecaptcha-badge { visibility: hidden !important; }
.recaptcha-notice { font-size: 0.75rem; color: var(--text-muted); text-align: center; margin-top: 0.75rem; }
.recaptcha-notice a { color: var(--text-muted); text-decoration: underline; }

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Wide mode — expand form card (?wide=1) */
body.wide .form-card { max-width: 800px; }

/* Embed mode — strip branding for iframe use (?embed=1) */
body.embed { background: transparent; min-height: auto; }
body.embed header { display: none; }
body.embed footer { display: none; }
body.embed main { padding: 0; }
body.embed .form-card {
  box-shadow: none;
  border-radius: 0;
  max-width: 100%;
  padding: 1rem;
}

/* Responsive */
@media (max-width: 500px) {
  .row { flex-direction: column; gap: 0; }
  header h1 { font-size: 1.25rem; }
  .form-card { padding: 1.25rem; }
}
