/* Common style sheet intended for use by many of our apps, either directly or as a starting point */

.gold-fg { color: #c1990b; }
.yellow-fg { color: #f1bf10; }
.blue-lighter-fg { color:#1a314d; }
.blue-darker-fg { color:#021935; }

html { 
  height:100%;  /* without this, the bottom of the box-shadow comes up to meet the end of its content */
}
body {
  background:gray;
  color:black;
  margin:0;
  padding:0;
  font-family:arial, sans-serif;
  height:100%;
}

header, main, nav { margin:0; }
header, footer { background:#021935; color:#f1bf10; }
header { padding:10px 5px; }
main { background:white; font-size:1.0rem; box-shadow: inset 0 0 3rem rgba(0, 0, 0, .5); padding:5px 20px; }
footer { background:#021935; color:#f1bf10; padding:3px 3px; font-size:0.9rem; text-align:center; }

h1 { text-align:center; margin:5px 10px 5px 10px; } /* top right bottom left */
h2 { text-align:center; margin:5px 10px 5px 10px; }
p { margin:5px; padding:0; }

a { color: #c1990b; }
footer a { color:#f1bf10; text-decoration:underline; }
footer a:hover { text-decoration:none; }
/* a:focus, a:hover { color: #002566; } */

.center-stack-outer { display:block; text-align:center; }
.center-stack-outer > .center-stack-inner { display:inline-block; text-align:left; }

/* label and input on same line if it fits.  aside is optional, on its own line (intened to be used in order: label, input, aside). */
/* Applies to <section> elements that are an immediate child of a <form>, or that are an immediate child of <div class="formItem"> */
form > section, div.formItem > section { display:block; }
form > section > label, div.formItem > section > label { display:inline-block; }
form > section > input, div.formItem > section > input { display:inline-block; }
form > section > aside, div.formItem > section > aside { display:block; /* font-size:0.8em; */ }

.center { text-align:center; }

table.normal { border-collapse:collapse; }
table.normal>tbody>tr>th { background:black; color:white; text-align:center; }
table.normal, table.normal>tbody>tr, table.normal>tbody>tr>th, table.normal>tbody>tr>td { border:1px solid gray; }

table.zebra>tbody>tr:nth-child(even) { background: white; }
table.zebra>tbody>tr:nth-child(odd) { background: #dddddd; }

/* start of wtap-custom.css */
h3,
h4,
h5,
h6 {
  margin: 5px;
}

label,
input,
aside {
  margin: 2px;
}

aside {
  color: gray;
  font-size: 0.8rem;
}

aside.inline {
  display: inline;
  color: blue;
}

.center-stack-outer>div {
  padding: 3px;
  background: lightgray;
  border: 1px solid darkgray;
}

/* .center-stack-outer > div > aside { color:gray; font-size:0.8rem; border:none; } */

button {
  font-size: 1.1em;
  background: #eeffee;
}

/*a.faux-button { font-size:1.1em; color:#111111; background:white; padding:2px 10px; border-radius:4px; border:1px solid lightgray; } */
/*a.faux-button { font-size:1.1em; color:#111111; background:#ddffdd; padding:2px 10px; border:1px solid gray; box-shadow:3px 3px 2px #ff9999; }*/

a.faux-button {
  font-size: 1.10em;
  color: #111111;
  background: #eeffee;
  padding: 1px 5px;
  border-left: 1px solid lightgray;
  border-top: 1px solid lightgray;
  border-right: 2px solid gray;
  border-bottom: 2px solid gray;
}

.buttons {
  text-align: center;
  border: none;
}

input[type="submit"] {
  text-align: center;
}

input[type="reset"] {
  margin-top: 10px;
}

/* Disable default iOS button overrides */
button,
#submit,
#cancel,
input[type="submit"],
input[type="reset"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  border-radius: 4px;
}

/* Primary Submit Button */
#submit,
button[type="submit"],
input[type="submit"] {
  text-align: center;
  background-color: #021935 !important;
  /* Dark navy header */
  color: #ffffff !important;
  /* Standard white text */
  -webkit-text-fill-color: #ffffff !important;
  /* Forces iOS to render white text */
  font-weight: bold;
  padding: 6px 16px;
  border: 1px solid #000;
  cursor: pointer;
}

/* Cancel Button */
#cancel,
input[type="reset"] {
  background-color: #ffffff !important;
  color: #021935 !important;
  -webkit-text-fill-color: #021935 !important;
  /* Forces iOS navy text */
  border: 1px solid #021935;
  padding: 6px 16px;
  cursor: pointer;
}

/* Disabled State handling */
button:disabled,
#submit:disabled,
input[type="submit"]:disabled {
  background-color: #cccccc !important;
  color: #666666 !important;
  -webkit-text-fill-color: #666666 !important;
  border-color: #bbbbbb;
  opacity: 1;
  cursor: not-allowed;
}

aside.invalid {
  color: red;
  font-weight: bold;
  font-style: italic;
}

aside.valid {
  color: gray;
  font-weight: normal;
  text-decoration: line-through;
}

:link,
:visited {
  color: #c1990b;
  text-decoration: none;
}

.debug {
  background: lightyellow;
}

/* figure is a special use-case for the page ID numbers in the upper right */
figure {
  position: fixed;
  top: 0;
  right: 0;
  width: 120px;
  height: 20px;
  /*
  color:#021935;
  */
  /* background:#f1bf10; */
  /* 
  color:black; 
  opacity:0.9;
  color:gray;
   */
  /* font-family:Bradley Hand, fantasy, serif;  */
  font-family: fixed;
  /* American Typewriter, fantasy; */
  /* font-style:italic; font-weight:bold;  */
  font-size: 0.8rem;
  text-align: right;
  margin: 0;
  padding: 1px 3px;
  display: none !important;
  /* Hides the filename in production */
}

/* figure>a { color:gray; } */
figure:hover {
  background: #f1bf10;
}

figure>a:link {
  color: #021935;
}

figure>a:visited {
  color: #021935;
}

/*
figure>a:hover { background:red; }
*/

table {
  border-collapse: collapse;
}

table,
th,
td {
  border: 1px solid darkgray;
}

table.horiz th {
  text-align: right;
}

.limitedWidth {
  max-width: 300px;
}

.glue {
  display: inline-block;
}

/* used to cause line break (if necessary) between label and radio buttons rather than between radio buttons */

form>section,
div.formItem>section,
main>div>div>section,
section.lighter {
  background: #eeeeee;
  border: none;
  border-radius: 5px;
  margin: 10px;
  padding: 5px;
}

/* { background:#eeeeee; border:none; border-radius:5px; margin:10px; padding:5px; } */
/* nested sections, like in mailing address options and physical address options */
section>section {
  border: 1px solid lightgray;
  border-radius: 3px;
  margin: 3px;
  padding: 5px;
}

.right {
  text-align: right;
}

.errorMsg {
  border: 1px solid red;
  margin: 3px;
  padding: 2px;
}

p.pseudo-button {
  border: 1px solid lightgray;
  background: white;
  border-radius: 4px;
  padding: 2px 20px;
  text-align: center;
  color: #111111;
}

.pseudo-button>a:link {
  color: black;
}

.pseudo-button>a:visited {
  color: black;
}

.pseudo-button>a:hover {
  color: black;
}

.pseudo-button>a:active {
  color: black;
}

/* use a class="faux-button" instead
span.pseudo-button { 
  border:1px solid lightgray; background:#eeffee; padding:2px 20px; 
  text-align:center; 
  box-shadow: 8px 8px 8px gray;
}
*/

table.segDescs td {
  vertical-align: top;
}

table.segDescs th {
  text-align: center;
}

label.checkboxLabel {
  display: flex;
  flex-direction: row;
  grid-gap: 5px;
}

label.checkboxLabel>* {
  display: block;
  vertical-align: top;
}

/* label.checkboxLabel>*:last-child { border-bottom:1px solid gray; } */
div#otherWyoAddress {
  display: grid;
  /* grid-template-columns:1fr 1fr; */
}

div#otherWyoAddress>* {
  margin: 2px;
}

div#otherWyoAddress>label {
  grid-column-start: 1;
  text-align: right;
}

div#otherWyoAddress>div {
  grid-column-start: 2;
}

div#floatingSubmit {
  display: block;
  position: sticky;
  top: 0px;
  border: 1px solid #021935;
  background: lightgray;
  text-align: center;
  padding: 2px 10px 2px 10px;
}

table.vertical th {
  text-align: right;
}

table.vertical td {
  text-align: left;
}

table.vertical th.heading {
  text-align: center;
}

ul.activeWat,
ul.closed,
ul.open,
ul.activeRca {
  list-style-type: none;
}

ul.activeWat li,
ul.closed li,
ul.open li,
ul.activeRca li {
  border: 1px solid black;
  margin: 3px;
  padding: 3px;
}

div.activeWat,
div.closed,
div.open,
div.activeRca {
  border: 1px solid black;
  margin: 3px 3px 6px 3px;
  padding: 3px;
}

div.activeWat {
  border: 1px solid #0000dd;
}

div.closed {
  border: 1px solid #f46d43;
}

div.open {
  border: 1px solid #219809;
}

div.activeRca {
  border: 1px solid #0000dd;
}

.activeWat hr {
  border: 0;
  border-top: 1px solid #0000dd;
}

.activeRca hr {
  border: 0;
  border-top: 1px solid #0000dd;
}

.closed hr {
  border: 0;
  border-top: 1px solid #f46d43;
}

.open hr {
  border: 0;
  border-top: 1px solid #219809;
}

.activeWat aside,
.closed aside,
.open aside,
.activeRca aside {
  font-style: italic;
  color: black;
  font-size: 1.0em;
}

.activeWat h4,
.closed h4,
.open h4 {
  display: inline;
  font-size: 1.1em;
  font-weight: bold;
}

.activeWat h4 {
  color: #0000dd;
}

.activeRca h4 {
  color: #0000dd;
}

.closed h4 {
  color: #f46d43;
}

.open h4 {
  color: #219809;
}

.editForm label {
  display: block;
}

pre {
  margin: 5px;
}

strong {
  font-weight: bold;
}

.checked {
  font-weight: bold;
}

span.username {
  font-weight: bold;
  font-style: italic;
}

/* Apply flexbox to all the segment flex containers. */
div.activeWatGrid,
div.activeRcaGrid,
div.closedGrid,
div.openGrid,
div.pendingGrid,
div.rejectedGrid {
  display: flex;
  flex-direction: column;
  margin: 5px;
  padding: 0;
}

/* Put margin and padding on on the segment flex items.  */
div.activeWatGrid>*,
div.activeRcaGrid>*,
div.closedGrid>*,
div.openGrid>*,
div.pendingGrid>*,
div.rejectedGrid>* {
  margin: 0;
  padding: 5px;
}

/* Put a left, top, right border (and background color) on each flex container */
div.activeWatGrid {
  border-left: 2px solid blue;
  border-top: 2px solid blue;
  border-right: 2px solid blue;
  background: #eeeeff;
}

div.activeRcaGrid {
  border-left: 2px solid blue;
  border-top: 2px solid blue;
  border-right: 2px solid blue;
  background: #eeeeff;
}

div.closedGrid {
  border-left: 2px solid red;
  border-top: 2px solid red;
  border-right: 2px solid red;
  background: #ffeeee;
}

div.openGrid {
  border-left: 2px solid green;
  border-top: 2px solid green;
  border-right: 2px solid green;
  background: #eeffee;
}

div.pendingGrid {
  border-left: 2px solid black;
  border-top: 2px solid black;
  border-right: 2px solid black;
  background: #eeeeee;
}

div.rejectedGrid {
  border-left: 2px solid black;
  border-top: 2px solid black;
  border-right: 2px solid black;
  background: #eeeeee;
}

/* Put a bottom border on every flex item */
div.activeWatGrid>* {
  border-bottom: 1px solid blue;
}

div.activeRcaGrid>* {
  border-bottom: 1px solid blue;
}

div.closedGrid>* {
  border-bottom: 1px solid red;
}

div.openGrid>* {
  border-bottom: 1px solid green;
}

div.pendingGrid>* {
  border-bottom: 1px solid black;
}

div.rejectedGrid>* {
  border-bottom: 1px solid black;
}

/* Put a thicker bottom border on the last flex item */
div.activeWatGrid>*:last-child {
  border-bottom: 2px solid blue;
}

div.activeRcaGrid>*:last-child {
  border-bottom: 2px solid blue;
}

div.closedGrid>*:last-child {
  border-bottom: 2px solid red;
}

div.openGrid>*:last-child {
  border-bottom: 2px solid green;
}


/* Make the h4 header color-coded */
div.activeWatGrid>h4 {
  color: blue;
}

div.activeRcaGrid>h4 {
  color: blue;
}

div.closedGrid>h4 {
  color: red;
}

div.openGrid>h4 {
  color: green;
}

div.feedback {
  text-align: center;
}

/* style the FAQ dl/dt/dd "definition" list used in the FAQ */
dl.faq {
  display: block;
}

/*dl.faq { border-left:1px solid gray; border-top:1px solid gray; border-right:1px solid gray; } */
dl.faq>dt,
dl.faq>dd {
  display: block;
  text-align: left;
  margin: 0;
  padding-left: 10px;
  padding-right: 10px;
}

dl.faq>dt {
  border-left: 1px solid gray;
  border-top: 1px solid gray;
  border-right: 1px solid gray;
  margin-top: 10px;
  padding-top: 5px;
  padding-right: 50px;
  font-weight: bold;
}

dl.faq>dd {
  border-left: 1px solid gray;
  border-bottom: 1px solid gray;
  border-right: 1px solid gray;
  margin-bottom: 10px;
  padding-left: 40px;
  padding-bottom: 5px;
  padding-top: 5px;
  text-align: left;
  font-style: italic;
}

dl.faq>h3 {
  text-align: center;
}

dl.faq>dt span,
dl.faq>dd span,
dl.faq>dt del,
dl.faq>dd del {
  background: #eeccff;
}

span.ampm {
  font-variant-caps: all-small-caps;
}

/*
.dev>p { margin:8px 3px; }
.dev { background:#ffeeee; color:black; font-size:80%; font-style:italic; border:1px solid darkgray; padding:2px; }
*/
.dev {
  display: none !important;
}

section.warning {
  border: 2px solid red;
  border-radius: 4px;
}

section.warning>h3 {
  color: red;
  text-align: center;
}

table.segmentChoices {
  margin-left: auto;
  margin-right: auto;
}

p.masquerading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
  background: red;
  color: white;
  margin: 0;
}

p.masquerading>img {
  height: 30px;
}

div.masqueradee-div {
  border: 2px solid red;
  border-radius: 5px;
}

main.center-stack>* {
  background: #eeeeee;
}

.center-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* alternative to inner and outer center-stack */
.center-stack>hr {
  width: 100%;
  color: red;
}

#populateWithTestData {
  position: fixed;
  bottom: 3px;
  right: 4px;
  z-index: 99;
  background: pink;
}

dialog {
  border: 1px solid red;
  background: pink;
}

div.inputGrid {
  display: grid;
  grid-template-columns: 40% 55%;
  grid-gap: 5px 10px;
}

div.inputGrid>label {
  text-align: right;
  background: white;
}

@keyframes twist5x5 {
  0% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(5deg);
  }

  50% {
    transform: rotate(0deg);
  }

  75% {
    transform: rotate(-5deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

.wiggle {
  animation-name: twist5x5;
  animation-duration: 0.5s;
  animation-iteration-count: 3;
}

.agreePop {
  border: 2px solid red;
  border-radius: 3px;
  padding: 5px;
}

.alert-yellow {
  background-color: #fff3cd;
  border: 1px solid #ffe69c;
  border-left: 6px solid #ffc107;
  /* The modern thick accent border */
  border-radius: 5px;
  padding: 15px 15px 15px 20px;
  /* Bumped the left padding slightly for the border */
  margin-bottom: 20px;
  color: #000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  /* Soft shadow to make it pop */
}

@media (max-width: 768px) {

  body,
  p,
  a,
  .center,
  .feedback p {
    font-size: 1.2rem;
    line-height: 1.6;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.55rem;
  }
}

/* ==========================================================================
   UNIFIED HIGH-CONTRAST BUTTON & CARD CONTAINER DESIGN
   ========================================================================== */

/* 1. Universal Section Card Fix */
form>section,
div.formItem>section,
main>div>div>section,
section.lighter,
section {
  display: flow-root !important;
  padding: 16px 20px !important;
  margin: 10px 10px 16px 10px !important;
  /* Restores left/right indent */
  box-sizing: border-box !important;
}

/* 2. Container Centering */
.center,
p.center {
  text-align: center !important;
  margin: 12px 0 !important;
  /* Keeps breathing room for centered text */
  clear: both !important;
}

div.center {
  text-align: center !important;
  margin: 0 !important;
  /* Zeros out dead space only for structural div wrappers */
  clear: both !important;
}

aside.center,
.center aside {
  text-align: center !important;
  display: block !important;
  margin-top: 8px !important;
  color: #555555 !important;
  font-size: 0.9rem !important;
}

/* 3. Base style for all buttons */
button,
input[type="submit"],
input[type="button"],
input[type="reset"],
/* Added to inherit 44px height and padding */
a.btn,
a.btn-primary,
a.faux-button,
.wiggle-btn {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  display: inline-block !important;
  min-height: 44px !important;
  /* Dropped from 48px */
  padding: 8px 24px !important;
  /* Slimmed down top/bottom padding */
  margin: 4px 12px !important;
  box-sizing: border-box !important;
  background-color: #003366 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-family: inherit !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  text-align: center !important;
  text-decoration: none !important;
  line-height: 1.2 !important;
  border: 2px solid #002244 !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease !important;
  user-select: none !important;
}

/* 4. Hover & Active States */
button:hover:not(:disabled),
input[type="submit"]:hover:not(:disabled),
a.btn:hover,
a.faux-button:hover {
  background-color: #001F3F !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
  transform: translateY(-1px) !important;
}

button:active:not(:disabled),
input[type="submit"]:active:not(:disabled),
a.btn:active,
a.faux-button:active {
  transform: translateY(0) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

/* 5. Unified Disabled State */
button:disabled,
input[type="submit"]:disabled,
a.btn:disabled,
a.faux-button.disabled {
  background-color: #d1d5db !important;
  color: #6b7280 !important;
  -webkit-text-fill-color: #6b7280 !important;
  border-color: #9ca3af !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  opacity: 0.8 !important;
  transform: none !important;
}

/* 7. Secondary / Reset Button Styling */
input[type="reset"],
.btn-secondary {
  background-color: #ffffff !important;
  color: #003366 !important;
  -webkit-text-fill-color: #003366 !important;
  border: 2px solid #003366 !important;
}

input[type="reset"]:hover,
.btn-secondary:hover {
  background-color: #f3f4f6 !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

/* ==========================================================================
   GLOBAL HEADER LOGO (3-COLUMN GRID)
   ========================================================================== */
header {
  padding: 0 !important;
}

/* 2. Tighten the new grid layout's breathing room */
.header-layout {
  display: grid;
  grid-template-columns: 120px 1fr 120px;
  align-items: center;
  width: 100%;

  /* Reduced top/bottom padding from 10px to 2px */
  padding: 0 !important;
  box-sizing: border-box;
}

.logo-zone {
  display: flex;
  justify-content: flex-start;
}

.title-zone {
  text-align: center;
}

.title-zone h1 {
  margin: 0 !important;
  word-wrap: break-word;
  /* Ensures long text wraps inside its own column */
}

.header-logo {
  height: 100px;
  width: auto;
  display: block;
  transition: transform 0.2s ease;
}

.header-logo:hover {
  transform: scale(1.05);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .header-layout {
    /* Shrinks the side columns on small screens to prevent squeezing the title */
    grid-template-columns: 60px 1fr 60px;
    padding: 10px 5px;
  }

  .header-logo {
    height: 75px;
  }

  #requirementsForm label {
    font-size: 1.15em;
    /* Bumps up the text size */
    line-height: 1.5;
    /* Adds breathing room between lines of text */
    display: block;
    /* Ensures the checkbox and text align nicely */
    margin-bottom: 10px;
    /* Adds space between the individual requirements */
  }

  /* Makes the checkbox itself slightly larger and easier to tap on phones */
  #requirementsForm input[type="checkbox"] {
    transform: scale(1.2);
    margin-right: 10px;
  }
}

.hidden-req {
  display: none !important;
}

@keyframes slideFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-section {
  animation: slideFadeIn 0.5s ease-out forwards;
}

.site-node-tag {
  font-size: 0.85em;
  font-weight: bold;
  color: #c0d8f0;
  /* Soft accent color; adjust to match your footer theme */
  margin-left: 6px;
  letter-spacing: 0.5px;
}

/* end of wtap-custom.css */