/* Reset and base layout */
*, *::before, *::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 60px 20px 40px; /* Top and bottom spacing */
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, #75c0cc, #c3cfe2);
  background-size: 400% 400%;
  animation: gradientBG 10s ease infinite;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Feedback card container */
.glass-card {
  background: #ffffff;
  padding: 40px 35px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 850px;
  color: #333;
  animation: fadeIn 1s ease-in-out;
}

/* Title */
h1 {
  text-align: center;
  font-weight: 600;
  margin-bottom: 25px;
  font-size: 28px;
  color: #333;
}

/* Form Styling */
.form-content {
  margin-top: 20px;
  margin-bottom: 30px;
}

.form-content input,
.form-content select {
  width: 100%;
  padding: 16px 18px;
  margin-bottom: 0px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background: #f9f9f9;
  color: #333;
  font-size: 16px;
  transition: 0.3s;
}

.form-content input::placeholder {
  color: #777;
  font-weight: 400;
  font-size: 14px;
}

.form-content input:focus,
.form-content select:focus {
  background: #fff;
  border-color: #5e9cff;
  outline: none;
  box-shadow: 0 0 5px rgba(94, 156, 255, 0.3);
}

/* Input with Icons */
.input-icon {
  position: relative;
  margin-bottom: 20px;
}

.input-icon input {
  padding-left: 45px; /* leave space for icon */
}

.input-icon i {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  color: #777;
  font-size: 18px;
  pointer-events: none;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px; /* vertical gap, horizontal gap */
  margin-bottom: 20px;
}

.radio-group label {
  display: flex;
  align-items: center;
  margin-right: 30px;
  padding: 6px 10px;
  background: #f1f1f1;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
}

.radio-group input[type="radio"] {
  transform: scale(1.2);
  cursor: pointer;
}

.radio-group label:hover {
  background: #e3ecff;
}

/* Submit Button */
.btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 600;
  color: white;
  background: linear-gradient(to right, #667eea, #764ba2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background: linear-gradient(to right, #5a75db, #6e55c1);
  transform: scale(1.02);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

/* Fade In Effect */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

input,
select {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background: #f9f9f9;
  color: #333;
  transition: all 0.3s ease;
}

input::placeholder {
  color: #777;
  font-weight: 500;
  font-size: 15px;
}

input:focus,
select:focus {
  background: #fff;
  border-color: #5e9cff;
  outline: none;
  box-shadow: 0 0 6px rgba(94, 156, 255, 0.3);
}

/* Buttons */
button {
  padding: 14px;
  font-size: 17px;
  font-weight: 600;
  background: linear-gradient(to right, #667eea, #764ba2);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover {
  background: linear-gradient(to right, #5a75db, #6e55c1);
  transform: scale(1.02);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}


/* Rating Question Styling */
fieldset {
  border: none;
  padding: 0;
  margin-top: 25px;
}

legend {
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #333;
}

.question-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 25px;
}

.question-row p {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 8px;
  color: #2a2a2a;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rating-group {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.question-row p::before {
  font-weight: 700;
  color: #333;
  margin-right: 5px;
}


.rating-group label {
  background: #e2ebf7;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  font-weight: 500;
}

.rating-group input {
  display: none;
}

.rating-group input:checked + label {
  background: #005bbb;
  color: #fff;
  border-color: #004080;
  box-shadow: 0 0 6px rgba(0, 91, 187, 0.4);
  transform: scale(1.05);
}

.rating-group label:hover {
  background: #d6e8ff;
  transform: scale(1.03);
}

/* Nav buttons */
.nav-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
  gap: 12px;
}

.nav-buttons button {
  width: 100%;
}

/* Status/Error Display */
#status {
  margin-top: 20px;
  color: red;
  text-align: center;
  font-weight: bold;
}
