/* BASE */
body {
    margin: 0;
    padding: 0;
    background: #F5F1EA;
    font-family: 'Open Sans', sans-serif;
    color: #333;
    line-height: 1.6;
}

/* HERO + FORM FLEX SECTION */
.hero-form-flex {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 50px;
    max-width: 1100px;
    margin: 40px auto;
    padding: 40px 20px;
}

.hero-image {
    margin-top: 20px; /* Increase this value to move the book cover down */
    display: flex;
    align-items: center;
}

.hero-image img {
    max-width: 310px;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); /* Add depth */
    transform: perspective(800px) rotateY(10deg);
    transition: transform 0.5s ease;
}

.hero-image img:hover {
    transform: perspective(800px) rotateY(5deg);
}

.hero-form-content {
    max-width: 500px;
}

.hero-form-content h1 {
    font-size: 2.2em;
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 700;
    margin-top: 0;
}

.hero-form-content p {
    font-size: 1.2em;
    margin-bottom: 25px;
}

/* FORM CARD */
.form-card {
    background: #fff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    margin-top: 30px;
}

/* Form Field Enhancements */
.form-field label {
    display: block;
    margin-bottom: 5px;
    color: #555; /* Darker than before for better contrast */
    font-weight: 600; /* Make labels more prominent */
    font-size: 1.05em; /* Slightly larger */
}

.form-field {
    margin-bottom: 15px;
}

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1em;
    box-sizing: border-box;
    transition: all 0.2s ease; /* For hover effect */
}

input[type="text"]:hover,
input[type="email"]:hover {
    border-color: #999; /* Darker border on hover */
    background-color: #fafafa; /* Subtle background change */
}

.form-card .button {
    width: 100%; /* Make button full width */
    margin-top: 15px;
}

input:focus {
    outline: 2px solid #E08E44;
    border-color: transparent;
    box-shadow: 0 0 5px rgba(224, 142, 68, 0.3); /* Add subtle glow */
}

/* BUTTONS */
.button, button {
    background-color: #E08E44;
    color: white;
    font-size: 1.1em;
    border: none;
    border-radius: 8px;
    padding: 14px 26px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}

.button:hover, button:hover {
    background-color: #cf7a2d;
    transform: translateY(-2px); /* Subtle lift effect */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Shadow for depth */
}

/* FEATURES */
.features-section {
    text-align: center;
    margin: 60px auto;
}

/* Features section improvements */
.features-section h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.features-section h2:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #E08E44;
}

.features-list {
    color: #333333; /* Darker text for better readability */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    padding: 0;
    margin: 20px auto;
    max-width: 800px;
    list-style: none;
    text-align: left;
}

.features-list li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 28px;
}

