:root {
  --notice-margin: 1rem;
}
* {
  font-weight: var(--font-weight-regular);
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0px;
  box-sizing: border-box;
}

header, footer {
  display: flex;
  position: relative;
  justify-content: center;
  width: 100%;
  img {
    width: 100%;
    max-width: 1160px;
  }
}

main {
  width: 100%;
  max-width: 688px;
  margin: 0 auto;
  padding: 0px 20px;
}

section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
  width: 100%;
}

/* 안내 박스 영역 */
.notice-header {
  margin-top: 40px;
  margin-bottom: 40px;
  font-size: var(--font-size-1500);
  font-weight: var(--font-weight-bold);
}
.notice-box-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.notice-box {
  width: 100%;
  padding: var(--notice-margin);
  border-radius: 8px;
  border: 1px solid var(--color-line-white-01);
}
.notice-title {
  font-size: var(--font-size-1250);
  font-weight: bold;
  margin-bottom: 8px;
}
.notice-ul {
  margin-left: var(--notice-margin);
  list-style: disc;
  & li {
    margin-left: 2px;
    margin-top: 4px;
    margin-bottom: 4px;
  }
  & li.notice-fyi {
    margin-left: 0px;
    list-style-type: '*  ';
  }
}
.notice-button-container {
  display: flex;
  justify-content: end;
}
.notice-button {
  color: var(--color-blue-01);
  font-weight: bold;
  padding: 4px 8px;
  border: 1px solid var(--color-line-white-01);
  border-radius: 4px;
}
.notice-checkbox-container {
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.notice-checkbox-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.notice-checkbox-label {
  display: flex;
  align-items: center;
  gap: 4px;
}
.notice-checkbox {
  width: 20px;
  height: 20px;
}

.privacy-checkbox {
  position: relative;
}

.privacy-checkbox label[for="privacy_agree-error"] {
  display: block;
  color: #d32f2f;
  font-size: 12px;
  margin-top: 8px;
  font-weight: normal;
  background: none;
}

/* 신청자 정보 입력 폼 */
.notice-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  width: 100%;
}
.notice-form-group-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.notice-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.notice-form-group-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.notice-form-input {
  padding: 8px 12px;
  border: 1px solid var(--color-line-white-01);
  border-radius: 4px;
  width: 100%;
  font-size: var(--font-size-1000);
}

.notice-form-button-container {
  display: flex;
  justify-content: center;
}
.notice-form-button-default {
  padding: 8px 24px;
  border-radius: 4px;
  border: none;
  background-color: #404040;
  color: white;
  font-size: var(--font-size-1000);
  cursor: pointer;
}
.notice-form-button-submit {
  padding: 8px 24px;
  border-radius: 4px;
  border: none;
  background-color: var(--color-blue-01);
  color: white;
  font-size: var(--font-size-1000);
  cursor: pointer;
}

.privacy-policy-content {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: #495057;
  height: fit-content;
  max-height: 350px;
  overflow-y: auto;
  margin-bottom: 16px;
}

.privacy-policy-content h4 {
  font-weight: bold;
  margin: 4px 0 4px 0;
  color: #212529;
}

.privacy-policy-content ul {
  margin: 2px 0 2px 20px;
  list-style: disc;
}

.privacy-policy-content li {
  margin: 2px 0;
}

.privacy-policy-notice {
  border-radius: 4px;
  margin: 12px 0;
  font-size: 13px;
}

.privacy-policy-notice-content {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.privacy-policy-agree {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px 0;
  padding: 16px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 2px solid #e9ecef;
}

.privacy-policy-agree input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 8px;
}

.privacy-policy-agree label {
  font-weight: bold;
  color: #495057;
  cursor: pointer;
}

