/* MSPR Forms — styles */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --orange:  #fd7d26;
  --navy:    #313d5a;
  --charcoal:#232323;
  --text:    #333;
  --border:  #ccc;
  --bg:      #f7f7f7;
  --white:   #fff;
}

body {
  margin: 0;
  font-family: 'Enriqueta', Georgia, serif;
  color: var(--text);
  background: var(--white);
}

/* ── Header: nav bar on top, branding row below ── */
#mspr-header {
  background: var(--white);
  border-bottom: 1px solid #e0e0e0;
  max-width: 960px;
  margin: 0 auto;
}

/* Top row: dark nav bar */
#mspr-nav {
  background: #7a7070;
  width: 100%;
  margin-top: 22px;
  display: flex;
  align-items: stretch;
  position: relative;
  z-index: 100;
}
#mspr-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  width: 100%;
  justify-content: space-evenly;
}
#mspr-nav li { position: relative; display: flex; align-items: stretch; }
#mspr-nav a, #mspr-nav .nav-parent {
  display: flex;
  align-items: center;
  color: var(--white);
  text-decoration: none;
  padding: 0 18px;
  height: 44px;
  font-size: 15px;
  text-transform: capitalize;
  letter-spacing: .03em;
  cursor: pointer;
  white-space: nowrap;
  background: none;
  border: none;
  font-family: inherit;
}
#mspr-nav a:hover, #mspr-nav .nav-parent:hover { background: rgba(0,0,0,.15); }
#mspr-nav a.active { background: rgba(0,0,0,.25); }

/* dropdowns */
#mspr-nav .dropdown { display: none; position: absolute; top: 100%; left: 0; background: var(--charcoal); min-width: 200px; z-index: 200; }
#mspr-nav li:hover > .dropdown { display: block; }
#mspr-nav .dropdown a { padding: 10px 16px; height: auto; border-bottom: 1px solid rgba(255,255,255,.08); }
#mspr-nav .dropdown a:last-child { border-bottom: none; }

/* Bottom row: logo + site title */
#mspr-branding {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 24px;
}
#mspr-branding-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#mspr-facebook {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #4267B2;
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  padding: 4px 10px 4px 8px;
  border-radius: 3px;
  text-decoration: none;
  font-family: Arial, sans-serif;
  letter-spacing: .01em;
  width: fit-content;
  margin-left: 132px;
}
@media (max-width: 768px) {
  #mspr-facebook { margin-left: 0; }
}
#mspr-facebook:hover { background: #365899; }
#mspr-header img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #c1eeef;
}
#mspr-site-title {
  font-family: 'Enriqueta', Georgia, serif;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: .03em;
}
#mspr-site-title .line1 { color: rgb(193, 238, 239); display: block; }
#mspr-site-title .line2 { color: #5a5050; display: block; }

/* mobile nav */
#nav-toggle { display: none; background: #7a7070; border: none; color: white; font-size: 1.5rem; padding: 10px 16px; width: 100%; text-align: left; cursor: pointer; }
@media (max-width: 768px) {
  #nav-toggle { display: block; }
  #mspr-nav ul { display: none; flex-direction: column; }
  #mspr-nav ul.open { display: flex; }
  #mspr-nav .dropdown { position: static; display: none; background: rgba(0,0,0,.2); }
  #mspr-nav .dropdown a { padding-left: 30px; height: auto; }
  #mspr-nav li.open > .dropdown { display: block; }
  #mspr-nav a, #mspr-nav .nav-parent { height: 44px; }
  #mspr-site-title { font-size: 18px; }
  #mspr-header img { width: 50px; height: 50px; }
  #mspr-branding { gap: 10px; padding: 10px 14px; }
  #mspr-footer { position: static; }
  .page-wrap { padding-bottom: 20px; }
}

/* ── Page wrapper ── */
.page-wrap {
  max-width: 960px;
  margin: 30px auto;
  padding: 0 20px 130px;
}

