body {
  font-family: "Noto Sans KR", sans-serif;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f5f5f5;
}
.container {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
h1,
h3 {
  color: #2c3e50;
  text-align: center;
  margin-bottom: 30px;
}
.form-group {
  margin-bottom: 20px;
}
.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}
.form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}
.ssn-group {
  display: flex;
  gap: 10px;
  align-items: center;
}
.ssn-group input {
  width: 100px;
}
.ssn-group span {
  font-size: 20px;
  color: #666;
}
.phone-group {
  display: flex;
  gap: 10px;
  align-items: center;
}
.phone-group input {
  width: 300px;
}
.phone-group select {
  width: 100px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}
.company-phone-group {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}
.company-phone-group input {
  width: 200px;
}
.company-phone-group select {
  width: 100px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}
.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: -10px;
}
.same-phone-check {
  display: flex;
  align-items: center;
  gap: 5px;
}
.same-phone-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-bottom: 10px;
}
label {
  display: block;
  margin-bottom: 6px;
  color: #34495e;
  font-weight: bold;
}
input[type="text"],
input[type="tel"],
input[type="number"],
textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}
.radio-group {
  display: flex;
  gap: 20px;
  align-items: center;
}
.radio-group label {
  margin-bottom: 0;
  margin-right: 10px;
}
select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}
button {
  background-color: #3498db;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  font-size: 16px;
  margin-top: 32px;
}
button:hover {
  background-color: #2980b9;
}
.address-group {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  align-items: flex-start;
}
.address-group input[type="text"] {
  width: 70%;
  height: 40px;
  font-size: 15px;
  padding: 0 16px;
  box-sizing: border-box;
  border-radius: 6px;
  margin-bottom: 0;
}
.address-group button {
  width: 30%;
  height: 35px;
  background-color: #3498db;
  color: white;
  border: none;
  transition: background 0.2s;
  margin: 0;
  white-space: nowrap;
}
.address-group button:hover {
  background-color: #2980b9;
}
.address-detail {
  margin-top: 10px;
}
.required::after {
  content: " *";
  color: #e74c3c;
}
.error-message {
  color: #e74c3c;
  font-size: 12px;
  margin-top: 5px;
  display: none;
}
.error-message.show {
  display: block;
}
input.error,
select.error,
textarea.error {
  border-color: #e74c3c;
  background-color: #fff0f0;
}
/* 모달 스타일 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 80px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}
.modal-content {
  background-color: white;
  margin: auto;
  padding: 30px;
  border-radius: 10px;
  width: 95%;
  max-width: 600px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  cursor: pointer;
}
.close:hover {
  color: black;
}
/* 개인정보 동의 영역 스타일 */
.privacy-agree-group {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}
.privacy-agree-group label {
  margin-bottom: 0;
  flex: 1;
}
.privacy-agree-group .view-btn {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  color: #495057;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
}
.privacy-agree-group .view-btn:hover {
  background-color: #e9ecef;
}
.privacy-agree-group .checkbox-group {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.privacy-agree-group .checkbox-group label {
  font-weight: normal;
  font-size: 14px;
}
.privacy-title-group {
  display: flex;
  align-items: center;
  margin-bottom: 0;
  width: 100%;
  flex-wrap: nowrap;
}
.privacy-title-group .title-section {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  flex: 1;
}
.privacy-title-group .title-section label {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  flex: unset;
  font-size: 16px;
  font-weight: bold;
  margin-right: 2px;
}
.privacy-title-group .view-btn {
  background: none;
  border: none;
  color: #19ce60;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  padding: 0;
  margin-left: 0;
  white-space: nowrap;
  transition: text-decoration 0.2s;
}
.privacy-title-group .view-btn:hover {
  text-decoration: underline;
}
.privacy-checkbox-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.privacy-checkbox-row label {
  font-weight: normal;
  font-size: 14px;
  margin-bottom: 0;
}
/* ✅ 동의 섹션 전체 줄 스타일 */
.consent-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
  font-size: 15px;
}
/* 왼쪽: 체크 아이콘 + [필수] + 제목 */
.consent-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.check-icon {
  font-family: Arial, sans-serif !important;
  font-size: 18px;
  color: #999;
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
}
.check-icon.checked {
  color: #19ce60 !important;
}
.check-icon:focus {
  outline: none;
}
.check-icon:active {
  outline: none;
}
.check-icon svg {
  color: #999;
}
.check-icon.checked svg {
  color: #19ce60;
}
.check-icon svg polyline {
  stroke-width: 3.5;
}
.required-text {
  color: #19ce60;
  font-weight: bold;
}
.consent-title {
  font-weight: bold;
  color: #333;
  white-space: nowrap;
}
/* 오른쪽: 보기 버튼 + 체크박스 */
.consent-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.consent-view {
  background: none;
  border: none;
  color: #888;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
}
.consent-view:hover {
  text-decoration: underline;
}
.consent-right input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}
#postcode {
  height: 36px;
  padding: 6px 10px;
  font-size: 15px;
  box-sizing: border-box;
}
/* 담당자 선택 스타일 */
.manager-select-container {
  position: relative;
  width: 100%;
}