/* 반응형 미디어 쿼리 */
@media (max-width: 768px) {
  main {
    width: 100%;
  }
  
  .notice-header {
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: calc(var(--font-size-1500) * 0.9);
    text-align: center;
  }
  
  .notice-box {
    padding: 16px;
  }
  
  .notice-title {
    font-size: calc(var(--font-size-1250) * 0.9);
  }
  
  .notice-form-group-content {
    flex-direction: column;
    gap: 8px;
  }
  
  .notice-form-group-content[style*="gap: 20px"] {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px !important;
  }
  
  .notice-form-input {
    width: 100%;
    box-sizing: border-box;
  }
  
  .privacy-policy-content {
    padding: 16px;
    font-size: 13px;
  }
  
  .privacy-policy-agree {
    padding: 12px;
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .notice-header {
    margin-top: 16px;
    margin-bottom: 16px;
    font-size: calc(var(--font-size-1500) * 0.8);
  }
  
  .notice-box {
    padding: 12px;
  }
  
  .notice-title {
    font-size: calc(var(--font-size-1250) * 0.8);
  }

  .notice-form-group-container {
    gap: 12px;
  }
  
  .notice-form-group-content[style*="gap: 20px"] {
    gap: 12px !important;
  }
  
  .notice-checkbox-label {
    font-size: 14px;
  }
  
  .notice-form-button-submit {
    width: 100%;
    padding: 12px 24px;
  }
  
  .privacy-policy-content {
    padding: 12px;
    font-size: 12px;
    max-height: 150px;
  }
  
  .privacy-policy-notice {
    padding: 8px;
    font-size: 12px;
  }
  
  .privacy-policy-agree {
    padding: 8px;
    flex-direction: column;
    text-align: center;
    gap: 4px;
  }
}

/* 미리보기 섹션만 더 넓게 */
.preview-section {
  max-width: 900px !important;
}

.preview-section .notice-box-container {
  max-width: 900px;
}

/* Slick 슬라이더 스타일 */
.slick-container {
  position: relative;
  padding: 20px 0;
  border: none;
  box-shadow: inset 20px 0 15px -4px white, inset -20px 0 8px -4px white;
}

.slick-content {
  text-align: center;
  padding: 20px;
  outline: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.25;
}
.slick-content.slick-center {
  opacity: 1;
}
.slick-content img {
  max-width: 100%;
  width: 700px;
  height: auto;
  border-radius: 8px;
  /* box-shadow: 0 4px 8px rgba(0,0,0,0.1); */
  box-shadow: 4px 4px 20px 0px rgba(0, 0, 0, 0.1);
  margin-bottom: 16px;
  border: 1px solid var(--color-line-white-01)
}
.slick-image-container {
  margin-bottom: 16px;
}

.slick-title {
  /* font-size: var(--font-size-1250); */
  color: var(--color-text-primary, #333);
  transition: opacity 0.3s ease;
}

/* 중앙이 아닌 슬라이드 스타일 */
.slick-slide:not(.slick-center) .slick-content {
  opacity: 0.3;
  transform: scale(0.6);
}

.slick-slide:not(.slick-center) .slick-title {
  opacity: 0.3;
}

/* 중앙 슬라이드 스타일 */
.slick-center .slick-content {
  opacity: 1;
  transform: scale(1.1);
}

/* Slick dots */
.slick-dots {
  bottom: -40px;
}

.slick-dots li button:before {
  font-size: 12px;
  color: var(--color-blue-01, #007bff);
  opacity: 0.5;
}

.slick-dots li.slick-active button:before {
  opacity: 1;
  color: var(--color-blue-01, #007bff);
}

/* 반응형 슬라이더 */
@media (max-width: 768px) {
  .slick-slide:not(.slick-center) .slick-content {
    transform: scale(0.7);
  }
  
  .slick-center .slick-content {
    transform: scale(1.05);
  }
  
  .slick-content img {
    width: 550px;
  }
}

@media (max-width: 480px) {
  .slick-slide:not(.slick-center) .slick-content {
    transform: scale(0.75);
  }
  
  .slick-center .slick-content {
    transform: scale(1.0);
  }
  
  .slick-content img {
    width: 450px;
  }
}

/* 개인정보 모달 스타일 */
.privacy-modal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.privacy-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 700px;
  max-height: 80vh;
  width: 85vw;
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
}

.privacy-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #666;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.privacy-modal-close:hover {
  color: #000;
  background: rgba(255, 255, 255, 1);
}

.privacy-modal-body {
  margin-top: 20px;
  line-height: 1.6;
  color: #333;
}

.privacy-text {
  font-family: inherit;
  font-size: 14px;
  line-height: 1.8;
  color: #333;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
}

.privacy-modal-body h3 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #212529;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 10px;
}

.privacy-modal-body h4 {
  font-size: 16px;
  font-weight: bold;
  margin: 20px 0 10px 0;
  color: #495057;
}

.privacy-modal-body h5 {
  font-size: 14px;
  font-weight: bold;
  margin: 15px 0 8px 0;
  color: #6c757d;
}

.privacy-modal-body p {
  margin: 8px 0;
  font-size: 14px;
}

.privacy-modal-body ul {
  margin: 8px 0 8px 20px;
  list-style: disc;
}

.privacy-modal-body li {
  margin: 4px 0;
  font-size: 14px;
}

.privacy-modal-body ul ul {
  margin-left: 20px;
  list-style: circle;
}

/* 반응형 개인정보 모달 */
@media (max-width: 768px) {
  .privacy-modal-content {
    width: 90vw;
    max-width: 600px;
    padding: 20px;
    max-height: 80vh;
  }
  
  .privacy-modal-body h3 {
    font-size: 18px;
  }
  
  .privacy-modal-body h4 {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .privacy-modal-content {
    width: 85vw;
    max-width: 400px;
    padding: 15px;
    max-height: 75vh;
  }
  
  .privacy-modal-body h3 {
    font-size: 16px;
    margin-bottom: 15px;
  }
  
  .privacy-modal-body h4 {
    font-size: 14px;
    margin: 15px 0 8px 0;
  }
  
  .privacy-modal-body h5 {
    font-size: 13px;
  }
  
  .privacy-modal-body p,
  .privacy-modal-body li {
    font-size: 12px;
    line-height: 1.5;
  }
}

/* 이미지 모달 스타일 */
.image-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.image-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 1200px;
  max-height: 90vh;
  width: 90vw;
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.image-modal img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.image-modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #666;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.image-modal-close:hover {
  color: #000;
  background: rgba(255, 255, 255, 1);
}

.image-modal-title {
  text-align: center;
  margin-top: 15px;
  font-size: var(--font-size-1250);
  font-weight: bold;
  color: var(--color-text-primary, #333);
}

/* 반응형 모달 */
@media (max-width: 768px) {
  .image-modal-content {
    width: 95vw;
    max-width: 800px;
    max-height: 90vh;
    padding: 20px;
  }
  
  .image-modal-title {
    font-size: var(--font-size-1000);
  }
}

@media (max-width: 480px) {
  .image-modal-content {
    width: 95vw;
    max-width: 600px;
    max-height: 85vh;
    padding: 15px;
  }
}