@charset "UTF-8";
/* =========================================================
   개교 80주년 기념 KBS 열린음악회 · 신청 페이지
   시안 A — 심야 무대

   [ 수정 안내 ]
   1. 색상 / 폰트 / 배경 이미지 → 아래 :root 변수만 바꾸면 전체에 적용됩니다.
   2. 배경 전환 속도 → app.js 상단의 SETTINGS 값을 바꿉니다.
   ========================================================= */

/* ---------------------------------------------------------
   1. 변수 — 색상, 폰트, 배경
   --------------------------------------------------------- */
:root {
  /* 색상 */
  --color-bg:            #0A0A0C; /* 페이지 기본 배경 */
  --color-surface:       #131317; /* 카드·폼 배경 */
  --color-ink:           #F7F3EC; /* 기본 글자 */
  --color-ink-muted:     #A9A5A0; /* 보조 글자 */
  --color-ink-dim:       #8E8A83; /* 라벨·주석 글자 */
  --color-accent:        #C9A227; /* 포인트 색 (버튼, 라벨) */
  --color-accent-hover:  #DDB633; /* 포인트 색 hover */
  --color-accent-line:   rgba(201, 162, 39, 0.22); /* 포인트 테두리 */
  --color-line:          #2C2C33; /* 입력창 테두리 */
  --color-line-soft:     #1E1E22; /* 구분선 */
  --color-error:         #E4564B;
  --color-error-ink:     #F0B4AF;
  --color-error-bg:      rgba(179, 38, 30, 0.14);
  --color-success:       #7FC08A;
  --color-on-accent:     #0A0A0C; /* 포인트 색 위에 올라가는 글자 */

  /* 폰트 */
  --font-title: 'Nanum Myeongjo', serif;
  --font-body:  'Gothic A1', 'Apple SD Gothic Neo', sans-serif;

  /* 히어로 배경 이미지 — 파일을 교체하거나 경로를 바꿔주세요 */
  --bg-1: url('/html/main/concert/images/bg1.webp');
  --bg-2: url('/html/main/concert/images/bg2.webp');
  --bg-3: url('/html/main/concert/images/bg3.webp');

  /* 배경 위 어둡게 덮는 그라데이션 (글자 가독성) */
  --hero-scrim: linear-gradient(180deg,
      rgba(10, 10, 12, 0.72) 0%,
      rgba(10, 10, 12, 0.42) 38%,
      rgba(10, 10, 12, 0.96) 92%);

  /* 배경 교차 페이드 시간 */
  --bg-fade: 1.8s;

  /* 여백 */
  --pad-page: clamp(20px, 5vw, 72px);
  --radius: 2px;
}

/* ---------------------------------------------------------
   2. 기본 설정
   --------------------------------------------------------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-hover); }

img { display: block; max-width: 100%; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* 공통 요소 */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(11px, 1.4vw, 13px);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--color-accent);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--color-accent);
}

/* 버튼 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 17px 32px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn--primary {
  background: var(--color-accent);
  color: var(--color-on-accent);
}
.btn--primary:hover { background: var(--color-accent-hover); }
.btn--ghost {
  background: transparent;
  color: var(--color-ink);
  border-color: rgba(247, 243, 236, 0.35);
  font-weight: 600;
}
.btn--ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.btn--outline {
  background: transparent;
  color: var(--color-ink-muted);
  border-color: var(--color-line);
  font-weight: 600;
  font-size: 15px;
}
.btn--outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.btn--danger {
  background: transparent;
  color: var(--color-error);
  border-color: #4A2E2C;
  font-weight: 600;
  font-size: 15px;
}
.btn--danger:hover { border-color: var(--color-error); }
.btn--block { width: 100%; padding-left: 20px; padding-right: 20px; }
.btn--lg { font-size: 17px; padding-top: 19px; padding-bottom: 19px; }

/* ---------------------------------------------------------
   3. 히어로 — 배경 교차 페이드
   --------------------------------------------------------- */
.hero {
  position: relative;
  display: grid;
  align-content: end;
  min-height: min(96vw, 760px);
  padding: clamp(24px, 6vw, 72px);
  overflow: hidden;
}

.hero__bgs {
  position: absolute;
  inset: 0;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity var(--bg-fade) ease-in-out;
  will-change: opacity;
}
.hero__bg.is-active { opacity: 1; }

.hero__bg--1 { background-image: var(--bg-1); }
.hero__bg--2 { background-image: var(--bg-2); }
.hero__bg--3 { background-image: var(--bg-3); }

.hero__scrim {
  position: absolute;
  inset: 0;
  background: var(--hero-scrim);
  pointer-events: none;
}

.hero .eyebrow {
  color: #FFB95C; /* 톤 밝게 조정한 헤로 소제목 색 */
  text-shadow: 0 1px 14px rgba(10, 10, 12, 0.9);
}

.hero__inner {
  position: relative;
  display: grid;
  gap: clamp(16px, 3vw, 26px);
  max-width: 820px;
}

.hero__title {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(38px, 10.5vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.hero__lead {
  margin: 0;
  max-width: 44ch;
  font-size: clamp(15px, 2.2vw, 20px);
  line-height: 1.7;
  color: #D8D3CB;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 3vw, 44px);
  padding-top: 6px;
}
.fact { display: grid; gap: 5px; }
.fact__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--color-ink-dim);
}
.fact__value {
  font-size: clamp(15px, 2.1vw, 19px);
  font-weight: 600;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: clamp(6px, 2vw, 14px);
}

/* ---------------------------------------------------------
   4. 신청 폼
   --------------------------------------------------------- */
