/* Web Funnel Styles */

/* Fonts are now loaded via HTML preload links for better performance */

/* Font fallbacks for better performance */
body,
* {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.title,
h1,
h2,
h3,
.result-title,
.step-title {
  font-family: 'EB Garamond', Georgia, 'Times New Roman', Times, serif;
}

/* Base styles */
html {
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: #2C1436;
}

body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  min-height: 100vh;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* Fixed background for the entire application */
.fixed-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #2e0d46 url('attached_assets/Background-min.webp') center/cover no-repeat;
  z-index: -1;
  will-change: transform;
  /* Оптимізація для графічного процесора */
}

/* Payment status tooltips */
.payment-tooltip {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  background: linear-gradient(#1e101fa3 0%, #120214a3 100%);
  border: 1px solid #1202143d;
  border-radius: 32px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 186px;
  padding: 32px 24px;
  display: none;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.payment-tooltip.show {
  display: flex;
  animation: tooltipFadeIn 0.3s ease-out forwards;
}

.payment-tooltip .tooltip-content {
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  display: flex;
}

.payment-tooltip .tooltip-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.payment-tooltip .tooltip-text {
  color: #ffefd4;
  text-align: center;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
}

/* Light variant of tarot spinner for payment tooltip */
.tarot-loading-spinner-light {
  border: 4px solid rgba(255, 239, 212, 0.3);
  border-top-color: #ffefd4;
  margin: 0;
}

@keyframes tooltipFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Step transition animations - optimized for mobile WebView */
.step {
  display: none;
  opacity: 0;
  transition: opacity 200ms ease-out;
  will-change: opacity;
}

.step.active {
  display: block;
  opacity: 1;
  transition: opacity 300ms ease-in-out;
}

/* Common Step Content Styles - optimized for WebView stability */
.step-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 40px 24px;
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
  text-align: center;
  min-height: 100vh;
  height: 100vh;
  position: relative;
  z-index: 1;
  -webkit-overflow-scrolling: touch;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.tarot-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  width: 100%;
  max-width: 480px;
  min-height: fit-content;
  height: calc(100vh - 80px);
  /* Висота екрану мінус верхній і нижній padding контейнера */
  margin: 0 auto;
  text-align: center;
  box-sizing: border-box;
}

.tarot-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  width: 100%;
  flex: 1;
  text-align: center;
}

.tarot-cards-image {
  aspect-ratio: 256/247;
  background: transparent url('attached_assets/cards-min.png') center/contain no-repeat;
  width: 100%;
  max-width: 320px;
  min-height: 247px;
  margin-bottom: 0;
}

/* Зображення для кроку з розкладом Таро */
#tarot-reading .tarot-cards-image {
  background-image: url('assets/images/single-card.png');
  aspect-ratio: 1/1;
  min-height: 200px;
}

.hands-image {
  aspect-ratio: 1/1;
  background: transparent url('assets/images/hands.png') center/contain no-repeat;
  width: 240px;
  height: 240px;
  margin-bottom: 0;
  will-change: transform;
  /* Оптимізація для графічного процесора */
  transform: translateZ(0);
  /* Запускає апаратне прискорення */
}

.sun-image {
  aspect-ratio: 1/1;
  background: transparent url('assets/images/sun.png') center/contain no-repeat;
  width: 240px;
  height: 240px;
  margin-bottom: 0;
  will-change: transform;
  /* Оптимізація для графічного процесора */
  transform: translateZ(0);
  /* Запускає апаратне прискорення */
}

.cup-image {
  aspect-ratio: 1/1;
  background: transparent url('assets/images/cup.png') center/contain no-repeat;
  width: 240px;
  height: 240px;
  margin-bottom: 0;
  will-change: transform;
  /* Оптимізація для графічного процесора */
  transform: translateZ(0);
  /* Запускає апаратне прискорення */
}

.eye-image {
  aspect-ratio: 1/1;
  background: transparent url('assets/images/eye.png') center/contain no-repeat;
  width: 240px;
  height: 240px;
  margin-bottom: 0;
  will-change: transform;
  /* Оптимізація для графічного процесора */
  transform: translateZ(0);
  /* Запускає апаратне прискорення */
}

.moon-image {
  aspect-ratio: 1/1;
  background: transparent url('assets/images/moon.png') center/contain no-repeat;
  width: 240px;
  height: 240px;
  margin-bottom: 0;
  will-change: transform;
  /* Оптимізація для графічного процесора */
  transform: translateZ(0);
  /* Запускає апаратне прискорення */
}

