@font-face {
  font-family: 'NotoSansKRLocal';
  src: url('/webfont/notosans/NotoSansKR-Regular.woff2') format('woff2'),
       url('/webfont/notosans/NotoSansKR-Regular.woff') format('woff');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'NotoSansKRLocal';
  src: url('/webfont/notosans/NotoSansKR-Medium.woff2') format('woff2'),
       url('/webfont/notosans/NotoSansKR-Medium.woff') format('woff');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'NotoSansKRLocal';
  src: url('/webfont/notosans/NotoSansKR-Bold.woff2') format('woff2'),
       url('/webfont/notosans/NotoSansKR-Bold.woff') format('woff');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --feedback-text: #333333;
  --feedback-muted: #aaaaaa;
  --feedback-line: #eaeaea;
  --feedback-soft: #f6f6f6;
  --feedback-white: #ffffff;
  --feedback-accent: #f43142;
  --feedback-accent-dark: #da2131;
  --feedback-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--feedback-text);
  font-family: 'NotoSansKRLocal', 'Malgun Gothic', sans-serif;
  word-break: keep-all;
}

.feedback-page,
.feedback-page * {
  font-family: 'NotoSansKRLocal', 'Malgun Gothic', sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.feedback-page {
  min-height: 100vh;
  padding-top: var(--site-header-total-height, 146px);
}

.feedback-page__hero {
  min-height: 166px;
  padding: 48px 20px;
  background: #ffffff url('/Program/FeedbackFront/assets/images/bg-page-title.jpg') center top / cover no-repeat;
}

.feedback-page__hero-inner {
  max-width: 1500px;
  margin: 0 auto;
  text-align: center;
}

.feedback-page__hero h1 {
  margin: 0;
  font-size: 35px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.feedback-page__hero p {
  margin: 12px 0 0;
  font-size: 17px;
  color: var(--feedback-text);
  letter-spacing: -0.02em;
}

.feedback-page__content {
  max-width: 1500px;
  margin: 0 auto;
  padding: 76px 20px 96px;
}

.feedback-flash-stack {
  display: grid;
  gap: 10px;
  margin: 0 auto 28px;
  max-width: 960px;
}

.feedback-flash {
  padding: 14px 18px;
  border: 1px solid var(--feedback-line);
  border-radius: 16px;
  background: var(--feedback-white);
  line-height: 1.6;
}

.feedback-flash--success {
  border-color: rgba(46, 125, 50, 0.18);
  color: #2e7d32;
}

.feedback-flash--error {
  border-color: rgba(198, 40, 40, 0.18);
  color: #c62828;
}

.feedback-flash--info {
  border-color: rgba(244, 49, 66, 0.18);
  color: var(--feedback-accent);
}

.feedback-grid-form {
  margin: 0;
}

.feedback-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(410px, 1fr));
  justify-items: center;
  gap: 28px 30px;
}

.feedback-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 460px;
  min-height: 378px;
  padding: 42px 44px 34px;
  border: 1px solid var(--feedback-line);
  border-radius: 20px;
  background: var(--feedback-white);
  overflow: hidden;
  transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.feedback-card:hover,
.feedback-card.is-focused {
  background: #fafafa;
  border-color: #e2e2e2;
  box-shadow: var(--feedback-shadow);
}

.feedback-card__header {
  position: relative;
  padding-left: 36px;
}

.feedback-card__header h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.38;
  letter-spacing: -0.04em;
  font-weight: 500;
}

.feedback-card__icon {
  position: absolute;
  left: 0;
  top: 3px;
  width: 24px;
  height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 4.5h14a1.5 1.5 0 0 1 1.5 1.5v9A1.5 1.5 0 0 1 19 16.5H10l-4.8 3.6c-.65.49-1.58.02-1.58-.79V16.5H5A1.5 1.5 0 0 1 3.5 15V6A1.5 1.5 0 0 1 5 4.5Z' fill='%23cfcfcf'/%3E%3Cpath d='M8 8.5h8M8 11.5h5' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 24px 24px no-repeat;
}

.feedback-card__body {
  flex: 1;
  padding: 24px 0 0 20px;
}

.feedback-card__body--vote {
  display: grid;
  align-content: start;
  gap: 12px;
}

.feedback-card__body--result {
  display: grid;
  align-content: start;
  gap: 12px;
}

