:root {
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-3xl: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;
}

/* Country Input Start */
.country-input-container {
  position: relative;
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.country-input-container[data-filled="true"] {
  box-shadow: var(--shadow-3xl);
}

#country-input {
  outline: none;
  width: 100%;
}

/* 국가 리스트 */
#suggestions {
  overflow: auto;
  max-height: 0;
  visibility: hidden;
  transition: max-height 0.2s ease, visibility 0s;
}
#suggestions[data-open="true"] {
  max-height: 200px;
  visibility: visible;
}
#suggestions::-webkit-scrollbar {
  width: 11px; /* 5px 스크롤바 + 4px 마진 */
}
#suggestions::-webkit-scrollbar-track {
  background: transparent; /* 스크롤바 트랙 투명 */
}
#suggestions::-webkit-scrollbar-thumb {
  height: 34px; /* 스크롤바 높이 */
  background: rgba(0, 0, 0, 0.5); /* 스크롤바 색상 및 투명도 */
  border-radius: 3px; /* 스크롤바 둥글게 */
  background: #D9D9D9; /* 스크롤바 색상 */
  box-shadow: inset -6px 0 0 white; /* 마진 효과를 트랙 안에서 구현 */
}

#suggestions > .suggestion-item {
  font-size: 16px;
  height: 40px;
  line-height: 40px;
  padding-left: 16px;
  cursor: pointer;
}
#suggestions > .suggestion-item:hover {
  background-color: #f5f5f5;
}

.no-matches {
  font-size: 16px;
  height: 40px;
  line-height: 40px;
  padding-left: 16px;
}

.search-icon-container {
  position: absolute;
  top: 18px;
  right: 21px;
  cursor: pointer;
}
/* Country Input End */

/* Schedule Demo Start */
.schedule-demo-container {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  max-width: 548px;

  --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  box-shadow: var(--tw-shadow);
}

.schedule-toggle-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  
}

.schedule-toggle-title {
  color: #333;
  font-size: 16px;
  font-weight: 500;
}

/* Toggle */
.toggle-container {
  cursor: pointer;
  display: flex;
  align-items: center;
  width: 58px;
}

.toggle-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.toggle-switch {
  --switch-container-width: 58px;
  --switch-size: calc(var(--switch-container-width) / 2);
  --light-gray: #e2e8f0;
  --gray: #cbd5e0;
  --dark-gray: #a0aec0;
  --teal: #4fd1c5;
  --dark-teal: #319795;
  --font-color-secondary: #848484;

  /* Vertically center the inner circle */
  display: flex;
  align-items: center;
  position: relative;
  height: 32px;
  flex-basis: var(--switch-container-width);
  /* Make the container element rounded */
  border-radius: var(--switch-size);
  background-color: var(--font-color-secondary);
  /* In case the label gets really long, the toggle shouldn't shrink. */
  flex-shrink: 0;
  transition: background-color 0.25s ease-in-out;

  &::before{
    content: "";
    position: absolute;
    /* Move a little bit the inner circle to the right */
    left: 3px;
    right: 3px;
    height: 26px;
    width: 26px;
    /* Make the inner circle fully rounded */
    border-radius: 9999px;
    background-color: white;
    transition: transform 0.375s ease-in-out;
  }
}

.toggle-input:checked + .toggle-switch {
  --color-primary: #F39828;
  background-color: var(--color-primary);
}
.toggle-input:checked + .toggle-switch::before {
  border-color: var(--teal);
  left: 0px;
  /* Move the inner circle to the right */
  transform: translateX(
    calc(var(--switch-container-width) - var(--switch-size))
  );
}
.toggle-input:focus + .toggle-switch::before {
  border-color: var(--gray);
}
.toggle-input:focus:checked + .toggle-switch::before {
  border-color: var(--dark-teal);
}

/* 토글에 따라 전시 여부 */
.schedule-demo-detail {
  max-height: 0;
  visibility: hidden;
  transition: max-height 0.3s ease, visibility 0s 0.3s;
}
.schedule-demo-detail[data-open="true"] {
  max-height: 500px;
  visibility: visible;
  transition: max-height 0.8s ease, visibility 0s;
}

/* BaseTab */
.tab-slider--nav{
  position: relative;
  padding-top: 20px;
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0 16px;
  margin-bottom: 30px;
}

.tab-slider--tabs {
  --tab-border-radius: 34px;
  --tab-height: 34px;

  width: 560px;
  display: flex;
  float: left;
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
  border-radius: var(--tab-border-radius);
  overflow: hidden;
  background: #e4e4e4;
  height: var(--tab-height);
  user-select: none; 
  z-index: 2;
}

.tab-slider--tabs::after {
  --tab-border-radius: 34px;

  content: "";
  width: 50%;
  background: #fff;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  border: 4px solid #e4e4e4;
  transition: all 250ms ease-in-out;
  border-radius: var(--tab-border-radius);
}

.tab-slider--tabs.slide::after {
  left: 50%;
}

.tab-slider--trigger {
  width: 50%;
  font-size: 12px;
  line-height: 1;
  font-weight: medium;
  color: #848484;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;         /* 텍스트를 한 줄로 제한 */
  overflow: hidden;            /* 넘치는 텍스트를 숨김 */
  padding: 11px 0;
  position: relative;
  z-index: 2;
  cursor: pointer;
  display: inline-block;
  transition: color 500ms ease-in-out;
  user-select: none;
  box-shadow: 0px 5px 28px 0px rgba(0, 0, 0, 0.10);
}

