:root {
  --color-surface: #e3f2fd;
  --color-text-primary: #1565c0;
  --color-accent: #2DD9C5;
  --color-bg: #f4f6f8;
  --color-card: #ffffff;
  --color-border: #e0e0e0;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  margin: 0;
}

#start-section {
  background-color: #0264CC;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  height: 100vh;
}
#start-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  color: #ffffff;
  text-align: center;
}
#start-title span {
  font-size: 1.5rem;
}
#start-title div {
  font-size: 3.5rem;
  line-height: 1;
}
img.main-visual {
  width: 100%;
}

.action-button {
  background-color: #ffffff;
  color: #1565c0;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  cursor: pointer;
  margin-bottom: 2rem;
  width: 80%;
}

.action-button:hover {
  background-color: #f0f0f0;
}

#form-section {
  display: none;
}
.card {
  background-color: var(--color-card);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 16px;
  margin: 16px auto;
  border: 1px solid var(--color-border);
}
.card:first-child {
  border-radius: 0 0 16px 16px;
  margin: 0 auto 16px auto;
}
.card:last-child {
  margin: 0 auto;
}
@media screen and (max-width: 480px) {
  .card {
    border-radius: 0;
  }
  .card:first-child {
    border-radius: 0;
  }
}

@media (min-width: 601px) {
  #start-section {
    width: 480px;
    margin: 0 auto;
  }
  #form-section {
    width: 480px;
    margin: 0 auto;
  }
}

.card h2 {
  font-size: 1.5em;
  margin-bottom: 24px;
  color: var(--color-text-primary);
}
.card h3 {
  font-size: 18px;
  color: var(--color-text-primary);
  border-left: 5px solid var(--color-surface);
  padding-left: 10px;
  margin-bottom: 20px;
}
.card h5 {
  margin: 0;
}


.form-item {
  margin-bottom: 20px;
}
label.noborder {
  border: 0;
}
label {
  display: flex;
  align-items: center;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 8px;
}
label span {
  padding: 4px 12px;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance:none;
  margin: 0;
}
/* Firefox */
input[type=number] {
  -moz-appearance:textfield;
}
label input, label select {
  padding: 10px 12px;
  font-size: 14px;
  border: none;
  background-color: transparent;
  flex: 1;
  color: var(--color-text-primary);
}

input:focus, select:focus {
  outline: none;
  border: 1px solid var(--color-text-primary);
  background-color: #fff;
  border-radius: 8px;
}

.readonly:focus {
  outline: none;
  border: 0;
  color: var(--color-text-primary);
  border-radius: 0;
  background-color: transparent;
}

button {
  width: 100%;
  background-color: var(--color-text-primary);
  color: #fff;
  font-weight: bold;
  border-radius: 8px;
  padding: 12px;
  border: none;
  cursor: pointer;
}


#result-section {
  display: none;
}


#result-section .card {
  margin: 0 auto;
  border-radius: 0;
}
/* 결과 테이블 및 하이라이트 */
#industryTableWrapper div {
    text-align: center;
    color: #2e2e2e;
    font-size: 0.8em;
}
#industryTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

#industryTable th,
#industryTable td {
  border: 1px solid var(--color-border);
  padding: 8px;
  text-align: center;
}

#industryTable .highlight {
  background-color: var(--color-surface);
  color: var(--color-text-primary);
  font-weight: bold;
}
#industryTableWrapper{
  margin-bottom: 24px;
}
/* 남은 수입 연수 / 평균 급여 카드 정렬 */
.summary-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.summary-card {
  flex: 1 1 48%;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  box-sizing: border-box;
  text-align: center;
}

.card-title {
  font-size: 0.9em;
  margin: 6px;
  color: #1565c0;
  font-weight: bold;
}

.card-value {
  font-size: 1.2em;
  font-weight: bold;
  color: #2e2e2e;
}


.legend {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  background: #ffffff;
}
.legend-item {
  width: 32px;
  height: 12px;
  margin: 0 8px;
}
.chart-box {
  overflow-x: auto;
  width: 100%;
  top: -24px;
  position: relative;
}


    /* 어두운 배경 (Overlay) */
    .overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.5);
      display: none;
      z-index: 999;
    }

    /* 바텀 시트 스타일 */
    .bottom-sheet {
      position: fixed;
      bottom: -100%;
      left: 0;
      width: 100%;
      background: #fff;
      border-top-left-radius: 16px;
      border-top-right-radius: 16px;
      box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
      padding: 2rem 0;
      text-align: center;
      transition: bottom 0.3s ease;
      z-index: 1000;
    }

    .bottom-sheet.open {
      bottom: 0;
    }
    .share-button {
      width: calc(100% - 32px);
    }
    .expert-contact-note {
      font-size: 0.95rem;
      color: #555;
      line-height: 1.6;
      margin-bottom: 1.5rem;
      text-align: center;
    }
    .expert-contact-note strong {
      color: #222;
    }
    #footer-info {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: #666;
}

.footer-logo {
  width: 100px;
  margin-bottom: 0.5rem;
}

.footer-date {
  margin: 0;
}
#contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
  width: calc(100% - 32px);
  margin: 1rem auto;
}
.checkbox-label {
  padding: 10px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  justify-content: center;
}

/* ✅ 체크된 경우 label 스타일 변경 */
#agree:checked + .checkbox-label {
  background-color: #ccc;
  border-color: #ccc;
  color: #666;
  font-weight: 600;
}
.contact-submit-button {
  background-color: #ccc; /* 기본 비활성 상태 */
  color: #666;
  transition: background-color 0.3s ease, color 0.2s ease;
}

.contact-submit-button.active {
  background-color: var(--color-text-primary); /* 활성 상태 색상 */
  color: white;
  font-weight: 600;
  cursor: pointer;
}