/* FVOA membership application form — layout and styling for Visforms (Bootstrap 5)
   Brand colors: change these three values to restyle everything at once. */
form#visform1 {
  --fvoa-accent: #f5a000;       /* FVOA orange (buttons, focus ring) */
  --fvoa-accent-dark: #d98a00;  /* button hover */
  --fvoa-ink: #2f3337;          /* text and headings */
  --fvoa-line: #d5d9de;         /* borders */
  --fvoa-soft: #f6f7f9;         /* soft background */
}

/* ---- intro text above the form ---- */
#visformcontainer .category-desc {
  max-width: 820px;
  margin: 0 auto 1.25rem;
  text-align: center;
  font-size: 1.05rem;
  color: var(--fvoa-ink, #2f3337);
}

/* ---- the form as a clean card ---- */
form#visform1 {
  max-width: 820px;
  margin: 0 auto 2.5rem;
  padding: 1.75rem 2rem 2rem;
  background: #fff;
  border: 1px solid #dfe3e8;
  border-top: 5px solid var(--fvoa-accent);
  border-radius: 12px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .08);
}
form#visform1 .vis_mandatory {
  font-size: .85rem;
  text-align: right;
  margin-bottom: .5rem;
}

/* ---- labels sit above their boxes ---- */
form#visform1 .col-12[class*="field"] { margin-bottom: .9rem; }
form#visform1 .col-12[class*="field"] .form-group.row > label,
form#visform1 .col-12[class*="field"] .form-group.row > div {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
}
form#visform1 .col-12[class*="field"] .form-group.row > label {
  margin-bottom: .3rem;
  font-weight: 600;
  font-size: .92rem;
  color: var(--fvoa-ink, #2f3337);
}
/* error messages line up under the box */
form#visform1 .col-12[class*="field"] > .row > div {
  flex: 0 0 100%;
  width: 100%;
  margin-left: 0;
}
form#visform1 .errorcontainer,
form#visform1 label.error { color: #bf1722; font-size: .85rem; margin: .25rem 0 0; }

/* ---- boxes ---- */
form#visform1 .form-control,
form#visform1 .form-select {
  border: 1px solid var(--fvoa-line, #d5d9de);
  border-radius: 8px;
  padding: .6rem .8rem;
  font-size: 1rem;
  background-color: #fff;
}
form#visform1 .form-control:focus,
form#visform1 .form-select:focus {
  border-color: var(--fvoa-accent, #f5a000);
  box-shadow: 0 0 0 .22rem rgba(245, 160, 0, .25);
  outline: 0;
}

/* ---- sports: tidy columns ---- */
form#visform1 .field10 .form-group.row > div:not(.vishidden) {
  flex: 0 0 calc(100% - 1.5rem);
  width: calc(100% - 1.5rem);
  margin: 0 .75rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: .5rem .9rem;
  padding: .85rem 1rem;
  background: var(--fvoa-soft, #f6f7f9);
  border: 1px solid #e6e9ed;
  border-radius: 8px;
}
form#visform1 .field10 .form-check-inline { margin: 0; padding-left: 1.7em; }
form#visform1 .field10 .form-check-input:checked {
  background-color: var(--fvoa-accent, #f5a000);
  border-color: var(--fvoa-accent, #f5a000);
}

/* ---- comments box: a sensible height ---- */
form#visform1 .field12 textarea { height: 130px; min-height: 130px; resize: vertical; }

/* ---- Submit button ---- */
form#visform1 .pbBtnCon .btn-primary,
form#visform1 input#field13 {
  background: var(--fvoa-accent, #f5a000);
  border: 0;
  color: #1f2327;
  font-weight: 700;
  font-size: 1.05rem;
  padding: .75rem 2.8rem;
  border-radius: 999px;
  letter-spacing: .02em;
}
form#visform1 .pbBtnCon .btn-primary:hover,
form#visform1 input#field13:hover { background: var(--fvoa-accent-dark, #d98a00); color: #fff; }
form#visform1 .pbBtnCon { margin-top: .75rem; }

/* ---- side-by-side fields (tablet and larger) ---- */
@media (min-width: 576px) {
  /* First name | Last name */
  form#visform1 .row > .col-12.field1,
  form#visform1 .row > .col-12.field2 { width: 50%; }
  /* City | State | Zip  (the State box is found by its label, so this keeps working if the field is recreated as a dropdown) */
  form#visform1 .row > .col-12.field4 { width: 50%; }
  form#visform1 .row > .col-12:has(#form1statelbl) { width: 25%; }
  form#visform1 .row > .col-12.field6 { width: 25%; }
  /* IHSA # | IHSA Level */
  form#visform1 .row > .col-12.field14,
  form#visform1 .row > .col-12.field9  { width: 50%; }
  /* Phone | Email */
  form#visform1 .row > .col-12.field7,
  form#visform1 .row > .col-12.field8  { width: 50%; }
}
@media (max-width: 575.98px) {
  form#visform1 { padding: 1.25rem 1rem 1.5rem; border-radius: 0; box-shadow: none; }
}