* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background-image: url('../media/background.png');
  background-size: cover;
  background-attachment: scroll;
  background-position: center;
  background-repeat: no-repeat;
  color: #222;
  line-height: 1.6;
  font-size: 100%;
}

.container {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  padding: 2rem;
  margin: 2rem auto;
}

.page-header {
  border-bottom: 2px solid #ccc;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  background-color: #f4ecdc;
  border-radius: 0.5rem;
}

h1, h2, h3 {
  font-weight: 600;
  color: #333;
}

p {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  text-align: left;
}

a {
  text-decoration: underline;
  color: #0056b3;
}

a:visited {
  color: #4c6884;
}

.nav-link,
.nav-link:visited {
  text-decoration: none;
  font-weight: 500;
  color: #0d6efd;
}

.nav-link:hover {
  color: #063b8c;
}

.nav-link.active {
  font-weight: 600;
  color: #212529;
  text-decoration: none;
}

form {
  margin-top: 2rem;
}

label {
  font-weight: 500;
  display: block;
  margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background-color: #fff;
  color: #000;
}

textarea {
  resize: vertical;
  min-height: 120px;
  max-width: 600px;

}

input[type="radio"],
input[type="checkbox"] {
  margin-right: 0.5rem;
  border: #000 1px solid;
}


input[type="submit"],
input[type="reset"] {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  background-color: #0d6efd;
  color: #fff;
  cursor: pointer;
  margin-right: 1rem;
}

input[type="submit"]:hover,
input[type="reset"]:hover {
  background-color: #063b8c;
}

.form-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.form-col {
  flex: 1 1 300px;
}

footer {
  margin-top: 2rem;
  font-size: 0.875rem;
  color: #666;
}

footer img {
  transition: transform 0.2s ease;
}

footer img:hover {
  transform: scale(1.15);
}

#toggle-contrast {
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .form-section {
    flex-direction: column;
  }
}


.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px;
  z-index: 100;
  text-decoration: none;
}

.skip-link:focus {
  top: 10px;
}