/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid #e5e7eb;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo h2 {
  color: #1f2937;
  font-weight: 600;
  font-size: 1.5rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: #4b5563;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #059669;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: #1f2937;
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 120px 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: #059669;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero-description {
  font-size: 1.2rem;
  color: #6b7280;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background-color: #059669;
  color: white;
}

.btn-primary:hover {
  background-color: #047857;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: #059669;
  border: 2px solid #059669;
}

.btn-secondary:hover {
  background-color: #059669;
  color: white;
}

/* Book Cover */
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Book Cover Image */
.book-cover-container {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.book-cover-image {
  width: 350px;
  height: auto;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform: perspective(1000px) rotateY(-8deg);
}

.book-cover-image:hover {
  transform: perspective(1000px) rotateY(-3deg) scale(1.05);
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.2);
}

/* About Section */
.about {
  padding: 80px 0;
  background-color: #ffffff;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.2rem;
  color: #6b7280;
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.about-text h3:first-child {
  margin-top: 0;
}

.about-text p {
  font-size: 1.1rem;
  color: #4b5563;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.key-insights {
  background-color: #f8fafc;
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid #059669;
}

.key-insights ul {
  list-style: none;
  margin-top: 1rem;
}

.key-insights li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.8rem;
  font-size: 1rem;
  color: #4b5563;
}

.key-insights li i {
  color: #059669;
  margin-right: 0.8rem;
  margin-top: 0.2rem;
}

.detail-card {
  background-color: #f8fafc;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.detail-card h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1.5rem;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #e5e7eb;
}

.detail-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.label {
  font-weight: 500;
  color: #6b7280;
}

.value {
  font-weight: 600;
  color: #1f2937;
}

.chapters-preview h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1.5rem;
}

.chapters-list {
  list-style: none;
}

.chapters-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid #e5e7eb;
  color: #4b5563;
  font-size: 0.95rem;
}

.chapters-list li:last-child {
  border-bottom: none;
}

