/* Reviews Page Specific Styles for Moissanite Vault */

.reviews-container {
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
  position: relative;
  z-index: 2;
}

.reviews-intro {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  padding: 30px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(138, 43, 226, 0.1);
}

.reviews-intro::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: 10px;
  padding: 1px;
  background: linear-gradient(45deg, transparent, rgba(138, 43, 226, 0.3), transparent);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.reviews-intro h1 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 20px;
}

.reviews-intro p {
  max-width: 800px;
  margin: 20px auto 0;
  color: #333;
  font-size: 1.1rem;
  line-height: 1.8;
}

.customer-quote {
  font-size: 2rem;
  color: #8A2BE2;
  margin: 30px 0 40px 0;
  text-align: center;
  text-shadow: 0 2px 10px rgba(138, 43, 226, 0.3);
  font-style: italic;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.review-box {
  background: linear-gradient(145deg, #ffffff, #f8f8f8);
  border: 1px solid rgba(138, 43, 226, 0.1);
  border-radius: 15px;
  padding: 30px;
  position: relative;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.review-box::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: 15px;
  padding: 1px;
  background: linear-gradient(45deg, transparent, rgba(138, 43, 226, 0.2), transparent);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.review-box:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15), 0 0 20px rgba(138, 43, 226, 0.1);
}

.review-box:hover::before {
  opacity: 1;
}

.review-box::after {
  content: '\201C';
  position: absolute;
  top: 15px;
  left: 20px;
  font-size: 3rem;
  color: rgba(138, 43, 226, 0.2);
  font-family: serif;
}

.review-box p {
  color: #333;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.review-box span {
  display: block;
  text-align: right;
  color: #8A2BE2;
  font-weight: bold;
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 992px) {
  .reviews-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .reviews-intro h1 {
    font-size: 2rem;
  }
  
  .customer-quote {
    font-size: 1.5rem;
  }
  
  .reviews-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 576px) {
  .reviews-intro {
    padding: 20px;
  }
  
  .reviews-intro p {
    font-size: 1rem;
  }
  
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  
  .review-box {
    padding: 25px 20px;
  }
}

/* Reviews page specific styles */

.reviews-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem;
}

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

.review-card {
  background: linear-gradient(145deg, #ffffff, #f8f8f8);
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1),
              inset 0 0 10px rgba(138, 43, 226, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(138, 43, 226, 0.1);
  position: relative;
}

.review-card:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15),
              inset 0 0 15px rgba(138, 43, 226, 0.1);
}

.review-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.review-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6A1B9A, #8A2BE2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.review-info {
  flex: 1;
}

.review-info h3 {
  font-size: 1.1rem;
  margin: 0 0 0.3rem;
  color: #333;
}

.review-rating {
  color: #8A2BE2;
  font-size: 1rem;
  letter-spacing: 0.1rem;
  margin-bottom: 0.3rem;
}

.review-date {
  color: #a0a0a0;
  font-size: 0.85rem;
}

.review-content {
  margin-bottom: 1.5rem;
}

.review-content p {
  color: #333;
  line-height: 1.6;
  margin: 0;
}

.review-product {
  display: flex;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(138, 43, 226, 0.1);
}

.review-product img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 0.3rem;
  margin-right: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(138, 43, 226, 0.3);
}

.review-product span {
  color: #666;
  font-size: 0.9rem;
  font-style: italic;
}

/* Leave a review section */
.leave-review {
  background: linear-gradient(145deg, #ffffff, #f8f8f8);
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1),
              inset 0 0 15px rgba(138, 43, 226, 0.05);
  border: 1px solid rgba(138, 43, 226, 0.1);
  position: relative;
  overflow: hidden;
}

.leave-review::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(45deg, rgba(138, 43, 226, 0.3), transparent 20%, transparent 80%, rgba(138, 43, 226, 0.3));
  border-radius: 0.5rem;
  z-index: -1;
  pointer-events: none;
}

.leave-review h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: #333;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #333;
  font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(138, 43, 226, 0.2);
  border-radius: 0.3rem;
  color: #333;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(138, 43, 226, 0.5);
  box-shadow: 0 0 10px rgba(138, 43, 226, 0.2);
}

.submit-review-btn {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  padding: 1rem;
  background: linear-gradient(135deg, #6A1B9A, #8A2BE2);
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
  border: none;
  border-radius: 0.3rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.submit-review-btn:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #8A2BE2, #6A1B9A);
}

@media (max-width: 768px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  
  .review-card {
    padding: 1.2rem;
  }
  
  .reviews-intro h1 {
    font-size: 2rem;
  }
  
  .leave-review {
    padding: 1.5rem;
  }
}

.value-card h3 {
  font-size: 1.1rem;
  color: #8A2BE2;
  margin-bottom: 15px;
}

/* Review submission message styles */
.review-message {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 8px;
  font-weight: 500;
  animation: slideIn 0.3s ease-out;
}

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

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

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

/* Loading state for submit button */
.submit-review-btn:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
  opacity: 0.7;
} 