.eyes-image {
  aspect-ratio: 1/1;
  background: transparent url('assets/images/eyes.png') center/contain no-repeat;
  width: 240px;
  height: 240px;
  margin-bottom: 0;
  will-change: transform;
  /* Оптимізація для графічного процесора */
  transform: translateZ(0);
  /* Запускає апаратне прискорення */
}

.tree-image {
  aspect-ratio: 1/1;
  background: transparent url('assets/images/tree.png') center/contain no-repeat;
  width: 240px;
  height: 240px;
  margin-bottom: 0;
  will-change: transform;
  /* Оптимізація для графічного процесора */
  transform: translateZ(0);
  /* Запускає апаратне прискорення */
}

.rate-image {
  aspect-ratio: 286/174;
  background: transparent url('assets/images/rate.png') center/contain no-repeat;
  width: 286px;
  height: 174px;
  margin-bottom: 0;
  will-change: transform;
  /* Оптимізація для графічного процесора */
  transform: translateZ(0);
  /* Запускає апаратне прискорення */
}

.image-container {
  width: 100%;
  text-align: center;
}

.girl-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  will-change: transform;
  /* Оптимізація для графічного процесора */
  transform: translateZ(0);
  /* Запускає апаратне прискорення */
}

/* Стилі для кроку before_after */
.before-after-container {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 24px;
}

.before-column,
.after-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

/* Адаптивні стилі для маленьких екранів */
@media screen and (max-width: 480px) {
  .before-after-container {
    gap: 4px;
  }

  .girl-1-image,
  .girl-2-image {
    width: 100%;
    max-width: 130px;
  }

  .column-description {
    font-size: 12px;
    line-height: 16px;
  }

  .column-title {
    font-size: 20px;
    line-height: 24px;
  }
}

.column-title {
  color: #ffefd4;
  text-align: center;
  font-family: 'EB Garamond', serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: 28px;
}

.column-description {
  color: #ffefd4;
  text-align: center;
  opacity: 0.8;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 18px;
  max-width: 160px;
}

.single-card-image {
  aspect-ratio: 108/173;
  background: transparent url('assets/images/single-card.png') center/contain no-repeat;
  width: 108px;
  height: 173px;
  margin-bottom: 0;
  will-change: transform;
  /* Оптимізація для графічного процесора */
  transform: translateZ(0);
  /* Запускає апаратне прискорення */
}

.cards-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  margin-bottom: 48px;
}

.photo-image {
  aspect-ratio: 1/1;
  background: transparent url('assets/images/photo.png') center/contain no-repeat;
  width: 180px;
  height: 180px;
  margin-bottom: 0;
  will-change: transform;
  /* Оптимізація для графічного процесора */
  transform: translateZ(0);
  /* Запускає апаратне прискорення */
}

.photo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  margin: 24px 0;
}

.photo-frame {
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(rgba(30, 16, 31, 0.64) 0%, rgba(18, 2, 20, 0.64) 100%);
  border: 1px solid rgba(18, 2, 20, 0.24);
  border-radius: 32px;
  width: 240px;
  height: 240px;
  padding: 16px;
  overflow: hidden;
  cursor: pointer;
  background-position: center;
  background-size: cover;
  box-sizing: border-box;
}

.photo-image {
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80%;
  height: 80%;
  border-radius: 16px;
  overflow: hidden;
  box-sizing: border-box;
}

.photo-security-note {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 320px;
  padding: 0 8px;
}

.shield-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.security-text {
  color: #ffefd4;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  text-align: left;
}

.photo-buttons-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.photo-upload-input {
  display: none;
}

.tarot-heading {
  color: #ffefd4;
  text-align: center;
  font-family: 'EB Garamond', serif;
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
  line-height: 44px;
}

.tarot-description {
  color: #ffefd4;
  text-align: center;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
}

.tarot-button-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: auto;
}