.feedback-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.feedback-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.feedback-option span {
  position: relative;
  display: block;
  padding-left: 30px;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.03em;
}

.feedback-option span::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.03);
  transition: 0.2s ease-in-out;
}

.feedback-option input:checked + span::before {
  border-color: var(--feedback-accent);
  background:
    radial-gradient(circle at center, #ffffff 0 34%, transparent 36% 100%),
    var(--feedback-accent);
}

.feedback-result {
  display: grid;
  gap: 3px;
}

.feedback-result__title {
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.04em;
}

.feedback-result__graph {
  position: relative;
  height: 20px;
  border-radius: 5px;
  background: #eaeaea;
  overflow: hidden;
}

.feedback-result__fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--feedback-accent);
}

.feedback-result__vote {
  position: absolute;
  right: 10px;
  top: 1px;
  z-index: 1;
  font-size: 13px;
  line-height: 18px;
  color: var(--feedback-text);
}

.feedback-card__footer {
  position: relative;
  margin-top: 24px;
  padding-left: 28px;
  color: var(--feedback-muted);
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: -0.03em;
}

.feedback-card__calendar {
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 16px;
  border: 1.6px solid #8c8c8c;
  border-radius: 2px;
}

.feedback-card__calendar::before,
.feedback-card__calendar::after {
  content: '';
  position: absolute;
  top: -4px;
  width: 2px;
  height: 5px;
  border-radius: 999px;
  background: #8c8c8c;
}

.feedback-card__calendar::before {
  left: 3px;
}

.feedback-card__calendar::after {
  right: 3px;
}

.feedback-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 50px 0 0;
}

.feedback-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 136px;
  min-height: 52px;
  padding: 15px 30px;
  border: 1px solid #e5e5e5;
  border-radius: 3px;
  background: transparent;
  color: var(--feedback-text);
  font-size: 16px;
  line-height: 1;
  letter-spacing: -0.02em;
  transition: 0.15s ease-in-out;
  transition-property: color, background-color, border-color, box-shadow;
}

.feedback-button:hover {
  border-color: #b2b2b2;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.feedback-button--primary {
  border-color: transparent;
  background: var(--feedback-accent);
  color: #ffffff;
}

.feedback-button--primary:hover {
  border-color: transparent;
  background: var(--feedback-accent-dark);
}

.feedback-button[disabled] {
  cursor: not-allowed;
  color: #999999;
  border-color: #e5e5e5;
  background: transparent;
  box-shadow: none;
}

.feedback-button::before {
  content: '';
  width: 16px;
  height: 16px;
  margin-right: 8px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
}

.feedback-button.icon-list::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 4h10M3 8h10M3 12h10M1.75 4h.5M1.75 8h.5M1.75 12h.5' stroke='%23555555' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

.feedback-button.icon-check::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.5 6.5 11.5 12.5 4.5' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.feedback-empty {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 40px;
  border: 1px solid var(--feedback-line);
  border-radius: 20px;
  text-align: center;
}

.feedback-empty strong {
  display: block;
  font-size: 20px;
}

.feedback-empty p {
  margin: 12px 0 0;
  color: #7d7d7d;
  line-height: 1.7;
}

.feedback-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
}

.feedback-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background: #ffffff;
  font-size: 14px;
}

.feedback-pagination a.is-active {
  border-color: var(--feedback-accent);
  background: var(--feedback-accent);
  color: #ffffff;
}

@media (max-width: 1180px) {
  .feedback-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  }
}

@media (max-width: 760px) {
  .feedback-page__hero {
    padding: 42px 16px;
  }

  .feedback-page__hero h1 {
    font-size: 30px;
  }

  .feedback-page__hero p {
    font-size: 15px;
  }

  .feedback-page__content {
    padding: 42px 16px 72px;
  }

  .feedback-card-grid {
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 18px;
  }

  .feedback-card {
    max-width: none;
    min-height: auto;
    padding: 28px 24px 24px;
  }

  .feedback-card__header h2 {
    font-size: 18px;
  }

  .feedback-card__body {
    padding-left: 8px;
  }

  .feedback-card__footer {
    font-size: 13px;
  }

  .feedback-actions {
    flex-wrap: wrap;
    padding-top: 32px;
  }

  .feedback-button {
    width: 100%;
    max-width: 320px;
  }
}
