/* A-Goal Initiative — VAW-P reporting and support forms — coded styles.
   Tokens follow the live "A-Goal Civic Editorial" system, declared here rather
   than inherited, matching the pattern in the other page styles.

   Formidable paints its fields from its own styler. Everything below either
   sets what the styler has no setting for, or corrects it. The hover and focus
   rules on buttons carry three classes on purpose: the Elementor kit ships
   `.elementor-kit-6 button:hover` at specificity (0,2,1), which otherwise
   inverts every control on the page. */

.agoal-form{
  --terracotta:#D14622; --terracotta-deep:#A8351A; --navy:#1B2A41; --navy-deep:#0F1B2C;
  --ochre:#D89B3C; --cream:#FBF3E7; --cream-2:#F3E7D6; --paper:#FFFCF7; --charcoal:#2A241F;
  --ink-70:rgba(42,36,31,.72); --ink-50:rgba(42,36,31,.5); --line:rgba(42,36,31,.12);
  --serif:'Playfair Display',Georgia,serif;
  --sans:'Plus Jakarta Sans',system-ui,-apple-system,'Segoe UI',sans-serif;
  font-family:var(--sans); color:var(--charcoal); background:var(--cream);
  -webkit-font-smoothing:antialiased;
}
.agoal-form *{box-sizing:border-box;}
.agoal-form a{color:inherit;}
.agoal-form .wrap{max-width:1180px;margin-inline:auto;padding-inline:32px;}
@media (max-width:900px){ .agoal-form .wrap{padding-inline:20px;} }
.agoal-form h1,.agoal-form h2,.agoal-form h3{font-family:var(--serif)!important;}

