* {transition: all 0.4s ease;}

body, button, input, select, textarea {
  font-family: 'Pretendard', sans-serif;
  font-weight: 400;
  color: #333;
}
h4, .header-title, .btn-calc, .btn-toggle {
  font-weight: 600;
}

body {
  background-color: #F6F7F9;
  margin: 0;
  padding: 3rem 0;
  
    -webkit-user-select: none; /* Chrome, Safari */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* IE/Edge */
  user-select: none;     
  
}

.container-card {
  max-width: 480px;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 11px 11px 30px rgba(0, 0, 0, 0.05)
}


body::after {
  content: "Copyright ⓒ 참조은승계. All Rights Reserved";
  display: block;
  width: 100%;
  text-align: center;
  color: #B2B5C1;
  font-size: 11px;
  font-weight: 200;
  line-height: 6;
  position: relative; 
  bottom: 0;
  left: 0;
}



/* 6. 헤더 바 */
.header-bar {
  display: flex;
  align-items: center;
  background-color: #fff;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e0e0e0;
}
.header-bar .btn-back {
  display: inline-block;
  width: 25px;
  height: 40px;
  color: transparent;
  text-decoration: none;
  overflow: hidden;

  background-image: url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><polyline points='15 18 9 12 15 6' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}
.header-bar .header-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #212125;
  text-indent: 10px;
}

/* 7. 콘텐츠 영역 */
.content-area {
  padding: 1rem 1.25rem 1.5rem;
}

/* 8. 폼 레이블 & 입력창 */
.form-label {
  font-size: 1rem;
  color: #333;
  margin-bottom: 0;
  font-weight: 600;
  line-height: 2.5rem; /* 입력창 높이와 정렬을 맞춤 */
}
.required-mark {
  color: #FF3C00;
  margin-left: 0.1rem;
  font-size: 1rem;
}
.form-control {
  background-color: #F7F7F9;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-align: right;
  font-size: 1.3rem;
  color: #111;
  height: 2.8rem;
  font-weight: 600;
}
.form-control::placeholder {
  color: #aaa;
  font-size: 0.9rem;
}
.input-group-text {
  background-color: #F7F7F9;
  border: 1px solid #ddd;
  font-size: 1rem;
  color: #777;
  height: 2.8rem;
}

.col-5 {width:30%; white-space: nowrap;}
.col-7 {width: 70%;}

