:root {
  --primary-color: #00214D;
  --secondary-color: #3371E7;
  --hover-color: #003D9C;
  --active-color: #00214D;
  --text-color: #000;
  --background-color: #ffffff;
  --link-color: #1F64E5;
  --link-hover-color: #000D9C;
  --focus-outline-color: #d7343dc;
  --gold-star-color: #faaa19;
}

/* General styles */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  background-color: var(--background-color);
  color: var(--text-color);
}

/* Header styles */
.header-container {
  text-align: center;
  padding: 20px;
  background-color: var(--primary-color);
  color: white;
}

.logo {
  width: 100px;
  height: auto;
  margin-bottom: 20px;
}

h1 {
  font-size: 2em;
  margin: 0;
}

h2 {
  font-size: 1.25em;
  margin: 0;
}

.subheading {
  font-size: 1.2em;
  margin: 10px 0 0 0;
}

/* Main content */
main {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

/* Tool content styles */
.tool-content {
  background-color: white;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
}

.tool-content p {
  margin-bottom: 15px;
}

/* Links */
.link {
  color: var(--link-color);
  text-decoration: underline;
}

.link:hover,
.link:focus {
  color: var(--link-hover-color);
  text-decoration: none;
}

.link:focus {
  outline: 2px dashed var(--focus-outline-color);
  outline-offset: 2px;
}

/* Content section */
#content {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
}

/* Question styling */
.question {
  font-size: 1.25em;
  font-weight: bold;
  margin-bottom: 20px;
}

/* Form styles */
.question-form {
  margin-bottom: 20px;
}

.question-form fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.question-form legend {
  font-size: 1.25em; /* Adjusted font size */
  font-weight: bold;
  margin-bottom: 20px;
}

.option-container {
  margin-bottom: 10px;
}

.option-container input[type="radio"] {
  margin-right: 10px;
}

.option-container label {
  font-size: 1em;
}

/* Next button */
.next-button {
  display: block;
  width: 100%;
  max-width: 200px;
  margin: 20px auto;
  padding: 15px;
  font-size: 1em;
  font-weight: bold;
  color: white;
  background-color: var(--secondary-color);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.next-button:hover,
.next-button:focus {
  background-color: var(--hover-color);
  outline: none;
}

.next-button:focus {
  outline: 2px dashed var(--focus-outline-color);
  outline-offset: 2px;
}

/* Result styling */
.result {
  background-color: #e6f2ff;
  padding: 20px;
  border-left: 5px solid var(--primary-color);
  margin-bottom: 20px;
  border-radius: 8px;
}

.result strong {
  font-size: 1.3em;
  color: var(--primary-color);
}

/* Submit button */
.submit-button {
  display: block;
  width: 100%;
  max-width: 200px;
  margin: 20px auto;
  padding: 15px;
  font-size: 1em;
  font-weight: bold;
  color: white;
  background-color: var(--secondary-color);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-button:hover,
.submit-button:focus {
  background-color: var(--hover-color);
  outline: none;
}

.submit-button:focus {
  outline: 2px dashed var(--focus-outline-color);
  outline-offset: 2px;
}

/* Back links */
.back-link,
.go-back-link {
  display: block; /* Stack links vertically */
  margin-top: 10px;
  font-size: 1em;
  color: var(--link-color);
  text-decoration: underline;
}

.back-link:hover,
.go-back-link:hover,
.back-link:focus,
.go-back-link:focus {
  color: var(--link-hover-color);
  text-decoration: none;
}

.back-link:focus,
.go-back-link:focus {
  outline: 2px dashed var(--focus-outline-color);
  outline-offset: 2px;
}

/* Star rating module */
.star-rating {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.star-rating .star {
  font-size: 2em;
  color: #000;
  cursor: pointer;
  margin: 0 5px;
}

.star-rating .star.selected {
  color: var(--gold-star-color);
}

.star-rating .star:hover,
.star-rating .star:focus {
  color: var(--gold-star-color);
}

.star-rating .star:focus {
  outline: 2px dashed var(--focus-outline-color);
  outline-offset: 2px;
}

/* Comments section */
.comments-section {
  margin-top: 20px;
}

.comments-section label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.comments-section textarea {
  width: 100%;
  padding: 10px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 5px;
  resize: vertical;
}

.comments-section textarea:focus {
  outline: 2px dashed var(--focus-outline-color);
  outline-offset: 2px;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background-color: var(--primary-color);
  color: white;
  position: relative;
}

.logo-footer {
  width: 150px;
  height: auto;
}
