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

body {
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: #f5f7fa;
  color: #1f2937;
  line-height: 1.6;
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 0;
}

.logo {
  font-size: 20px;
  font-weight: 800;
}

.logo span {
  color: #2563eb;
}

/* Search */
.search-section {
  text-align: center;
  padding: 64px 0 48px;
}

.search-section h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
}

.search-desc {
  color: #6b7280;
  margin-bottom: 28px;
}

.search-form {
  display: flex;
  justify-content: center;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
}

.biz-input {
  flex: 1;
  padding: 14px 18px;
  font-size: 18px;
  border: 2px solid #d1d5db;
  border-radius: 10px;
  outline: none;
  letter-spacing: 1px;
}

.biz-input:focus {
  border-color: #2563eb;
}

.search-btn {
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: #2563eb;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
}

.search-btn:hover {
  background: #1d4ed8;
}

.search-btn:disabled {
  background: #93c5fd;
  cursor: not-allowed;
}

.input-error {
  color: #dc2626;
  font-size: 14px;
  margin-top: 12px;
}

/* Loading */
.loading {
  text-align: center;
  padding: 40px 0 64px;
  color: #6b7280;
}

.spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  border: 4px solid #e5e7eb;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Company card */
.result-section {
  padding-bottom: 64px;
}

.company-card {
  background: #1e3a8a;
  color: #fff;
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.company-label {
  display: block;
  font-size: 13px;
  opacity: 0.7;
}

.company-info strong {
  font-size: 20px;
  margin-right: 10px;
}

.company-bizno {
  font-size: 14px;
  opacity: 0.8;
}

.company-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.company-meta .chip {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
}

/* Result list */
.result-header {
  margin-bottom: 20px;
}

.result-header h3 {
  font-size: 22px;
  font-weight: 800;
}

.result-header h3 span {
  color: #2563eb;
}

.result-header p {
  color: #6b7280;
  font-size: 14px;
}

.program-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.program-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 22px 26px;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.program-card:hover {
  border-color: #2563eb;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.1);
}

.program-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.tag {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.tag-category {
  background: #eff6ff;
  color: #2563eb;
}

.tag-dday {
  background: #fef2f2;
  color: #dc2626;
}

.tag-always {
  background: #f0fdf4;
  color: #16a34a;
}

.match-score {
  margin-left: auto;
  font-size: 13px;
  font-weight: 700;
  color: #2563eb;
}

.program-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.program-title a {
  color: inherit;
  text-decoration: none;
}

.program-title a:hover {
  color: #2563eb;
  text-decoration: underline;
}

.program-summary {
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 14px;
}

.program-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #6b7280;
  border-top: 1px solid #f3f4f6;
  padding-top: 12px;
}

.program-meta dt {
  display: inline;
  font-weight: 700;
  color: #374151;
}

.program-meta dd {
  display: inline;
  margin-left: 4px;
}

/* Footer */
.footer {
  background: #fff;
  border-top: 1px solid #e5e7eb;
  padding: 28px 0;
  font-size: 13px;
  color: #9ca3af;
}

.footer a {
  color: #6b7280;
}

.footer-info {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin-bottom: 14px;
  color: #6b7280;
}

.footer-info dt {
  display: inline;
  font-weight: 700;
  color: #4b5563;
}

.footer-info dd {
  display: inline;
  margin-left: 6px;
}

.footer-notice {
  border-top: 1px solid #f3f4f6;
  padding-top: 12px;
}

@media (max-width: 560px) {
  .search-section h2 {
    font-size: 22px;
  }

  .search-form {
    flex-direction: column;
  }

  .company-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