.text-notice,.text-danger {color:#FF3C00 !important;font-size:13px !important; text-align: center;}

/* 9. 버튼(Calculate / Cancel / Toggle) */
.btn-cancel {
  background-color: #e0e0e0;
  border-color: #e0e0e0;
  color: #555;
  width: 3.2rem;
  height: 3.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  padding: 0;
}
.btn-cancel:hover {
  background-color: #d0d0d0;
  border-color: #c0c0c0;
  color: #333;
}
.btn-calc {
  background-color: #3A8BFF;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  height: 3.5rem;
}
.btn-calc:hover {
  background-color: #2A7EF5;
  border-color: #2A7EF5;
  color:#fff;
}
.btn-calc:focus {
  box-shadow: 0 0 0 0.2rem rgba(14,115,195,0.4);
}





/* 10. 할부 “상환방법” 토글 버튼 (loan.html 전용) */
.btn-toggle-group {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.btn-toggle {
  flex: 1;
  text-align: center;
  border: 1px solid #747680;
  color: #747680;
  background-color: #fff;
  border-radius: 4px;
  padding: 0.2rem 0;
  cursor: pointer;
  font-size: 16px;
  white-space: nowrap;
  user-select: none;
}
.btn-toggle.selected {
  background-color: #747680;
  color: #fff;
}

/* 11. 안내 문구 */
.note {
  font-size: 14px;
  color: #666;
  margin-top: 0.75rem;
  line-height: 1.6;
  text-align: left;
  padding-left:5px;
  padding-bottom: 10px;
}

.note strong {font-weight: 600; color:#1251AD;}

/* 12. 결과 요약 박스 – 연한 파란 배경 */
.result-summary {
  background-color: #E8F1FA;
  border: 1px solid #C1D9EE;
  border-radius: 6px;
  padding: 1rem;
  margin-top: 1rem;
}
.result-summary h5 {
  font-size: 1rem;
  color: #3A8BFF;
  text-align: center;
  margin-bottom: 0.75rem;
}

.result-summary table td {
  padding: 0.3rem 0.5rem;
  font-size: 0.95rem;
}
.result-summary table td:first-child {
  color: #555;
  width: 50%;
}
.result-summary table td:last-child {
  text-align: right;
  font-weight: 500;
  color: #333;
}

/* 13. 분석 결과 제목 */
.analysis-title {
  color: #FF4545;
  font-weight: 600;
  font-size: 1.05rem;
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

/* 14. 분석 결과 표 */
.analysis-result {
  background-color: #fff;
  border-radius: 6px;
  border: 1px solid #ddd;
  padding: 0.75rem;
}
.analysis-result table {
  width: 100%;
}
.analysis-result table th,
.analysis-result table td {
  padding: 0.3rem 0.5rem;
  font-size: 0.95rem;
}
.analysis-result table th {
  color: #555;
  width: 50%;
}
.analysis-result table td {
  text-align: right;
  font-weight: 500;
  color: #333;
}

/* 15. 분석 결과 하단 주석 */
.analysis-footer {
  font-size: 0.8rem;
  color: #666;
  text-align: center;
  margin-top: 0.5rem;
  line-height: 1.3;
}

/* 16. 숨김 클래스 */
.hidden {
  display: none;
}

/* 17. SVG 아이콘 크기 (새로고침 버튼) */
.icon-refresh {
  width: 1.2rem;
  height: 1.2rem;
  fill: #555;
}



.result_wrap {text-align: center; margin:20px 0;}
.result_wrap img {
	width: 40px; height: 40px; margin-top:20px;
}
.result_wrap h4 {font-size:20px; margin-top:10px;}



.btn-cancel .icon-refresh:hover {
  fill: #333;
}







    /* ------------------------------------------------------------------------
     3. 하단 배너 영역
    ------------------------------------------------------------------------ */
    .bottom-banner {
      padding: 1rem;
      border-top: 1px solid #e3e3e3;
      margin-top: 1rem;
    }
    .banner-row {
      display: flex;
      gap: 0.75rem;
      justify-content: space-between;
      
    }
    .banner-item {
      flex: 1;
      background-color: #DAE0EC;
      border-radius: 10px;
      text-align: center;
      text-decoration: none;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding:10px 0 20px 0;
    }

    .banner-item img {
      width: auto;
      height: 45px;
      margin:10px 0;
    }
    .banner-item .banner-text {
      font-size: 19px;
      line-height:1.4;
      letter-spacing: -0.2px;
      color: #333;
      font-weight: 600; /* Semibold */
    }
    .banner-item:first-child {background-color: #ffe800;}




#out-annual-rate {font-weight: 600; font-size:18px; color:#3A8BFF}

 
 
 
 
     #snackbar {
      visibility: hidden;
      min-width: 350px;
      background-color: #FF4545;      
      color: #fff;
      text-align: center;
      border-radius: 15px;
      padding: 17px 10px;
      position: fixed;
      left: 50%;                      
      transform: translateX(-50%);    
      bottom: 30px;
      font-size: 17px;
      font-weight: 500;
      z-index: 9999;
      opacity: 0.9;
      word-break: keep-all;
    }
    #snackbar.show {
      visibility: visible;
      animation: fadein 0.5s, fadeout 0.5s 5s; /* 총 5초(0.3 in + 4.7 out) */
    }
    @keyframes fadein {
      from { bottom: 0; opacity: 0; }
      to   { bottom: 30px; opacity: 1; }
    }
    @keyframes fadeout {
      from { bottom: 30px; opacity: 1; }
      to   { bottom: 0; opacity: 0; }
    }
    
    