.apply {
  padding: clamp(48px, 9vw, 110px) var(--pad-page);
}
.apply__inner {
  max-width: 600px;
  margin: 0 auto;
}
.apply__title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0 30px;
}
.apply__title {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(26px, 5vw, 40px);
  line-height: 1.2;
}
.apply__back {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  color: var(--color-ink-dim);
  transition: border-color 0.18s ease, color 0.18s ease;
}
.apply__back:hover,
.apply__back:focus-visible {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.apply__back::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 9px);
  right: 0;
  padding: 7px 11px 5px;
  background: var(--color-ink);
  color: var(--color-bg);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  border-radius: 6px;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.apply__back::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 3px);
  right: 12px;
  border: 6px solid transparent;
  border-top-color: var(--color-ink);
  border-bottom-width: 0;
  opacity: 0;
  transition: opacity 0.16s ease;
}
.apply__back:hover::after,
.apply__back:focus-visible::after,
.apply__back:hover::before,
.apply__back:focus-visible::before {
  opacity: 1;
  transform: none;
}
.apply__desc {
  margin: 0 0 30px;
  color: var(--color-ink-muted);
  font-size: 15px;
  line-height: 1.75;
}

.form {
  display: grid;
  gap: 30px;
  padding: clamp(22px, 5vw, 34px);
  background: var(--color-surface);
  border: 1px solid var(--color-accent-line);
  border-radius: 3px;
}

.field { display: grid; gap: 9px; }
.field--fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}
.field__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-accent);
}

.field__input,
.field__select {
  width: 100%;
  padding: 15px 16px;
  background: var(--color-bg);
  color: var(--color-ink);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 16px;
  outline: none;
  transition: border-color 0.18s ease;
}
.field__input::placeholder { color: #8B8B8B; opacity: 1; }
.field__input:focus,
.field__select:focus { border-color: var(--color-accent); }

.field__select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--color-ink-dim) 50%),
                    linear-gradient(135deg, var(--color-ink-dim) 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

/* 라디오 (학부 / 대학원) */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.radio {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1 1 130px;
  padding: 14px 16px;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.radio input {
  flex: none;
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--color-accent);
}
.radio:hover { border-color: var(--color-ink-dim); }
.radio:has(input:checked) {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.agree {
  display: grid;
  gap: 10px;
}
.agree__details {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-bg);
  overflow: hidden;
}
.agree__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.agree__summary::-webkit-details-marker { display: none; }
.agree__chevron {
  flex: none;
  color: var(--color-ink-dim);
  transition: transform 0.18s ease;
}
.agree__details[open] .agree__chevron { transform: rotate(180deg); }
.agree__body {
  padding: 2px 16px 16px;
  border-top: 1px solid var(--color-line-soft);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--color-ink-dim);
}
.agree__body p { margin: 12px 0; }
.agree__body ul {
  margin: 0 0 4px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
.agree__body strong { color: var(--color-ink-muted); }

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  padding-top: 2px;
}
.check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--color-accent);
}
.check span {
  font-size: 14px;
  line-height: 1.6;
  color: #B7B3AC;
}

.form__error {
  padding: 12px 14px;
  background: var(--color-error-bg);
  border-left: 2px solid var(--color-error);
  color: var(--color-error-ink);
  font-size: 14px;
  line-height: 1.5;
}
.form__error[hidden] { display: none; }

.notes {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}
.notes li {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--color-ink-dim);
}
.notes__head {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-ink-muted);
  padding-top: 6px;
}

/* ---------------------------------------------------------
   5. 푸터
   --------------------------------------------------------- */
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding: clamp(24px, 5vw, 40px) var(--pad-page);
  border-top: 1px solid var(--color-line-soft);
  color: #6C6862;
  font-size: 13px;
}

/* ---------------------------------------------------------
   6. 레이어 팝업 (신청내역 확인 / 신청 완료)
   --------------------------------------------------------- */
.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 8, 0.8);
}
.modal__card {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: clamp(22px, 5vw, 30px);
  background: var(--color-surface);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 3px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: modal-pop 0.22s ease-out;
}
@keyframes modal-pop {
  from { transform: translateY(10px) scale(0.98); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.modal__title {
  margin: 0;
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 800;
}
.modal__close {
  border: 0;
  background: transparent;
  color: var(--color-ink-dim);
  font-size: 22px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}
.modal__close:hover { color: var(--color-ink); }

.modal__panel { display: grid; gap: 16px; }
.modal__panel[hidden] { display: none; }
.modal__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #B7B3AC;
}
.modal__actions { display: flex; gap: 10px; }
.modal__actions .btn { flex: 1; }

/* 내역 카드 */
.receipt {
  display: grid;
  gap: 11px;
  padding: 18px;
  background: var(--color-bg);
  border: 1px dashed #33333A;
}
.receipt__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}
.receipt__row dt { color: var(--color-ink-dim); }
.receipt__row dd { margin: 0; font-weight: 600; }
.receipt__row--no dd {
  color: var(--color-accent);
  font-weight: 700;
  letter-spacing: 0.06em;
}
.receipt__row--status {
  border-top: 1px solid var(--color-line-soft);
  padding-top: 11px;
}
.receipt__row--status dd { color: var(--color-success); font-weight: 700; }

/* ---------------------------------------------------------
   7. 반응형
   --------------------------------------------------------- */
@media (max-width: 720px) {
  .hero { min-height: 620px; }
  .hero__title { font-size: clamp(34px, 12vw, 56px); }
  .facts { gap: 16px 28px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .modal__actions { flex-wrap: wrap; }
  .modal__actions .btn { flex: 1 1 100%; }
}

@media (max-width: 420px) {
  .form { padding: 20px 18px; }
  .btn { padding: 16px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__bg { transition-duration: 0.01ms; }
  .modal__card { animation: none; }
}
