/* insight/css/diagnostic.css */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal: #2a6b6b;
  --teal-light: #3d8f8f;
  --gold: #c8a96e;
  --text: #0a0a0a;
  --gray: #707070;
  --bg: #ffffff;
  --bg-soft: #f7f6f3;
}

body {
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.di-label {
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  letter-spacing: 0.35em;
  color: var(--teal-light);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.di-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.di-title em { font-style: italic; color: var(--teal); }

/* ── 폼 ── */
.di-form-wrap {
  max-width: 600px;
  margin: 0 auto;
  padding: 80px 24px;
}

.di-field { margin-bottom: 20px; }

.di-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--gray);
}

.di-field .required { color: var(--teal); margin-left: 2px; }

.di-guide {
  font-size: 12px;
  color: #aaa;
  line-height: 1.5;
  margin-bottom: 6px;
}

.di-field input,
.di-field textarea {
  width: 100%;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
  outline: none;
}

.di-field input:focus,
.di-field textarea:focus { border-color: var(--teal); }

.di-field textarea { resize: vertical; min-height: 100px; }

.di-btn {
  width: 100%;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 16px;
  font-size: 16px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
}

.di-btn:hover { background: var(--teal-light); }
.di-btn:disabled { background: #aaa; cursor: not-allowed; }

/* ── 로딩 ── */
.di-loading {
  text-align: center;
  padding: 60px 24px;
  display: none;
}

.di-loading.is-active { display: block; }

.di-spinner {
  width: 48px; height: 48px;
  border: 4px solid #e0e0e0;
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 24px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.di-loading-step {
  font-size: 14px;
  color: var(--gray);
  margin-top: 8px;
}
