/* 레슨 할인쿠폰: 메인 팝업(main.jsp)과 쿠폰 받기 페이지(WEB-INF/etc/event.jsp) 공통.
   색상과 글꼴은 resources/main/style.css 변수를 씁니다. (2026-11-10) */

/* 쿠폰 모양 (팝업·페이지 공통) */
.cp-ticket { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px;
  padding: 24px 26px; border-radius: 16px; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, var(--blue, #1166f0) 0%, #3d8bff 100%); box-shadow: 0 12px 28px rgba(17, 102, 240, .22); }
.cp-ticket::before, .cp-ticket::after { content: ""; position: absolute; right: 85px; width: 22px; height: 22px; border-radius: 50%; background: #fff; }
.cp-ticket::before { top: -11px; }
.cp-ticket::after { bottom: -11px; }
.cp-ticket-main { min-width: 0; }
.cp-ticket-label { font-size: 14px; font-weight: 700; opacity: .9; }
.cp-ticket-amount { margin-top: 4px; font-size: 34px; font-weight: 800; line-height: 1.2; letter-spacing: -.5px; }
.cp-ticket-amount small { margin-left: 2px; font-size: 20px; font-weight: 700; }
.cp-ticket-period { margin-top: 6px; font-size: 13.5px; opacity: .9; }
.cp-ticket-period span { white-space: nowrap; }
.cp-ticket-side { display: flex; align-items: center; justify-content: center; width: 70px; padding-left: 14px;
  border-left: 2px dashed rgba(255, 255, 255, .55); font-size: 14px; font-weight: 800; line-height: 1.35; text-align: center; }

/* 메인 팝업 */
.cp-pop { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(17, 24, 39, .55); }
.cp-pop[hidden] { display: none; }
.cp-pop-box { width: 100%; max-width: 380px; max-height: calc(100vh - 32px); overflow: auto; border-radius: 20px; background: #fff;
  box-shadow: 0 24px 60px rgba(17, 24, 39, .25); }
.cp-pop-body { padding: 28px 24px 22px; text-align: center; }
.cp-pop-eyebrow { font-size: 14px; font-weight: 700; color: var(--blue, #1166f0); }
.cp-pop-body h2 { margin-top: 6px; font-size: 22px; font-weight: 800; line-height: 1.4; color: var(--title, #121a2f); }
.cp-pop-desc { margin: 8px 0 18px; font-size: 15px; line-height: 1.6; color: var(--text, #2d3748); }
.cp-pop .cp-ticket { text-align: left; }
.cp-pop-go { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; margin-top: 20px;
  border-radius: 12px; background: var(--blue, #1166f0); color: #fff; font-size: 16px; font-weight: 800; transition: .15s; }
.cp-pop-go:hover { background: var(--blue-d, #0b55d0); }
.cp-pop-foot { display: flex; border-top: 1px solid var(--line, #e6ebf2); }
.cp-pop-foot button { flex: 1; min-height: 50px; border: 0; background: #fff; font-size: 14.5px; font-weight: 600; color: var(--muted, #6b7280); cursor: pointer; }
.cp-pop-foot button + button { border-left: 1px solid var(--line, #e6ebf2); color: var(--title, #121a2f); font-weight: 700; }
.cp-pop-foot button:hover { background: var(--soft, #f3f8fd); }
.cp-pop-foot button:focus-visible, .cp-pop-go:focus-visible, .cp-btn:focus-visible { outline: 3px solid rgba(17, 102, 240, .35); outline-offset: 2px; }

/* 쿠폰 받기 페이지 */
.cp-page { background: var(--soft, #f3f8fd); padding-bottom: 72px; }
.cp-head { background: #fff; border-bottom: 1px solid var(--line, #e6ebf2); padding: 44px 0 36px; }
.cp-eyebrow { font-size: 15px; font-weight: 700; color: var(--blue, #1166f0); }
.cp-head h1 { margin-top: 8px; font-size: 32px; font-weight: 800; line-height: 1.35; color: var(--title, #121a2f); }
.cp-sub { margin-top: 10px; font-size: 16.5px; line-height: 1.6; color: var(--text, #2d3748); }
.cp-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; padding-top: 28px; align-items: start; }
.cp-card { padding: 28px; border: 1px solid var(--line, #e6ebf2); border-radius: 16px; background: #fff; min-width: 0; }
.cp-card h2 { margin-bottom: 16px; font-size: 20px; font-weight: 800; color: var(--title, #121a2f); }
.cp-action { margin-top: 22px; }
.cp-btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 0 18px;
  border: 1px solid var(--blue, #1166f0); border-radius: 12px; background: var(--blue, #1166f0); color: #fff;
  font-size: 16.5px; font-weight: 800; cursor: pointer; transition: .15s; }
.cp-btn:hover { background: var(--blue-d, #0b55d0); }
.cp-btn:disabled { border-color: #d5dbe4; background: #eef1f5; color: #8a94a6; cursor: not-allowed; }
.cp-btn.line { background: #fff; color: var(--blue-ink, #1a4fc6); }
.cp-btn.line:hover { background: var(--blue-tint, #eaf2ff); }
.cp-msg { min-height: 1.6em; margin-top: 12px; font-size: 15px; line-height: 1.6; font-weight: 600; color: var(--blue-ink, #1a4fc6); text-align: center; }
.cp-msg.is-error { color: #c62828; }
.cp-link { display: block; margin-top: 10px; font-size: 14.5px; font-weight: 700; color: var(--blue-ink, #1a4fc6); text-align: center; }
.cp-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: cp; }
.cp-steps li { position: relative; padding-left: 36px; font-size: 15.5px; line-height: 1.6; color: var(--text, #2d3748); counter-increment: cp; }
.cp-steps li::before { content: counter(cp); position: absolute; left: 0; top: 0; display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; background: var(--blue-tint, #eaf2ff); color: var(--blue-ink, #1a4fc6); font-size: 14px; font-weight: 800; }
.cp-note { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line, #e6ebf2); font-size: 14px; line-height: 1.6; color: var(--muted, #6b7280); }
.cp-empty { grid-column: 1 / -1; padding: 48px 24px; text-align: center; }
.cp-empty p { font-size: 16.5px; line-height: 1.6; color: var(--text, #2d3748); }
.cp-empty .cp-btn { width: auto; margin-top: 18px; }

@media (max-width: 960px) {
  .cp-body { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .cp-head { padding: 30px 0 24px; }
  .cp-head h1 { font-size: 25px; }
  .cp-sub { font-size: 15px; }
  .cp-card { padding: 22px 18px; }
  .cp-ticket { padding: 20px; }
  .cp-ticket::before, .cp-ticket::after { right: 79px; }
  .cp-ticket-amount { font-size: 28px; }
}
@media (max-width: 370px) {
  .cp-pop { padding: 10px; }
  .cp-pop-body { padding: 22px 16px 18px; }
  .cp-pop-body h2 { font-size: 19px; }
  .cp-ticket { gap: 8px; padding: 18px 14px; }
  .cp-ticket::before, .cp-ticket::after { right: 59px; }
  .cp-ticket-amount { font-size: 24px; }
  .cp-ticket-period span { white-space: nowrap; }
.cp-ticket-side { width: 56px; padding-left: 10px; font-size: 13px; }
}
