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

:root {
  --dark:       #172B2E;
  --blue:       #0F81E9;
  --orange:     #FFA902;
  --red:        #ff6112;
  --light-gray: #E6eefa;
  --white:      #fff;
  --border:     #d0dce0;
  --text:       #172B2E;
  --muted:      #354d52;
}

body {
  font-family: 'Barlow', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  background: var(--light-gray);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── HEADER ── */
header {
  background: var(--dark);
  color: var(--white);
  padding: 3rem 2rem 2.5rem;
  text-align: center;
}

header h1 {
  font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.1;
  text-transform: uppercase;
}

header h1 span { color: var(--orange); }

header p {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

header p a {
  color: rgba(255,255,255,0.6);
  text-decoration: underline;
}

.poc-badge {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.3rem 0.8rem;
  background: var(--orange);
  color: var(--dark);
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
}

/* ── MAIN ── */
main {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

/* ── BANNER ── */
#banner {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 3px;
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
}

#banner.success {
  background: #d4f5e9;
  color: #0d4a2e;
  border-left: 4px solid #1ab069;
  display: block;
}

#banner.error {
  background: #fdecea;
  color: #7a1a10;
  border-left: 4px solid var(--red);
  display: block;
}

#banner a { color: inherit; font-weight: 700; }

/* ── FORM CARD ── */
.form-card {
  background: var(--white);
  border-left: 4px solid var(--dark);
  border-radius: 4px;
  padding: 2rem;
}

.form-section-label {
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--red);
  color: var(--white);
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 1.5rem;
}

/* ── FIELDS ── */
.field { margin-bottom: 1.25rem; }
.field:last-of-type { margin-bottom: 0; }

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.field label .optional {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.8rem;
}

.field label .required { color: var(--red); }

.field input[type="text"],
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.6rem 0.85rem;
  font-family: 'Barlow', Arial, sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s;
  appearance: none;
}

.field input[type="text"]:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(15,129,233,0.15);
}

.field textarea { resize: vertical; line-height: 1.5; }

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23354d52' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.25rem;
  cursor: pointer;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

/* ── QUILL ── */
.ql-toolbar {
  border-color: var(--border) !important;
  border-radius: 3px 3px 0 0;
  background: #f8f9fb;
}

.ql-container {
  border-color: var(--border) !important;
  border-radius: 0 0 3px 3px;
  font-size: 0.9rem;
  font-family: 'Barlow', Arial, sans-serif;
}

.ql-editor { min-height: 180px; }
.ql-editor.ql-blank::before { color: var(--muted); font-style: normal; }
.ql-container.ql-error { border-color: var(--red) !important; }

/* ── SUBMIT ── */
.submit-btn {
  display: block;
  width: 100%;
  margin-top: 1.75rem;
  padding: 0.9rem 2rem;
  background: var(--red);
  color: var(--white);
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  border-bottom: 3px solid rgba(0,0,0,0.18);
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.submit-btn:hover:not(:disabled) {
  background: #e04a00;
  transform: translateY(-1px);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 1.5rem 2rem;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: var(--white);
}

footer a { color: var(--muted); text-decoration: underline; }
footer a:hover { color: var(--blue); }
