﻿body.popup-open {
  overflow: hidden;
}

.sidebar-profile span{

  font-family: PingFang TC;
  padding-top: 12px;
  font-size: 20px;
  font-weight: 600;
  color:rgba(0, 91, 172, 1);
}
.user_center_container {
  background-color: #F6F6F6;
}

.user_center_box {
  max-width: 1145px;
  margin: 0 auto ;
  padding: 40px 32px 80px 32px;
}

.user_center {
  display: flex;
  justify-content: space-between;
  gap:20px;
}

.content-profile_container {
  background-color: #fff;
  padding: 24px 24px;
  min-height: 900px;
}

/*.user_center .user_center-sidebar {
}*/

.user_center .user_center-content {
  flex: 3;
  min-height: 100%; /* Ensure the content area takes up at least the available height */
  display: flex;
  flex-direction: column;
}


.sidebar-main {
  border-top: 2px solid #005BAC;
  background-color: #fff;
  flex-grow: 1; /* Allow sidebar to grow to fill available space */
}

.sidebar-profile {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0px 16px;
  text-align: center;
}

.sidebar-link {
  color: #0E171F;
  font-size: 16px;
}

.sidebar-link a:hover {
  background-color: rgba(240, 244, 250, 0.4);
  color:rgba(0, 91, 172, 1)
  
}

.sidebar-link a{
  display: block;
  padding: 32px 16px;
  position: relative;
  text-decoration: none; /* Remove underline */
  font-weight: bold;
  color: rgba(14, 23, 31, 0.6); /* Set font color */
  border-top: 1px solid rgba(238, 238, 238, 1);
}

.sidebar-link a svg{
  margin-right: 2px;
}

.sidebar-menu ul {
  list-style-type: none;
  padding: 0;
}

.sidebar-link .option.active a {
  background-color: rgba(240, 244, 250, 0.4);
  color: rgba(0, 91, 172, 1);
}

.sidebar-link .option.active a.svg-icon {
  fill: rgba(0, 91, 172, 1);
}

.svg-icon:hover {
  fill: rgba(0, 91, 172, 1); /* Apply the same hover color to the icon */
}

.svg-icon {
  fill: rgba(14, 23, 31, 0.6);
}


.content-profile_title {
  font-size: 20px;
  font-weight:bold;
  color: #F26F28;
  margin-bottom: 44px;
  padding-left: 8px;
  position: relative;
}

.content-profile_title span{
  padding-right: 8px;
}

.content-profile_title:before {
  background-color: #F26F28;
  content: "";
  height: 20px;
  left: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
}

.content-profile_title span:after {
  content: "";
  position: absolute;
  top: 50%;
  background: #aaa;
  width: calc(100% - 136px); /* Add 8px for padding */
  height: 1px;
  margin-left: 8px; /* Optional: Add space between text and line */
}

.content-profile_info {
  display: flex;
  padding:0 126px 16px 126px;
  align-items: flex-end;
}

.content-profile_address {
  padding:0 126px 16px 126px;
  align-items: flex-end;
}

.input-group {
  margin-right: 16px;
  flex: 1; /* Add this to allow the input group to grow */
  position: relative; /* Add relative positioning for the arrow */
}

.select-group {
  display: flex;
}

.input-group:last-child,
.select-group:last-child {
  margin-right: 0; /* Remove margin from the last input-group */
}

.input-group label,
.select-group label{
  font-weight: 400;
  pointer-events: none;
  display: inline-block;
  margin-bottom: 10px;
}

.input-group input[type=text],
.input-group input[type=password] {
  display: block;
  width: 100%; /* Set the input width to 100% */
  box-sizing: border-box; /* Include padding and border in the width */
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  -webkit-transition: 0.5s;
  transition: 0.5s;
  outline: none;
  font-weight: 400;
}

.select-group input[type=text] {
  display: block;
  box-sizing: border-box; /* Include padding and border in the width */
  padding: 10px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  -webkit-transition: 0.5s;
  transition: 0.5s;
  outline: none;
  font-weight: 400;
}
.select-group input[type=checkbox]{
  margin-bottom: 10px;
}

.select-group input[type=text]:focus, 
.input-group input[type=text]:focus:not(.error),
.input-group input[type=password]:focus:not(.error) {
  border: 1px solid rgba(30, 139, 250, 1);
  background-color: rgba(250, 250, 250, 1);
  box-shadow: 0px 0px 0px 2px rgba(212, 228, 250, 1);
}

.select-group input[readonly],
.select-group select[readonly],
.input-group input[readonly] {
  background-color: rgba(250, 250, 250, 1);
  color: rgba(14, 23, 31, 0.4); /* Set text color */
  border-color: rgba(14, 23, 31, 0.25); /* Set border color */
}

