.calc-form {
  max-width: 400px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  font-size: 16px;
  color: var(--color-text);
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  font-size: 16px;
  color: var(--color-text);
  background: var(--color-surface);
  transition: border-color 0.2s;
}

.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* 라디오 버튼 */
.radio-group {
  display: flex;
  gap: 16px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  padding: 10px 16px;
  border: 2px solid var(--color-border);
  border-radius: 10px;
  flex: 1;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}

.radio-label:has(input:checked) {
  border-color: var(--color-primary);
  background: #eef2ff;
}

.radio-label input {
  display: none;
}

.radio-custom {
  display: none;
}

/* 체급 슬라이드 토글 */
.slide-group {
  max-height: 80px;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease, margin-bottom 0.3s ease;
  opacity: 1;
}

.slide-group.hidden {
  max-height: 0;
  opacity: 0;
  margin-bottom: 0;
}

/* 계산 버튼 */
.calc-btn {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s, transform 0.1s;
}

.calc-btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.calc-btn:active {
  transform: translateY(0);
}

/* 결과 영역 */
.pet-result {
  display: none;
  margin-top: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.result-highlight {
  text-align: center;
  padding: 28px 20px;
  background: var(--color-bg);
  border-radius: 16px;
  border: 1px solid var(--color-border);
  margin-bottom: 20px;
}

.result-icon {
  font-size: 48px;
  margin-bottom: 8px;
}

.result-age {
  font-size: 22px;
  color: var(--color-text);
  line-height: 1.4;
}

.result-age strong {
  font-size: 48px;
  font-weight: 800;
  color: var(--color-primary);
}

.result-stage {
  font-size: 18px;
  font-weight: 600;
  margin-top: 8px;
}

/* 건강 관리 팁 */
.result-tips {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.result-tips h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: var(--color-text);
}

.result-tips ul {
  margin: 0;
  padding-left: 20px;
}

.result-tips li {
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: 4px;
}

/* 차트 */
.chart-container {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 20px;
}

.chart-container h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: var(--color-text);
}

.chart-container canvas {
  width: 100%;
  border-radius: 8px;
}

/* 콘텐츠 섹션 테이블 */
.content-section table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

.content-section th,
.content-section td {
  padding: 8px 10px;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.content-section th {
  font-weight: 600;
  border-bottom: 2px solid var(--color-border);
}

.content-section td:first-child,
.content-section th:first-child {
  text-align: left;
}

@media (max-width: 640px) {
  .result-age strong {
    font-size: 40px;
  }

  .result-icon {
    font-size: 40px;
  }

  .radio-label {
    padding: 8px 12px;
    font-size: 15px;
  }
}
