/* Reviews Page Styles - Serrurier Dépannage 24 */

:root {
  /* Использование цветовой палитры из основного сайта */
  --primary-color: #2C3E50;
  --secondary-color: #E67E22;
  --accent-color: #27AE60;
  --dark-color: #1A252F;
  --light-color: #ECF0F1;
  --text-color: #34495E;
  --danger-color: #E74C3C;
  --warning-color: #F39C12;
  --success-color: #27AE60;
  --info-color: #3498DB;

  /* Градиенты */
  --gradient-primary: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
  --gradient-hero: linear-gradient(165deg, #1A252F 0%, #2C3E50 50%, #34495E 100%);
  --gradient-accent: linear-gradient(135deg, #E67E22 0%, #F39C12 100%);

  /* Тени */
  --shadow-sm: 0 2px 4px rgba(44, 62, 80, 0.1);
  --shadow-md: 0 4px 12px rgba(44, 62, 80, 0.15);
  --shadow-lg: 0 8px 24px rgba(44, 62, 80, 0.2);
  --shadow-xl: 0 16px 48px rgba(44, 62, 80, 0.25);
}

/* Header Styles */
.locksmith-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(44, 62, 80, 0.08);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.brand-section {
  display: flex;
  align-items: center;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: var(--shadow-md);
}

.brand-logo svg {
  width: 30px;
  height: 30px;
  color: white;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-color);
  line-height: 1.2;
  margin: 0;
}

.brand-tagline {
  font-size: 0.875rem;
  color: var(--text-color);
  opacity: 0.8;
  margin: 0;
}

.header-actions {
  display: flex;
  align-items: center;
}

.home-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--gradient-accent);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.home-button:hover {
  background: var(--secondary-color);
  color: white !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.home-icon {
  font-size: 1.2rem;
  filter: brightness(0) invert(1);
  width: 20px;
  height: 20px;
}

.home-text {
  font-size: 1rem;
}

/* Main Content */
.reviews-main {
  padding-top: 100px;
  min-height: 100vh;
  background: linear-gradient(to bottom, #f8f9fa 0%, white 100%);
}

/* Hero Section */
.reviews-hero {
  background: var(--gradient-hero);
  padding: 4rem 0;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.reviews-hero::before {
  content: '🔐';
  position: absolute;
  top: -50px;
  right: 10%;
  font-size: 200px;
  opacity: 0.05;
  transform: rotate(-15deg);
}

.reviews-hero::after {
  content: '🔑';
  position: absolute;
  bottom: -50px;
  left: 10%;
  font-size: 200px;
  opacity: 0.05;
  transform: rotate(15deg);
}

.reviews-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  background: linear-gradient(to right, white 0%, rgba(255, 255, 255, 0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rating-summary {
  margin-top: 2rem;
}

.rating-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  max-width: 400px;
  margin: 0 auto;
}

.rating-score .score {
  font-size: 4rem;
  font-weight: 800;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.rating-score .stars {
  font-size: 2rem;
  color: #FFD700;
  letter-spacing: 4px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.rating-score .total {
  font-size: 1.2rem;
  opacity: 0.95;
  color: white;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Reviews List */
.reviews-list {
  padding: 4rem 0;
}

.review-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--secondary-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.review-card::before {
  content: '🔐';
  position: absolute;
  top: -20px;
  right: 20px;
  font-size: 60px;
  opacity: 0.05;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-left-color: var(--accent-color);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.reviewer-info h3 {
  color: var(--dark-color);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
}

.review-date {
  color: var(--text-color);
  font-size: 0.9rem;
  opacity: 0.7;
}

.review-rating {
  color: #FFD700;
  font-size: 1.5rem;
  letter-spacing: 2px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.review-service {
  margin: 1rem 0;
}

.service-badge {
  display: inline-block;
  background: var(--gradient-accent);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.review-text {
  color: var(--text-color);
  line-height: 1.6;
  font-size: 1rem;
  margin: 1rem 0 0 0;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.pagination-btn {
  padding: 0.75rem 1.5rem;
  background: white;
  color: var(--dark-color);
  text-decoration: none;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  min-width: 45px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.pagination-btn:hover {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.pagination-btn.current {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.pagination-ellipsis {
  color: var(--text-color);
  opacity: 0.5;
  padding: 0 0.5rem;
}

/* CTA Section */
.review-cta {
  background: var(--gradient-primary);
  padding: 4rem 0;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.review-cta::before {
  content: '🏆';
  position: absolute;
  top: -40px;
  right: 10%;
  font-size: 150px;
  opacity: 0.1;
  transform: rotate(-15deg);
}

.review-cta h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: white;
}

.review-cta p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  color: white;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: white;
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.cta-button:hover {
  background: var(--light-color) !important;
  color: var(--primary-color) !important;
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.cta-button svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .header-wrapper {
    padding: 0.75rem 1rem;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .brand-name {
    font-size: 1.1rem;
  }

  .brand-tagline {
    font-size: 0.75rem;
  }

  .home-button {
    padding: 0.6rem 1rem;
  }

  .home-text {
    display: none;
  }

  .reviews-main {
    padding-top: 80px;
  }

  .reviews-hero {
    padding: 3rem 0;
  }

  .reviews-hero h1 {
    font-size: 2rem;
  }

  .rating-score .score {
    font-size: 3rem;
  }

  .rating-score .stars {
    font-size: 1.5rem;
  }

  .container {
    padding: 0 1rem;
  }

  .review-card {
    padding: 1.5rem;
  }

  .review-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .review-cta {
    padding: 3rem 0;
  }

  .review-cta h2 {
    font-size: 1.75rem;
  }

  .review-cta p {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .cta-button {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
  }

  .pagination {
    gap: 0.5rem;
  }

  .pagination-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .header-wrapper {
    padding: 0.5rem;
  }

  .brand-logo {
    width: 35px;
    height: 35px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-tagline {
    display: none;
  }

  .home-button {
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    justify-content: center;
  }

  .reviews-hero h1 {
    font-size: 1.75rem;
    padding: 0 1rem;
  }

  .rating-score {
    padding: 1.5rem;
  }

  .rating-score .score {
    font-size: 2.5rem;
  }

  .review-card {
    padding: 1rem;
    border-radius: 12px;
  }

  .reviewer-info h3 {
    font-size: 1.1rem;
  }

  .review-rating {
    font-size: 1.25rem;
  }

  .review-cta {
    padding: 2.5rem 0;
  }

  .review-cta h2 {
    font-size: 1.5rem;
    padding: 0 1rem;
  }

  .cta-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }

  .pagination-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    min-width: 35px;
  }
}

/* Минимальные экраны (375px) */
@media (max-width: 375px) {
  .brand-logo svg {
    width: 25px;
    height: 25px;
  }

  .reviews-hero h1 {
    font-size: 1.5rem;
  }

  .rating-score .score {
    font-size: 2rem;
  }

  .rating-score .stars {
    font-size: 1.25rem;
    letter-spacing: 2px;
  }

  .review-card {
    margin-bottom: 1rem;
  }

  .pagination {
    gap: 0.25rem;
  }

  .pagination-btn {
    padding: 0.35rem 0.7rem;
    font-size: 0.75rem;
    min-width: 30px;
  }
}

/* Fixed Call Button */
.fixed-call-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 65px;
  height: 65px;
  background: var(--gradient-accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 25px rgba(230, 126, 34, 0.4);
  z-index: 9999;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.fixed-call-button:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 8px 35px rgba(230, 126, 34, 0.6);
}

.fixed-call-button svg {
  width: 30px;
  height: 30px;
}

@keyframes pulse {
  0% {
    box-shadow: 0 5px 25px rgba(230, 126, 34, 0.4);
  }
  50% {
    box-shadow: 0 5px 35px rgba(230, 126, 34, 0.6);
  }
  100% {
    box-shadow: 0 5px 25px rgba(230, 126, 34, 0.4);
  }
}

/* Mobile Fixed Call Button */
@media (max-width: 768px) {
  .fixed-call-button {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
  }

  .fixed-call-button svg {
    width: 25px;
    height: 25px;
  }
}

@media (max-width: 375px) {
  .fixed-call-button {
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
  }

  .fixed-call-button svg {
    width: 22px;
    height: 22px;
  }
}

/* Review Form Section */
.review-form-section {
  background: linear-gradient(135deg, #f8f9fa 0%, white 100%);
  padding: 4rem 0;
  border-top: 1px solid rgba(44, 62, 80, 0.1);
}

.review-form-section h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark-color);
  margin-bottom: 3rem;
  position: relative;
}

.review-form-section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

#jqr_review_form {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

#jqr_review_form input[type="text"],
#jqr_review_form textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid #e1e8ed;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  background: white;
  transition: all 0.3s ease;
  color: var(--text-color);
}

#jqr_review_form input[type="text"]:focus,
#jqr_review_form textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.1);
  transform: translateY(-2px);
}

#jqr_review_form input[type="text"]:hover,
#jqr_review_form textarea:hover {
  border-color: var(--primary-color);
  background: #fafbfc;
}

#jqr_review_form textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

/* Star Rating */
.jqr_star-rating {
  display: flex;
  gap: 0.5rem;
  font-size: 2rem;
  justify-content: center;
}

.jqr_star-rating i {
  color: #ddd;
  cursor: pointer;
  transition: all 0.2s ease;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.jqr_star-rating i:hover,
.jqr_star-rating i.fas {
  color: #FFD700;
  transform: scale(1.1);
}

.jqr_star-rating i.fas {
  animation: starPop 0.3s ease;
}

@keyframes starPop {
  0% {
    transform: scale(0.8);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1.1);
  }
}

/* Error Messages */
.jqr_error-message {
  color: var(--danger-color);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
  animation: slideDown 0.3s ease;
}

.jqr_error-message.show {
  display: block;
}

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

/* Submit Button */
#jqr_submit {
  padding: 1rem 2rem;
  background: var(--gradient-accent);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 1rem;
}

#jqr_submit:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(230, 126, 34, 0.4);
}

#jqr_submit:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 15px rgba(230, 126, 34, 0.3);
}

#jqr_submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Success Message */
.review-success {
  background: var(--success-color);
  color: white;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 2rem;
  animation: fadeInUp 0.5s ease;
  box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Responsive for Form */
@media (max-width: 768px) {
  .review-form-section {
    padding: 3rem 0;
  }

  .review-form-section h2 {
    font-size: 2rem;
  }

  #jqr_review_form {
    padding: 0 1rem;
  }

  #jqr_review_form input[type="text"],
  #jqr_review_form textarea {
    padding: 0.875rem 1rem;
  }

  .jqr_star-rating {
    font-size: 1.75rem;
    gap: 0.4rem;
  }

  #jqr_submit {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .review-form-section h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }

  #jqr_review_form {
    gap: 1rem;
  }

  #jqr_review_form input[type="text"],
  #jqr_review_form textarea {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }

  .jqr_star-rating {
    font-size: 1.5rem;
    gap: 0.3rem;
  }

  #jqr_submit {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 375px) {
  .review-form-section {
    padding: 2.5rem 0;
  }

  .review-form-section h2 {
    font-size: 1.5rem;
    padding: 0 1rem;
  }

  #jqr_review_form input[type="text"],
  #jqr_review_form textarea {
    padding: 0.6rem 0.875rem;
    font-size: 0.9rem;
    border-radius: 8px;
  }

  #jqr_review_form textarea {
    min-height: 100px;
  }

  .jqr_star-rating {
    font-size: 1.35rem;
    gap: 0.25rem;
  }

  #jqr_submit {
    padding: 0.7rem 1.25rem;
    font-size: 0.9rem;
    border-radius: 8px;
  }
}