/**
 * 好評推薦組件樣式
 * @package mytheme
 */

/* ========================================
   聯絡瓦吉區塊組件
   ======================================== */

.section-contact-wagi {
  padding: 0 0 4.025rem;
  background-size: 64%;
  background-position: right 2rem;
  background-repeat: no-repeat;
  background-color: #fff;
  text-align: center;
  position: relative;
}

.contact-title-wrapper {
  --deco-width: 35%;          /* 虛線寬度 */
  --deco-height: 2px;         /* 虛線粗細 */
  --deco-dash: 8px;           /* 虛線段長 */
  --deco-gap: 6px;            /* 虛線間距 */
  --deco-color: #000;         /* 虛線顏色 */

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.5rem;
  margin-bottom: 14px;
  position: relative;
  width: 100%;
  max-width: 71.4rem;
  box-sizing: border-box;
  flex-wrap: wrap;
}

.contact-title-wrapper::before,
.contact-title-wrapper::after {
  content: "";
  width: var(--deco-width);
  height: var(--deco-height);
  background-image: repeating-linear-gradient(
    90deg,
    var(--deco-color) 0,
    var(--deco-color) var(--deco-dash),
    transparent var(--deco-dash),
    transparent calc(var(--deco-dash) + var(--deco-gap))
  );
  flex-shrink: 0;
}

.contact-title {
  color: #000;
  margin: 0;
  font-weight: 400;
}

.contact-subtitle {
  color: #000;
  margin: 30px auto;
  line-height: 1.6;
}

.contact-cta {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  gap: 0;
}

.btn-contact-form {
  display: inline-flex;
  align-items: center;
  gap: 0.656rem;
  padding: 4px 11px 4px 21px;
  background-color: #ffd036;
  color: #000;
  font-size: 1.25rem;
  font-weight: 400;
  border: 0.112rem solid #000;
  border-radius: 2.094rem;
  text-decoration: none;
  box-shadow: 0 0.45rem 0 0 rgba(0, 0, 0, 1);
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-contact-form:hover {
  color: #fff;
  transform: translateY(-0.088rem);
  box-shadow: 0 0.538rem 0 0 rgba(0, 0, 0, 1);
  text-decoration: none;
}

.btn-contact-form img {
  width: 43px;
  height: auto;
  object-fit: contain;
}

.contact-finger-pointer {
  width: auto;
  height: 25px;
  object-fit: contain;
  position: absolute;
  bottom: -11px;
  right: -11px;
}

.review-form-container {
  display: flex;
  flex-direction: row;
  gap: 32px;
  margin-top: 35px;
}

.avatar-upload-text {
  font-size: 10px !important;
}

.review-avatar-choose-text {
  white-space: nowrap;
}

.review-form-wrapper {
  width: 100%;
}

.from-submit-btn {
  display: flex;
  position: relative;
  align-items: flex-end;
  justify-content: space-between;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 7px;
  position: relative;
}

.form-input {
  font-size: 20px;
}

.images-upload {
}

.form-group-avatar {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 90px;
  align-items: center;
}

.form-group label {
  white-space: nowrap;
  display: flex;
  gap: 5px;
}
.form-textarea {
}

.form-submit {
  font-size: 28px;
  padding: 14px 0;
  width: 100%;
  max-width: 140px;
  border-radius: 2.1rem;
  color: #fff;
  background: #960000;
  position: absolute;
  right: 0;
  bottom: 0;
}

.first-word {
}
.sec-word {
}

/* 響應式：聯絡瓦吉區塊 - 平板及以上 */
@media (max-width: 1024px) {
  .contact-title-wrapper {
    gap: 0.875rem;
    width: 100%;
    margin-bottom: 0.7rem;
  }

  .contact-title-wrapper {
    --deco-width: 4.375rem;
  }

  .section-contact-wagi {
    background-size: 85%;
    background-position: 20rem 3rem;
  }

  .page-cta-btn {
    padding: 13px 13px 13px 17px;
  }
}

/* 響應式：聯絡瓦吉區塊 - 手機版 */
@media (max-width: 480px) {
  .section-core-strategy,
  .section-advertising,
  .section-integrated-marketing {
    padding: 3.125rem 0;
    background-size: 100%;
    background-position: 3rem 2rem;
  }

  .section-contact-wagi {
    display: none;
  }

  .contact-title-wrapper {
    --deco-width: 5.9375rem;
    --deco-height: 1px;
    gap: 0.75rem !important;
    margin-bottom: 10px !important;
  }

  .contact-title {
    font-size: 14px;
  }

  .contact-subtitle {
    font-size: 10px;
    margin-bottom: 1.75rem;
  }

  .btn-contact-form {
    flex-direction: row;
    padding: 5px 15px 5px 22px;
    font-size: 14px;
    gap: 0.5rem;
    box-shadow: 0 4px 0 0 rgba(0, 0, 0, 1);
    border: 1px solid #000;
  }

  .btn-contact-form img {
    width: 25px;
    height: 26px;
  }

  .contact-finger-pointer {
    width: 1.5rem;
    height: 1.25rem;
    bottom: -0.5rem;
    right: -8px;
  }

  .file-input-wrapper {
    margin-bottom: 0 !important;
  }

  .form-group {
    font-size: 0.875rem;
    margin-top: 10px;
    gap: 0;
  }

  .decoration-left {
    z-index: 5;
    position: absolute;
    width: 1.438rem;
    height: 1.75rem;
    left: -0.875rem;
    top: -0.938rem;
  }

  .decoration-right {
    position: absolute;
    right: -1.875rem;
    bottom: -0.625rem;
    width: 1.375rem;
    height: auto;
  }

  /* 費用 CTA 按鈕樣式(手機版) */
  .page-cta-wrapper {
    height: 20px;
    width: 100px;
    margin-top: 28px !important;
  }

  .page-cta-btn {
    font-size: 14px;
    gap: 8px;
    white-space: nowrap;
    justify-content: center;
    box-shadow: 0 0 7.3px rgba(255, 172, 39, 1);
  }

  .cta-icon {
    width: 16px;
    height: 16px;
  }
}

/* 好評推薦部件 */
.avatar-preview {
  width: 100% !important;
  height: auto !important;
}

.avatar-upload {
  width: 100% !important;
}

.reviews-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1182px;
  width: 100%;
  margin-top: 40px;
}

