* {
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  margin: 0;
  padding: 0;
  background-color: #f3f4f6;
  color: #333;
  line-height: 1.8;
}

/* Enhanced sticky banner styles */
.sticky-banner {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: linear-gradient(90deg, #3182ce, #6b46c1, #3182ce);
  background-size: 200% 200%;
  animation: banner-gradient 6s ease-in-out infinite;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 22px 40px;
  box-shadow: 0 6px 24px rgba(49,130,206,0.18);
  border-bottom: 4px solid #fff;
  position: relative;
}
@keyframes banner-gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.sticky-banner::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6px;
  background: linear-gradient(90deg, #f6e05e 0%, #63b3ed 100%);
  border-radius: 0 0 8px 8px;
  opacity: 0.7;
}
.logo-img {
  height: 68px;
  width: auto;
  margin-right: 32px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  padding: 8px;
  transition: transform 0.3s cubic-bezier(.4,2,.6,1), box-shadow 0.3s;
  border: 2px solid #f6e05e;
}
.logo-img:hover {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 8px 32px rgba(49,130,206,0.22);
}
.banner-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-shadow: 2px 4px 12px rgba(0,0,0,0.18);
  position: relative;
  padding-bottom: 8px;
  color: #fff;
}
.banner-title::after {
  content: '\2728'; /* Sparkles emoji */
  position: absolute;
  right: -32px;
  top: 0;
  font-size: 1.6rem;
  color: #f6e05e;
  filter: drop-shadow(0 2px 6px #f6e05e88);
}

/* Improved responsive form container */
.container {
  width: 100%;
  max-width: 900px;
  min-width: 260px;
  margin: 5vw auto 0 auto;
  padding: 3vw 4vw;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  box-sizing: border-box;
  transition: max-width 0.3s, padding 0.3s, margin 0.3s;
}

@media (max-width: 1279px) {
  .container {
    max-width: 92vw;
    padding: 4vw 3vw;
    margin-top: 6vw;
  }
}
@media (max-width: 1023px) {
  .container {
    max-width: 98vw;
    padding: 5vw 2vw;
    margin-top: 7vw;
  }
}
@media (max-width: 849px) {
  .container {
    max-width: 100vw;
    padding: 6vw 1vw;
    margin-top: 8vw;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
}
@media (max-width: 599px) {
  .container {
    max-width: 100vw;
    min-width: 0;
    padding: 4vw 0.5vw;
    margin-top: 10vw;
    border-radius: 4px;
    box-shadow: none;
  }
}
@media (max-width: 399px) {
  .container {
    padding: 2vw 0.2vw;
    margin-top: 12vw;
    border-radius: 0;
  }
}

h1 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 26px;
  color: #1a202c;
}

/* Smaller heading for secondary assessment title */
.secondary-title {
  font-size: 18px;
  margin-bottom: 24px;
  white-space: nowrap;
}

.question-block {
  margin-bottom: 56px;
  border: 1px solid #e2e8f0;
  padding: 25px;
  border-radius: 10px;
  background-color: #f9fafb;
}

.question-block h3 {
  font-size: 18px;
  margin-bottom: 16px;
  color: #2d3748;
}

/* Add spacing below question text */
.question-block > b {
  display: block;
  margin-bottom: 0;
}
.question-block > span {
  display: block;
  margin-bottom: 0;
  padding-bottom: 0;
}
.question-block > h3 {
  display: block;
  margin-bottom: 32px;
}

.question-block textarea {
  margin-bottom: 0;
}

.rating-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  margin-top: 0 !important;
  padding-top: 0;
}

.rating-options label {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background-color: #f9fafb;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: #2d3748;
  cursor: pointer;
  transition: 0.3s ease;
  user-select: none;
  position: relative;
  margin-bottom: 0;
}

.rating-options label:hover {
  background-color: #edf2f7;
  border-color: #cbd5e0;
}

.rating-options input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  margin-top: -8px;
}

.rating-options input[type="radio"]:checked + span {
  color: #2c5282;
  font-weight: 600;
}

.rating-options input[type="radio"]:checked + span::before {
  content: "\2714";
  display: inline-block;
  color: white;
  background-color: #3182ce;
  font-size: 9px;
  width: 12px;
  height: 12px;
  text-align: center;
  line-height: 12px;
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
  top: 6px;
}

.rating-options span {
  display: inline-block;
  padding-left: 18px;
  position: relative;
}

.rating-options span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 12px;
  border: 2px solid #a0aec0;
  border-radius: 50%;
  background: white;
  transition: all 0.3s ease;
}


input[type="file"],
textarea {
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  border-radius: 8px;
  border: 1px solid #cbd5e0;
  font-size: 14px;
  background: #fff;
}

textarea {
  resize: vertical;
}

input[type="file"]:focus,
textarea:focus {
  outline: none;
  border-color: #3182ce;
  box-shadow: 0 0 0 2px rgba(49,130,206,0.2);
}

button {
  background-color: #3182ce;
  color: white;
  font-size: 16px;
  padding: 14px 30px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: block;
  margin: 0 auto;
  transition: background 0.3s ease;
}

button:hover {
  background-color: #2b6cb0;
}

