#slideshow {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 650px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  background: #fff;
  border-bottom: var(--border) 10px solid;
}

#slideshow #slide {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-right: 100px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  gap: 50px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translateX(0);
  animation: slide-out 1s ease;
}

#slideshow #slide:nth-child(even) {
  padding-right: 0;
  padding-left: 100px;
}

#slideshow #slide.active {
  pointer-events: all;
  opacity: 1;
  animation: slide-in 1s ease;
}

#slideshow #slide #slide-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: fit-content;
  max-width: 50%;
}

#slideshow #slide #slide-text h1 {
  font-size: 50px;
  font-weight: 900;
  color: var(--primary);
}

#slideshow #slide #slide-text p {
  font-size: 20px;
  font-weight: 500;
}

#slideshow #slide #slide-img {
  width: 60%;
  height: 100%;
  display: flex;
  margin-left: auto;
}

#slideshow #slide #slide-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#slideshow #bars {
  position: absolute;
  height: 20px;
  bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  padding-left: 10px;
  padding-right: 10px;
  overflow: hidden;
}

#slideshow #bars #bar {
  position: relative;
  width: 40px;
  height: 5px;
  background: #ababab;
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease-in-out;
}

#slideshow #bars #bar:hover {
  height: 10px;
}

#slideshow #bars #bar::before {
  content: "";
  background: var(--button);
  border-radius: 10px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transition: all 0.5s ease;
}

#slideshow #bars #bar.active::before {
  opacity: 1;
  right: 0;
  /*animation: slide 5s linear;*/
}

#header-container #controls {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  background: var(--header);
  transition: all 0.2s ease-in-out;
  gap: 10px;
}

#header-container.scrolled #controls {
  opacity: 0;
  pointer-events: none;
}

#header-container #prev, #header-container #next {
  font-size: 20px;
  color: #ababab;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease-in-out;
}

#header-container #prev:hover, #header-container #next:hover {
  color: #fff;
}

#header-container #prev {
  left: 20px;
}

#header-container #next {
  right: 20px;
}

#header-container #dots {
  display: flex;
  justify-content: center;
  align-items: center;
}

#header-container #dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ababab;
  margin: 5px;
  cursor: pointer;
  transition: background 0.5s ease-in-out;
}

#header-container #dots span.active {
  background: #fff;
}

#form {
  display: flex;
  padding: 70px 100px;
  flex-direction: column;
  gap: 10px;
}

#form p {
  margin-bottom: 20px;
}

#form form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  font-family: Arial;
}

.alert {
  color: red;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  border: 1px solid red;
  padding: 20px 10px;
  background-color: rgba(128, 0, 0, 0.1);
  border-radius: 10px;
}

.success {
  color: green;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  border: 1px solid green;
  padding: 20px 10px;
  background-color: rgba(0, 128, 0, 0.1);
  border-radius: 10px;
}

#form form input {
  width: 100%;
  height: 50px;
  box-sizing: border-box;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 10px;
  background: var(--secondary);
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
  border: none;
  outline: 2px solid transparent;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease-in-out;
}

#form form input:focus {
  outline: 2px solid var(--accent);
}

#form form #select-service {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 10px;
}

#form form #select-service div {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 20px;
  font-weight: 500;
}

#form form #select-service div label {
  cursor: pointer;
  text-transform: capitalize;
  text-align: center;
}

#form hr {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid white;
  margin: 15px 0;
}

#form form input[type="checkbox"] {
  min-width: 40px;
  min-height: 40px;
  width: 40px;
  height: 40px;
  max-width: 40px;
  max-height: 40px;
  cursor: pointer;
  outline: none;
  box-shadow: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  appearance: none;
  transition: all 0.2s ease-in-out;
  position: relative;
  content: "";
  margin-top: 10px;
}

#form form input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}

#form form input[type="checkbox"]:checked::before {
  content: "\2713";
  color: var(--secondary);
  font-size: 25px;
  font-family: Arial;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#form form #btn {
  margin-top: 20px;
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--button);
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  color: var(--secondary);
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

#form form #btn:hover {
  background: var(--button-hover);
}

#form form #btn #loader {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--secondary);
  border-top: 2px solid var(--accent);
  border-radius: 50%;
  animation: spin 1s ease infinite;
}

#form form #btn.disabled {
  background: #ababab;
  cursor: not-allowed;
}

#form form #btn.disabled #loader {
  display: block;
}

#form form #btn.disabled svg {
  display: none;
}

#form form #btn.disabled #text {
  display: none;
}

#form form #btn.disabled::before {
  content: "Sending...";
  font-size: 20px;
  font-weight: 700;
  color: var(--secondary);
}

@media screen and (max-width: 1000px) {
  #slideshow #slide {
    padding-top: var(--header-height);
    flex-direction: column;
    justify-content: flex-start;
    padding-right: 0;
    gap: 20px;
  }

  #slideshow #slide:nth-child(even) {
    padding-left: 0;
  }

  #slideshow #slide #slide-text {
    max-width: 100%;
    padding: 0 100px 50px;
    text-align: left;
  }

  #slideshow #slide #slide-text h1 {
    font-size: 40px;
  }

  #slideshow #slide #slide-text p {
    font-size: 18px;
  }

  #slideshow #slide #slide-img {
    order: -1;
    width: 100%;
    height: 100%;
    max-height: 50%;
    margin-left: 0;
    margin-right: 0;
  }
}

@media screen and (max-width: 768px) {
  #slideshow #slide #slide-text {
    padding: 0 20px 50px;
  }

  #slideshow #bars {
    bottom: 10px;
  }

  #slideshow #bars #bar {
    width: 20px;
    height: 3px;
  }

  #form {
    padding: 20px 20px 20px;
  }

  #form form #select-service {
    display: block;
  }

  #form form input[type="checkbox"] {
    min-width: 30px;
    min-height: 30px;
    width: 30px;
    height: 30px;
    max-width: 30px;
    max-height: 30px;
  }

  #form form #select-service label {
    font-size: 15px;
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes slide {
  0% {
    right: 100%;
  }
  100% {
    right: 0;
  }
}

@keyframes slide-in {
  0% {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateX(100%);
  }
  100% {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateX(0);
  }
}

@keyframes slide-out {
  0% {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 1;
    transform: translateX(-100%);
  }
}
