/* Overlay */
.word-form-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 9999;
}

/* Modal Box */
.word-form-modal {
  background: #ffffff;
  width: 100%;
  max-width: 520px;
  border-radius: 12px;
  padding: 35px 30px 40px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  animation: word-form-fadeIn 0.3s ease;
}

/* Close Button */
.word-form-close {
  position: absolute;
  top: 15px;
  right: 18px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
}

/* Title */
.word-form-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
}

/* Subtitle */
.word-form-subtitle {
  font-size: 14px !important;
  color: #555 !important;
  margin-bottom: 22px !important;
}

/* Form */
.word-form-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Inputs */
.word-form-input,
.word-form-textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 14px;
  outline: none;
  transition: 0.2s;
}

.word-form-textarea::placeholder{
  font-family: var(--font-body);
}

.word-form-input:focus,
.word-form-textarea:focus {
  border-color: #000;
}

/* Button */
.word-form-btn {
  margin-top: 10px;
  background: #ffd400;
  color: #000;
  border: 2px solid #000;
  padding: 12px;
  font-weight: 700;
  font-size: 16px;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 6px 0 #ff2b7a;
  transition: 0.2s ease;
}

.word-form-btn:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 #ff2b7a;
}

/* Animation */
@keyframes word-form-fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Responsive */
@media (max-width: 480px) {
  .word-form-modal {
    padding: 25px 20px 30px;
  }
  .word-form-title {
    font-size: 20px;
  }
}

.quiz-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}

.quiz-modal-content {
  background: #fff;
  width: 90%;
  max-width: 650px;
  margin: 5% auto;
  padding: 25px;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  text-align: left;
  animation: fadeIn 0.3s ease;
  background-image: url("../assets/images/Emoji\ background.png");
}

.quiz-center { text-align: center; }

.quiz-close {
  float: right;
  font-size: 26px;
  cursor: pointer;
}

.quiz-progress {
  font-weight: bold;
  margin-bottom: 15px;
  color: #555;
}

.quiz-question-card {
  /* background: #f7f8ff; */
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.quiz-options label {
  display: block;
  padding: 10px;
  margin: 8px 0;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid #ddd;
  transition: 0.2s;
}

.quiz-options input { margin-right: 8px; }

.quiz-options label:hover {
  background: #eef1ff;
  border-color: #667eea;
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
}

.quiz-result-img {
  width: 100%;
  border-radius: 12px;
  margin-top: 15px;
}

@keyframes fadeIn {
  from {opacity: 0; transform: translateY(-10px);}
  to {opacity: 1; transform: translateY(0);}
}

.share-result{
  margin: 0.5rem 0;
}