:root {
  --primary: #CEC6B3;
  --secondary: #1F5F5A; /* Darkened for contrast */
  --secondary-darker: #15282F;
  --secondary-hover: #213135;
  --tertiary: #C65F1E; /* Darkened for contrast */
}

body {
  background-color: var(--tertiary);
  font-family: "Noto Sans", sans-serif;
}

/* Ensure sufficient contrast for body text */
body,
.container {
  color: #000;
}

figcaption {
  text-align: center;
}

section {
  padding: 1.2em;
}

form {
  padding: 1.2em;
}

footer {
  background-color: var(--secondary-darker);
  padding: 0.5em;
  color: var(--primary);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

#navigation {
  display: flex;
  justify-content: space-around;
  flex-direction: column;
}

#logo {
  width: 100%;
  max-width: 300px;
  display: block;
  margin: 0 auto;
}

#banner {
  width: 100%;
  max-width: 1000px;
  padding: 1em;
}

/* ✅ Skip link fully accessible */
#skip {
  background: #ffffff;
  position: absolute;
  left: -9999px;
  text-decoration: none;
  color: #000000;
  padding: 0.5em;
}

#skip:focus {
  position: static;
  left: auto;
  outline: 3px solid #000;
}

/* ✅ Input accessibility */
#owner-info input,
#pet-info input,
#other-info input,
#more-info {
  width: 100%;
  margin-top: 0.5em;
  margin-bottom: 1.5em;
  font-size: 1em;
  min-height: 2.5em;
  border: 2px solid var(--secondary);
}

#owner-info label,
#pet-info label,
#other-info label {
  font-weight: bold;
}

/* ✅ Add visible focus for all interactive elements */
a:focus,
input:focus,
textarea:focus,
.btn:focus {
  outline: 3px solid #000;
  outline-offset: 2px;
}

/* ✅ Container */
.container {
  background-color: var(--primary);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ✅ Navigation contrast fix */
.nav-link {
  background-color: var(--secondary);
  color: #ffffff; /* Was failing contrast before */
  font-size: 1.3em;
  padding: 0.5em 1em;
  text-decoration: none;
  font-weight: bold;
}

.nav-link:hover,
.nav-link:focus,
.active {
  background-color: var(--secondary-hover);
  color: #ffffff;
}

/* ✅ Headings */
.heading {
  font-size: 1.5em;
  font-weight: bold;
}

/* ✅ Fix color-only required indicator */
.fake-require {
  color: #B00020; /* Accessible red */
}

.fake-require::after {
  content: " *";
  color: #000;
  font-weight: bold;
}

/* ✅ Utility classes */
.img-fluid {
  width: 100%;
}

.img-center {
  display: block;
  margin: 0 auto;
}

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

.pt-1 {
  padding-top: 1em;
}

/* ✅ Button contrast fix */
.btn {
  background-color: var(--secondary);
  padding: 0.5em 1em;
  border-radius: 0.3em;
  text-transform: uppercase;
  display: inline-block;
  cursor: pointer;
  color: #ffffff;
  border: none;
}

.btn:hover,
.btn:focus {
  background-color: var(--secondary-hover);
  color: #ffffff;
}

/* ✅ Responsive navigation */
@media (min-width: 768px) {
  #navigation {
    flex-direction: row;
  }
}