* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  background: #0a0e1a;
  color: #e2e8f0;
  min-height: 100vh;
  background-image: radial-gradient(ellipse 80% 40% at 50% -10%, rgba(99,179,237,0.12) 0%, transparent 70%),
                    radial-gradient(ellipse 60% 30% at 90% 80%, rgba(124,58,237,0.08) 0%, transparent 60%);
  padding: 4px 12px 8px;
}

.container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.header {
  text-align: center;
  margin-bottom: 4px;
  padding-top: 0;
}

h1 {
  font-size: 1.7rem;
  font-weight: 700;
  background: linear-gradient(135deg, #e2e8f0 30%, #63b3ed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  margin: 10px 0;
}

.card {
  background: #111827;
  border: 1px solid rgba(99,179,237,0.18);
  border-radius: 14px;
  padding: 8px 12px;
  box-shadow: 0 4px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.04);
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

label {
  font-size: 0.72rem;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: 0.3px;
}

input, select {
  background: #1e293b;
  border: 1px solid rgba(99,179,237,0.15);
  border-radius: 10px;
  color: #e2e8f0;
  font-family: 'Pretendard', system-ui, sans-serif;
  font-size: 0.82rem;
  height: 34px;
  padding: 0 14px;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
}

select {
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2363b3ed' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

input:focus, select:focus {
  border-color: rgba(99,179,237,0.5);
  box-shadow: 0 0 0 3px rgba(99,179,237,0.08);
}

.submit-btn {
  width: 100%;
  height: 40px;
  background: linear-gradient(135deg, #63b3ed, #7c3aed);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-family: 'Pretendard', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
  letter-spacing: 0.5px;
  transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 4px 20px rgba(99,179,237,0.25);
}

.submit-btn:active { transform: scale(0.98); opacity: 0.9; }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.form-message {
  font-size: 0.82rem;
  color: #f87171;
  text-align: center;
  min-height: 20px;
  margin-top: 4px;
}

.footer-note {
  text-align: center;
  font-size: 0.72rem;
  color: #334155;
  margin-top: 20px;
}

/* result.html 전용 스타일 */
.info-card {
  background: #111827;
  border: 1px solid rgba(99,179,237,0.18);
  border-radius: 14px;
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.info-label {
  display: block;
  font-size: 0.7rem;
  color: #94a3b8;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

.info-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: #e2e8f0;
  word-break: keep-all;
}

.job-card {
  background: linear-gradient(135deg, rgba(99,179,237,0.12), rgba(124,58,237,0.1));
  border: 1px solid rgba(99,179,237,0.3);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}

.job-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #63b3ed, #7c3aed);
}

.job-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.section-card {
  background: #111827;
  border: 1px solid rgba(99,179,237,0.18);
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 6px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.section-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #63b3ed;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-family: 'Courier New', monospace;
}

.section-text {
  font-size: 0.88rem;
  line-height: 1.75;
  color: #cbd5e1;
  word-break: keep-all;
  white-space: pre-line;
}

.process-card {
  background: #111827;
  border: 1px solid rgba(99,179,237,0.18);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 6px;
}

.process-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #7c3aed;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-family: 'Courier New', monospace;
}

.process-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.process-step:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(124,58,237,0.2);
  border: 1px solid rgba(124,58,237,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Courier New', monospace;
  font-size: 0.7rem;
  color: #a78bfa;
  flex-shrink: 0;
  margin-top: 1px;
}

.step-content {
  width: 100%;
  min-width: 0;
}

.step-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 3px;
}

.step-text {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.6;
  word-break: keep-all;
}

.download-wrap {
  margin-top: 10px;
}

.download-btn {
  display: block;
  width: 100%;
  min-height: 46px;
  background: rgba(124,58,237,0.14);
  border: 1px solid rgba(124,58,237,0.38);
  border-radius: 12px;
  color: #d8b4fe;
  font-family: 'Pretendard', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  padding: 12px 14px;
  text-align: center;
  transition: background 0.2s ease, transform 0.1s ease, opacity 0.2s ease;
}

.download-btn:hover {
  background: rgba(124,58,237,0.2);
}

.download-btn:active {
  transform: translateY(1px);
}

.download-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.download-help {
  margin-top: 7px;
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.5;
  word-break: keep-all;
}

.back-btn {
  display: block;
  width: 100%;
  height: 52px;
  background: rgba(99,179,237,0.08);
  border: 1px solid rgba(99,179,237,0.25);
  border-radius: 12px;
  color: #63b3ed;
  font-family: 'Pretendard', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  letter-spacing: 0.3px;
  transition: background 0.2s;
  text-align: center;
  line-height: 52px;
  text-decoration: none;
}

.back-btn:active {
  background: rgba(99,179,237,0.14);
}

.empty-box {
  text-align: center;
  padding: 60px 20px;
  color: #94a3b8;
}
/* ── 언어 선택 버튼 공통 ── */
.lang-switcher {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 5px !important;
  margin-bottom: 8px !important;
  overflow: visible !important;
  width: 100%;
  box-sizing: border-box;
}
.lang-btn {
  display: inline-block;
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 0.72rem;
  color: #64748b;
  text-decoration: none;
  padding: 4px 8px;
  border: 1px solid rgba(148,163,184,0.2);
  border-radius: 6px;
  transition: all 0.2s;
  font-family: system-ui, sans-serif;
}
.lang-btn:hover { color: #ffd700; border-color: #ffd700; }
.lang-btn.active { color: #ffd700; border-color: #ffd700; }
