/* ✅ 기본 폼 컨테이너 */
.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  background: #f5f7fa;
  min-height: 100vh;
  font-family: 'Pretendard', sans-serif;
}

.login-box {
  background: #fff;
  padding: 2rem;
  border-radius: 1rem;
  max-width: 450px;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.login-box h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #00b89c;
  font-size: 1.75rem;
}

/* ✅ 입력 필드 공통 스타일 */
.login-box label {
  display: block;
  margin-bottom: 1rem;
  font-size: 14px;
  color: #333;
}

.login-box input[type="text"],
.login-box input[type="password"],
.login-box input[type="date"] {
  width: 100%;
  padding: 0.6rem 0.75rem;
  margin-top: 0.25rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}

/* ✅ 버튼 스타일 */
.privacyModal-box .btn {
  width: 100%;
  padding: 0.75rem;
  background-color: #00b89c;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  margin-top: 1rem;
  cursor: pointer;
}

.privacyModal-box .btn:hover {
  background-color: #009e84;
}

.login-box .btn {
  width: 100%;
  padding: 0.75rem;
  background-color: #00b89c;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  margin-top: 1rem;
  cursor: pointer;
}

.login-box .btn:hover {
  background-color: #009e84;
}

/* ✅ 개인정보 동의 부분 */
.login-box section {
  margin-top: 1.5rem;
}

.login-box section h2 {
  font-size: 16px;
  margin-bottom: 0.5rem;
}

.terms-box {
  max-height: 150px;
  overflow-y: auto;
  padding: 12px 14px;
  border: 1px solid #dbe7fb;
  border-radius: 12px;
  background: #f8fbff;
  color: #334155;
  font-size: 12.5px;
  line-height: 1.55;
}

.terms-box strong {
  display: block;
  margin-bottom: 6px;
  color: #0f172a;
  font-size: 13px;
}

.terms-box p {
  margin: 6px 0 0;
}

.terms-box .terms-version {
  color: #64748b;
  font-size: 12px;
}

.login-box label.terms-agree {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px;
  margin-top: 14px;
  margin-bottom: 1rem;
  color: transparent;
  font-size: 0;
  line-height: 1.45;
}

.login-box label.terms-agree input {
  flex: 0 0 auto;
  margin-top: 2px !important;
}

.login-box label.terms-agree span {
  color: #1f2937;
  font-size: 14px;
  font-weight: 600;
}

.login-box .terms-consent {
  margin-top: 1.5rem;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
}

.login-box .terms-master {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.login-box .terms-all,
.login-box .terms-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 0 18px;
  margin: 0;
}

.login-box .terms-all {
  border-bottom: 1px solid #e5e7eb;
  color: #0f172a;
  font-size: 16px;
  font-weight: 900;
}

.login-box .terms-list {
  display: flex;
  flex-direction: column;
}

.login-box .terms-row + .terms-row {
  border-top: 1px solid #edf2f7;
}

.login-box .terms-row__label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
  color: #111827;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
}

.login-box .terms-all input,
.login-box .terms-row__label input {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: #3478f6;
}

.login-box .terms-row__label span {
  min-width: 0;
}

.login-box .terms-row__label em {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.login-box .terms-view {
  flex: 0 0 auto;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  padding: 4px 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #2563eb !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  cursor: pointer !important;
}

.login-box .terms-view::after {
  content: '›';
  margin-left: 8px;
  color: #94a3b8;
  font-size: 18px;
  line-height: 1;
  vertical-align: -1px;
}

#privacyModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
}

.legal-embedded-document {
  color: #2f343b;
  font-size: 14px;
  line-height: 1.72;
  text-align: left;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.legal-embedded-document p {
  margin: 0 0 14px;
}

.legal-embedded-document .legal-doc-title {
  margin: 0 0 20px;
  text-align: center;
  color: #333;
  font-size: 24px;
  font-weight: 900;
}

.legal-embedded-document .legal-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 26px 0 12px;
  color: #1f4e79;
  font-size: 17px;
  font-weight: 900;
}

.legal-embedded-document .legal-section-title::before {
  content: "";
  flex: 0 0 4px;
  width: 4px;
  height: 24px;
  border-radius: 999px;
  background: #1f4e79;
}

.legal-embedded-document .legal-lines {
  display: grid;
  gap: 4px;
}

.legal-embedded-document .legal-lines span {
  display: block;
}

.legal-embedded-document .legal-subtitle {
  margin: 18px 0 8px;
  font-weight: 800;
}

.legal-embedded-document .legal-callout {
  margin: 8px 0 16px;
  padding: 13px 14px;
  background: #f6f8fb;
  border: 1px solid #d7dce3;
}

.legal-embedded-document .legal-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 10px 0 18px;
}

.legal-embedded-document .legal-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  border: 1px solid #cfd6df;
  font-size: 13px;
}