/* ── Form styles ── */
h1.form-title {
  color: var(--navy);
  font-size: 1.6rem;
  margin-bottom: 6px;
  border-bottom: 3px solid var(--orange);
  padding-bottom: 8px;
}
p.form-intro { color: #555; margin-top: 0; margin-bottom: 24px; }

.form-section {
  background: var(--bg);
  border-left: 4px solid var(--orange);
  border-radius: 4px;
  padding: 14px 18px 6px;
  margin: 24px 0 18px;
}
.form-section h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 14px;
}
.field-row.full { grid-template-columns: 1fr; }
.field-row.thirds { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 600px) {
  .field-row, .field-row.thirds { grid-template-columns: 1fr; }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
label {
  font-size: .9rem;
  font-weight: 600;
  color: #444;
}
label .req { color: #c00; margin-left: 2px; }

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: .95rem;
  font-family: inherit;
  transition: border-color .2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgba(253,125,38,.15);
}
textarea { resize: vertical; min-height: 80px; }

/* radio / checkbox groups */
.options-group { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.options-group label { font-weight: normal; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.options-group input { width: auto; }

/* acknowledgment checkbox */
.ack-check { width: 22px; height: 22px; min-width: 22px; cursor: pointer; margin-top: 2px; }

/* conditional fields */
.conditional { display: none; }

/* reference table */
.ref-table { width: 100%; border-collapse: collapse; }
.ref-table th { background: var(--navy); color: white; padding: 8px 10px; font-size: .85rem; text-align: left; }
.ref-table td { padding: 6px 4px; border-bottom: 1px solid #eee; }
.ref-table td input { margin: 0; }

/* foster requirements panel */
.requirements-panel {
  background: #fffde7;
  border: 1px solid #f0d080;
  border-radius: 6px;
  padding: 20px 24px;
  margin-bottom: 28px;
}
.requirements-panel h2 {
  color: var(--navy);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #c1eeef;
  text-align: center;
}
.req-grid {
  column-count: 2;
  column-gap: 20px;
  margin-bottom: 14px;
}
.req-block {
  break-inside: avoid;
  margin-bottom: 16px;
}
@media (max-width: 600px) { .req-grid { column-count: 1; } }
.req-block h3 {
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--navy);
  margin: 0 0 6px;
}
.req-block p, .req-block ul { font-size: .88rem; margin: 0 0 6px; color: #444; }
.req-block ul { padding-left: 18px; }
.req-block li { margin-bottom: 2px; }
.req-note { color: #900 !important; font-size: .85rem !important; }
.req-photos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.req-photos img { max-width: 160px; width: 100%; border-radius: 4px; object-fit: cover; }
@media (max-width: 600px) { .req-photos img { max-width: calc(50% - 4px); } }

/* submit */
.submit-row { margin-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 0; }
.submit-row button[type="submit"] { margin-top: 24px; }
button[type="submit"] {
  background: var(--orange);
  color: white;
  border: none;
  padding: 14px 48px;
  font-size: 1.05rem;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: background .2s;
}
button[type="submit"]:hover { background: #e06812; }
button[type="submit"]:disabled { background: #ccc; color: #888; cursor: not-allowed; }
#submit-hint { color: #c00; font-size: .88rem; margin: 6px 0 0; }

/* incomplete field highlight */
.field-incomplete input:not([type="radio"]):not([type="checkbox"]),
.field-incomplete textarea,
.field-incomplete select {
  outline: 2px solid #c00;
  background: rgba(200, 0, 0, .04);
}
.field-incomplete input[type="checkbox"] {
  outline: 2px solid #c00;
}
.options-group.field-incomplete {
  outline: 2px solid #c00;
  background: rgba(200, 0, 0, .04);
  border-radius: 4px;
  padding: 4px 6px;
}

/* error / success */
.alert { padding: 14px 18px; border-radius: 4px; margin-bottom: 20px; }
.alert-error { background: #fde8e8; border: 1px solid #e88; color: #900; }
.alert-success { background: #e8f7e8; border: 1px solid #8c8; color: #060; }

/* ── Footer ── */
#mspr-footer {
  background: rgb(193, 238, 239);
  color: #333;
  text-align: center;
  padding: 18px 20px;
  font-size: .85rem;
  line-height: 1.8;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 500;
}
#mspr-footer a { color: #333; }
#mspr-footer a:hover { color: var(--orange); }
@media (max-width: 768px) {
  #mspr-footer { position: static; }
}