.tarot-button {
  box-sizing: border-box;
  background: linear-gradient(#fbdea9 20.19%, #deb166 100%);
  border: 1px solid rgba(58, 41, 12, 0.5);
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 64px;
  padding: 16px 32px;
  width: 100%;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease;
}

.tarot-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.tarot-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.tarot-button-text {
  color: #3a290c;
  text-align: center;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 22px;
}

/* Стилі для вторинних кнопок (фіолетові) */
.tarot-button-secondary {
  box-sizing: border-box;
  background: linear-gradient(rgba(30, 16, 31, 0.64) 0%, rgba(18, 2, 20, 0.64) 100%);
  border: 1px solid rgba(18, 2, 20, 0.24);
  border-radius: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 64px;
  padding: 16px 32px;
  width: 100%;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tarot-button-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.tarot-button-secondary .tarot-button-text {
  color: #ffefd4;
  text-align: center;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
}

/* Стилі для обгортки кнопок-варіантів відповіді */
.tarot-options-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: auto;
  gap: 8px;
}

/* Стилі для інпуту запитання */
.tarot-input {
  box-sizing: border-box;
  background: linear-gradient(rgba(30, 16, 31, 0.64) 0%, rgba(18, 2, 20, 0.64) 100%);
  border: 1px solid rgba(18, 2, 20, 0.24);
  border-radius: 16px;
  width: 100%;
  height: 64px;
  padding: 16px 32px;
  color: #ffefd4;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
  outline: none;
  transition: border-color 0.2s ease;
}

.tarot-input:focus {
  border-color: #E3AD61;
  outline: none;
  box-shadow: 0 0 0 1px #E3AD61;
}

.tarot-input::placeholder {
  color: rgba(255, 239, 212, 0.5);
}

/* Стилі для контейнера дати народження */
.date-input-container {
  position: relative;
  width: 100%;
}

/* Елемент для відображення маски-плейсхолдера */
.date-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 32px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px;
  line-height: 22px;
  color: rgba(255, 239, 212, 0.5);
  pointer-events: none;
  box-sizing: border-box;
  z-index: 1;
}

/* Встановлення кольору тексту для введених символів */
.date-mask span.filled {
  color: #ffefd4;
  font-weight: normal;
}

/* Styles for price tabs */
.tarot-price-tabs {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.tarot-price-tab {
  box-sizing: border-box;
  background: linear-gradient(rgba(30, 16, 31, 0.64) 0%, rgba(18, 2, 20, 0.64) 100%);
  border: 1px solid rgba(18, 2, 20, 0.24);
  border-radius: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 14px 24px 18px 16px;
  width: 100%;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tarot-price-tab.active {
  border-color: #E3AD61;
  box-shadow: 0 0 0 1px #E3AD61;
}

.tarot-radio-unchecked {
  opacity: 0.5;
  width: 24px;
  height: 24px;
  margin-top: 4px;
}

.tarot-radio-checked {
  width: 24px;
  height: 24px;
  margin-top: 4px;
}

.tarot-tab-content {
  flex: 1 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.tarot-tab-text {
  flex-direction: column;
  flex: 1 0 0;
  align-items: flex-start;
  width: 100%;
  display: flex;
}

.tarot-tab-title {
  color: #ffefd4;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
}

.tarot-tab-subtitle {
  color: rgba(255, 239, 212, 0.5);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 18px;
  text-align: left;
}

.tarot-tab-price {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.tarot-price-value {
  color: #ffefd4;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  text-align: right;
}

.tarot-final-note {
  color: #ffefd4;
  text-align: center;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  width: 100%;
  margin-top: 16px;
  margin-bottom: 16px;
}

/* Payment Header */
.payment-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  margin-top: 56px;
}

.payment-title {
  color: #ffefd4;
  text-align: center;
  font-family: 'EB Garamond', serif;
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
  line-height: 44px;
  margin: 0;
}

.payment-subtitle {
  color: #ffefd4;
  text-align: center;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
  margin: 0;
}

/* Security and Payment Methods Block */
.security-payment-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 24px auto 0;
}

.security-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 24px;
  padding: 0 32px;
}

.security-text {
  color: #ffefd4;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 18px;
}

.payment-methods {
  display: flex;
  align-items: center;
  gap: 0;
}

.payment-logo {
  width: 84px;
  height: 58px;
  object-fit: cover;
}

/* Tarot Reading styles */
.step-content {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.tarot-content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tarot-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tarot-result-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
  flex: 1;
}

.tarot-reading-content {
  color: #ffefd4;
  text-align: left;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
  width: 100%;
  flex: 1;
  overflow-y: auto;
  padding: 0px;
}

.tarot-reading-content.hidden {
  display: none;
}

.tarot-reading-content p {
  margin-bottom: 16px;
}

.tarot-reading-content strong {
  color: #E3AD61;
  font-weight: 700;
}

.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 24px auto;
  width: 100%;
}

.clock-image {
  aspect-ratio: 1/1;
  background: transparent url('assets/images/clock.png') center/contain no-repeat;
  width: 240px;
  height: 240px;
  margin-bottom: 24px;
  will-change: transform;
  /* Оптимізація для графічного процесора */
  transform: translateZ(0);
  /* Запускає апаратне прискорення */
}