.reviews-header-decoration {
  position: absolute;
  right: 22%;
  top: 8%;
  transform: translateY(-50%);
  width: 12.8125rem;
  height: 8.625rem;
  object-fit: contain;
  pointer-events: none;
}

.file-input-wrapper {
  margin-bottom: 10px;
  display: flex;
  width: 100%;
  justify-content: space-between;
  flex-direction: column;
  gap: 10px;
}

.add-images-btn {
  background: none !important;
  color: #004dff !important;
  font-size: 21.718px !important;
  border: none !important;
  padding: 0 !important;
  display: flex;
  gap: 4px;
  align-items: center;
}

/* 評價/推薦組件 */
.section-reviews {
  padding: 3.75rem 0;
}

.no-reviews,
.form-title,
.review-name-seo-reviews {
  color: #000;
  font-weight: 500;
}

/* 輪播容器 */
.reviews-slider-wrapper {
  width: 100%;
  margin-bottom: 2.5rem;
}

.reviews-slider {
  display: flex;
  flex-wrap: nowrap;
  gap: 44px;
  overflow: hidden;
}

.review-textarea-wrapper {
  width: 100%;
}

/* 卡片 */
.review-card {
  display: flex;
  flex-direction: column;
  padding: var(--spacing-lg);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 22.2px 0 rgba(0, 0, 0, 0.25);
}

.review-card__rating {
  display: flex;
  gap: 0.25rem;
  margin-bottom: var(--spacing-sm);
}

.review-card__text {
  color: #000;
  font-size: 16px;
  line-height: var(--line-height-normal);
  flex: 1;
  margin: 0;
}

.review-card__images {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--spacing-sm);
}

