/* SIGNUP  */
body {
  font-family: "Poppins", sans-serif;
}

.text-teal {
  color: #0f766e;
}

.form-wrapper {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.form-control {
  border-radius: 8px;
  padding: 12px 16px;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 0.25rem rgba(20, 184, 166, 0.15);
}

.btn {
  border-radius: 8px;
  padding: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0d6660 0%, #0f9b8e 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 118, 110, 0.4);
}

.btn-danger {
  background: #ffffff;
  color: #dc3545;
  border: 2px solid #dc3545;
}

.btn-danger:hover {
  background: #dc3545;
  color: #ffffff;
  transform: translateY(-2px);
}

.text-link {
  color: #0f766e;
  font-weight: 600;
  transition: color 0.3s ease;
}

.text-link:hover {
  color: #14b8a6;
}

.particle {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.2;
  animation: float 15s infinite;
  z-index: 0;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }

  33% {
    transform: translateY(-30px) translateX(30px);
  }

  66% {
    transform: translateY(30px) translateX(-30px);
  }
}

.particle:nth-child(1) {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.3);
  top: 10%;
  left: 10%;
}

.particle:nth-child(2) {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  top: 70%;
  left: 80%;
  animation-delay: 5s;
}

.particle:nth-child(3) {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.15);
  top: 40%;
  left: 5%;
  animation-delay: 10s;
}

.container {
  position: relative;
  z-index: 1;
}

/* LOGIN */

.text-teal {
  color: #0f766e;
}

.form-wrapper {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.form-control {
  border-radius: 8px;
  padding: 12px 16px;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 0.25rem rgba(20, 184, 166, 0.15);
}

.btn {
  border-radius: 8px;
  padding: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0d6660 0%, #0f9b8e 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 118, 110, 0.4);
}

.text-link {
  color: #0f766e;
  font-weight: 600;
  transition: color 0.3s ease;
}

.text-link:hover {
  color: #14b8a6;
}

.particle {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.2;
  animation: float 15s infinite;
  z-index: 0;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }

  33% {
    transform: translateY(-30px) translateX(30px);
  }

  66% {
    transform: translateY(30px) translateX(-30px);
  }
}

.particle:nth-child(1) {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.3);
  top: 10%;
  left: 10%;
}

.particle:nth-child(2) {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  top: 70%;
  left: 80%;
  animation-delay: 5s;
}

.particle:nth-child(3) {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.15);
  top: 40%;
  left: 5%;
  animation-delay: 10s;
}

.container {
  position: relative;
  z-index: 1;
}

/* Main page (startSurvey.html) */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(
      rgba(15, 118, 110, 0.65),
      rgba(20, 184, 166, 0.65)
    ),
    url("https://images.unsplash.com/photo-1631217868264-e5b90bb7e133?q=80&w=2091")
      center/cover no-repeat fixed;
  position: relative;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(45, 212, 191, 0.2) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(15, 118, 110, 0.2) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.content-wrapper {
  position: relative;
  z-index: 2;
}

.icon-pulse {
  animation: pulse 2s infinite, iconFadeIn 1s ease backwards;
}

@keyframes iconFadeIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.hero-icon {
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-title {
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
  0%,
  100% {
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3),
      0 0 30px rgba(255, 255, 255, 0.3);
  }

  50% {
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5),
      0 0 40px rgba(255, 255, 255, 0.6), 0 0 60px rgba(20, 184, 166, 0.4);
  }
}

.hero-subtitle {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  opacity: 0.95;
  animation: slideInFromLeft 1s ease 0.3s backwards;
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 0.95;
    transform: translateX(0);
  }
}

.hero-description {
  max-width: 700px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  opacity: 0.9;
  line-height: 1.6;
  animation: slideInFromRight 1s ease 0.5s backwards;
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 0.9;
    transform: translateX(0);
  }
}

.btn-start {
  background: #ffffff;
  color: #0f766e;
  border: none;
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.4s ease;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  animation: buttonBounce 1s ease 0.7s backwards;
}

