/* ----- CSS Variables ----- */
:root {
  --primary-color: #121827;
  --secondary-color: #64b5f6;
  --accent-color: #7ec9fc;
  --background: #0a192f;
  --text-color: #e3f2fd;
}

/* ----- Base Elements ----- */
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, var(--background), #1e3c72);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  align-items: center;
}

a {
  color: #fff;
  text-decoration: underline;
}

a:visited {
  color: #fff;
}

/* ----- Container Styles ----- */
.container {
  width: 90%;
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  background: rgb(20 28 44);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, .37);
}

.reading-container {
  width: 90%;
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, .37);
}

.payment-container {
  width: 100%;
  max-width: 100%;
  padding: 2rem;
  margin: 2rem auto;
  margin-top: 0;
  background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, .37);
  color: var(--text-color);
  box-sizing: border-box;
}

/* ----- Typography ----- */
h1 {
  text-align: center;
  color: var(--accent-color);
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-shadow: 0 0 10px rgba(0, 188, 212, .5);
  color: #28a3ce;
  text-shadow: none;
}

.reading-container h1 {
  color: var(--accent-color);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 10px rgba(0, 188, 212, .5);
}

.reading-container h2 {
  color: var(--secondary-color);
  font-size: 1.8rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.reading-container p {
  color: var(--text-color);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

h3 {
  margin-right: 75px;
  z-index: 2;
}

.heading-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.fine-print {
  font-family: Consolas, "Source Code Pro", "Fira Code", monospace;
  line-height: 1.5;
  font-feature-settings: "calt" 1;
  -webkit-font-smoothing: antialiased;
  font-size: .95rem;
}

.name {
  width: 80px;
  font-weight: 700;
  margin-right: 10px;
}

.magic-code {
  font-family: monospace;
  font-weight: 700;
}

/* ----- Form Elements ----- */
form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-row {
  width: 100%;
  margin-bottom: 1.5rem;
  box-sizing: border-box;
}

.form-label {
  display: block;
  font-size: 1.1rem;
  color: var(--secondary-color);
  margin-bottom: .8rem;
}

label {
  font-size: 1.1rem;
  color: var(--secondary-color);
}

input,
select,
textarea {
  padding: .8rem;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, .1);
  color: var(--text-color);
  font-size: 1.2rem;
  transition: all .3s ease;
  max-width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  outline: 0;
  background: rgba(255, 255, 255, .15);
  box-shadow: 0 0 10px rgba(0, 188, 212, .3);
}

input:disabled,
select:disabled,
textarea:disabled {
  background: rgba(255, 255, 255, .05) !important;
  color: rgba(227, 242, 253, .5) !important;
  cursor: not-allowed;
  border-color: rgba(100, 181, 246, .2) !important;
  opacity: .7;
}

.payment-input {
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  color: #e3f2fd;
  font-size: 16px;
  box-sizing: border-box;
}

.payment-input::placeholder {
  color: rgba(255, 255, 255, .6);
}

.payment-input:focus {
  outline: 0;
  background: rgba(255, 255, 255, .15);
  box-shadow: 0 0 10px rgba(0, 188, 212, .3);
}

/* ----- Text Area ----- */
.textarea-wrapper {
  position: relative;
  width: 100%;
  display: inline-block;
}

textarea[name=manifestation] {
  position: relative;
  background: #0a192f;
  border: 1px solid #9b8153;
  padding: 2rem;
  margin-top: 10px;
  height: 7rem;
  padding: 12px;
  line-height: 1.5;
  resize: vertical;
  width: 100%;
  padding-bottom: 25px;
  box-sizing: border-box;
}

.char-counter {
  position: absolute;
  bottom: 8px;
  right: 10px;
  color: gold;
  font-size: 12px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  pointer-events: none;
  z-index: 1;
}

/* ----- Date Fields ----- */
.date-fields {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
}

.date-fields > div {
  flex: 1;
}

.date-fields label {
  display: block;
  margin-bottom: .5rem;
}

.date-fields select {
  width: 100%;
}

/* ----- Buttons ----- */
button {
  padding: 1rem 2rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all .3s ease;
  margin-top: 1rem;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 188, 212, .4);
}

.copy-button {
  background: 0 0;
}

