@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Questrial&display=swap");

* {
  margin: 0;
}

body {
  font-family: "DM Sans", sans-serif;
  color: #1a100b;
}

a {
  color: #1a100b;
}

h1,
h2,
h3,
h4 {
  font-family: "Questrial", sans-serif;
}

.main-demo-page {
  margin-top: -7.2rem;
}

header {
  box-sizing: border-box;
  min-height: 256px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-image: url(../assets/images/header-background.png);
  object-fit: cover;
  background-color: #f2f0ee;
  background-repeat: repeat;
  background-position: center center;
  padding: 100px 20px 20px;
  text-align: center;
}

header h1 {
  color: #1a100b;
  font-size: 48px;
  font-weight: 400;
  line-height: 56px;
  padding-top: 0;
}

header p {
  padding: 10px 20px 20px 20px;
  max-width: 780px;
  line-height: 1.3rem;
  text-align: center;
}

@media screen and (max-width: 767px) {
  header h1 {
    font-size: 2rem;
    line-height: 2.5rem;
  }
}

.back-to-nav {
  z-index: 1000;
  background-color: #fff;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  padding: 15px 20px;
  height: 55px;
  margin-bottom: 5.2rem;
}

.back-to-link {
  color: #1a100b;
  text-decoration: none;
  display: flex;
  column-gap: 5px;
  align-items: center;
}

.back-to-link:hover {
  color: #f7c406;
}

button {
  color: inherit;
  font: inherit;
  margin: 0;
}

.button-demo {
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 10px;
  box-shadow: none;
  cursor: pointer;
  text-decoration: none;
  border: none;
  font-weight: 400;
  padding: 15px 12px;
  background-color: #0e0d08;
  margin-bottom: 4px;
  margin-top: 10px;
  color: white;
}

.button-demo.execute {
  background-color: #f7c406;
  color: #0e0d08;
}

.section-demo {
  margin-top: 37px;
}

.section-demo .button-demo {
  display: inline-flex;
}

.not-app-demo {
  display: none;
  margin-top: 25px;
  padding-bottom: 12px;
  font-size: 16px;
  font-weight: 500;
  color: #d20000 !important;
}

.switch-demo {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 16px;
}

.switch-demo input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-demo {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.3s;
  transition: 0.3s;
}

.slider-demo:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: -4px;
  bottom: -4px;
  border: 2px solid #ccc;
  background-color: white;
  -webkit-transition: 0.3s;
  transition: 0.3s;
}

input:checked + .slider-demo {
  background-color: #0e0d08;
}

input:checked + .slider-demo:before {
  -webkit-transform: translateX(24px);
  -ms-transform: translateX(24px);
  transform: translateX(24px);
  border-color: #0e0d08;
}

.slider-demo.round {
  border-radius: 999px;
}

.slider-demo.round:before {
  border-radius: 50%;
}

h1 {
  padding-top: 20px;
}

h3 {
  padding: 30px 0 5px;
}

h4 {
  font-size: 16px;
  padding: 10px 0 0;
}

label {
  padding-top: 10px;
  padding-bottom: 5px;
}

.section-content {
  margin: 20px 30px 60px;
  display: flex;
  justify-content: center;
}

.section-modal {
  display: flex;
  max-width: 420px;
  flex-direction: column;
  gap: 6px;
  padding: 20px 0 0;
  width: 100%;
}

.section-modal .button-demo,
.section-modal a.button-demo,
.section-modal a.button-demo-external,
.section-modal label.button-demo {
  display: flex;
  justify-content: center;
  width: 100%;
}

.button-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.button-group .button-demo {
  margin: 0;
  min-width: 0;
  width: 100%;
}

@media (max-width: 480px) {
  .button-group {
    grid-template-columns: 1fr;
  }
}

.text-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 4px 0 8px;
}

a.text-link {
  color: #1174d3;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  width: fit-content;
}

a.text-link:hover,
a.text-link:focus-visible {
  color: #0e0d08;
  outline: none;
}

a.text-link:focus-visible {
  box-shadow: 0 0 0 2px #f2f0ee, 0 0 0 4px #1174d3;
  border-radius: 2px;
}

.sample-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #fff;
  width: 100%;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
  padding: 20px 30px 25px;
  line-height: 1.2;
  min-height: 240px;
  box-sizing: border-box;
}

.sample-content h2 {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 5px;
}

.sample-content p {
  font-size: 16px;
  margin: 0;
}

.sample-content__logo {
  aspect-ratio: 1;
  border-radius: 4px;
  display: block;
  margin: 0 auto 10px;
  width: 44px;
  -webkit-user-drag: none;
}

#preview_image,
#preview_video {
  aspect-ratio: 1.8181818;
  width: 100%;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}

.content-label {
  align-items: center;
  display: flex;
  justify-content: center;
  width: 100%;
}

.toggleCheckbox {
  display: none;
}

