@charset "utf-8";

* {
      box-sizing: border-box;
      font-family: "Pretendard", "Noto Sans KR", sans-serif;
    }

    body {
      margin: 0;
      background: #f6f7f9;
      color: #333;
    }

    header {
      height: 50px;
      background: #fff;
      display: flex;
      align-items: center;
      border-bottom: 1px solid #e5e5e5;
    }

    header img {
      height: 30px;
      margin-left: 20px;
    }

    .container {
      max-width: 720px;
      margin: 0 auto;
      padding: 20px;
    }

    .intro {
      background: #fff;
      padding: 24px;
      border-radius: 12px;
      margin-bottom: 24px;
    }

    .intro h1 {
      margin: 0 0 12px;
      font-size: 22px;
    }

    .intro p {
      font-size: 15px;
      line-height: 1.6;
      color: #555;
    }

    .period {
      margin-top: 12px;
      font-size: 14px;
      color: #666;
      background: #f1f3f5;
      display: inline-block;
      padding: 6px 14px;
      border-radius: 20px;
    }

    form {
      background: #fff;
      padding: 24px;
      border-radius: 12px;
    }

    .required-note {
      text-align: right;
      font-size: 12px;
      color: #e53935;
      margin-bottom: 16px;
    }

    .question {
      margin-bottom: 60px;
    }

    .q-title {
      font-weight: 800;
      margin-bottom: 20px;
      font-size: 18px;
    }

    .multi {
      color: #1976d2;
      font-size: 18px;
      margin-left: 4px;
    }

    /* (공통) */
    .rating-wrap {
      display: grid;
      grid-template-columns: auto 1fr auto;
      align-items: center;
      gap: 12px;
    }

    .rating-label {
      font-size: 13px;
      color: #666;
      white-space: nowrap;
    }

    .rating-options {
      display: flex;
      justify-content: center;
      gap: 14px;
    }

    .rating-options label {
      display: flex;
      align-items: center;
      gap: 4px;
      font-size: 14px;
      cursor: pointer;
    }

    textarea {
      width: 100%;
      min-height: 110px;
      padding: 12px;
      border: 1px solid #ddd;
      border-radius: 8px;
      font-size: 14px;
      resize: vertical;
    }

    .submit-wrap {
      text-align: center;
      margin-top: 32px;
    }

    button {
      padding: 12px 40px;
      background: #1976d2;
      color: #fff;
      border: none;
      border-radius: 5px;
      font-size: 15px;
      cursor: pointer;
    }

    button:hover {
      background: #125aa0;
    }


    /* =========================
   OPTION (라디오 / 체크박스)
========================= */

.option-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px 16px;
}

.option-list label {
  display: flex;
  align-items: center;
  gap: 8px;

  padding: 14px 16px;
  border: 1px solid #dcdcdc;
  border-radius: 12px;

  background: #ffffff;
  font-size: 14px;
  cursor: pointer;

  transition: background-color 0.2s ease,
              border-color 0.2s ease,
              box-shadow 0.2s ease;
}

/* hover */
.option-list label:hover {
  background: #f4f8ff;
  border-color: #1976d2;
}

/* input 기본 정리 */
.option-list input {
  margin: 0;
  accent-color: #1976d2;
}

/* 선택됨 */
.option-list label:has(input:checked) {
  background: #e8f1ff;
  border-color: #1976d2;
  box-shadow: 0 0 0 1px rgba(25, 118, 210, 0.15);
  font-weight: 600;
}


/* =========================
    1~5 만족도
========================= */

.rating-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
}

.rating-options {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.rating-options label {
  display: flex;
  align-items: center;
  gap: 4px;

  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #ddd;

  background: #fff;
  font-size: 14px;
  cursor: pointer;

  transition: all 0.2s ease;
}

/* hover */
.rating-options label:hover {
  background: #f1f3f5;
}

/* 선택됨 */
.rating-options label:has(input:checked) {
  background: #1976d2;
  border-color: #1976d2;
  color: #fff;
  font-weight: 600;
}

/* =========================
   필수 문항 표시 (*)
========================= */

.q-title {
  position: relative;
  padding-left: 14px;
}

/* 빨간 별 표시 */
.q-title::before {
  content: "*";
  position: absolute;
  left: 0;
  top: 0;

  color: #e53935;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
}

/* =========================
   footer
========================= */
footer {text-align: center; font-size: 13px; color: #9b9b9b;}

/* =========================
   MOBILE  반응형
========================= */
@media (max-width: 560px) {
.container {padding: 0;}

.q-title {
    font-weight: 600;
    font-size: 15px;
}
.question {
    margin-bottom: 50px;
}

.intro, form {padding: 24px 15px;}

  .option-list label,
  .rating-options label {
    padding: 16px;
  }

  .rating-wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .rating-options {
    justify-content: space-between;
    flex-direction: column;
  }
}