#submit-button {
  width: 100%;
  padding: 1rem 2rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(45deg, gold, orange);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all .3s ease;
  margin-top: 1rem;
}

#submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, .4);
}

#submit-button:disabled {
  background: linear-gradient(45deg, grey, #666);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ----- Card Elements ----- */
#card-element {
  padding: 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, .1);
  transition: all .3s ease;
  border: 1px solid rgba(255, 255, 255, .1);
  width: 100%;
  box-sizing: border-box;
}

#card-element:hover {
  background: rgba(255, 255, 255, .15);
}

/* ----- Logo ----- */
.logo-container {
  text-align: center;
  margin-bottom: 0px;
}

.logo {
  max-width: 600px;
  height: auto;
}

/* ----- Features Section ----- */
.features-section {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature {
  background: rgba(255, 255, 255, .05);
  padding: 1.5rem;
  border-radius: 15px;
  transition: transform .3s ease;
}

.feature:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, .08);
}

.feature h3 {
  color: var(--accent-color);
  margin: 0 0 .5rem 0;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.feature p {
  margin: 0;
  line-height: 1.6;
  color: var(--text-color);
}

/* ----- Reviews Section ----- */
.reviews-section {
  margin: 2rem 0;
}

.reviews-section h2 {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.review-card {
  background: rgba(255, 255, 255, .08);
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid gold;
  transition: transform .3s ease, box-shadow .3s ease;
  position: relative;
  overflow: hidden;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, .2);
  background: rgba(255, 255, 255, .12);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  padding-bottom: .8rem;
}

.review-stars {
  color: gold;
  font-size: 1.2rem;
  letter-spacing: 3px;
}

.reviewer-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(45deg, #3498db, #8e44ad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  margin-right: 1rem;
}

.highlight {
  color: var(--accent-color);
  font-weight: 700;
}

.cosmic-bg {
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 100px;
  height: 100px;
  opacity: .1;
  background: radial-gradient(circle, var(--accent-color) 0, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

/* ----- Avatar Styles ----- */
.avatar-1 {
  background: linear-gradient(45deg, #3498db, #8e44ad);
}

.avatar-2 {
  background: linear-gradient(45deg, #1abc9c, #3498db);
}

.avatar-3 {
  background: linear-gradient(45deg, #9b59b6, #e74c3c);
}

.avatar-4 {
  background: linear-gradient(45deg, #e67e22, #f1c40f);
}

.avatar-5 {
  background: linear-gradient(45deg, #2ecc71, #1abc9c);
}

.avatar-6 {
  background: linear-gradient(45deg, #64b5f6, #7ec9fc);
}

/* ----- Manifestations Section ----- */
.manifestations-section {
  margin: 2.5rem 0;
}

.manifestations-section h2 {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
  gap: 10px;
}

.manifestations-section .spinning-star {
  font-size: 1.5rem;
  color: gold;
}

.manifestation-wrapper {
  position: relative;
  margin: 20px;
}

.manifestation-wrapper::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 20px;
  height: 20px;
  border-left: 2px solid #9b8153;
  border-top: 2px solid #9b8153;
}

.manifestation-wrapper::after {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  width: 20px;
  height: 20px;
  border-left: 2px solid #9b8153;
  transform: rotate(45deg);
  transform-origin: bottom left;
}

/* ----- Stars and Animations ----- */
.stars-container {
  display: inline-flex;
  gap: 5px;
}

.spinning-star {
  display: inline-block;
  transform-origin: center;
}

.spinning-icon {
  width: 1em;
  height: 1em;
  vertical-align: middle;
  margin-left: 5px;
}

.star-1 {
  animation: spin1 24s linear infinite;
}

.star-2 {
  animation: spin2 30s linear infinite;
}

.star-3 {
  animation: spin1 36s linear infinite;
}

.star-4 {
  animation: spin2 42s linear infinite;
}

.star-5 {
  animation: spin1 48s linear infinite;
}

.pitchfork-spin {
  animation: spin2 20s linear infinite;
}

@keyframes spin1 {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes spin2 {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(-360deg);
  }
}

/* ----- Loading Spinner ----- */
.loading-spinner {
  display: none;
  margin: 2rem auto;
  width: 200px;
}

.loading-spinner img {
  width: 200px;
}

#loading-spinner {
  margin: 2rem auto;
  width: 200px;
  text-align: center;
  margin-top: 20px;
}

/* ----- Footer ----- */
.site-footer {
  background: rgba(255, 255, 255, .05);
  padding: 1rem 2rem;
  margin-top: 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-nav {
  display: flex;
  gap: 1rem;
}

.footer-nav a {
  color: var(--text-color);
  text-decoration: underline;
}

.footer-nav a:visited {
  color: var(--text-color);
}

/* ----- Messages and Alerts ----- */
#message {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, .1);
  font-size: .9rem;
  text-align: center;
  color: var(--text-color);
}

#message.success {
  background: rgba(0, 255, 0, .2);
}

#success-message {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 40px;
  display: none;
  display: hidden;
}

/* ----- Code Display and Link Display ----- */
.code-display,
.link-display {
  width: 100%;
  box-sizing: border-box;
  background: rgba(10, 25, 47, .8);
  border: 1px solid rgba(100, 181, 246, .3);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 1rem;
  font-family: monospace;
  font-size: 1.1rem;
  text-align: center;
  overflow-x: auto;
  word-break: break-all;
}

.code-display img {
  height: 1em;
}

/* ----- Utilities ----- */
.hidden {
  display: none;
}

.bullet {
  position: absolute;
  width: 110px;
  height: 110px;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  opacity: 0.65;
}

.bullet2 {
  opacity: 1;
}

/* ----- Media Queries ----- */
@media (max-width: 768px) {
  .payment-container {
    padding: 1.5rem;
  }

  .form-row {
    margin-bottom: 1rem;
  }

  .review-card {
    padding: 1rem;
  }

  .reviewer-avatar {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .code-display,
  .link-display {
    font-size: .9rem;
    padding: 10px;
  }

  #success-message h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .date-fields {
    gap: .5rem;
  }
}



#how-it-works {
  margin: 0rem 0;
  padding: .5rem;
  text-align: left;
}

#how-it-works h2 {
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
}

#how-it-works ol {
  list-style-position: inside;
  padding-left: 0;
  margin: 1rem 0;
}

#how-it-works li {
    position: relative;
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: 1.2rem;
  padding-right: 100px;
}

#how-it-works a {
  text-decoration: none;
  font-weight: bold;
  color: var(--accent-color);
}