.readonly-select {
  pointer-events: none; /* Disable pointer events */
  background-color: rgba(250, 250, 250, 1);
  color: rgba(14, 23, 31, 0.4);
  border-color: rgba(14, 23, 31, 0.25); /* Set border color */
}

.readonly-input {
  pointer-events: none; /* Disable pointer events */
  border: 1px solid rgba(14, 23, 31, 0.25); /* Reset border style */
}

.input-group select,
.select-group select { /* Apply styles to select elements */
  display: block;
  box-sizing: border-box;
  padding: 10px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  -webkit-transition: 0.5s;
  transition: 0.5s;
  outline: none;
  appearance: none; 
}

.select-group select:focus,
.input-group select:focus {
  border: 1px solid rgba(30, 139, 250, 1);
  background-color: rgba(250, 250, 250, 1);
  box-shadow: 0px 0px 0px 2px rgba(212, 228, 250, 1);
}

.mark-required {
  color: rgba(217, 31, 17, 1);
  font-size: 18px;
  padding-right:2px;
}

.select-group input[name="zipcode"] {
  display: none;
}

.select-group input[type="checkbox"] {
  margin-right: 5px; /* Adjust the margin as needed */
  margin-left: 20px;
} 

input[type='checkbox'] {
  accent-color: rgba(0, 91, 172, 1);
}

.select-form {
  float:left;
  width: 120px;
  margin-right:12px;
  display: block;
  box-sizing: border-box;
  padding: 10px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  -webkit-transition: 0.5s;
  transition: 0.5s;
  outline: none;
  appearance: none; 
}

.twzipcode :nth-child(2){
  margin-right: 0px;
}

select {
  font-family: inherit;
  cursor: pointer;
  /** for the dropdown indicator */
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 1em;
}

.custom-width-120 {
  width: 120px;
}

.mr12{
  margin-right:12px;
}

.input-group select {
  width: 100%; /* Default to full width */
}

#home-postal-code,
#current-postal-code {
  width: 80px;
}

#input-category {
  color: rgba(14, 23, 31, 0.4);
}
#select-category {
  margin-bottom: 8px; 
}


/*密碼修改*/

.user_center .user_pwchange-content {
  flex: 3;
  min-height: 100%; /* Ensure the content area takes up at least the available height */
  display: flex;
  flex-direction: column;
}

.content-pwchange_container {
  background-color: #fff;
  padding: 24px 24px;
  min-height: 769px;
}

.content-pwchange_title {
  font-size: 20px;
  font-weight:bold;
  color: #F26F28;
  margin-bottom: 44px;
  padding-left: 8px;
  position: relative;
}

.content-pwchange_title span{
  padding-right: 8px;
}

.content-pwchange_title:before {
  background-color: #F26F28;
  content: "";
  height: 20px;
  left: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 4px
}

.content-pwchange_title span:after {
  content: "";
  position: absolute;
  top: 50%;
  background: #aaa;
  width: calc(100% - 96px); /* Add 8px for padding */
  height: 1px;
  margin-left: 8px; /* Optional: Add space between text and line */
}

.main_page .inner-page {
  width: 100%;
  margin: 0px auto;
}

.main_page .inner-page-entry {
  max-width: 312px;
}

.main_page .inner-page-verify {
  max-width: 440px;
}

.progressbar {
  display: flex;
  margin: 0 auto;
  list-style-type: none;
  padding-bottom: 44px;
  padding-left: 0;
}

.progressbar li {
  position: relative;
  width: 25%;
  text-align: center;
}

.progressbar li:nth-child(1):before {
  width: 0%;
}

.progressbar li:before {
  top: 45.5px;
  height: 1px;
}

.progressbar li:before {
  position: absolute;
  content: "";
  left: calc(-50% + 11px);
  width: calc(100% - 22px);
  background-color: rgba(14, 23, 31, 0.25);
}

.progressbar li.active:before,
.progressbar li.completed:before {
  background-color: rgba(242, 111, 40, 1);
}

.progressbar p {
  margin-top: 0;
  margin-bottom: 8px;
  color: rgba(14, 23, 31, 0.25);
}

.progressbar li.active p,
.progressbar li.completed p {
  color: rgba(242, 111, 40, 1);
}

.progresscircle.style1 {
  --color-1: rgba(242, 111, 40, 1);
  --color-2: rgba(242, 111, 40, 1);
  --stroke-1:rgba(242, 111, 40, 1);
  --stroke-2:rgba(242, 111, 40, 1);
  --opacity-1:0.2;
  --opacity-2:1;
}