.legal-embedded-document .legal-table th,
.legal-embedded-document .legal-table td {
  padding: 10px 12px;
  border: 1px solid #cfd6df;
  text-align: left;
  vertical-align: top;
}

.legal-embedded-document .legal-table th {
  background: #eef3f8;
  color: #1f4e79;
}

.legal-embedded-document .legal-info-table td:first-child {
  width: 120px;
  background: #f3f6fa;
  color: #1f4e79;
  font-weight: 900;
}

.legal-embedded-document .legal-appendix {
  margin-top: 24px;
  padding: 14px 16px;
  background: #f8fbff;
  border: 1px solid #cfe0f4;
}

.legal-embedded-document .legal-appendix strong {
  display: block;
  margin-bottom: 6px;
  color: #1f4e79;
}

/* ============================================================
   설계사 신청 섹션 (.planner-apply)
   ============================================================ */

/* 섹션 카드 래퍼 */
#plannerSection {
  margin-top: 1.5rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

/* 섹션 헤더 영역 */
.planner-apply__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #f8fafc;
  border-bottom: 1.5px solid #e2e8f0;
  cursor: pointer;
  user-select: none;
  transition: background 0.18s;
}
.planner-apply__head:hover {
  background: #f0fdf9;
}

.login-box #plannerSection .planner-apply__head {
  min-height: 70px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
}

/* 섹션 제목 */
.planner-apply__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  padding: 0;
}

.login-box #plannerSection .planner-apply__title {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  color: #12345f !important;
  font-size: 15px !important;
  line-height: 1.25 !important;
  text-align: left !important;
  white-space: nowrap !important;
}

.login-box #plannerSection .planner-apply__badge {
  display: inline-flex !important;
  align-items: center !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.login-box #plannerSection .planner-apply__toggle {
  margin-left: auto !important;
}
.planner-apply__title .pa-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #00b89c 0%, #0ea5e9 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.planner-apply__badge {
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
  background: #f1f5f9;
  border-radius: 20px;
  padding: 2px 8px;
  margin-left: 4px;
}

/* 토글 스위치 */
.planner-apply__toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.planner-apply__toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.planner-apply__toggle-track {
  position: absolute;
  inset: 0;
  background: #cbd5e1;
  border-radius: 24px;
  transition: background 0.22s;
  cursor: pointer;
}
.planner-apply__toggle-track::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.22s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}
.planner-apply__toggle input:checked + .planner-apply__toggle-track {
  background: #00b89c;
}
.planner-apply__toggle input:checked + .planner-apply__toggle-track::after {
  transform: translateX(20px);
}

/* 펼쳐지는 바디 영역 */
.planner-apply__body {
  padding: 18px 18px 20px;
}

/* 안내 배너 */
.planner-apply__notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #f0fdf9;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  padding: 11px 14px;
  margin-bottom: 18px;
  font-size: 12.5px;
  color: #065f46;
  line-height: 1.55;
}
.planner-apply__notice-icon {
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* 입력 필드 그룹 */
.planner-apply__field {
  margin-bottom: 14px;
}
.planner-apply__field:last-child {
  margin-bottom: 0;
}
.planner-apply__label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 5px;
  letter-spacing: -0.01em;
}
.planner-apply__label .req {
  color: #e03030;
  margin-left: 2px;
  font-weight: 700;
}
.planner-apply__input {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13.5px;
  color: #1e293b;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.18s, box-shadow 0.18s;
  outline: none;
}
.planner-apply__input:focus {
  border-color: #00b89c;
  box-shadow: 0 0 0 3px rgba(0,184,156,0.12);
}
.planner-apply__hint {
  display: block;
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 4px;
}

/* 파일 업로드 커스텀 영역 */
.planner-apply__file-wrap {
  position: relative;
}
.planner-apply__file-box {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px dashed #cbd5e1;
  border-radius: 10px;
  padding: 12px 14px;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}
.planner-apply__file-box:hover {
  border-color: #00b89c;
  background: #f0fdf9;
}
.planner-apply__file-box.has-file {
  border-color: #00b89c;
  background: #f0fdf9;
}
.planner-apply__file-icon {
  width: 36px;
  height: 36px;
  background: #e2e8f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: background 0.18s;
}
.planner-apply__file-box.has-file .planner-apply__file-icon {
  background: #dcfce7;
}
.planner-apply__file-text {
  flex: 1;
  min-width: 0;
}
.planner-apply__file-text strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.planner-apply__file-text span {
  font-size: 11.5px;
  color: #94a3b8;
}
.planner-apply__file-btn {
  display: inline-block;
  padding: 5px 12px;
  background: #fff;
  border: 1.5px solid #00b89c;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #00b89c;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.planner-apply__file-btn:hover {
  background: #00b89c;
  color: #fff;
}
.planner-apply__file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* 바디 애니메이션 */
.planner-apply__body {
  display: none;
  animation: paSlideDown 0.22s ease;
}
.planner-apply__body.is-open {
  display: block;
}
@keyframes paSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