.main-title-bg {
  background: #f9fafb;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px 0;
  margin-bottom: 32px;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1023px) {
  .main-title-bg {
    padding: 12px 0;
    font-size: 16px;
  }
  .question-block {
    padding: 16px 6px;
    margin-bottom: 32px;
  }
}
@media (max-width: 767px) {
  .container {
    max-width: 100vw;
    padding: 12px 2vw;
    margin-top: 56px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
}
@media (max-width: 599px) {
  .container {
    max-width: 100vw;
    padding: 6px 1vw;
    margin-top: 40px;
    border-radius: 4px;
    box-shadow: none;
  }
}
@media (max-width: 479px) {
  .container {
    max-width: 100vw;
    padding: 2px 0.5vw;
    margin-top: 24px;
    border-radius: 0;
    box-shadow: none;
  }
}

/* Center sticky banner content */
.sticky-banner {
  justify-content: center;
  text-align: center;
}

/* On mobile, stack logo and title vertically and center */
@media (max-width: 600px) {
  .sticky-banner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .logo-img {
    margin-right: 0;
    margin-bottom: 8px;
  }
}

/* Extra Small Mobile: 320px–479px */
@media (max-width: 479px) {
  .container {
    padding: 4px 1vw;
    margin-top: 48px;
  }
  .sticky-banner {
    flex-direction: column;
    padding: 6px 2vw;
  }
  .logo-img {
    height: 32px;
    margin-bottom: 6px;
  }
  .banner-title {
    font-size: 1rem;
  }
  .question-block {
    padding: 6px 1vw;
    font-size: 13px;
  }
}

/* Small Mobile: 480px–599px */
@media (min-width: 480px) and (max-width: 599px) {
  .container {
    padding: 8px 2vw;
    margin-top: 56px;
  }
  .sticky-banner {
    flex-direction: column;
    padding: 10px 3vw;
  }
  .logo-img {
    height: 38px;
    margin-bottom: 8px;
  }
  .banner-title {
    font-size: 1.2rem;
  }
  .question-block {
    padding: 10px 2vw;
    font-size: 14px;
  }
}

/* Large Mobile: 600px–767px */
@media (min-width: 600px) and (max-width: 767px) {
  .container {
    padding: 14px 3vw;
    margin-top: 64px;
  }
  .sticky-banner {
    flex-direction: row;
    padding: 12px 4vw;
  }
  .logo-img {
    height: 44px;
    margin-bottom: 0;
  }
  .banner-title {
    font-size: 1.4rem;
  }
  .question-block {
    padding: 14px 3vw;
    font-size: 15px;
  }
}

/* Small Tablet: 768px–849px */
@media (min-width: 768px) and (max-width: 849px) {
  .container {
    padding: 18px 4vw;
    margin-top: 70px;
  }
  .sticky-banner {
    padding: 14px 5vw;
  }
  .logo-img {
    height: 50px;
  }
  .banner-title {
    font-size: 1.6rem;
  }
  .question-block {
    padding: 18px 4vw;
    font-size: 16px;
  }
}

/* Medium Tablet: 850px–939px */
@media (min-width: 850px) and (max-width: 939px) {
  .container {
    padding: 22px 5vw;
    margin-top: 80px;
  }
  .sticky-banner {
    padding: 16px 6vw;
  }
  .logo-img {
    height: 54px;
  }
  .banner-title {
    font-size: 1.8rem;
  }
  .question-block {
    padding: 22px 5vw;
    font-size: 17px;
  }
}

/* Large Tablet: 940px–1023px */
@media (min-width: 940px) and (max-width: 1023px) {
  .container {
    padding: 28px 6vw;
    margin-top: 90px;
  }
  .sticky-banner {
    padding: 18px 7vw;
  }
  .logo-img {
    height: 58px;
  }
  .banner-title {
    font-size: 2rem;
  }
  .question-block {
    padding: 28px 6vw;
    font-size: 18px;
  }
}

/* Small Laptop: 1024px–1149px */
@media (min-width: 1024px) and (max-width: 1149px) {
  .container {
    padding: 32px 7vw;
    margin-top: 100px;
  }
  .sticky-banner {
    padding: 20px 8vw;
  }
  .logo-img {
    height: 62px;
  }
  .banner-title {
    font-size: 2.1rem;
  }
  .question-block {
    padding: 32px 7vw;
    font-size: 19px;
  }
}

/* Large Laptop: 1150px–1279px */
@media (min-width: 1150px) and (max-width: 1279px) {
  .container {
    padding: 36px 8vw;
    margin-top: 110px;
  }
  .sticky-banner {
    padding: 22px 9vw;
  }
  .logo-img {
    height: 66px;
  }
  .banner-title {
    font-size: 2.2rem;
  }
  .question-block {
    padding: 36px 8vw;
    font-size: 20px;
  }
}

/* Large Desktop: 1280px–1439px */
@media (min-width: 1280px) and (max-width: 1439px) {
  .container {
    padding: 40px 10vw;
    margin-top: 120px;
  }
  .sticky-banner {
    padding: 24px 10vw;
  }
  .logo-img {
    height: 70px;
  }
  .banner-title {
    font-size: 2.4rem;
  }
  .question-block {
    padding: 40px 10vw;
    font-size: 21px;
  }
}

/* Ultra-Wide Screens: 1440px and above */
@media (min-width: 1440px) {
  .container {
    padding: 48px 12vw;
    margin-top: 130px;
    max-width: 1200px;
  }
  .sticky-banner {
    padding: 28px 12vw;
  }
  .logo-img {
    height: 80px;
  }
  .banner-title {
    font-size: 2.7rem;
  }
  .question-block {
    padding: 48px 12vw;
    font-size: 22px;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .container {
    padding: 48px 7vw;
    max-width: 900px;
  }
  .question-block {
    margin-bottom: 64px;
    padding: 36px 3vw;
    font-size: 1.15rem;
    line-height: 2.1;
  }
  .rating-options label {
    font-size: 1rem;
    padding: 12px 18px;
    line-height: 1.8;
  }
  textarea {
    font-size: 1rem;
    line-height: 1.7;
    padding: 14px;
  }
}
