/*  */
/*  */

html.no-scroll,
body.no-scroll {
  overflow: hidden;
  height: 100%;
}

/* Removing background and footer from wizard */
body.page-id-72 {
  background-color: white;
}

body.page-id-72 .elementor-location-footer {
  display: none;
}

.ai-form-wrapper {
  background-color: white;
  box-shadow: none;
}

/* Removing LOGO & Search on wizard page */
body.wizard div[data-id="d9eb06d"],
body.wizard div[data-id="bdbb547"] {
  display: none;
}

/* Chaging to same row buttons */
.wizard-btn-cntr {
  display: flex;
  gap: 10px; /* Optional spacing between buttons */
  justify-content: center;
  /* position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%); */
  width: 100%;
  max-width: 448px;
  padding: 16px 0;
  background-color: white; /* Or match your wizard background */
  /* box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); */
}

.wizard-btn-cntr.tom-sticky {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  padding: 16px 20px;
  z-index: 999; /* Stay above other content */
}

.back-btn {
  flex: 1;
}

.next-btn {
  flex: 3;
}

/* Basic wizard card layout */
.post-72 .page-header {
  display: none;
}

.wizard-card {
  display: none;
}

.wizard-card.active {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Layout styles from original form */
.ai-form-wrapper {
  padding: 0px 0;
  background: #f9f0f9;
  background: #fff;
  width: 100%;
  max-width: 100%;
  margin: 0;
  font-family: "Nunito", sans-serif;
}

.ai-form-container {
  background-color: #fffefa;
  background: #fff;
  border-radius: 15px;
  /* padding: 40px 20px 80px;  That's for sticky buttons */
  padding: 20px;
  width: 448px;
  max-width: 448px;
  text-align: center;
  /* box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.08); */
}

.ai-form-heading {
  color: #5c3a92;
  margin-bottom: 10px;
  line-height: 1;
  font-family: "Paymon Regular", sans-serif;
  /* letter-spacing: 4px; */
  font-size: 38px;
  font-weight: 400;
  margin-bottom: 10px;
  text-align: center;
}

.ai-form-subheading {
  color: #e27d5f;
  color: #333;
  font-size: 18px;
  font-weight: 500; /* or 600, depending on what you want */
  font-family: "Lato", sans-serif;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.ai-form-wrapper input[type="text"],
.ai-form-wrapper textarea,
.ai-form-wrapper select {
  width: 100%;
  padding: 14px 15px;
  margin: 8px 0 0;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  color: #655685;
  background-color: white;
  font-family: "Nunito", sans-serif;
  box-sizing: border-box;
}

.ai-form-wrapper select {
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  padding-right: 30px;
}

.form-group {
  margin-bottom: 15px;
  text-align: left;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0;
  color: #655685;
  font-size: 16px;
}

textarea {
  resize: none;
  min-height: 80px;
}

/* File Upload Button */

.ai-file-upload:hover {
  background: rgba(255, 145, 84, 0.05);
}

.upload-icon {
  fill: #ff9233;
}

.photo-feedback.hidden {
  display: none;
}

/* Buttons */

a.tom-btn,
button.back-btn,
button.next-btn,
button.choose-book-btn,
button.submit-btn,
button.select-image-btn,
.tom .woocommerce a.tom-wizard-button {
  /* back-to-wizard button in cart page  */
  width: auto;
  padding: 15px 25px;
  background: #ff9233;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  transition: background 0.3s ease;
  /* text-transform: uppercase; */
  width: 308px;
  border: solid 1px #ef8429;
  min-height: 56px;
}

.tom .woocommerce a.tom-wizard-button.back-btn {
  border: solid 1px #555;
}

button.back-btn {
  background: #e9eef4 !important;
  color: #100424 !important;
  width: 140px !important;
  border: none !important;
}

.tom .woocommerce a.tom-wizard-button {
  /* back-to-wizard button in cart page  */
  background: #e9e6ed;
  color: #515151;
  line-height: normal;
}

button.back-btn:hover,
button.next-btn:hover,
button.choose-book-btn:hover,
button.submit-btn:hover,
button.select-image-btn:hover {
  background: #e87d40;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: scale(0.98);
}

/* Arrows */
.swiper-button-next,
.swiper-button-prev {
  color: #6d3a9c;
  /* background: white;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); */
  width: 20px;
  /* height: 40px; */
  display: flex;
  align-items: center;
  justify-content: center;
  top: 50%;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 28px;
  font-weight: bold;
}

/* Card 4: Style Selection Carousel */
.choose-image-swiper {
  max-width: 500px;
  margin: 30px auto;
  position: relative;
}

.choose-image-swiper .swiper-slide {
  /* display: flex;
  justify-content: center; */

  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
}

.choose-image-swiper img {
  width: 100%;
  max-width: 380px;
  /* border-radius: 12px; */
  /* box-shadow: 0 4px 16px rgba(0,0,0,0.1); */
  transition: transform 0.3s ease;
  border: 6px solid #c3b6f7; /* soft lavender border */
}

/* .choose-image-swiper .swiper-slide img:hover {
  transform: scale(1.03);
} */

.choose-image-swiper .swiper-button-next,
.choose-image-swiper .swiper-button-prev {
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: #6d3a9c;
}

.choose-image-swiper .swiper-button-next::after,
.choose-image-swiper .swiper-button-prev::after {
  font-size: 18px;
}

/* ===== Added from Inline Styling Cleanup ===== */

.card-button-row {
  margin-top: 30px;
}

.ai-form-heading.small {
  font-size: 22px;
  text-transform: uppercase;
}

.ai-form-subheading.small {
  font-size: 15px;
}

.book-preview-swiper {
  min-height: 260px;
}

/* Adjusting input spacing for more breathing room */
.ai-form-wrapper input[type="text"],
.ai-form-wrapper textarea,
.ai-form-wrapper select {
  margin: 10px 0 20px;
  display: block;
}

@media (max-width: 767px) {
  .tom-wizard-app {
    min-height: 1140px;
  }
}

@media (max-width: 767px) {
  .ai-form-wrapper {
    /* padding-bottom: 12px; */
  }

  .ai-form-container {
    width: 100%;
    max-width: 100%;
    /* padding: 40px 0; */
  }

  #content {
    padding-inline-start: 0px;
    padding-inline-end: 0px;
  }

  .tom .swiper-button-prev {
    left: var(--swiper-navigation-sides-offset, 0px);
    right: auto;
  }
  .swiper-button-next {
    right: var(--swiper-navigation-sides-offset, 0px);
    left: auto;
  }

  .tom .swiper-slide {
    padding: 40px 24px;
  }
}

/*   LOADER  */
.card-loader-inline {
  text-align: center;
  padding: 40px 20px;
  margin: 0 auto;
}

.card-loader-inline .loader-spinner {
  width: 80px;
  height: 80px;
  border: 8px solid #ccc;
  border-top-color: #999;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

.card-loader-inline .loader-message {
  font-size: 18px;
  color: #999;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
