/* Reviews and Contact Pages */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Sections */
.reviews-hero,
.contact-hero {
  text-align: center;
  padding: 3rem 2rem;
  animation: fade-in-up 1s ease-out;
}

.page-title {
  font-size: 3rem;
  color: var(--color-warm-brown);
  margin-bottom: 0.5rem;
  /* added underline decoration animation */
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.page-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: var(--color-honey-gold);
  border-radius: 2px;
  animation: expand 0.8s ease-out 0.3s both;
}

.page-subtitle {
  font-size: 1.2rem;
  color: var(--color-warm-brown);
  opacity: 0.8;
  animation: fade-in 0.8s ease-out 0.2s both;
}

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

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.review-card {
  background: rgba(255, 248, 231, 0.8);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(90, 62, 43, 0.1);
  border-left: 4px solid var(--color-honey-gold);
  transition: all 0.3s ease;
  /* added staggered animation to review cards */
  animation: fade-in-up 0.6s ease-out backwards;
}

.review-card:nth-child(1) {
  animation-delay: 0.1s;
}
.review-card:nth-child(2) {
  animation-delay: 0.15s;
}
.review-card:nth-child(3) {
  animation-delay: 0.2s;
}
.review-card:nth-child(4) {
  animation-delay: 0.25s;
}
.review-card:nth-child(5) {
  animation-delay: 0.3s;
}
.review-card:nth-child(6) {
  animation-delay: 0.35s;
}
.review-card:nth-child(7) {
  animation-delay: 0.4s;
}
.review-card:nth-child(8) {
  animation-delay: 0.45s;
}
.review-card:nth-child(9) {
  animation-delay: 0.5s;
}
.review-card:nth-child(10) {
  animation-delay: 0.55s;
}

.review-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(230, 179, 37, 0.2);
  background: rgba(255, 248, 231, 1);
}

.star-rating {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  display: block;
  animation: scale-in 0.6s ease-out;
}

.review-text {
  color: var(--color-warm-brown);
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.6;
  animation: fade-in 0.8s ease-out 0.2s both;
}

.review-author {
  color: var(--color-honey-gold);
  font-weight: bold;
  animation: fade-in 0.8s ease-out 0.3s both;
}

/* CTA Section */
.cta-section {
  text-align: center;
  background: linear-gradient(135deg, rgba(230, 179, 37, 0.1), rgba(241, 227, 193, 0.3));
  padding: 3rem 2rem;
  border-radius: 12px;
  margin: 3rem 0;
  animation: fade-in 1s ease-out;
  /* added hover effects to CTA section */
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.cta-section:hover {
  background: linear-gradient(135deg, rgba(230, 179, 37, 0.15), rgba(241, 227, 193, 0.4));
  border-color: rgba(230, 179, 37, 0.2);
  box-shadow: 0 8px 20px rgba(230, 179, 37, 0.1);
}

.cta-section h2 {
  font-size: 2rem;
  color: var(--color-warm-brown);
  margin-bottom: 0.5rem;
  animation: slide-in-left 0.8s ease-out;
}

.cta-section p {
  color: var(--color-warm-brown);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  animation: slide-in-right 0.8s ease-out;
}

/* Contact Section */
.contact-section {
  padding: 2rem 0;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info h2,
.contact-form-container h2 {
  font-size: 1.8rem;
  color: var(--color-warm-brown);
  margin-bottom: 2rem;
  animation: fade-in 0.8s ease-out;
}

.contact-item {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(230, 179, 37, 0.3);
  /* added animation to contact items */
  animation: fade-in-up 0.6s ease-out backwards;
}

.contact-item:nth-child(1) {
  animation-delay: 0.1s;
}
.contact-item:nth-child(2) {
  animation-delay: 0.2s;
}
.contact-item:nth-child(3) {
  animation-delay: 0.3s;
}
.contact-item:nth-child(4) {
  animation-delay: 0.4s;
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item h3 {
  color: var(--color-honey-gold);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.contact-item:hover h3 {
  color: var(--color-amber-yellow);
}

.contact-item p {
  color: var(--color-warm-brown);
  margin-bottom: 0.5rem;
}

.info-text {
  font-size: 0.95rem;
  opacity: 0.8;
}

.info-list {
  list-style: none;
  padding-left: 0;
}

.info-list li {
  color: var(--color-warm-brown);
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  animation: slide-in-left 0.5s ease-out backwards;
}

.info-list li:nth-child(1) {
  animation-delay: 0s;
}
.info-list li:nth-child(2) {
  animation-delay: 0.1s;
}
.info-list li:nth-child(3) {
  animation-delay: 0.2s;
}
.info-list li:nth-child(4) {
  animation-delay: 0.3s;
}
.info-list li:nth-child(5) {
  animation-delay: 0.4s;
}

.info-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-honey-gold);
  font-weight: bold;
}

/* Contact Form */
.contact-form-container {
  background: rgba(255, 248, 231, 0.8);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(90, 62, 43, 0.1);
  animation: fade-in 0.8s ease-out 0.2s both;
  /* added form container hover effect */
  transition: all 0.3s ease;
}

.contact-form-container:hover {
  box-shadow: 0 8px 25px rgba(230, 179, 37, 0.2);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  animation: fade-in 0.6s ease-out backwards;
}

.form-group:nth-child(1) {
  animation-delay: 0.3s;
}
.form-group:nth-child(2) {
  animation-delay: 0.4s;
}
.form-group:nth-child(3) {
  animation-delay: 0.5s;
}
.form-group:nth-child(4) {
  animation-delay: 0.6s;
}

.form-group label {
  color: var(--color-warm-brown);
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border: 2px solid var(--color-soft-beige);
  border-radius: 6px;
  font-family: inherit;
  color: var(--color-warm-brown);
  transition: all 0.3s ease;
  /* enhanced input field animations */
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-honey-gold);
  box-shadow: 0 0 12px rgba(230, 179, 37, 0.3);
  background-color: rgba(255, 248, 231, 1);
  transform: translateY(-2px);
}

.btn-submit {
  margin-top: 0.5rem;
}

.form-note {
  text-align: center;
  color: var(--color-warm-brown);
  font-size: 0.9rem;
  margin-top: 1rem;
  opacity: 0.8;
  animation: fade-in 0.8s ease-out 0.7s both;
}

/* Responsive */
@media (max-width: 768px) {
  .page-title {
    font-size: 2rem;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .cta-section {
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  .page-container {
    padding: 0 1rem;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .page-subtitle {
    font-size: 1rem;
  }

  .reviews-hero,
  .contact-hero {
    padding: 2rem 1rem;
  }

  .review-card {
    padding: 1.5rem;
  }

  .contact-form-container {
    padding: 1.5rem;
  }

  .form-group input,
  .form-group textarea {
    font-size: 16px;
  }
}