#how-it-works a:hover {
  text-decoration: underline;
}


@media (max-width: 480px) {
  .date-fields {
    gap: .5rem;
  }
}

/* Error Highlighting Styles */
.input-error {
  border: 2px solid #ff4136 !important;
  animation: shake 0.3s linear;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Ensure the error highlight is visible on different input types */
input.input-error,
select.input-error,
textarea.input-error,
#card-element.input-error {
  border-color: #ff4136 !important;
  box-shadow: 0 0 5px rgba(255, 65, 54, 0.5);
}




/* Select element styling - Static Safari-like appearance with shiny effect */
select {
  padding: .8rem;
  border: none;
  border-radius: 10px;
  background-color: rgba(30, 40, 60, 0.6); /* Semi-transparent dark blue like in the image */
  color: white;
  font-size: 1.2rem;
  max-width: 100%;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  /* Add the shiny effect with layered backgrounds */
  background-image:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 50%),
    url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");

  background-repeat: no-repeat;
  background-position: 0 0, right 8px top 50%;
  background-size: 100% 100%, 24px 24px;

  padding-right: 30px; /* Space for the arrow */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  /* No transitions */
}

/* Style the dropdown options */
select option {
  background-color: #1e283c; /* Dark blue background */
  color: white;
  padding: 8px;
}

/* Make sure the active/selected option in the dropdown list is visible */
select option:checked,
select option:hover,
select option:focus {
  background-color: #3a4d6d; /* Slightly lighter blue for hover/selected state */
}

/* Focus state - no transitions */
select:focus {
  outline: 0;
  background-color: rgba(40, 60, 90, 0.7); /* Slightly lighter when focused */
  box-shadow: 0 0 10px rgba(0, 188, 212, .3);

  /* Keep the shiny effect and arrow when focused */
  background-image:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 50%),
    url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");

  background-repeat: no-repeat;
  background-position: 0 0, right 8px top 50%;
  background-size: 100% 100%, 24px 24px;
}