/* 회원가입 페이지 스타일 */
#content.signup-page {
  padding-top: 30px;
  padding-bottom: 100px; 
}

.signup-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.signup-top-con {
  text-align: center;
  margin-bottom: 40px;
}

.signup-top-con h2 {
  font-size: 32px;
  font-weight: 600;
  color: #4d3dbf;
}

.signup-form .input-row {
  margin-bottom: 25px;
  position: relative;
}

.signup-form .input-row label {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin-bottom: 10px;
}

.signup-form .input-row input {
  width: 100%;
  height: 60px;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 0 20px;
  font-size: 16px;
  color: #333;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.signup-form .input-row input:focus {
  border-color: #4d3dbf;
  outline: none;
  box-shadow: 0 0 0 2px rgba(77, 61, 191, 0.1);
}

.signup-form .input-row.with-button .input-button-wrap {
  display: flex;
  gap: 10px;
}

.signup-form .input-row.with-button input {
  flex: 1;
}

.signup-form .check-button,
.signup-form .verify-button {
  min-width: 110px;
  height: 60px;
  background: #4d3dbf;
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.signup-form .check-button:hover,
.signup-form .verify-button:hover {
  background: #3c2f96;
}

.signup-form .input-guide {
  margin-top: 8px;
  font-size: 14px;
  color: #999;
  line-height: 1.4;
}

.signup-form .timer {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #ff4d4d;
}

.terms-section {
  margin-top: 40px;
  margin-bottom: 40px;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 20px;
}

.terms-all {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.terms-all label {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.terms-list label {
  display: block;
  margin-bottom: 12px;
  font-size: 16px;
  color: #666;
  display: flex;
  align-items: center;
}

.terms-list label:last-child {
  margin-bottom: 0;
}

.terms-list input[type='checkbox'] {
  margin-right: 10px;
}

.terms-list em {
  color: #ff66cc;
  font-style: normal;
  margin-left: 5px;
}

.terms-detail {
  background: none;
  border: none;
  color: #4d3dbf;
  text-decoration: underline;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  margin-left: 8px;
  font-weight: 400;
}

.terms-detail:hover {
  color: #3c2f96;
}


.signup-submit-btn {
  display: block;
  width: 100%;
  height: 60px;
  background: linear-gradient(95deg, #f6c 5.7%, #4d3dbf 84.87%), #f1f1f1;
  border-radius: 10px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.signup-submit-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* 헤더 회원가입 페이지용 */
#header.signup-header {
  padding: 20px 0;
}

#header.signup-header:before {
  height: 100%;
}

#header.signup-header .header-search-con {
  display: none;
}

/* 반응형 스타일 */
@media screen and (max-width: 767px) {
  #content.signup-page {
    padding-top: 20px;
    padding-bottom: 60px;
  }

  .signup-container {
    padding: 20px 22px;
    margin-top: 20px;
  }

  .signup-top-con h2 {
    font-size: 24px;
  }

  .signup-form .input-row label {
    font-size: 14px;
  }

  .signup-form .input-row input {
    height: 50px;
    font-size: 14px;
  }

  .signup-form .check-button,
  .signup-form .verify-button {
    height: 50px;
    font-size: 14px;
    min-width: 90px;
  }

  .terms-section {
    margin-top: 30px;
    margin-bottom: 30px;
  }

  .terms-all label {
    font-size: 16px;
  }

  .terms-list label {
    font-size: 14px;
  }

  .signup-submit-btn {
    height: 50px;
    font-size: 16px;
  }
}

@media screen and (max-width: 375px) {
  .signup-container {
    padding: 15px 16px;
  }

  .signup-top-con h2 {
    font-size: 22px;
  }

  .signup-form .input-row input {
    height: 45px;
    padding: 0 15px;
  }

  .signup-form .check-button,
  .signup-form .verify-button {
    height: 45px;
    font-size: 12px;
    min-width: 80px;
  }

  .terms-all label {
    font-size: 14px;
  }

  .terms-list label {
    font-size: 13px;
  }

  .signup-submit-btn {
    height: 45px;
    font-size: 14px;
  }
}


/* 약관 모달 스타일 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow: auto;
  backdrop-filter: blur(3px);
}

.modal-content {
  background-color: #fff;
  margin: 3% auto;
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid #f0f0f0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

.modal-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.modal-close:hover {
  color: #000;
  background-color: #f0f0f0;
}

.modal-body {
  padding: 28px;
  max-height: 50vh;
  overflow-y: auto;
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

.terms-text h4 {
  margin: 24px 0 12px 0;
  font-size: 17px;
  font-weight: 600;
  color: #333;
  border-left: 4px solid #4d3dbf;
  padding-left: 12px;
}

.terms-text h4:first-child {
  margin-top: 0;
}

.terms-text p {
  margin: 10px 0;
  font-size: 15px;
  line-height: 1.7;
  color: #555;
}

.terms-text ul {
  margin: 12px 0;
  padding-left: 20px;
}

.terms-text li {
  margin: 6px 0;
  font-size: 15px;
  line-height: 1.6;
  color: #555;
}

.terms-text .notice {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 15px;
  margin: 15px 0;
  font-size: 14px;
  color: #495057;
  line-height: 1.5;
}

/* 개인정보 수집 테이블 스타일 */
.privacy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.privacy-table thead {
  background: #f8f9fa;
}

.privacy-table th {
  padding: 15px 12px;
  text-align: left;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #ddd;
  font-size: 15px;
}

.privacy-table td {
  padding: 12px;
  border-bottom: 1px solid #eee;
  color: #555;
  line-height: 1.5;
}

.privacy-table tbody tr:last-child td {
  border-bottom: none;
}

.privacy-table tbody tr:hover {
  background: #f8f9fa;
}

/* 반응형 테이블 */
@media (max-width: 768px) {
  .privacy-table {
    font-size: 13px;
  }

  .privacy-table th,
  .privacy-table td {
    padding: 10px 8px;
  }

  .privacy-table th {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .privacy-table {
    font-size: 12px;
  }

  .privacy-table th,
  .privacy-table td {
    padding: 8px 6px;
  }
}

.modal-footer {
  padding: 20px 28px;
  border-top: 1px solid #f0f0f0;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  text-align: center;
}

.modal-agree-btn {
  background: linear-gradient(95deg, #ff66cc 5.7%, #4d3dbf 84.87%);
  color: white;
  border: none;
  padding: 14px 40px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
}

.modal-agree-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(77, 61, 191, 0.3);
}

/* 모바일 대응 */
@media (max-width: 768px) {
  .modal-content {
    margin: 8% auto;
    width: 95%;
    max-height: 88vh;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 20px 22px;
  }

  .modal-header h3 {
    font-size: 18px;
  }

  .modal-close {
    width: 28px;
    height: 28px;
    font-size: 24px;
  }

  .terms-text h4 {
    font-size: 16px;
    margin: 20px 0 10px 0;
  }

  .terms-text p,
  .terms-text li {
    font-size: 14px;
  }

  .modal-agree-btn {
    padding: 12px 32px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .modal-content {
    margin: 5% auto;
    width: 98%;
    max-height: 92vh;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 16px 18px;
  }

  .terms-text h4 {
    font-size: 15px;
  }

  .terms-text p,
  .terms-text li {
    font-size: 13px;
  }
}

/* 이용약관 소제목 스타일 */
.terms-text h5 {
  margin: 20px 0 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: #4d3dbf;
  padding-left: 8px;
  border-left: 3px solid #4d3dbf;
}

.terms-text h5:first-of-type {
  margin-top: 15px;
}

/* 순서 있는 목록 스타일 */
.terms-text ol {
  margin: 12px 0;
  padding-left: 20px;
  counter-reset: item;
}

.terms-text ol > li {
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  position: relative;
  padding-left: 8px;
}

/* 중첩된 목록 스타일 */
.terms-text ol li ul {
  margin: 8px 0;
  padding-left: 20px;
  list-style-type: disc;
}

.terms-text ol li ul li {
  margin: 4px 0;
  font-size: 13px;
  line-height: 1.5;
  color: #666;
  padding-left: 0;
}

/* 약관 안내 박스 */
.terms-notice {
  background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
  border: 1px solid #e0e4ff;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 25px 0 15px 0;
  text-align: center;
}

.terms-notice p {
  margin: 0;
  font-size: 14px;
  color: #4d3dbf;
  line-height: 1.5;
}

.terms-notice strong {
  font-weight: 600;
}