/* Стиль для спіннера */
.tarot-loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  margin: 16px auto;
  border: 4px solid #ffefd44d;
  border-radius: 50%;
  border-top-color: #ffefd4;
  animation: spin 1s ease-in-out infinite;
}

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

/* Стилі для прокрутки в контейнері читання */
.tarot-reading-content::-webkit-scrollbar {
  width: 8px;
}

.tarot-reading-content::-webkit-scrollbar-track {
  background: rgba(18, 2, 20, 0.3);
  border-radius: 8px;
}

.tarot-reading-content::-webkit-scrollbar-thumb {
  background-color: rgba(227, 173, 97, 0.5);
  border-radius: 8px;
}

.tarot-reading-content::-webkit-scrollbar-thumb:hover {
  background-color: rgba(227, 173, 97, 0.8);
}

/* Стилі для кроків на сторінці результатів */
#step-loader,
#step-result {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#step-loader.hidden,
#step-result.hidden {
  display: none;
}

#step-loader:not(.active):not(.hidden),
#step-result:not(.active):not(.hidden) {
  opacity: 0;
  transform: translateY(20px);
}

/* End Screen styles */
.end-screen {
  /* Успадковує всі стилі від .step-content, але може мати додаткові стилі */
}

/* Spinner for buttons */
.tarot-button-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 239, 212, 0.5);
  border-top-color: #FFEFD4;
  animation: spinner 0.8s linear infinite;
  margin-left: 12px;
  vertical-align: middle;
}

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

/* Styles for Welcome step (step1) */
.tarot-cards-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 140px;
  height: 140px;
  margin-bottom: 0;
  overflow: hidden;
}

/* Girl images as CSS backgrounds for better loading priority */
.girl-1-bg {
  background: url('assets/images/girl-1.png') center/contain no-repeat;
  width: 100%;
  height: 240px;
  min-height: 240px;
}

.girl-2-bg {
  background: url('assets/images/girl-2.png') center/contain no-repeat;
  width: 100%;
  height: 240px;
  min-height: 240px;
}

.tarot-cards-first-step-image {
  width: 240px;
  height: 240px;
  background: url('assets/images/cards-first-step.png') center/contain no-repeat;
}

.tarot-cards-first-step-image-new {
  width: 140px;
  height: 140px;
  margin-bottom: -24px;
  background: url('attached_assets/cards-min.png') center/contain no-repeat;
}

/* Statistics block styles */
.tarot-stats-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 24px 0;
}

.tarot-stat-item {
  display: flex;
  align-items: center;
}

.tarot-stat-wings {
  display: flex;
  align-items: center;
  gap: -2px;
}

.tarot-stat-text {
  color: #ffefd4;
  text-align: center;
  width: 86px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 18px;
  display: inline-block;
}

.wing-left {
  width: 26px;
  height: 48px;
  background: url('attached_assets/wing-min.png') center/cover no-repeat;
  aspect-ratio: 13/24;
}

.wing-right {
  width: 26px;
  height: 48px;
  background: url('attached_assets/wing-min.png') center/cover no-repeat;
  aspect-ratio: 13/24;
  transform: scaleX(-1);
}

/* Styles for Pentacle step */
.tarot-pentacle-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 240px;
  height: 240px;
  margin-bottom: 0;
  overflow: hidden;
}

.tarot-pentacle-image {
  width: 240px;
  height: 240px;
  background: url('assets/images/pentacle.png') center/contain no-repeat;
}

.tarot-button-primary {
  background: linear-gradient(to bottom, #fbdea9 20.19%, #deb166 100%);
  border: 1px solid rgba(58, 41, 12, 0.5);
  color: #3a290c;
}

.tarot-button-primary .tarot-button-text {
  color: #3a290c;
  font-weight: 700;
}

.tarot-heading-container {
  margin-bottom: 0;
}

.tarot-age-section {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 345px;
  gap: 8px;
  margin-top: 20px;
}

.tarot-subheading {
  color: #ffefd4;
  font-family: 'EB Garamond', serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
  margin-bottom: 8px;
  width: 100%;
}

/* Анімації для переходів між кроками */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* Стилі для кроків */
.step {
  animation-duration: 0.4s;
  animation-timing-function: ease-in-out;
  animation-fill-mode: both;
}

.step.active {
  animation-name: fadeIn;
}

.step.hidden {
  display: none !important;
}

/* Додаткові utility класи для анімацій */
.animate-fade-in {
  animation: fadeIn 0.4s ease-in-out;
}

.animate-fade-out {
  animation: fadeOut 0.4s ease-in-out;
}