.progresscircle.style2 {
  --color-1: none;
  --color-2: none;
  --stroke-1:none;
  --stroke-2:#0E171F;
  --opacity-1:0;
  --opacity-2:0.25;
}

.progresscircle.style3 {
  --color-1: none;
  --color-2: rgba(242, 111, 40, 1);
  --stroke-1:none;
  --stroke-2:rgba(242, 111, 40, 1);
  --opacity-1:0;
  --opacity-2:1;
}

.page-pwchange_title {
  font-size: 20px;
  font-weight:bold;
  color: rgba(0, 0, 0, 1);
  padding-bottom: 40px;
  text-align: center;
}

.page-pwchange_info {
  display: flex;
  align-items: center;
  padding-bottom: 16px;
}

.envelope {
  text-align: center;
  margin-bottom: 20px;
}

.page-envelope_title {
  font-size: 36px;
  font-weight:bold;
  color: rgba(0, 91, 172, 1);
  padding-bottom: 50px;
  text-align: center;
}

.page-completed_title {
  font-size: 36px;
  font-weight:bold;
  color: rgba(16, 123, 123, 1);
  padding-bottom: 50px;
  text-align: center;
}

.main_page .inner-page-verify .page-envelope_content {
  background-color: rgba(240, 244, 250, 1); /* Change this to the color you want for the rectangle */
  height: 90px; /* Adjust the height as needed */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 4px
}

.main_page .inner-page-verify .page-envelope_content .content-text {
  font-size: 16px;  
  font-weight: 400;
  color: rgba(54, 67, 94, 1);
  text-align: center;
}

.main_page .inner-page-verify .password-button {
  margin: 44px 64px 44px 64px;
}

.toggle-password {
  position: absolute;
  right: 10px; /* Adjust the position as needed */
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  width: 24px; /* Adjust the size as needed */
  height: 24px;
  background-image: url('/images/eye.svg'); /* Replace with the path to your eye icon */
  background-size: cover;
}

.password-input {
  color: rgba(14, 23, 31, 0.4);
}

.password-input:focus {
  color: black;
}

.input-group input[type=text].error,
.input-group input[type=password].error {
  border: 1px solid rgba(223, 5, 5, 1) !important;
}

.error-message {
  font-size: 12px;
  color: rgba(223, 5, 5, 1);
  display: none;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0px;
  text-align: left;
  padding-top:4px;
}

.error + .error-message {
  display: block;
}

/*recaptcha*/
.recaptcha {
  margin-top: 16px;
}

/*note*/
.page-pwchange_note {
  width: 100%;
  margin: 0px auto;
}

@media (min-width: 576px){ 
  .main_page .page-pwchange_note {
    max-width: 614px;
  }
}
.page-pwchange_note p {
  margin-top:8px;
  margin-bottom: 8px;
}

.page-pwchange_note p a{
  color:rgba(242, 111, 40, 1); 
  text-decoration: none;
}
/*合約下載*/
.user_center .user_contract-content {
  flex: 3;
  
}

.content-contract {
  height: 90vh; /* Set the height to 80% of the viewport height */
  border: 1px solid #ccc;
}

/*Button*/
.button-group {
  display: flex;
  justify-content: center;
  margin-top: 48px; /* Adjust the margin as needed */
  margin-bottom: 25px;
}

.password-button a,
.button-group a {
  margin-right: 12px; /* Add space between buttons */
  cursor: pointer;
  text-decoration: none;
}

.password-button a:last-child,
.button-group a:last-child{
  margin-right: 0px;
}

.password-button {
  margin: 44px 0px 44px 0px;
}

.cencel-button {
  display: flex;
  padding: 12px min(60px, 15%);
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 4px;
  border: 1px solid rgba(113, 158, 199, 1);
  background-color: #fff;
  color: rgba(113, 158, 199, 1);
  white-space: nowrap;
}

.cencel-button:hover {
  background-color: rgba(242, 249, 255, 1);
}

.main-button {
  display: flex;
  padding: 12px min(60px, 15%);
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 4px;
  background: rgba(0, 91, 172, 1);
  border: 1px solid rgba(0, 91, 172, 1);
  color: #fff;
  white-space: nowrap;
}

.main-button:hover {
  background:rgba(0, 82, 155, 1);
  border:1px solid rgba(0, 82, 155, 1);
}

.main-button.disabled {
  pointer-events: none;
  background: rgba(210, 210, 210, 1);
  border: 1px solid rgba(210, 210, 210, 1);
  color:rgba(14, 23, 31, 0.25);
}

/* Confirmation Dialog Styles */
.confirm-dialog {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 10000000;
}

