.book-wrapper img {
  display: block;
  max-width: 100%;
  height: auto;
}
.book-outer {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}
.book-wrapper {
  max-width: 100%;
  aspect-ratio: 27 / 19;
  width: auto;
  height: 80vh;
  position: relative;
}
.st-book {
  width: 100%;
  height: 100%;
}
.page {
  width: 100%;
  height: 100%;
  background-color: #f5a8c4;
}
.page:nth-child(odd) {
  border-top-right-radius: 30px;
  border-bottom-right-radius: 30px;
}
.page:nth-child(even) {
  border-top-left-radius: 30px;
  border-bottom-left-radius: 30px;
}
.page-cover {
  background-image: url(/wp-content/uploads/2025/11/coperta-bg.svg);
  background-size: cover;
  background-position: left top;
}
.page-cover-front {
  border-top-right-radius: 30px;
  border-bottom-right-radius: 30px;
}
.page-cover-front .page-inner {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-cover-logo {
  max-width: 80%;
}
.page-cover-logo img {
  width: 100%;
}
.page-1 {
  background-image: url(/wp-content/uploads/2025/11/pg1bg.svg);
  background-size: cover;
  background-position: left top;
}
.page-inner {
  width: 100%;
  height: 100%;
  position: relative;
}
.page-1-img {
  position: absolute;
  left: 30px;
  top: 20px;
  width: 33%;
}
.page-1-img2 {
  position: absolute;
  bottom: 0;
  right: -5px;
  width: calc(100% + 20px);
  max-width: unset;
}
.page-stars {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 25%;
}
.page-2-title {
  width: 85%;
  margin-left: auto;
  margin-right: auto;
}
.page-2 .page-inner {
  padding-top: 19%;
}
.form-book {
  width: 85%;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 20px;
  position: relative;
  font-family: "Waiting for the Sunrise", cursive;
  font-style: normal;
  z-index: 10;
  pointer-events: auto !important;
}
.page-3 .page-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 40px;
  padding-right: 40px;
}
.thanks-txt-p {
  text-align: center;
  color: #fff;
  font-size: 24px;
}
.book-nav {
  margin-top: 15px;
  z-index: 10;
  width: 100%;
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  position: relative;
}
.book-btn {
  font-family: initial;
  cursor: pointer;
  border-radius: 15px;
  border: 2px solid #d02228;
  background: #fce2d1;
  padding: 12px 30px;
  color: #2d2b2b;
  font-size: 16px;
  font-weight: 500;
  position: relative;
  text-transform: uppercase;
}
.book-nav-img {
  position: absolute;
  top: -5px;
  width: 70px;
}
.book-nav-prev .book-nav-img {
  right: calc(100% - 30px);
}
.book-nav-next .book-nav-img {
  left: calc(100% - 30px);
}
.book-outer.is-portrait .book-wrapper .page:nth-child(even) {
  border-top-right-radius: 30px;
  border-bottom-right-radius: 30px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.book-outer.is-portrait .book-wrapper {
  height: auto;
  width: 100%;
  max-width: calc(100% - 32px);
  max-height: calc(100vh - 40px);
  aspect-ratio: 27 / 38;
}
.book-elementor {
  display: block !important;
  width: 100% !important;
  padding: 0 !important;
}
.form-book input:-webkit-autofill,
.form-book input:-webkit-autofill:hover,
.form-book input:-webkit-autofill:focus,
.form-book input:-webkit-autofill:active {
  transition: background-color 5000s ease-in-out 0s;
  color: #fff;
  -webkit-text-fill-color: #fff !important;
}
.form-book .news-form-row input::placeholder {
  font-family: "Waiting for the Sunrise", cursive !important;
  color: #ffffff;
  font-weight: 600;
  opacity: 0.8;
}

#page-loader {
  position: fixed;
  inset: 0;
  background: #f5a8c4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 999999;
}

#page-loader.hidden {
  display: none;
  visibility: hidden;
}

.loader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.loader-image {
  display: block;
  width: 150px;
  height: auto;
  transform: rotate(-6deg);
  animation: pulse 1.2s infinite ease-in-out;
}

.loader-text {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #fff;
  animation: blink 1s infinite;
}
.logo-animation > img {
  min-width: 200px;
  animation: pulse 1.2s infinite ease-in-out;
}
@keyframes pulse {
  0% {
    transform: rotate(-6deg);
    opacity: 0.9;
  }
  50% {
    transform: rotate(6deg);
  }
  100% {
    transform: rotate(-6deg);
    opacity: 0.9;
  }
}
@keyframes blink {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}
.page-stars {
  animation: stars 1.5s infinite;
}
@keyframes stars {
  0%,
  100% {
    transform: scale(0.6) rotate(2deg);
  }
  50% {
    transform: scale(1) rotate(-2deg);
  }
}
@media (max-width: 800px) {
  .thanks-txt-p{
    font-size: 14px;
  }
}
@media (max-width: 600px){
  .book-outer{
    height: auto;
    padding-top: 50px;
    padding-bottom: 50px;
  }
  .book-wrapper{
    height: auto;
    width: calc(100% - 16px);
  }
  .page-3 .page-inner{
    padding-left: 15px;
    padding-right: 15px;
  }
  .sib-alert-message{
    padding: 2px !important;
    font-size: 10px !important;
    margin-bottom: 2px !important;
  }
  .page-2 .page-inner{
    padding-top: 20px;
  }
  .page-stars{
    top: -10px;
    right: 10px;
  }
}