/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial","Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
  background-color: #eae3d8;
  /* Light peach background */
  color: #575756;
  /* Dark gray text */
}

/* Fixed Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #800101;
  /* Dark red */
  padding: 15px 20px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Header Container */
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

/* Header Parts */
.header-part {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-part.left {
  justify-content: flex-start;
  flex: 0 0 auto;
}

.header-part.right {
  justify-content: flex-end;
  flex-direction: column;
  flex: 0 0 auto;
  gap: 5px;
}

.header-part.center {
  justify-content: center;
  flex-direction: column;
  flex: 1;
  min-width: 0; /* Allow text to wrap */
}

.header-part img {
  height: 120px;
  width: auto;
  object-fit: contain;
}

.header-part .text {
  color: #FFFFFF;
  font-size: 20px;
  font-weight: bold;
  padding: 10px 0;
  text-align: center;
  line-height: 1.2;
  word-wrap: break-word;
}

/* Responsive Design for Header */
@media (max-width: 870px) {
  .header-container {
    gap: 10px;
  }

  .header-part.left,
  .header-part.right {
    display: none;
  }

  .header-part.center {
    flex: 1;
    justify-content: center;
  }

  .header-part .text {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  header {
    padding: 10px 15px;
  }

  .header-part .text {
    font-size: 16px;
  }
}

.login-form {
  background-color: #FFFFFF;
  /* White */
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  margin: 200px auto 120px;
}

@media (max-width: 600px) {
  .login-form {
    margin: 145px auto 120px;
  }
}

.login-form h2 {
  margin-bottom: 20px;
  color: #800101;
  /* Dark red */
  text-align: center;
}

.login-form input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #9D9D9C;
  /* Gray */
  border-radius: 4px;
  font-size: 16px;
}

.login-form input:focus {
  border-color: #E24622;
  /* Bright orange */
  outline: none;
}

.login-form button {
  width: 100%;
  padding: 10px;
  background-color: #B91116;
  /* Dark red */
  color: #FFFFFF;
  /* White */
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
}

.login-form button:hover {
  background-color: #E24622;
  /* Bright orange */
}

.login-form .links {
  margin-top: 10px;
  text-align: center;
}

.login-form .links a {
  color: #575756;
  /* Dark gray */
  text-decoration: none;
  font-size: 14px;
}

.login-form .links a:hover {
  color: #E8641C;
  /* Orange */
}

/* Fixed Footer */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #333333;
  padding: 15px 20px;
  color: #FFFFFF;
  font-size: 14px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-content {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-text {
  flex: 1;
  text-align: center;
  min-width: 200px;
}

.footer-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

footer a {
  color: #F8B688;
  text-decoration: none;
  transition: color 0.3s ease;
  padding: 5px 0;
}

footer a:hover {
  color: #E24622;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 10px;
  }

  .footer-content {
    flex-direction: column;
    gap: 10px;
  }

  .footer-text {
    min-width: auto;
    order: 2;
  }

  .footer-links {
    order: 1;
  }

  /* Mobile styles for survey-select */
  .survey-select {
    margin-bottom: 25px;
  }

  .survey-select label {
    font-size: 20px;
    margin-bottom: 15px;
  }

  .survey-select select {
    padding: 15px;
    font-size: 18px;
    border-radius: 8px;
    min-height: 50px;
  }
}

@media (max-width: 480px) {
  footer {
    padding: 10px 15px;
    font-size: 12px;
  }

  .footer-links {
    gap: 10px;
  }
}

/* Container for Survey */
.survey-container {
  max-width: 800px;
  margin: 20px auto 120px; /* Space for fixed header */
  padding: 20px;
  background-color: #FFFFFF; /* White */
  border-radius: 8px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Container for Survey */
.intro-container {
  max-width: 800px;
  margin: 150px auto 20px; /* Space for fixed header */
  padding: 20px;
  background-color: #FFFFFF; /* White */
  border-radius: 8px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Select Box for Choosing Survey */
.survey-select {
  margin-bottom: 30px;
}

.survey-select label {
  display: block;
  font-size: 18px;
  font-weight: bold;
  color: #511013; /* Dark red */
  margin-bottom: 10px;
}

.survey-select select {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #9D9D9C; /* Gray */
  border-radius: 4px;
  background-color: #FFFFFF; /* White */
  color: #575756; /* Dark gray */
}

.survey-select select:focus {
  border-color: #E24622; /* Bright orange */
  outline: none;
}

/* Survey Sections */
.survey-section {
  margin-bottom: 30px;
}

.survey-section h2 {
  font-size: 22px;
  color: #511013; /* Dark red */
  margin-bottom: 20px;
  border-bottom: 2px solid #E24622; /* Bright orange */
  padding-bottom: 10px;
}

/* Questions */
.question {
  margin-bottom: 20px;
}

.question label {
  display: block;
  font-size: 16px;
  color: #575756; /* Dark gray */
  margin-bottom: 10px;
}

.question input[type="text"],
.question textarea {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #9D9D9C; /* Gray */
  border-radius: 4px;
  background-color: #FFFFFF; /* White */
  color: #575756; /* Dark gray */
}

.question input[type="text"]:focus,
.question textarea:focus {
  border-color: #E24622; /* Bright orange */
  outline: none;
}

.question textarea {
  resize: vertical; /* Allow vertical resizing */
  min-height: 100px;
}

.question .radio-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.question .radio-options label {
  display: flex;
  align-items: center;
  font-size: 16px;
  color: #575756; /* Dark gray */
}

.question .radio-options input[type="radio"] {
  margin-right: 10px;
}

/* Navigation Buttons */
.survey-navigation {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.survey-navigation button {
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.survey-navigation button.previous {
  background-color: #9D9D9C; /* Gray */
  color: #FFFFFF; /* White */
}

.survey-navigation button.next {
  background-color: #B91116; /* Dark red */
  color: #FFFFFF; /* White */
}

.survey-navigation button.next:hover {
  background-color: #E24622; /* Bright orange */
}

p{
  margin: 2%;
}

.error-message{
  color: #E24622;
  font-size: 14px;
  margin-top: 10px;
}