/* ===== Quiz Container Styles ===== */
.calculator-container {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* ===== Start Button Styles ===== */
.gender-selection {
  text-align: center;
  padding: 20px 0;
}

.gender-selection h3 {
  font-size: 1.3rem;
  color: #2c3e50;
  margin-bottom: 20px;
  font-weight: 600;
}

#start-test-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 16px 48px;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  letter-spacing: 0.5px;
  margin: 0 auto;
}

#start-test-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}

#start-test-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

/* ===== Question Styles ===== */
.question {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.question p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #2c3e50;
  margin-bottom: 20px;
}

.question p strong {
  color: #667eea;
  font-weight: 600;
}

/* ===== Options (Radio Buttons) Styles ===== */
.options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 15px;
}

.options label {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  background: white;
  border: 2px solid #e0e5ec;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 0.95rem;
  color: #34495e;
  font-weight: 500;
}

.options label:hover {
  border-color: #667eea;
  background: #f0f2ff;
  transform: translateX(4px);
}

.options label input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  margin-right: 12px;
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s ease;
  cursor: pointer;
}

.options label input[type="radio"]:checked {
  border-color: #667eea;
  background: #667eea;
}

.options label input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
}

.options label input[type="radio"]:checked + span {
  color: #667eea;
  font-weight: 600;
}

.options label:has(input[type="radio"]:checked) {
  border-color: #667eea;
  background: #f0f2ff;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

/* ===== Navigation Buttons ===== */
.calc-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 14px 36px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  letter-spacing: 0.5px;
  margin-top: 20px;
  display: inline-block;
}

.calc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
}

.calc-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.calc-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

#next-btn, #submit-btn {
  display: none;
}

/* ===== Progress Bar ===== */
.progress-container {
  width: 100%;
  height: 8px;
  background: #e9ecef;
  border-radius: 10px;
  margin-bottom: 25px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  transition: width 0.5s ease;
  width: 0%;
}

/* ===== Result Styles ===== */
.type-result {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 30px;
  border-radius: 12px;
  border: 2px solid #667eea;
  text-align: center;
  margin: 20px 0;
}

.type-result h3 {
  font-size: 1.6rem;
  color: #2c3e50;
  margin-bottom: 15px;
}

.type-result h3 span {
  color: #667eea;
  font-weight: 700;
}

.type-result p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #34495e;
  max-width: 700px;
  margin: 0 auto;
}

/* ===== FAQ Section Enhancements ===== */
#info h3 {
  color: #2c3e50;
  font-size: 1.15rem;
  margin-top: 25px;
  margin-bottom: 10px;
  font-weight: 600;
}

#info h3:first-of-type {
  margin-top: 0;
}

#info ul {
  padding-left: 25px;
  margin: 15px 0;
}

#info ul li {
  margin-bottom: 8px;
  line-height: 1.6;
  color: #34495e;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .calculator-container {
    padding: 20px;
  }

  .options {
    grid-template-columns: 1fr;
  }

  .options label {
    padding: 10px 14px;
    font-size: 0.9rem;
  }

  #start-test-btn {
    padding: 14px 32px;
    font-size: 1rem;
    width: 100%;
  }

  .calc-btn {
    padding: 12px 28px;
    font-size: 0.95rem;
    width: 100%;
  }

  .question {
    padding: 18px;
  }

  .type-result h3 {
    font-size: 1.3rem;
  }

  .type-result p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .calculator-container {
    padding: 15px;
  }

  .gender-selection h3 {
    font-size: 1.1rem;
  }

  .question p {
    font-size: 0.95rem;
  }

  .options label {
    font-size: 0.85rem;
    padding: 8px 12px;
  }
}
