@charset "UTF-8";
/*******

JJS CSS
원우회비 관련 css입니다.

*******/

.membership_cont {
  display:flex;
  align-items: center;
  justify-content: center;
  margin-top:50px;
}

.membership_btn{
  display:flex;
  align-items: center;
  justify-content: center;
	width:200px;
  height:50px;
  background:#0076c1;
  border:1px solid #0076c1;
  color:#fff;
  text-align:center;
  font-size:14px;
  font-weight:600;
  text-decoration: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.membership_btn:hover {
  background: #005a94;
  text-decoration: none;
  color: #fff;
}

.membership_txt {
  font-size:18px;
  margin-top:30px;
}

/* 회비 정보 스타일 */
.fee_info {
  background-color: #f8f8f8;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 20px;
  max-width: 500px;
  margin: 0 auto 40px;
  text-align: center;
  margin-top:50px;
  margin-bottom:30px;
}

.fee_info h3 {
  font-size: 18px;
  color: #333;
  margin: 0 0 10px 0;
  font-weight: 600;
}

.fee_amount {
  font-size: 24px;
  font-weight: 700;
  color: #0076c1;
  margin: 15px 0;
}

.fee_info p {
  font-size: 14px;
  color: #666;
  margin: 10px 0 0 0;
}

.pay_btn_cont {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-bottom: 50px;
}

.pay_btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 90px;
  background: #0076c1;
  color: #fff;
  font-size: 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px;
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.pay_btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), transparent);
  pointer-events: none;
}

.pay_btn:hover {
  background: #005a94;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.pay_btn:active {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pay_btn:hover {
  background:#005692;
}

/* 공통 결제 결과 스타일링 */
.payment_result {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  text-align: center;
}

.result_txt {
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  margin-top: 40px;
  padding-bottom: 10px;
  position: relative;
  width: 100%;
}

.result_txt:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  border-radius: 3px;
}

.result_box {
  width: 100%;
  max-width: 450px;
  margin: 30px auto;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.result_data {
  padding: 10px 0;
}

.result_row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  line-height: 1.5;
  font-size: 16px;
}

.result_row:last-child {
  border-bottom: none;
}

.result_row span:first-child {
  color: #666;
  font-weight: 500;
}

/* 성공 스타일 */
.membership_success .result_txt {
  color: #333;
}

.membership_success .result_txt:after {
  background-color: #0076c1;
}

.membership_success .result_box {
  border: 1px solid #ddd;
  background-color: #f9f9f9;
}

.membership_success .result_row span:last-child {
  color: #0076c1;
  font-weight: 600;
}

/* 실패 스타일 */
.membership_fail .result_txt {
  color: #d93025;
}

.membership_fail .result_txt:after {
  background-color: #d93025;
}

.membership_fail .result_box {
  border: 1px solid #ffcdd2;
  background-color: #fffdfd;
}

.membership_fail .result_row span:last-child {
  color: #d93025;
  font-weight: 600;
}

.membership_fail .result_row:last-child span:last-child {
  font-weight: 700;
}

/* 모달 기본 스타일 */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from {opacity: 0}
  to {opacity: 1}
}

.modal_content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  animation: slideDown 0.3s;
}

@keyframes slideDown {
  from {transform: translateY(-50px); opacity: 0;}
  to {transform: translateY(0); opacity: 1;}
}

