/* ==============================================================
   DS Seoul — PDF 매뉴얼 신청 통합 모듈
   페이지 끝 섹션 + 우하단 플로팅 버튼 + 팝업 모달
   디자인: 기존 ds-gold/Pretendard 토큰 활용
   ============================================================== */


/* =========================================================
   [1] 페이지 끝 PDF 섹션 (정식 영역)
   ========================================================= */
.pdf-cta-section {
  background: var(--ds-near-black, #1d1d1f);
  color: var(--ds-fg-dark, #ffffff);
  padding: 96px 24px 96px;
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, sans-serif;
}

.pdf-cta-inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.pdf-cta-eyebrow {
  display: inline-block;
  color: var(--ds-gold-bright, #E0C176);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.6px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.pdf-cta-title {
  font-size: 40px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.22px;
  margin: 0 0 14px;
  color: #ffffff;
}

.pdf-cta-subtitle {
  font-size: 18px;
  line-height: 1.5;
  color: rgba(255,255,255,0.75);
  margin: 0 auto 36px;
  max-width: 640px;
}

.pdf-cta-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  max-width: 880px;
  margin: 0 auto 44px;
  text-align: left;
}

.pdf-cta-feature {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(224,193,118,0.2);
  border-radius: 12px;
  padding: 20px 22px;
}

.pdf-cta-feature-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--ds-gold-bright, #E0C176);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.pdf-cta-feature-title {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 6px;
  line-height: 1.4;
}

.pdf-cta-feature-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.55;
  margin: 0;
}

.pdf-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ds-gold, #C9A961);
  color: var(--ds-near-black, #1d1d1f) !important;
  padding: 16px 36px;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.2px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(201, 169, 97, 0.25);
}

.pdf-cta-button:hover {
  background: var(--ds-gold-bright, #E0C176);
  box-shadow: 0 6px 20px rgba(201, 169, 97, 0.35);
  transform: translateY(-1px);
}

.pdf-cta-button:active {
  transform: translateY(1px);
}

.pdf-cta-button-icon {
  font-size: 22px;
}

.pdf-cta-meta {
  margin-top: 18px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.2px;
}


/* =========================================================
   [2] 우하단 플로팅 버튼 (마감 임박 강조)
   ========================================================= */
.pdf-fab {
  position: fixed;
  bottom: 152px; /* 카톡채널(84) + 상담신청(24)과 분리, 매출 fab들 우선 */
  right: 24px; /* 다른 fab들과 동일 정렬 */
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--ds-gold, #C9A961);
  color: var(--ds-near-black, #1d1d1f) !important;
  padding: 10px 14px;
  border-radius: 980px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.1px;
  font-family: 'Pretendard Variable', Pretendard, sans-serif;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25), 0 0 0 1px rgba(224,193,118,0.3) inset;
  transition: background-color 0.15s, transform 0.1s, box-shadow 0.15s;
}

.pdf-fab:hover {
  background: var(--ds-gold-bright, #E0C176);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 0 1px rgba(224,193,118,0.6) inset;
  animation: none;
}

.pdf-fab:active {
  transform: translateY(0);
}

.pdf-fab-icon {
  font-size: 18px;
  line-height: 1;
}

@keyframes pdfFabPulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(0,0,0,0.35), 0 0 0 1px rgba(224,193,118,0.4) inset; }
  50% { box-shadow: 0 6px 28px rgba(201,169,97,0.45), 0 0 0 1px rgba(224,193,118,0.6) inset; }
}


/* =========================================================
   [3] 팝업 모달
   ========================================================= */
.pdf-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  font-family: 'Pretendard Variable', Pretendard, sans-serif;
}

.pdf-modal-backdrop.is-open {
  display: flex;
}