.manager-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.manager-dropdown.show {
  display: block;
}

.manager-item {
  padding: 8px 12px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.manager-item:hover {
  background-color: #f5f5f5;
}

.manager-item.selected {
  background-color: #e3f2fd;
}

.manager-code {
  font-weight: bold;
  color: #2196f3;
}

.manager-info {
  font-size: 0.9em;
  color: #666;
  margin-top: 2px;
}

/* 에러 컨테이너 스타일 */
.error-container {
  text-align: center;
  padding: 40px 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin: 20px 0;
}

.error-container h3 {
  color: #e74c3c;
  margin-bottom: 16px;
}

.error-container p {
  color: #666;
  margin: 8px 0;
  line-height: 1.5;
}

select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}

/* 파일 업로드 스타일 */
.file-upload-container {
  position: relative;
  margin-top: 8px;
}

.file-upload-container input[type="file"] {
  width: 95%;
  padding: 12px;
  border: 2px dashed #ddd;
  border-radius: 8px;
  background: #f9f9f9;
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-upload-container input[type="file"]:hover {
  border-color: #007bff;
  background: #f0f8ff;
}

.file-upload-container input[type="file"]:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.file-preview {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-preview img {
  max-width: 200px;
  max-height: 150px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.file-preview .file-icon {
  font-size: 48px;
  color: #007bff;
  margin-right: 12px;
}

.file-preview .file-details {
  flex: 1;
}

.file-preview .file-name {
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.file-preview .file-size {
  font-size: 12px;
  color: #666;
}

.file-preview .remove-file {
  background: #dc3545;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  margin-left: 12px;
}

.file-preview .remove-file:hover {
  background: #c82333;
}

.file-info {
  margin-top: 8px;
  font-size: 12px;
  color: #666;
}

.file-info.error {
  color: #dc3545;
}

.file-info.success {
  color: #28a745;
}

/* 드래그 앤 드롭 스타일 */
.file-upload-container.dragover {
  border-color: #007bff;
  background: #f0f8ff;
}

.file-upload-container.dragover input[type="file"] {
  border-color: #007bff;
  background: #f0f8ff;
}

/* 제출 버튼 스타일 개선 */
.submit-btn {
  background: #007bff;
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 20px;
}

.submit-btn:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.submit-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 파일 업로드 섹션 스타일 */
.form-section {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.form-section h3 {
  margin-bottom: 20px;
  color: #333;
  font-size: 18px;
  font-weight: 600;
}

/* 다중 파일 업로드 스타일 */
.upload-hint {
  margin-top: 8px;
  font-size: 12px;
  color: #666;
  text-align: center;
}

.file-list {
  margin-top: 16px;
}

.file-item {
  display: flex;
  align-items: center;
  padding: 12px;
  margin-bottom: 8px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #f9f9f9;
  transition: all 0.3s ease;
}

.file-item:hover {
  background: #f0f0f0;
  border-color: #007bff;
}

.file-item .file-icon {
  font-size: 24px;
  margin-right: 12px;
  color: #007bff;
}

.file-item .file-details {
  flex: 1;
}

.file-item .file-name {
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
  word-break: break-all;
}

.file-item .file-size {
  font-size: 12px;
  color: #666;
}

.file-item .file-status {
  font-size: 12px;
  margin-left: 8px;
}

.file-item .file-status.success {
  color: #28a745;
}

.file-item .file-status.error {
  color: #dc3545;
}

.file-item .file-status.uploading {
  color: #007bff;
}

.file-item .remove-file {
  background: #dc3545;
  color: white;
  border: none;
  padding: 6px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  margin-left: 16px;
  min-width: 60px;
  max-width: 80px;
  width: auto;
  flex-shrink: 0;
  text-align: center;
  transition: background 0.3s ease;
  display: inline-block;
}

.file-item .remove-file:hover {
  background: #c82333;
}

.file-item .file-preview-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 12px;
  border: 1px solid #ddd;
}

/* 파일 업로드 진행률 표시 */
.file-item .upload-progress {
  width: 100%;
  height: 4px;
  background: #e9ecef;
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}

.file-item .upload-progress-bar {
  height: 100%;
  background: #007bff;
  transition: width 0.3s ease;
}

/* 빈 파일 리스트 스타일 */
.file-list:empty::after {
  content: '업로드된 파일이 없습니다.';
  display: block;
  text-align: center;
  color: #999;
  font-style: italic;
  padding: 20px;
}

.file-count {
  font-size: 13px;
  color: #555;
  margin-bottom: 8px;
  text-align: right;
}

.title-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

.title-section h3 {
  margin-bottom: 0;
  flex: 1;
}

.name-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.name-label-row label {
  margin-bottom: 0;
}

.document-only-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  font-size: 12px;
}

.document-only-check input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
}

.document-only-check label {
  margin: 0;
  font-weight: normal;
  color: #495057;
  cursor: pointer;
  font-size: 12px;
}

.form-group {
  margin-bottom: 20px;
}
 