/* 모달 헤더 */
.modal_header {
  padding: 15px 20px;
  background-color: #0076c1;
  color: white;
  border-radius: 8px 8px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal_header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.close_modal {
  color: white;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

/* 모달 본문 */
.modal_body {
  padding: 20px;
}

/* 뱅크 인포 스타일 (계좌정보 표시) */
.bank_info {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 5px;
  border: 1px solid #eee;
}

.info_row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.info_row:last-of-type {
  margin-bottom: 20px;
  border-bottom: 2px solid #ddd;
}

.info_row span:first-child {
  font-weight: 500;
  color: #555;
}

.info_row span:last-child {
  font-weight: 600;
  color: #0076c1;
}

/* 입금 폼 스타일 */
.bank_info_form {
  padding: 10px 0;
}

.form_notice {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #333;
}

.form_notice_sub {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.form_group {
  margin-bottom: 20px;
}

.form_group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #444;
}

.form_input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 15px;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

.form_input:focus {
  border-color: #0076c1;
  outline: none;
}

.form_input::placeholder {
  color: #aaa;
}

.input_error {
  color: #d93025;
  font-size: 13px;
  margin-top: 5px;
}

/* 공통 노트 스타일 */
.info_notes {
  padding: 10px;
  background-color: #fff7e6;
  border-radius: 4px;
  margin-top: 15px;
}

.info_notes p {
  margin: 5px 0;
  font-size: 14px;
  color: #996633;
}

/* 모달 푸터 */
.modal_footer {
  padding: 15px 20px;
  background-color: #f5f5f5;
  border-top: 1px solid #ddd;
  border-radius: 0 0 8px 8px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* 버튼 스타일 */
.action_btn, .submit_btn {
  padding: 8px 15px;
  background-color: #0076c1;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.action_btn:hover, .submit_btn:hover {
  background-color: #005a94;
}

.action_btn:disabled, .submit_btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.close_btn {
  padding: 8px 15px;
  background-color: #f1f1f1;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.close_btn:hover {
  background-color: #e4e4e4;
}

/* 납부내역 스타일 */
.membership_history {
  margin-bottom: 50px;
}

.history_summary {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
}

.summary_box {
  flex: 1;
  text-align: center;
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px 15px;
  margin: 0 10px;
}

.summary_box:first-child {
  margin-left: 0;
}

.summary_box:last-child {
  margin-right: 0;
}

.summary_title {
  font-size: 16px;
  color: #666;
  margin-bottom: 10px;
}

.summary_value {
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

.status_complete {
  color: #0076c1;
}

.status_pending {
  color: #d93025;
}

.history_table {
  margin-bottom: 30px;
}

.history_table table {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid #0076c1;
}

.history_table th {
  background: #f5f5f5;
  padding: 12px 8px;
  border-bottom: 1px solid #ddd;
  font-weight: 600;
  color: #333;
}

.history_table td {
  padding: 12px 8px;
  border-bottom: 1px solid #eee;
  text-align: center;
  color: #555;
}

.payment_status {
  font-weight: 600;
}

.payment_status.complete {
  color: #0076c1;
}

.payment_status.pending {
  color: #d93025;
}


.detail_btn {
  background: #0076c1;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.3s;
}

.detail_btn:hover {
  background: #005a94;
}

.membership_notes {
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
}

.membership_notes h4 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 16px;
  font-weight: 600;
}

.membership_notes ul {
  margin: 0;
  padding-left: 20px;
}

.membership_notes li {
  margin-bottom: 8px;
  color: #666;
  line-height: 1.5;
}

.no_data {
  padding: 50px 0 !important;
  color: #888 !important;
}

/* 영수증 모달 스타일 */
.detail_modal .modal_body {
  padding: 0;
}

.detail_content {
  padding: 30px;
  background-color: #fff;
}

.detail_title {
  font-size: 22px;
  font-weight: 600;
}

.detail_info {
  margin-bottom: 30px;
}

.detail_info .info_row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.detail_info .info_row:last-child {
  border-bottom: none;
}

.detail_info .info_row span:first-child {
  color: #666;
  font-weight: 500;
}

.detail_info .info_row span:last-child {
  font-weight: 600;
  color: #333;
}

.print_btn {
  padding: 8px 15px;
  background-color: #0076c1;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.print_btn:hover {
  background-color: #005a94;
}

/* 회비 타입 버튼 스타일 */
.fee_type_buttons {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.fee_btn_freshman {
  background: #e65100;
}

.fee_btn_freshman:hover {
  background: #d84315;
}

.fee_btn_student {
  background: #0076c1;
}

.fee_btn_student:hover {
  background: #0288d1;
}

.fee_btn_graduate {
  background: #2e7d32;
}

.fee_btn_graduate:hover {
  background: #388e3c;
}

/* 비활성화된 버튼 */
.membership_btn.disabled {
  background: #ccc !important;
  cursor: not-allowed !important;
  color: #666 !important;
}

.membership_btn.disabled:hover {
  background: #ccc !important;
}

.fee_type_notice {
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  margin-top: 20px;
  text-align: center;
}

.fee_type_notice p {
  margin: 5px 0;
  color: #555;
}

.fee_type_notice strong {
  color: #333;
}

/* 반응형 스타일 */
@media screen and (max-width: 768px) {
  /* 결제 버튼 */
  .pay_btn_cont {
    gap: 20px;
  }
  
  .pay_btn {
    width: 150px;
    height: 80px;
    font-size: 14px;
  }

  /* 회비 정보 */
  .fee_info {
    max-width: 90%;
    padding: 15px;
  }
  
  .fee_info h3 {
    font-size: 16px;
  }
  
  .fee_amount {
    font-size: 20px;
  }

  /* 모달 */
  .modal_content {
    margin: 15% auto;
    width: 95%;
  }
  
  .modal_header h3 {
    font-size: 16px;
  }
  
  .form_notice {
    font-size: 15px;
  }
  
  .form_notice_sub {
    font-size: 13px;
  }
  
  .info_row {
    font-size: 14px;
  }
  
  .form_input {
    padding: 8px 10px;
    font-size: 14px;
  }

  /* 결과 페이지 */
  .result_box {
    max-width: 90%;
    padding: 15px;
  }
  
  .result_row {
    font-size: 14px;
    padding: 10px 0;
  }
  
  .result_txt {
    font-size: 20px;
    margin-top: 30px;
  }

  .history_summary {
    flex-direction: column;
  }

  .summary_box {
      margin: 0 0 10px 0;
  }
  
  .history_table {
      overflow-x: auto;
  }
  
  .history_table table {
      min-width: 600px;
  }

  /* 회비 타입 버튼 모바일 */
  .fee_type_buttons {
    flex-direction: column;
    gap: 15px;
  }

  .membership_btn {
    width: 100%;
    font-size: 14px;
  }
  
  .fee_type_notice {
    padding: 12px;
    margin-top: 15px;
  }
  
  .fee_type_notice p {
    font-size: 13px;
  }
}
