
/* ===========================
   콘텐츠 만족도 조사 
=========================== */

:root {
  --page-survey-primary: #9A6B4A;
  --page-survey-primary-dark: #7c4f2e;
  --page-survey-bg: #faf9f7;
  --page-survey-border: #e7e4df;
  --page-survey-text: #222;
  --page-survey-muted: #666;
}

.page-survey {
  margin-top: 5rem;
  border: 1px solid var(--page-survey-border);
  border-radius: 1.6rem;
  background: #fff;
  overflow: hidden;
}

.page-survey__form {
  margin: 0;
}

.page-survey__fieldset {
  margin: 0;
  padding: 2.4rem;
  border: 0;
}

.page-survey__title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
  color: var(--page-survey-text);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.5;
}

.page-survey__icon {
  position: relative;
  flex: 0 0 2.4rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--page-survey-primary);
}

.page-survey__icon::before {
  content: "Q";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 900;
}

.page-survey__legend {
  overflow: hidden;
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
}

.page-survey__title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
  color: var(--page-survey-text);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.5;
}

.page-survey__ratings {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.page-survey__radio input {
  position: absolute;
  opacity: 0;
}

.page-survey__radio label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 4.4rem;
  padding: 0 1.6rem;
  border: 1px solid var(--page-survey-border);
  border-radius: 999px;
  background: #fff;
  color: var(--page-survey-text);
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
}

.page-survey__radio label::before {
  content: "";
  width: 1.6rem;
  height: 1.6rem;
  margin-right: 0.6rem;
  border: 2px solid #b8c7bf;
  border-radius: 50%;
  background: #fff;
}

.page-survey__radio input:checked + label {
  border-color: var(--page-survey-primary);
  background: var(--page-survey-bg);
  color: var(--page-survey-primary-dark);
}

.page-survey__radio input:checked + label::before {
  border-color: var(--page-survey-primary);
  background:
    radial-gradient(circle, var(--page-survey-primary) 0 40%, #fff 42%);
}

.page-survey__radio input:focus-visible + label {
  outline: 3px solid rgba(47, 111, 94, 0.28);
  outline-offset: 3px;
}

.page-survey__opinion {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 10rem;
  gap: 1rem;
  padding: 0 2.4rem 2.4rem;
}

.page-survey__textarea {
  width: 100%;
  min-height: 6.4rem;
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--page-survey-border);
  border-radius: 1rem;
  color: var(--page-survey-text);
  font-size: 1.5rem;
  line-height: 1.6;
  resize: vertical;
}

.page-survey__textarea::placeholder {
  color: #888;
}

.page-survey__textarea:focus-visible,
.page-survey__submit:focus-visible,
.page-survey__info a:focus-visible {
  outline: 3px solid rgba(47, 111, 94, 0.28);
  outline-offset: 3px;
}

.page-survey__submit {
  min-height: 6.4rem;
  border: 0;
  border-radius: 1rem;
  background: var(--page-survey-primary);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
  cursor: pointer;
}

.page-survey__submit:hover,
.page-survey__submit:focus-visible {
  background: var(--page-survey-primary-dark);
}

.page-survey__info {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 3rem;
  padding: 1.8rem 2.4rem;
  border-top: 1px solid var(--page-survey-border);
  background: var(--page-survey-bg);
}

.page-survey__info p {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
  color: var(--page-survey-muted);
  font-size: 1.5rem;
  line-height: 1.5;
}

.page-survey__info strong {
  color: var(--page-survey-text);
  font-weight: 800;
}

.page-survey__info a {
  color: var(--page-survey-primary-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}

.page-survey__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .page-survey {
    margin-top: 4rem;
    border-radius: 1.4rem;
  }

  .page-survey__fieldset {
    padding: 2rem;
  }

  .page-survey__title {
    align-items: flex-start;
    font-size: 1.6rem;
  }

  .page-survey__ratings {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-survey__radio label {
    width: 100%;
    justify-content: flex-start;
  }

  .page-survey__opinion {
    grid-template-columns: 1fr;
    padding: 0 2rem 2rem;
  }

  .page-survey__submit {
    min-height: 4.8rem;
    width: 100%;
  }

  .page-survey__info {
    flex-direction: column;
    gap: 0.8rem;
    padding: 1.6rem 2rem;
  }
}

@media (max-width: 480px) {
  .page-survey__ratings {
    grid-template-columns: 1fr;
  }

  .page-survey__fieldset,
  .page-survey__opinion,
  .page-survey__info {
    padding-left: 1.6rem;
    padding-right: 1.6rem;
  }
}

.page-survey-wrap {
  display: grid;
  grid-template-columns: 28rem minmax(0, 1fr);
  gap: 6rem;
  margin-bottom: 6rem;
}

.page-survey-wrap__content {
  min-width: 0;
}

@media (max-width: 1279px) {
  .page-survey-wrap {
    grid-template-columns: 26rem minmax(0, 1fr);
    gap: 4rem;
  }
}

@media (max-width: 1024px) {
  .page-survey-wrap {
    display: block;
    margin-bottom: 4rem;
  }

  .page-survey-wrap__lnb {
    display: none;
  }
}