.pdf-modal {
  background: #ffffff;
  color: var(--ds-near-black, #1d1d1f);
  border-radius: 16px;
  width: 100%;
  max-width: 720px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  animation: pdfModalIn 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

@keyframes pdfModalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.pdf-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.06);
  color: var(--ds-near-black, #1d1d1f);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s;
  z-index: 2;
  font-family: inherit;
}

.pdf-modal-close:hover {
  background: rgba(0,0,0,0.12);
}


/* =========================================================
   [4] 팝업 안 신청 폼
   ========================================================= */
.pdf-form-section {
  padding: 0;
}

.pdf-form-header {
  background: var(--ds-near-black, #1d1d1f);
  color: #ffffff;
  padding: 32px 28px 26px;
  border-radius: 16px 16px 0 0;
}

.pdf-form-eyebrow {
  display: inline-block;
  color: var(--ds-gold-bright, #E0C176);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.pdf-form-title {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.3;
  letter-spacing: -0.22px;
}

.pdf-form-subtitle {
  font-size: 14px;
  color: var(--ds-gold-bright, #E0C176);
  margin: 0 0 16px;
}

.pdf-form-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pdf-form-bullets li {
  position: relative;
  padding: 4px 0 4px 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}

.pdf-form-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 4px;
  color: var(--ds-gold-bright, #E0C176);
  font-weight: 700;
}

.pdf-form-notice {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: -0.1px;
}

.pdf-form-body {
  padding: 26px 28px 28px;
}

.pdf-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.pdf-form-row-full {
  grid-template-columns: 1fr;
}

.pdf-form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ds-near-black, #1d1d1f);
  margin-bottom: 0;
}

.pdf-form-req {
  color: #d23f3f;
  font-weight: 700;
}

.pdf-form-label input,
.pdf-form-label select {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  font-size: 14px;
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ds-near-black, #1d1d1f);
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.pdf-form-label input:focus,
.pdf-form-label select:focus {
  outline: none;
  border-color: var(--ds-gold-dark, #A88838);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.18);
}

.pdf-form-label input::placeholder {
  color: rgba(0,0,0,0.36);
}

.pdf-form-consents {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.pdf-form-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  cursor: pointer;
  padding: 5px 0;
  font-size: 13px;
  color: var(--ds-near-black, #1d1d1f);
}

.pdf-form-consent input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: var(--ds-gold-dark, #A88838);
}

.pdf-form-consent-text strong {
  color: var(--ds-gold-dark, #A88838);
  margin-right: 4px;
}

.pdf-form-consent-toggle {
  background: none;
  border: none;
  color: var(--ds-gold-dark, #A88838);
  font-size: 12px;
  cursor: pointer;
  padding: 0 4px;
  text-decoration: underline;
  font-family: inherit;
}

.pdf-form-consent-detail {
  margin: 4px 0 10px 25px;
  padding: 12px 14px;
  background: #faf7ee;
  border-left: 3px solid var(--ds-gold, #C9A961);
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(0,0,0,0.7);
}

.pdf-form-consent-detail p {
  margin: 0 0 5px;
}

.pdf-form-consent-detail p:last-child {
  margin-bottom: 0;
}

.pdf-form-submit {
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 15px;
  background: var(--ds-near-black, #1d1d1f);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: -0.2px;
  transition: background-color 0.15s, transform 0.1s;
}

.pdf-form-submit:hover {
  background: #2d2d2f;
}

.pdf-form-submit:active {
  transform: translateY(1px);
}

.pdf-form-submit:disabled {
  background: rgba(0,0,0,0.4);
  cursor: not-allowed;
}

.pdf-form-disclaimer {
  margin-top: 16px;
  padding: 14px;
  background: rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 6px;
  font-size: 12px;
  color: rgba(0,0,0,0.6);
  line-height: 1.6;
}

.pdf-form-disclaimer p {
  margin: 0 0 4px;
}

.pdf-form-disclaimer p:last-child {
  margin-bottom: 0;
}


/* =========================================================
   [5] 신청 완료 + 다운로드 화면
   ========================================================= */
.pdf-form-success {
  padding: 40px 28px 36px;
  text-align: center;
}

.pdf-form-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--ds-near-black, #1d1d1f);
  color: var(--ds-gold-bright, #E0C176);
  border-radius: 50%;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}

.pdf-form-success-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--ds-near-black, #1d1d1f);
  margin: 0 0 8px;
  letter-spacing: -0.2px;
}

.pdf-form-success-body {
  font-size: 14.5px;
  color: rgba(0,0,0,0.65);
  line-height: 1.6;
  margin: 0 0 22px;
}

.pdf-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 380px;
  margin: 0 auto 22px;
  padding: 16px 22px;
  background: var(--ds-gold, #C9A961);
  color: var(--ds-near-black, #1d1d1f) !important;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(201, 169, 97, 0.3);
  transition: background-color 0.15s, transform 0.1s, box-shadow 0.15s;
  font-family: inherit;
}

.pdf-download-btn:hover {
  background: var(--ds-gold-bright, #E0C176);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201, 169, 97, 0.4);
}

.pdf-download-btn:active {
  transform: translateY(0);
}

.pdf-download-icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}

.pdf-download-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.pdf-download-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ds-near-black, #1d1d1f);
  letter-spacing: -0.1px;
}

.pdf-download-meta {
  font-size: 11.5px;
  color: rgba(0,0,0,0.6);
  font-weight: 500;
}

.pdf-form-success-notice {
  background: #faf7ee;
  border-left: 3px solid var(--ds-gold, #C9A961);
  border-radius: 4px;
  padding: 14px 16px;
  text-align: left;
  margin: 0 0 18px;
}

.pdf-form-success-notice p {
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(0,0,0,0.65);
}

.pdf-form-success-notice p:last-child {
  margin-bottom: 0;
}

.pdf-form-success-contact {
  font-size: 13px;
  color: rgba(0,0,0,0.7);
  line-height: 1.7;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.pdf-form-success-contact strong {
  color: var(--ds-near-black, #1d1d1f);
  font-weight: 600;
}

.pdf-form-success-contact a {
  color: var(--ds-gold-dark, #A88838);
  font-weight: 600;
  text-decoration: none;
}


/* =========================================================
   [6] 모바일 반응형
   ========================================================= */
@media (max-width: 768px) {
  .pdf-cta-section {
    padding: 64px 18px 64px;
  }
  .pdf-cta-title {
    font-size: 28px;
  }
  .pdf-cta-subtitle {
    font-size: 16px;
  }
  .pdf-cta-features {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .pdf-cta-button {
    padding: 14px 28px;
    font-size: 15px;
  }
  
  .pdf-fab {
    bottom: 78px;
    right: 12px;
    padding: 10px 14px;
    font-size: 13px;
  }
  .pdf-fab-icon {
    font-size: 16px;
  }

  .pdf-modal {
    max-height: calc(100vh - 16px);
    border-radius: 14px;
  }
  .pdf-modal-backdrop {
    padding: 8px;
  }
  .pdf-form-header {
    padding: 26px 22px 22px;
    border-radius: 14px 14px 0 0;
  }
  .pdf-form-title {
    font-size: 19px;
  }
  .pdf-form-body {
    padding: 22px 22px 24px;
  }
  .pdf-form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .pdf-form-success {
    padding: 32px 22px 28px;
  }
}

@media (max-width: 380px) {
  .pdf-fab .pdf-fab-text-long {
    display: none;
  }
}

/* =========================================================
   [v31] PDF 모달 오픈 시 모든 fab/CTA 숨김 (모바일 충돌 방지)
   ========================================================= */
body.pdf-modal-open .cro-mobile-cta,
body.pdf-modal-open .ds-float-kakao,
body.pdf-modal-open .ds-float-desktop,
body.pdf-modal-open .pdf-fab {
  display: none !important;
}
