/* manuscript_consultation.css - 원고 상담 페이지 스타일 */

/* 전체 페이지 컨테이너 */
.sub-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px;
}

/* 페이지 헤더 */
.page-header {
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e0e0e0;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: #000;
  margin: 0;
}

/* 폼 섹션 */
.form-section {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.section-header {
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: #000;
  margin: 0;
}

.section-notice {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.section-title .required-mark {
  color: #e74c3c;
  margin-right: 5px;
}

/* 폼 그룹 */
.form-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid #f0f0f0;
}

.form-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.form-label {
  flex: 0 0 400px;
  max-width: 400px;
  min-width: 400px;
  display: flex;
  align-items: flex-start;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  padding-right: 30px;
  padding-top: 12px;
  word-break: keep-all;
  line-height: 1.5;
}

.label-text {
  display: inline-block;
  line-height: 1.5;
}

.required-mark {
  color: #e74c3c;
  margin-left: 4px;
  font-weight: 700;
}

.input-wrapper {
  flex: 1;
  min-width: 0;
}

/* 입력 필드 */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 15px;
  font-size: 14px;
  color: #333;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #333;
  box-shadow: 0 0 0 2px rgba(51, 51, 51, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #999;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

/* 저자 정보 그룹 */
.author-info-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.author-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
}

/* 이메일 입력 */
.email-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
}

.email-input {
  flex: 1;
}

.email-separator {
  font-size: 16px;
  color: #666;
  flex-shrink: 0;
}

.email-select {
  flex: 0 0 150px;
}

/* 전화번호 입력 */
.tel-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tel-select {
  flex: 0 0 90px;
  max-width: 90px;
  width: 90px;
  padding: 12px 10px;
}

.tel-input {
  flex: 0 0 90px;
  max-width: 90px;
  width: 90px;
  text-align: center;
  min-width: 0;
}

.tel-separator {
  font-size: 16px;
  color: #666;
  flex-shrink: 0;
  padding: 0 2px;
}

/* 파일 업로드 */
.file-upload-group {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.file-input {
  display: none;
}

.btn-file-select {
  padding: 12px 30px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-block;
  text-align: center;
}

.btn-file-select:hover {
  background: #f8f8f8;
  border-color: #333;
}

.file-name {
  font-size: 14px;
  color: #666;
  flex: 1;
  min-width: 200px;
}

/* 폼 액션 버튼 */
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid #e0e0e0;
}

.btn-cancel,
.btn-submit {
  padding: 15px 40px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-cancel {
  background: #f8f8f8;
  color: #333;
  border: 1px solid #ddd;
}

.btn-cancel:hover {
  background: #e9e9e9;
  border-color: #ccc;
}

.btn-submit {
  background: #28a745;
  color: #fff;
  border: 1px solid #28a745;
}

.btn-submit:hover {
  background: #218838;
  border-color: #218838;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-submit:active {
  transform: translateY(0);
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
  .form-label {
    flex: 0 0 350px;
    max-width: 350px;
    min-width: 350px;
  }
}

@media (max-width: 768px) {
  .sub-inner {
    padding: 15px;
  }

  .page-title {
    font-size: 24px;
  }

  .form-section {
    padding: 20px;
    margin-bottom: 20px;
  }

  .section-title {
    font-size: 18px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .form-group {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 20px;
    padding-bottom: 20px;
  }

  .form-label {
    flex: none;
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    margin-bottom: 10px;
    padding-right: 0;
    padding-top: 0;
    font-size: 15px;
  }

  .author-field-group {
    width: 100%;
  }

  .email-inputs {
    flex-direction: column;
    gap: 8px;
  }

  .email-input {
    width: 100%;
  }

  .email-separator {
    display: none;
  }

  .email-select {
    flex: 1;
    width: 100%;
  }

  .tel-inputs {
    flex-direction: row;
    gap: 5px;
  }

  .tel-select {
    flex: 0 0 70px;
    max-width: 70px;
    width: 70px;
    font-size: 14px;
    padding: 10px 8px;
  }

  .tel-input {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    padding: 10px 8px;
  }

  .tel-input:first-of-type {
    flex: 0 0 70px;
    max-width: 70px;
  }

  .tel-input:nth-of-type(2),
  .tel-input:nth-of-type(3) {
    flex: 0 0 85px;
    max-width: 85px;
  }

  .tel-separator {
    display: inline;
    font-size: 14px;
    padding: 0;
  }

  .file-upload-group {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .btn-file-select {
    width: 100%;
  }

  .file-name {
    width: 100%;
    text-align: center;
  }

  .form-actions {
    flex-direction: column;
    gap: 10px;
  }

  .btn-cancel,
  .btn-submit {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .sub-inner {
    padding: 10px;
  }

  .page-title {
    font-size: 20px;
  }

  .form-section {
    padding: 15px;
  }

  .section-title {
    font-size: 16px;
  }

  .form-label {
    font-size: 14px;
  }

  .form-input,
  .form-select,
  .form-textarea {
    padding: 10px 12px;
    font-size: 14px;
  }

  .tel-select {
    flex: 0 0 60px;
    max-width: 60px;
    width: 60px;
  }

  .tel-input:first-of-type {
    flex: 0 0 60px;
    max-width: 60px;
  }

  .tel-input:nth-of-type(2),
  .tel-input:nth-of-type(3) {
    flex: 0 0 75px;
    max-width: 75px;
  }

  .tel-separator {
    font-size: 12px;
  }

  .btn-cancel,
  .btn-submit {
    padding: 12px 30px;
    font-size: 15px;
  }
}