/* Author Section */
.author {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.author-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

/* Author Photo */
.author-photo-image {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border: 4px solid #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.author-photo-image:hover {
  transform: scale(1.05);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.author-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.author-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1.5rem;
}

.author-intro {
  font-size: 1.2rem;
  color: #059669;
  font-weight: 500;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.author-text p {
  font-size: 1.1rem;
  color: #4b5563;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.author-connect {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.author-connect h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  background-color: white;
  color: #4b5563;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  font-weight: 500;
}

.social-link:hover {
  background-color: #059669;
  color: white;
  transform: translateY(-2px);
}

/* Feedback Section */
.feedback {
  padding: 80px 0;
  background-color: #ffffff;
}

.feedback-intro {
  margin-bottom: 3rem;
}

.feedback-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.feedback-type {
  text-align: center;
  padding: 2rem;
  background-color: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.type-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: white;
}

.type-icon.reader {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.type-icon.professional {
  background: linear-gradient(135deg, #059669, #047857);
}

.feedback-type h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
}

.feedback-type p {
  color: #6b7280;
  line-height: 1.6;
}

/* Form Styles */
.feedback-form {
  max-width: 800px;
  margin: 0 auto;
  background-color: white;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.form-step h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 2rem;
  text-align: center;
}

.user-type-selection {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.radio-group input[type="radio"] {
  display: none;
}

.radio-label {
  display: block;
  padding: 1.5rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.radio-label:hover {
  border-color: #059669;
  background-color: #f0fdf4;
}

.radio-group input[type="radio"]:checked + .radio-label {
  border-color: #059669;
  background-color: #f0fdf4;
}

.radio-content i {
  font-size: 2rem;
  color: #059669;
  margin-bottom: 0.5rem;
}

.radio-content span {
  display: block;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.radio-content p {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Rating Stars */
.rating-stars {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 0.5rem;
}

.rating-stars input[type="radio"] {
  display: none;
}

.rating-stars label {
  font-size: 2rem;
  color: #d1d5db;
  cursor: pointer;
  transition: color 0.3s ease;
  margin-bottom: 0;
}

.rating-stars label:hover,
.rating-stars label:hover ~ label,
.rating-stars input[type="radio"]:checked ~ label {
  color: #fbbf24;
}

/* Radio Inline */
.radio-inline {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.radio-inline input[type="radio"] {
  margin-right: 0.5rem;
  width: auto;
}

.radio-inline label {
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-bottom: 0;
}

/* Checkbox Group */
.checkbox-group {
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.3s ease;
}

.checkbox-group:hover {
  border-color: #059669;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 1rem;
  width: auto;
  transform: scale(1.2);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  margin-bottom: 0;
}

.checkbox-content strong {
  display: block;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.checkbox-content p {
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 2rem;
}

.next-step {
  margin-left: auto;
}

/* Footer */
.footer {
  background-color: #1f2937;
  color: white;
  padding: 3rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
  color: #f9fafb;
}

.footer-section p {
  color: #d1d5db;
  margin-bottom: 0.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #10b981;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: white;
  margin: 10% auto;
  padding: 0;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
  color: #1f2937;
  font-size: 1.5rem;
  font-weight: 600;
}

.close {
  font-size: 2rem;
  font-weight: bold;
  color: #6b7280;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: #1f2937;
}

.modal-body {
  padding: 1rem 2rem;
  text-align: center;
}

.success-icon {
  font-size: 4rem;
  color: #10b981;
  margin-bottom: 1rem;
}

.modal-body p {
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.modal-footer {
  padding: 1rem 2rem 2rem;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .author-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .feedback-types {
    grid-template-columns: 1fr;
  }

  .user-type-selection {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .radio-inline {
    flex-direction: column;
    gap: 1rem;
  }

  .book-cover-image {
    width: 280px;
    transform: perspective(1000px) rotateY(-5deg);
  }

  .book-cover-image:hover {
    transform: perspective(1000px) rotateY(-2deg) scale(1.03);
  }

  .author-photo-image {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 100px 0 60px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .feedback-form {
    padding: 2rem 1.5rem;
  }

  .book-cover-image {
    width: 240px;
  }

  .author-photo-image {
    width: 180px;
    height: 180px;
  }

  .book-cover {
    width: 250px;
    height: 330px;
  }

  .book-title h3 {
    font-size: 1.4rem;
  }

  .book-title p {
    font-size: 0.9rem;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading states */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #ef4444;
}

.error-message {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Success states */
.form-group.success input,
.form-group.success select,
.form-group.success textarea {
  border-color: #10b981;
}

/* Responsive adjustments for images */


.voices-section {
  background: #f4f6f9;
  padding: 4rem 1rem;
  position: relative;
  overflow: hidden;
}

/* Section Heading */
.voices-heading {
  font-size: 2.4rem;
  font-weight: 700;
  color: #1e2a38;
  text-align: center;
  margin-bottom: 2.5rem;
  font-family: 'Segoe UI', sans-serif;
}

/* Carousel Wrapper */
.voices-carousel {
  display: flex;
  overflow: hidden;
  gap: 1.5rem;
  padding: 0 1rem;
  scroll-behavior: smooth;
  position: relative;
}

/* Each Card */
.voice-card {
  flex: 0 0 320px;
  min-width: 320px;
  background-color: #ffffff;
  border-radius: 18px;
  padding: 1.5rem;
  transition: transform 0.3s;
  white-space: normal;
  display: inline-block;
}


.voice-card:hover {
  transform: translateY(-6px);
}

.voice-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
}

.voice-rating {
  color: #f39c12;
  font-size: 1rem;
  margin: 0.5rem 0;
}

.voice-card p {
  font-size: 0.95rem;
  margin: 0.3rem 0;
  color: #444;
  line-height: 1.5;
}

.voice-card strong {
  color: #2c3e50;
}

/* Fade edges for depth */
.voices-section::before,
.voices-section::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.voices-section::before {
  left: 0;
  background: linear-gradient(to right, #f4f6f9 0%, transparent 100%);
}

.voices-section::after {
  right: 0;
  background: linear-gradient(to left, #f4f6f9 0%, transparent 100%);
}

/* Mobile */
@media (max-width: 768px) {
  .voice-card {
    flex: 0 0 85%;
  }

  .voices-carousel {
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .voice-card {
    flex: 0 0 85%;
    min-width: 85%;
  }

  .voices-carousel {
    overflow-x: hidden; /* Important to auto-scroll instead of manual swipe */
  }
}


.no-feedback {
  font-size: 1.2rem;
  color: #888;
  text-align: center;
  padding: 2rem 1rem;
  width: 100%;
}