.features-list li::before {
    content: "✔️ ";
    color: #7E57C2; /* Purple checkmark */
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* TESTIMONIALS */
.testimonials-section {
    text-align: center;
    padding: 40px 20px;
}

/* Testimonials improvements */
.testimonials-section h2 {
    font-size: 1.8em;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.testimonials-section h2:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #E08E44;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}


blockquote {
    position: relative;
    font-style: italic;
    font-weight: 500; /* Slightly bolder quote text */
    margin: 0;
    background: #fff;
    border-left: 5px solid #E08E44;
    padding: 20px 20px 15px; /* Reduced top padding */
    max-width: 600px;
    border-radius: 8px;
    color: #222222;
}

.quote-text {
    font-size: 1.05em;
    line-height: 1.5;
}

blockquote footer {
    font-style: italic;
    color: #666;
    font-size: 0.9em;
    margin-top: 8px;
}

.rating {
    color: #FFD700; /* Gold star color */
    margin-bottom: 8px;
    font-size: 0.9em;
}

/* Add micro CTA after testimonials */
.micro-cta {
    text-align: center;
    margin-top: 30px;
}

.micro-cta a {
    color: #E08E44;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.micro-cta a:hover {
    color: #cf7a2d;
    text-decoration: underline;
}

/* FAQ */
.faq-section {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.faq-section h2:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #E08E44;
}

/* Banner Improvements */
.banner {
    text-align: center;
    background: #fff3e6;
    padding: 20px;
    font-weight: bold;
    border-radius: 8px;
    margin: 40px auto;
    max-width: 800px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-left: 4px solid #E08E44;
}

/* CTA Section Improvements */
.cta-section {
    text-align: center;
    margin: 60px auto 40px;
    padding: 40px 20px;
    background: #f9f5f0;
    border-radius: 12px;
    max-width: 700px;
}

.cta-section h2 {
    margin-bottom: 10px;
    font-size: 2em;
}

.cta-subtitle {
    color: #555;
    margin-bottom: 25px;
    font-size: 1.1em;
}

.cta-section .button {
    padding: 15px 30px;
    font-size: 1.2em;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.cta-section .button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Footer Improvements */
footer {
    text-align: center;
    font-size: 0.9em;
    padding: 40px 20px 30px;
    color: #777;
    border-top: 1px solid #eee;
    margin-top: 60px;
}

.footer-links {
    margin-top: 10px;
    font-size: 0.9em;
}

.footer-links a {
    color: #777;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}


/* Flash messages */
.flash-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 300px;
}

.flash-message {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: opacity 0.5s ease;
}

.flash-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.flash-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Form validation */
input.error {
    border: 1px solid #dc3545;
    background-color: #fff8f8;
}

.form-feedback {
    color: #dc3545;
    font-size: 0.85em;
    margin-top: 5px;
}

/* Mini social proof */
.mini-social-proof {
    text-align: center;
    margin: 15px 0;
    color: #666;
    background: #fff3e6; /* Light highlight background */
    border-radius: 4px;
    padding: 5px;
}

/* Privacy note */
.privacy-note {
    text-align: center;
    color: #777;
    margin-top: 15px;
}

/* Success message */
.success-message {
    background: #d4edda;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-top: 20px;
}

/* Loading indicator */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #E08E44;
    animation: spin 1s ease-in-out infinite;
}

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

/* Button loading state */
.button.loading {
    background-color: #ccc;
    cursor: not-allowed;
    position: relative;
}

/* Footer links */
.footer-links {
    margin-top: 10px;
    font-size: 0.9em;
}

.footer-links a {
    color: #777;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Book cover positioning */
.hero-image {
    margin-top: 20px; /* Add space at top */
    display: flex;
    flex-direction: column;
}

/* Testimonial grid */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.quote-text {
    position: relative;
    z-index: 1;
}

/* FAQ grid */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.faq-item {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.faq-item h3 {
    color: #333;
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.2em;
    display: flex;
    align-items: center;
}

.faq-icon {
    margin-right: 10px;
    font-size: 1.2em;
}

.faq-item p {
    color: #555;
    margin: 0;
    line-height: 1.5;
}

.faq-item h3 {
    color: #E08E44;
    margin-top: 0;
}

/* Pulse animation for CTA button */
.pulse-button {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Trust signals */
.trust-signals {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
    color: #666;
    font-size: 0.85em;
}

.trust-signal {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Live social proof */
.live-social-proof {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: white;
  border-radius: 8px;
  padding: 12px 15px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  font-size: 0.9em;
  z-index: 100;
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  border-left: 3px solid #E08E44;
}

.recent-download {
  display: flex;
  align-items: center;
  gap: 5px;
}

.download-icon {
  font-size: 1.2em;
  margin-right: 3px;
}

#recent-name, #recent-location {
  font-weight: 600;
}

#recent-time {
  font-style: italic;
}

/* Add to style.css */
.testimonial-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #7E57C2;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 10px;
}

.quote-mark {
  position: relative;
  top: -5px;
}

/* Add to style.css */
.exit-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.exit-popup.show {
  opacity: 1;
  visibility: visible;
}

.exit-popup-content {
  background: white;
  border-radius: 12px;
  padding: 30px;
  max-width: 450px;
  width: 90%;
  position: relative;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.exit-popup.show .exit-popup-content {
  transform: translateY(0);
}

.close-popup {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  padding: 0;
  line-height: 1;
}

.close-popup:hover {
  color: #333;
}

.exit-form {
  margin: 20px 0;
}

.exit-popup h3 {
  margin-top: 0;
  color: #E08E44;
}

/* Add to style.css */
@media (max-width: 768px) {
  .mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 10px 15px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .mobile-sticky-cta .button {
    margin: 0;
    padding: 10px 20px;
    font-size: 1em;
  }
  
  /* Add padding to prevent content being hidden behind sticky CTA */
  body {
    padding-bottom: 60px;
  }
}

/* Add to style.css */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-tooltip {
  margin-left: 10px;
  position: relative;
}

.tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #E0E0E0;
  color: #555;
  font-size: 12px;
  font-style: italic;
  cursor: help;
}

.tooltip-text {
  position: absolute;
  top: -5px;
  left: 25px;
  width: 200px;
  background: #333;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8em;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 10;
}

.input-tooltip:hover .tooltip-text {
  opacity: 1;
  visibility: visible;
}

/* Enhanced form validation */
input:valid {
  border-color: #4CAF50;
  background-color: #f8fff8;
}

input.error {
  border-color: #dc3545;
  background-color: #fff8f8;
}

/* Add to style.css */
/* Fade-in animation for sections */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.features-section, .testimonials-section, .faq-section, .cta-section {
  opacity: 0;
  animation: fadeIn 0.8s forwards;
}

/* Staggered animation for list items */
.features-list li, .faq-item {
  opacity: 0;
  transform: translateY(20px);
}

/* Button hover animation enhancement */
.button:hover {
  background-color: #cf7a2d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(224, 142, 68, 0.3);
}

/* Form field focus animation */
input:focus {
  transform: scale(1.01);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

/* Add to style.css */
/* Section dividers and transitions */
.features-section {
  position: relative;
  background: linear-gradient(to bottom, #F5F1EA, #fff);
  padding-top: 60px;
  padding-bottom: 60px;
}

.testimonials-section {
  background-color: #fff;
  position: relative;
  padding-top: 70px;
}

.testimonials-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, #E08E44, transparent);
}

.faq-section {
  background-color: #f9f7f3;
  padding-top: 60px;
  padding-bottom: 60px;
  position: relative;
}

.faq-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: #E08E44;
  border-radius: 2px;
}

.cta-section {
  background: linear-gradient(135deg, #f9f5f0, #fff);
}

/* Add to style.css */
.paw-prints {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.paw {
  width: 15px;
  height: 15px;
  background-color: #E08E44;
  border-radius: 50%;
  opacity: 0.3;
}

.paw1 {
  animation: pawAnimation 1.2s infinite;
}

.paw2 {
  animation: pawAnimation 1.2s infinite 0.4s;
}

.paw3 {
  animation: pawAnimation 1.2s infinite 0.8s;
}

@keyframes pawAnimation {
  0% { transform: scale(0.8); opacity: 0.3; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.8); opacity: 0.3; }
}

/* Add to style.css */
.social-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    justify-content: center; /* This centers the buttons horizontally */
}

.share-button {
    padding: 8px 15px;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
    transition: opacity 0.2s;
}

.share-button:hover {
    opacity: 0.9;
}

.share-button.facebook {
    background-color: #3b5998;
}

.share-button.twitter {
    background-color: #1da1f2;
}

.share-button.email {
    background-color: #777;
}

/* For mobile responsiveness, ensure buttons stack nicely */
@media (max-width: 500px) {
    .social-share-buttons {
        flex-direction: column;
        align-items: center; /* Center buttons when stacked */
    }
    
    .share-button {
        width: 80%; /* Make buttons wider when stacked */
        justify-content: center; /* Center text within buttons */
    }
}

/* Updated CSS for the steps section */
.next-steps {
    background: #f9f7f3;
    border-radius: 12px;
    padding: 30px;
    margin-top: 40px;
}

.next-steps h2 {
    margin-top: 0;
    color: #333;
}

.steps-list {
    margin-top: 20px;
}

.step-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #E08E44;
    color: white;
    border-radius: 50%;
    margin-right: 15px;
    font-weight: bold;
    flex-shrink: 0;
}

.step-text {
    font-size: 1.05em;
}