@keyframes buttonBounce {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }

  60% {
    transform: translateY(-10px);
  }

  80% {
    transform: translateY(5px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-start::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.btn-start:hover::before {
  left: 100%;
}

.btn-start:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  background: #f0fdfa;
  color: #0d6660;
}

.btn-start:hover .arrow-icon {
  transform: translateX(5px);
}

.arrow-icon {
  transition: transform 0.3s ease;
}

.info-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  animation: cardFadeInUp 0.8s ease backwards;
}

.info-card:nth-child(1) {
  animation-delay: 0.9s;
}

.info-card:nth-child(2) {
  animation-delay: 1.1s;
}

.info-card:nth-child(3) {
  animation-delay: 1.3s;
}

@keyframes cardFadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.info-card:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px);
}

.card-text-opacity {
  opacity: 0.9;
}

.fade-in-up {
  animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*  FORM PAGE (survey.html) */
.survey-header {
  background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
  color: white;
  padding: 50px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.survey-header::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(30%, -30%);
}

.survey-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-30%, 30%);
}

.header-content {
  position: relative;
  z-index: 1;
}

.survey-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 40px;
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

.survey-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.question-card {
  background: white;
  border-left: 4px solid #14b8a6;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.question-card:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.question-number {
  background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(15, 118, 110, 0.3);
}

.question-text {
  color: #1f2937;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.required-badge {
  background: #fecaca;
  color: #dc2626;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 10px;
}

.form-label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 10px;
}

.form-control,
.form-select,
textarea {
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 16px;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.form-control:focus,
.form-select:focus,
textarea:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 0.25rem rgba(20, 184, 166, 0.15);
  transform: translateY(-2px);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.form-check {
  padding: 12px 15px;
  margin-bottom: 10px;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.form-check:hover {
  background: #f0f9ff;
}

.form-check-input {
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  border: 2px solid #d1d5db;
  cursor: pointer;
}

.form-check-input:checked {
  background-color: #14b8a6;
  border-color: #14b8a6;
}

.form-check-label {
  margin-left: 10px;
  cursor: pointer;
  font-weight: 500;
  color: #374151;
}

.btn-submit {
  background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
  border: none;
  padding: 16px 50px;
  font-weight: 700;
  border-radius: 10px;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  color: white;
  box-shadow: 0 4px 15px rgba(15, 118, 110, 0.3);
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(15, 118, 110, 0.4);
  background: linear-gradient(135deg, #0d6660 0%, #0f9b8e 100%);
}

.progress-bar-custom {
  height: 8px;
  background: #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 30px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0f766e 0%, #14b8a6 100%);
  transition: width 0.3s ease;
  border-radius: 10px;
}

.info-box {
  background: #f0f9ff;
  border-left: 4px solid #3b82f6;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.info-box i {
  color: #3b82f6;
  font-size: 1.5rem;
}

.loading-spinner {
  display: none;
  text-align: center;
  padding: 40px;
}

.spinner-border {
  width: 3rem;
  height: 3rem;
  border-width: 0.3rem;
  color: #14b8a6;
}

@media (max-width: 768px) {
  .survey-card {
    padding: 25px 20px;
  }

  .question-card {
    padding: 20px;
  }

  .question-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .question-text {
    font-size: 1rem;
  }
}

/* Admin Responses */
.page-title {
  color: #ecfeff;
  font-weight: 600;
}

.response-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 0 0.25rem rgba(20, 184, 166, 0.15);
  overflow: hidden;
}

.response-header {
  background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
  color: #ecfeff;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.question {
  color: #0f766e;
  font-weight: 600;
  margin-bottom: 4px;
}

.answer {
  background: rgba(255, 255, 255, 0.75);
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 14px;
  color: #0f172a;
  border-left: 4px solid #14b8a6;
}

.answer.empty {
  opacity: 0.6;
  font-style: italic;
}

.timestamp {
  font-size: 0.85rem;
  opacity: 0.85;
}