.toggleContainer {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: fit-content;
  min-width: 180px;
  border: 2px solid #0e0d08;
  border-radius: 20px;
  background: #0e0d08;
  font-weight: bold;
  color: #0e0d08;
  cursor: pointer;
  user-select: none;
}

.toggleContainer::before {
  content: "";
  position: absolute;
  width: 50%;
  height: 100%;
  left: 0%;
  border-radius: 20px;
  background: white;
  transition: all 0.3s;
}

.toggleContainer div {
  padding: 6px;
  text-align: center;
  z-index: 1;
}

.toggleCheckbox:checked + .toggleContainer::before {
  left: 50%;
}

.toggleCheckbox:checked + .toggleContainer div:first-child {
  color: white;
  transition: color 0.3s;
}

.toggleCheckbox:checked + .toggleContainer div:last-child {
  color: #343434;
  transition: color 0.3s;
}

.toggleCheckbox + .toggleContainer div:first-child {
  color: #343434;
  transition: color 0.3s;
}

.toggleCheckbox + .toggleContainer div:last-child {
  color: white;
  transition: color 0.3s;
}

a.button-demo-external {
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  background-color: #fff;
  color: #0e0d08;
  border: 1px solid #0e0d08;
  text-decoration: none;
}

a.button-demo-external:hover {
  background-color: #f2f0ee;
}

a.button-demo-external .button-demo-external__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  outline: none;
  border: 1px solid #0e0d08;
  color: #0e0d08;
  border-radius: 4px;
  font-size: 15px;
  padding: 10px 12px;
  margin-bottom: 10px;
  width: 100%;
  box-sizing: border-box;
}

textarea {
  padding: 10px 14px;
  resize: none;
  min-height: 120px;
}

textarea#results {
  min-height: 150px;
  font-family: inherit;
}

.checkbox-container + .checkbox-container {
  margin-top: 0;
}

input::placeholder,
textarea::placeholder {
  color: #a8a8a8;
}

.file-input-hidden {
  visibility: hidden;
  position: absolute;
  width: 0;
  height: 0;
}

.file-preview {
  margin-bottom: 10px;
}

.file-preview img {
  display: block;
  width: 100%;
}

.switch-container {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 5px 0;
}

.checkbox-container {
  align-items: center;
  display: flex;
  gap: 10px;
}

.checkbox-label {
  display: flex;
  position: relative;
  height: 25px;
  width: 25px;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}

.checkbox-label input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
  margin: 0;
  padding: 0;
  border: none;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  border: 1px solid #0e0d08;
  border-radius: 4px;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-label input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-label .checkmark:after {
  left: 8px;
  top: 4px;
  width: 5px;
  height: 10px;
  border: solid #0e0d08;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Multi-select dropdown with checkboxes */
.multi-select {
  position: relative;
  width: 100%;
  margin-bottom: 10px;
}

.multi-select__toggle {
  align-items: center;
  background: #fff;
  border: 1px solid #0e0d08;
  border-radius: 4px;
  box-sizing: border-box;
  color: #0e0d08;
  cursor: pointer;
  display: flex;
  font-size: 15px;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  text-align: left;
  text-transform: none !important;
  width: 100%;
}

.multi-select__toggle:hover {
  background: #f2f0ee;
}

.multi-select__label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.multi-select__chevron {
  border-right: 2px solid #0e0d08;
  border-bottom: 2px solid #0e0d08;
  flex-shrink: 0;
  height: 8px;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  width: 8px;
  margin-top: -4px;
}

.multi-select.is-open .multi-select__chevron {
  margin-top: 4px;
  transform: rotate(-135deg);
}

.multi-select__panel {
  background: #fff;
  border: 1px solid #0e0d08;
  border-radius: 4px;
  box-sizing: border-box;
  display: none;
  left: 50%;
  margin-top: 4px;
  max-height: none;
  min-width: 360px;
  overflow: visible;
  padding: 16px 20px;
  position: absolute;
  top: 100%;
  transform: translateX(-50%);
  width: max(100%, 360px);
  z-index: 20;
}

.multi-select.is-open .multi-select__panel {
  display: block;
}

.multi-select__group + .multi-select__group {
  margin-top: 8px;
}

.multi-select__group-title {
  color: #0e0d08;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  padding: 12px 0 8px;
}

.multi-select__panel .checkbox-container {
  justify-content: space-between;
  margin-bottom: 0;
  min-height: 36px;
  padding: 4px 0;
  width: 100%;
}

.multi-select__panel .checkbox-container > div {
  color: #0e0d08;
  flex: 1;
  font-size: 14px;
  font-weight: 400;
  min-width: 0;
  padding-right: 12px;
}

@media (max-width: 400px) {
  .multi-select__panel {
    left: 0;
    min-width: 0;
    right: 0;
    transform: none;
    width: 100%;
  }
}