.review-card__divider {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: var(--spacing-md) 0;
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.review-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.review-card__author-info {
  display: flex;
  flex-direction: column;
}

.review-card__name {
  font-weight: var(--font-weight-bold);
  color: #000;
}

.review-card__account {
  font-size: var(--font-size-sm);
  color: #000;
}

/* 分頁點容器 */
.reviews-slider-dots {
  display: flex;
  justify-content: center;
  gap: 21px;
  margin-top: 38px;
}

.review-star {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.review-star:hover {
  transform: scale(1.1);
}

/* 表單 form-row */
.section-review-form {
  border-radius: 10px;
  border: 1px solid #a3a3a3;
  padding: 28px 48px 50px;
}
.form-row {
  display: flex;
  gap: var(--spacing-md);
}

.form-row .form-field {
  flex: 1;
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
}

.review-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.review-form h3 {
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: #000;
}

.rating-input {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.rating-input [data-star] {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.2s ease;
  padding: 0.25rem;
  pointer-events: auto;
}

.rating-input [data-star]:hover {
  transform: scale(1.15);
}

.review-form-controls {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
}

.photo-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background-color: #ffab36;
  color: #000;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.photo-upload-btn:hover {
  background-color: #ff9800;
}

.photo-upload-btn input[type="file"] {
  display: none;
}

.submit-review-btn {
  margin-left: auto;
  padding: 0.75rem 2rem;
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.submit-review-btn:hover {
  background-color: #333;
}

/* 響應式：好評推薦 - 480px */
@media (max-width: 480px) {
  .reviews-slider {
    gap: 16px;
  }

  /* 好評推薦組件樣式 */
  .section-review-form {
    padding: 19px;
    border-radius: 2.75px;
    border: 0.275px solid #a3a3a3;
  }
  .section-reviews {
    padding: 0 0 32px;
  }

  .reviews-header-decoration {
    width: 3.815rem;
    height: auto;
    top: 35%;
  }

  /* 手機版寬度由 slider-reviews.css 的 flex 計算控制 */

  .review-card {
    padding: var(--spacing-sm);
    border-radius: 2px;
    box-shadow: 0 4px 21.8px 0 rgba(0, 0, 0, 0.25);
  }

  .review-card__avatar {
    width: 24px;
    height: 24px;
  }

  .review-card__text {
    font-size: 10px !important;
    line-height: 14.4px !important;
  }

  .review-card__name {
    font-size: 12px;
  }

  .review-card__divider {
    margin: 6px 0;
  }

  .review-card__account {
    font-size: 8px;
  }

  .review-card--mobile-hidden {
    display: none !important;
    visibility: hidden !important;
  }

  .reviews-content {
    width: 100%;
  }

  .review-star {
    width: 1rem;
    height: 1rem;
  }

  .review-card__images {
    gap: 4px;
    margin-top: 4px;
  }

  .review-image-thumb {
    width: 20px !important;
    height: 20px !important;
    border-radius: 1px !important;
  }

  .form-row {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .review-form-container {
    gap: 10px;
    margin-top: 20px;
    flex-direction: column;
  }

  .review-form-controls {
    flex-direction: column;
  }

  .rating-input [data-star] {
    padding: 0;
    width: 16px;
    height: 16px;
  }

  .review-form {
    padding: 0;
    margin-top: 0;
    gap: 8px;
  }

  .form-group-avatar label {
    font-size: 10px;
  }

  .reviews-slider-dots {
    gap: 6px;
    margin-top: 8px;
  }

  .avatar-upload-text {
    font-size: 8px !important;
  }

  .review-note-text {
    font-size: 10px;
  }

  .file-input-wrapper {
    gap: 0;
  }

  .add-imges-btn-icom {
    width: 10px;
  }

  .add-images-btn {
    font-size: 13px !important;
  }

  .checkbox-label {
    margin-top: 10px;
    font-size: 12px;
    gap: 5px !important;
  }

  .checkbox-label input[type="checkbox"] {
    width: 15px;
    height: auto;
  }

  .form-submit {
    max-width: 75px;
    height: 30px;
  }

  .from-submit-btn {
    align-items: flex-start;
  }

  .form-group-avatar {
    gap: 8px;
  }

  .form-input {
    font-size: 0.875rem;
  }

  .form-submit {
    font-size: 14px;
    padding: 3px 12px;
    max-width: 90px;
  }

  .submit-review-btn {
    width: 100%;
    margin-left: 0;
  }
}