/* ---------- emergency band ---------- */
.agoal-form .fm-alert{background:var(--terracotta);color:#fff;}
.agoal-form .fm-alert .wrap{display:flex;gap:12px;align-items:flex-start;padding-block:14px;}
.agoal-form .fm-alert-mark{flex:0 0 auto;margin-top:1px;}
.agoal-form .fm-alert p{margin:0;font-size:14px;line-height:1.6;font-weight:600;}
.agoal-form .fm-alert a{color:#fff;text-decoration:underline;text-underline-offset:3px;}

/* ---------- hero ---------- */
.agoal-form .fm-hero{padding:clamp(34px,6vw,62px) 0 clamp(20px,3vw,30px);}
.agoal-form .fm-eyebrow{
  display:inline-block;font-size:11px;font-weight:800;letter-spacing:.2em;
  text-transform:uppercase;color:var(--terracotta);
}
.agoal-form .fm-hero h1{
  margin:14px 0 0;font-size:clamp(30px,5vw,48px);line-height:1.1;
  font-weight:700;color:var(--navy);max-width:20ch;
}
.agoal-form .fm-lede{
  margin:16px 0 0;max-width:62ch;font-size:clamp(15px,2.1vw,17px);
  line-height:1.7;color:var(--ink-70);
}

/* ---------- layout ---------- */
.agoal-form .fm-body{padding:0 0 clamp(48px,8vw,96px);}
.agoal-form .fm-grid{display:grid;grid-template-columns:340px minmax(0,1fr);gap:40px;align-items:start;}
@media (max-width:1000px){ .agoal-form .fm-grid{grid-template-columns:1fr;gap:28px;} }

.agoal-form .fm-rail{position:sticky;top:104px;min-width:0;}
@media (max-width:1000px){ .agoal-form .fm-rail{position:static;} }
.agoal-form .fm-rail h2{font-size:21px;line-height:1.25;color:var(--navy);margin:0 0 10px;}
.agoal-form .fm-rail h3{font-size:14px;font-family:var(--sans)!important;font-weight:800;letter-spacing:.02em;color:var(--navy);margin:22px 0 6px;}
.agoal-form .fm-rail p{margin:0 0 12px;font-size:14.5px;line-height:1.7;color:var(--ink-70);}
.agoal-form .fm-rail ul{margin:0 0 12px;padding:0;list-style:none;display:grid;gap:10px;}
.agoal-form .fm-rail li{
  position:relative;padding-left:20px;font-size:14px;line-height:1.65;color:var(--ink-70);
}
.agoal-form .fm-rail li::before{
  content:"";position:absolute;left:3px;top:9px;width:6px;height:6px;
  border-radius:50%;background:var(--ochre);
}
.agoal-form .fm-rail a{color:var(--terracotta);font-weight:700;text-decoration:underline;text-underline-offset:3px;}
.agoal-form .fm-rail hr{border:0;border-top:1px solid var(--line);margin:22px 0;}

.agoal-form .fm-card{
  border-radius:20px;border:1px solid var(--line);background:var(--paper);
  padding:clamp(22px,3.4vw,38px);min-width:0;
}
.agoal-form .fm-missing{font-size:14px;color:var(--ink-50);}

/* ---------- Formidable: shell ---------- */
.agoal-form .frm_forms{margin:0;}
.agoal-form .frm_forms fieldset{border:0;margin:0;padding:0;min-width:0;}
.agoal-form .frm_forms legend.frm_screen_reader{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;}
.agoal-form .frm_forms .frm_form_fields > fieldset{display:grid;gap:24px;}
.agoal-form .frm_forms .frm_form_field{min-width:0;margin:0!important;}

/* ---------- Formidable: labels and help text ---------- */
.agoal-form .frm_forms .frm_primary_label{
  display:block!important;font-family:var(--sans)!important;font-size:14.5px!important;
  font-weight:700!important;line-height:1.45!important;color:var(--navy)!important;
  margin:0 0 6px!important;padding:0!important;
}
.agoal-form .frm_forms .frm_required{color:var(--terracotta)!important;margin-left:3px;font-weight:700;}
.agoal-form .frm_forms .frm_description{
  font-family:var(--sans)!important;font-size:13px!important;line-height:1.6!important;
  color:var(--ink-50)!important;margin:0 0 9px!important;font-style:normal!important;
}

/* ---------- Formidable: text inputs ---------- */
.agoal-form .frm_forms input[type=text],
.agoal-form .frm_forms input[type=email],
.agoal-form .frm_forms input[type=tel],
.agoal-form .frm_forms input[type=url],
.agoal-form .frm_forms input[type=number],
.agoal-form .frm_forms input[type=date],
.agoal-form .frm_forms select,
.agoal-form .frm_forms textarea{
  width:100%;padding:12px 14px!important;border-radius:10px!important;
  border:1px solid rgba(42,36,31,.18)!important;background:var(--cream)!important;
  font:15px/1.5 var(--sans)!important;color:var(--charcoal)!important;
  box-shadow:none!important;transition:border-color .16s ease,box-shadow .16s ease;
}
.agoal-form .frm_forms textarea{min-height:130px;resize:vertical;}
.agoal-form .frm_forms input::placeholder,
.agoal-form .frm_forms textarea::placeholder{color:rgba(42,36,31,.38)!important;}
.agoal-form .frm_forms input:focus,
.agoal-form .frm_forms select:focus,
.agoal-form .frm_forms textarea:focus{
  outline:none!important;border-color:var(--terracotta)!important;
  box-shadow:0 0 0 3px rgba(209,70,34,.15)!important;
}
.agoal-form .frm_forms select{
  appearance:none;-webkit-appearance:none;
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232A241F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;background-position:right 14px center!important;
  padding-right:38px!important;
}

/* ---------- Formidable: choices as tappable rows ----------
   The option lists here are long and often read on a phone, so each choice is a
   full-width row with its own hit area rather than a bare control beside text. */
.agoal-form .frm_forms .frm_opt_container{display:grid;gap:8px;}
.agoal-form .frm_forms .frm_checkbox,
.agoal-form .frm_forms .frm_radio{margin:0!important;}
.agoal-form .frm_forms .frm_checkbox label,
.agoal-form .frm_forms .frm_radio label{
  display:flex!important;gap:11px;align-items:flex-start;
  padding:12px 14px;border-radius:11px;
  border:1px solid rgba(42,36,31,.14);background:var(--cream);
  font-family:var(--sans)!important;font-size:14.5px!important;font-weight:500!important;
  line-height:1.55!important;color:var(--charcoal)!important;cursor:pointer;
  transition:border-color .16s ease,background .16s ease;
}
.agoal-form .frm_forms .frm_checkbox label:hover,
.agoal-form .frm_forms .frm_radio label:hover{
  border-color:rgba(209,70,34,.45);background:var(--paper);
}
.agoal-form .frm_forms .frm_checkbox input[type=checkbox],
.agoal-form .frm_forms .frm_radio input[type=radio]{
  flex:0 0 auto;margin:2px 0 0!important;width:17px;height:17px;
  accent-color:var(--terracotta);cursor:pointer;
}
.agoal-form .frm_forms .frm_checkbox input:checked + span,
.agoal-form .frm_forms .frm_radio input:checked + span{font-weight:600;}
.agoal-form .frm_forms .frm_checkbox:has(input:checked) label,
.agoal-form .frm_forms .frm_radio:has(input:checked) label{
  border-color:var(--terracotta);background:rgba(209,70,34,.06);
}

/* ---------- Formidable: the static disclaimer block ---------- */
.agoal-form .frm_forms .ag-disclaimer{
  border-radius:14px;padding:18px 20px;
  background:rgba(216,155,60,.12);border:1px solid rgba(216,155,60,.38);
}
.agoal-form .frm_forms .ag-disclaimer h4{
  margin:0 0 8px;font-family:var(--sans)!important;font-size:11px;font-weight:800;
  letter-spacing:.16em;text-transform:uppercase;color:#7A5418;
}
.agoal-form .frm_forms .ag-disclaimer p{
  margin:0 0 9px;font-size:13.5px;line-height:1.65;color:#5F4418;
}
.agoal-form .frm_forms .ag-disclaimer p:last-child{margin-bottom:0;}

/* ---------- Formidable: upload ---------- */
.agoal-form .frm_forms .frm_dropzone{
  border:1px dashed rgba(42,36,31,.3)!important;border-radius:12px!important;
  background:var(--cream)!important;padding:26px 20px!important;min-height:0!important;
  transition:border-color .16s ease,background .16s ease;cursor:pointer;
}
.agoal-form .frm_forms .frm_dropzone:hover,
.agoal-form .frm_forms .frm_dropzone.dz-drag-hover{
  border-color:var(--terracotta)!important;background:var(--paper)!important;
}
.agoal-form .frm_forms .frm_dropzone .dz-message{margin:0!important;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;}
.agoal-form .frm_forms .frm_dropzone .dz-message svg{width:20px;height:20px;fill:var(--terracotta);}
.agoal-form .frm_forms .frm_dropzone .dz-message button{
  background:none!important;border:0!important;padding:0!important;margin:0!important;
  box-shadow:none!important;font-family:var(--sans)!important;font-size:14px!important;
  font-weight:700!important;color:var(--navy)!important;border-radius:0!important;
  cursor:pointer;width:auto!important;height:auto!important;
}

/* ---------- Formidable: errors ---------- */
.agoal-form .frm_forms .frm_error{
  margin-top:7px!important;font-family:var(--sans)!important;font-size:13px!important;
  font-weight:600!important;color:var(--terracotta-deep)!important;
}
.agoal-form .frm_forms .frm_error_style{
  border-radius:12px!important;padding:14px 16px!important;margin:0 0 22px!important;
  background:rgba(209,70,34,.08)!important;border:1px solid rgba(209,70,34,.32)!important;
  font-family:var(--sans)!important;font-size:14px!important;color:var(--terracotta-deep)!important;
}
.agoal-form .frm_forms .frm_blank_field input,
.agoal-form .frm_forms .frm_blank_field select,
.agoal-form .frm_forms .frm_blank_field textarea{border-color:var(--terracotta)!important;}

/* ---------- Formidable: submit ----------
   Three classes so the Elementor kit's button:hover cannot repaint it. */
.agoal-form .frm_forms .frm_submit{margin:30px 0 0!important;}
.agoal-form .frm_forms .frm_submit button,
.agoal-form .frm_forms .frm_submit input[type=submit]{
  width:100%;padding:15px 24px!important;border:0!important;border-radius:12px!important;
  background:var(--terracotta)!important;color:#fff!important;
  font-family:var(--sans)!important;font-size:15.5px!important;font-weight:700!important;
  line-height:1.2!important;cursor:pointer;box-shadow:none!important;
  transition:background .16s ease,transform .16s ease;
}
.agoal-form .frm_forms .frm_submit button:hover,
.agoal-form .frm_forms .frm_submit button:focus,
.agoal-form .frm_forms .frm_submit button:active,
.agoal-form .frm_forms .frm_submit input[type=submit]:hover,
.agoal-form .frm_forms .frm_submit input[type=submit]:focus,
.agoal-form .frm_forms .frm_submit input[type=submit]:active{
  background:var(--terracotta-deep)!important;color:#fff!important;
  border:0!important;transform:translateY(-1px);
}
.agoal-form .frm_forms .frm_submit button:focus-visible,
.agoal-form .frm_forms .frm_submit input[type=submit]:focus-visible{
  outline:3px solid rgba(209,70,34,.35)!important;outline-offset:2px;
}

/* ---------- Formidable: the message after sending ---------- */
.agoal-form .frm_message,
.agoal-form .frm_forms .frm_message{
  border-radius:16px;padding:22px 24px;
  background:rgba(27,42,65,.05);border:1px solid var(--line);
}
.agoal-form .frm_message p{margin:0 0 10px;font-size:15px;line-height:1.65;color:var(--ink-70);}
.agoal-form .frm_message p:last-child{margin-bottom:0;}
.agoal-form .frm_message b{color:var(--navy);}

/* ---------- Formidable: the signpost to the other form ---------- */
.agoal-form .frm_forms .ag-signpost{
  border-radius:14px;padding:18px 20px;
  background:rgba(27,42,65,.05);border:1px solid var(--line);
}
.agoal-form .frm_forms .ag-signpost h4{
  margin:0 0 8px;font-family:var(--sans)!important;font-size:11px;font-weight:800;
  letter-spacing:.16em;text-transform:uppercase;color:var(--navy);
}
.agoal-form .frm_forms .ag-signpost p{margin:0 0 10px;font-size:13.5px;line-height:1.65;color:var(--ink-70);}
.agoal-form .frm_forms .ag-signpost p:last-child{margin-bottom:0;}
.agoal-form .frm_forms .ag-signpost-go{
  display:inline-block;padding:10px 16px;border-radius:10px;
  background:var(--navy);color:var(--cream)!important;
  font-size:13.5px;font-weight:700;text-decoration:none;
  transition:background .16s ease;
}
.agoal-form .frm_forms .ag-signpost-go:hover,
.agoal-form .frm_forms .ag-signpost-go:focus{background:var(--navy-deep);color:var(--cream)!important;}

/* ---------- corrections after the first live pass ----------
   Formidable's grid classes (frm3, frm4) set a percentage width on the field
   container. These forms ask long questions with long answers, so every field
   reads better full width and the grid gap handles the rhythm instead.
   The styler also replaces the native checkbox and radio with its own painted
   control, which ignores accent-color, so the native control is restored. */
.agoal-form .frm_forms .frm_form_field{width:100%!important;}

.agoal-form .frm_forms input[type=checkbox],
.agoal-form .frm_forms input[type=radio]{
  appearance:auto!important;-webkit-appearance:auto!important;
  background:none!important;border:0!important;box-shadow:none!important;
  accent-color:var(--terracotta)!important;
  width:17px!important;height:17px!important;min-width:0!important;
}

/* Instructions belong above the choices they describe, not under them. */
.agoal-form .frm_forms .frm_form_field:has(.frm_opt_container){display:flex;flex-direction:column;}
.agoal-form .frm_forms .frm_form_field:has(.frm_opt_container) .frm_primary_label{order:1;}
.agoal-form .frm_forms .frm_form_field:has(.frm_opt_container) .frm_description{order:2;}
.agoal-form .frm_forms .frm_form_field:has(.frm_opt_container) .frm_opt_container{order:3;}
.agoal-form .frm_forms .frm_form_field:has(.frm_opt_container) .frm_error{order:4;}

/* Formidable lays the field container out as a 12-column grid and the frm3 /
   frm4 classes span a few of those columns. Width alone cannot undo that, so
   every field is told to span the full row instead. */
.agoal-form .frm_forms .frm_fields_container > .frm_form_field{grid-column:1 / -1!important;}
.agoal-form .frm_forms .frm_opt_container{grid-template-columns:minmax(0,1fr)!important;}

/* A fieldset sizes to its content rather than its container, so a form whose
   longest line is short ends up half the width of the card it sits in. */
.agoal-form .frm_forms fieldset{width:100%!important;min-inline-size:0!important;}
.agoal-form .frm_forms .frm_fields_container{width:100%;}