.card {
  width: 340px;
  height: 268px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 1);
  padding: 32px; /* Updated padding */
  box-sizing: border-box; /* Ensure padding is included in total size */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px; /* Updated gap */
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card p{
  margin:0;
  font-weight: 600;
}


.complete-button {
  display: flex;
  padding: 12px 106px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 4px;
  background: rgba(0, 91, 172, 1);
  border: 0px;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
}

.complete:hover {
  background:rgba(0, 82, 155, 1);
  border:1px solid rgba(0, 82, 155, 1);
}

@media screen and (max-width: 1200px) {
  .content-profile_address,
  .content-profile_info {
    padding: 0 14% 16px 14%; /* Adjust the percentage as needed */
  }
}
@media screen and (max-width: 768px) {

  .user_center {
    display: block; /* or any other value you want */
    gap: 0; /* Reset the gap as it applies to flex containers */
  }
  .user_center_box {
    padding: 32px 32px 45px 32px;
    margin: 0 auto;
  }
  .user_center-sidebar {
    padding-bottom: 12px;
  }
  .content-profile_address,
  .content-profile_info {
    padding: 0 0 16px 0; /* Adjust the percentage as needed */
  }

  .sidebar-link a svg{
    margin-right: 8px;
  }

  .sidebar-link {
    margin-bottom: 0px;
  }
  
  .sidebar-link a {
    display: flex;
    justify-content: center; /* Center items vertically */
    align-items: center; /* Center items horizontally */
    text-decoration: none;
    color: rgba(14, 23, 31, 0.6);
    padding: 16px;
    width: 100%;
    box-sizing: border-box;
    border-top: none;
    white-space: nowrap;
  }

  /* Optional: Add hover styles */
  .sidebar-link a:hover {
    background-color: rgba(240, 244, 250, 0.4);
    color: rgba(0, 91, 172, 1);
  }
  
  .sidebar-link .option.active a {
    background-color: rgba(240, 244, 250, 0.4);
    color: rgba(0, 91, 172, 1);
    border-bottom: 1px solid rgba(0, 91, 172, 1);
  }
  ul.sidebar-link {
    display: flex;
    justify-content: space-between; /* This will evenly space the li elements */
    padding: 0; /* Remove default padding */
    list-style-type: none; /* Remove default list styles */
  }
  
  ul.sidebar-link li {
    flex: 1; /* Allow each li element to grow equally */
    margin: 0; /* Remove any default margin */
    min-width: 0;
  }

  .button-group {
    margin-top: 28px; /* Adjust the margin as needed */
    margin-bottom: 16px;
  }
}


@media screen and (max-width: 576px) {

  .sidebar-profile {
    padding: 40px 0px 20px;
  }

  .content-pwchange_container,
  .content-profile_container {
    background-color: #fff;
    padding: 24px 16px;
    min-height: unset;
  }

  .user_center_box {
    padding: 32px 16px 32px 16px;
    margin: 0 auto;
  }

  .content-profile_address,
  .content-profile_info {
    padding: 0 0 16px 0; /* Adjust the percentage as needed */
  }

  .sidebar-link a {
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally */
    text-align: center; /* Center text */
  }

  .sidebar-link svg {
    order: -1; /* Move the svg-icon above the text */
    margin-right: 0px !important;
    margin-bottom: 8px; /* Add some space between svg and text */
  }
  .select-form {
    width: 92px;
  }

  select {
    background-position: right 0.5rem center;
  }

  .custom-select {
    background-position: right 0.05rem center;
  }

  .progressbar {
  padding-bottom: 32px;
  }

  .content-pwchange_title {
    margin-bottom: 32px;
  }

  .password-button {
    margin: 32px 0px 32px 0px;
  }

  .page-envelope_title {
  font-size: 30px;
  padding-bottom: 32px;
}

  .main_page .inner-page-verify .password-button {
  margin: 32px 0px 32px 0px;
  }
}

/* Animation*/

@keyframes drawTick {
  to {
    stroke-dashoffset: 0;
  }
}

#tick {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: drawTick 0.8s forwards;
}

.circle {
  stroke-opacity: 0.2;
  stroke: #107B7B;
  stroke-width: 18px;
  stroke-dasharray: 471;
  stroke-dashoffset: 471;
  animation: clock-animation 2.3s forwards;
}

@keyframes clock-animation {
  0% {
    stroke-dashoffset: 471;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.progressoutercircle {
  animation: fadeIn 1.5s linear infinite alternate;
}

@keyframes fadeIn {
  from{
    opacity: 0.05   ;
  }
  to {
    opacity: 0.2; /* At the end of the animation, set opacity to 1 */
  }
}

.circlepopup {
  transform-origin: center;
  animation: fillCircle 1s forwards;
}

@keyframes fillCircle {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}