.tab-slider--trigger.active {
  color: #000;
  font-weight: bold;
}


/* Content */
.schedule-demo-title {
  color: #333;
  font-size: 16px;
  font-weight: 500;
  padding-left: 16px;
  height: 40px;
  line-height: 40px;
  flex: 1;
}

.schedule-demo-list-item {
  display: flex;
  flex-wrap: wrap;
  padding-bottom: 16px;
  padding-right: 16px;
  padding-left: 16px;
}

/* Timezone */
.timezone-container {
  position: relative;
  width: 100%;
}

#timezone-select {
  border-radius: 25px;
  font-weight: 400;
  color: rgb(163 163 163);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
#timezone-select[data-filled="true"] {
  color: rgb(0, 0, 0);
  font-weight: 600;
  box-shadow: var(--shadow-3xl);
}
#timezone-select[data-open="true"] {
  box-shadow: var(--shadow-3xl);
}
#timezone-select > .value {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
}

#timezone-options {
  display: none;
  max-height: 200px;
  overflow: auto;
}
#timezone-options::-webkit-scrollbar {
  width: 11px; /* 5px 스크롤바 + 4px 마진 */
}
#timezone-options::-webkit-scrollbar-track {
  background: transparent; /* 스크롤바 트랙 투명 */
}
#timezone-options::-webkit-scrollbar-thumb {
  height: 34px; /* 스크롤바 높이 */
  background: rgba(0, 0, 0, 0.5); /* 스크롤바 색상 및 투명도 */
  border-radius: 3px; /* 스크롤바 둥글게 */
  background: #D9D9D9; /* 스크롤바 색상 */
  box-shadow: inset -6px 0 0 white; /* 마진 효과를 트랙 안에서 구현 */
}
#timezone-options[data-open="true"] {
  display: flex;
  flex-direction: column;
}
.timezone-option {
  cursor: pointer;
  height: calc(24px + 1rem);
  line-height: calc(24px + 1rem);
  padding: 0 16px;
}
.timezone-option:hover {
  background-color: #f5f5f5;
}

.select-open {
  position: absolute;
  top: 8px;
  right: 13px;
  display: block;
  cursor: pointer;
}
.select-open[data-open="true"] {
  display: none;
}

.select-close {
  position: absolute;
  top: 8px;
  right: 13px;
  display: none;
  cursor: pointer;
}
.select-close[data-open="true"] {
  display: block;
}

/* Domo Date */
#datepicker {
  width: 100%;
  border-radius: 25px;
  font-weight: 400;
  color: rgb(163 163 163);
  box-shadow: var(--shadow-md);
  height: 40px;
  text-align: center;
}
#datepicker[data-filled="true"] {
  color: rgb(0, 0, 0);
  font-weight: 600;
  box-shadow: var(--shadow-3xl);
}

#timepicker {
  width: 100%;
  border-radius: 25px;
  font-weight: 400;
  color: rgb(163 163 163);
  box-shadow: var(--shadow-md);
  height: 40px;
  text-align: center;
}
#timepicker[data-filled="true"] {
  color: rgb(0, 0, 0);
  font-weight: 600;
  box-shadow: var(--shadow-3xl);
}
/* Schedule Demo End */

.question-content-limit {
  display: flex;
  justify-content: end;
  color: #B8B8B8;
  font-size: 12px;
}
.question-content-limit.over {
  color: #EA3A3D;
}

/* Submit Button */
.submit-button {
  color: #FFFFFF;
  background-color: #F39828;
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.75rem;
  padding: 1rem 0;
  border-radius: 9999px;
}
.submit-button:disabled {
  background-color: #B8B8B8;
  
}
.submit-button > .label.hidden {
  display: none;
}

/* Loading Start */
.loading {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  color: var(--font-color-primary);
  z-index: 9999;
  animation: fadein 1s;
  &.bgColor {
    background-color: rgba(0,0,0,0.4);
  }
  &.absolute {
    position: absolute;
    top: 0;
    left: 0;
  }
  &.fixed {
    position: fixed;
    top: 0;
    left: 0;
  }
}
.loading.hidden {
  display: none;
}
@keyframes fadein {
  from {
      opacity: 0;
  }
  to {
      opacity: 1;
  }
}
.loading-ellipsis {
  display: inline-block;
  position: relative;
  width: 70px;
  height: 30px;
}
.loading-ellipsis div {
  position: absolute;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
.loading-ellipsis div:nth-child(1) {
  left: 8px;
  animation: loading-ellipsis1 0.6s infinite;
}
.loading-ellipsis div:nth-child(2) {
  left: 8px;
  animation: loading-ellipsis2 0.6s infinite;
}
.loading-ellipsis div:nth-child(3) {
  left: 32px;
  animation: loading-ellipsis2 0.6s infinite;
}
.loading-ellipsis div:nth-child(4) {
  left: 56px;
  animation: loading-ellipsis3 0.6s infinite;
}
@keyframes loading-ellipsis1 {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes loading-ellipsis3 {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}
@keyframes loading-ellipsis2 {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(24px, 0);
  }
}
/* Loading End */