/************* Mô tả danh mục ************/
.term-description {
  border-top: 1px solid #ececec;
  padding-top: 40px;
  margin-top: 40px;
}


/*************** CSS Bài viết liên quan  ***************/
.related-posts-wrapper {
  border-top: 1px solid #ececec;
  padding-top: 20px;
}

.related-posts-wrapper .box-image {
  position: relative;
  width: 100%;
  padding-top: 70%;
  overflow: hidden;
}

.related-posts-wrapper .box-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-posts-wrapper .box {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.related-posts-wrapper .box-text {
  flex: 1;
}

/*************** CSS CONTACFORM  ***************/
/* Container chính */
.contact-content-form.contact-container {
    display: flex;
    max-width: 950px;
    margin: 30px auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #eee;
}

/* Cột trái - Thông tin liên hệ */
.contact-content-form .contact-info {
    flex: 1;
    background-color: #ededed;
    padding: 45px 35px;
    color: #4b5563;
}

.contact-content-form .contact-info h3 {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 15px 0;
    letter-spacing: 1px;
    color: #333;
}

.contact-content-form .contact-info .subtitle {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.9;
}

.contact-content-form .info-list .info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    text-decoration: none;
    color: #4b5563;
}

.contact-content-form .info-list .info-item img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.contact-content-form .info-list .info-item span {
    font-size: 16px;
    font-weight: 600;
}

/* Cột phải - Form */
.contact-content-form .contact-form-fields {
    flex: 1.4;
    padding: 45px;
    background: #ffffff;
}

.contact-content-form .form-row {
    display: flex;
    gap: 20px;
}

.contact-content-form .form-group {
    margin-bottom: 20px;
    width: 100%;
}

/* Input & Textarea */
.contact-content-form .contact-form-fields input[type="text"],
.contact-content-form .contact-form-fields input[type="tel"],
.contact-content-form .contact-form-fields textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    background: #f8f9fa;
    font-size: 15px;
    color: #333;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
    box-shadow: unset;
}

.contact-content-form .contact-form-fields input:focus,
.contact-content-form .contact-form-fields textarea:focus {
    border-color: var(--primary-color);
}

.contact-content-form .contact-form-fields textarea {
    min-height: 120px;
    resize: vertical;
    display: block;
}

/* Nút Submit */
.contact-content-form .contact-form-fields .wpcf7-submit {
    width: 100%;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 4px 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: opacity 0.3s;
    margin-top: 10px;
}

.contact-content-form .contact-form-fields .wpcf7-submit:hover {
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-content-form.contact-container {
        flex-direction: column;
        margin: 15px;
    }

    .contact-content-form .form-row {
        flex-direction: column;
        gap: 0;
    }

    .contact-content-form .contact-info,
    .contact-content-form .contact-form-fields {
        padding: 30px 20px;
    }
}

/* ======== KHUNG SẢN PHẨM LIÊN QUAN ============ */
.product-small .box-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-small .box-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ========= FORM FOOTER ========== */
.wpcf7 .footer-cf7 {
  display: flex;
  gap: 10px;
  max-width: 100%;
}

/* group */
.wpcf7 .footer-cf7 .footer-cf7__group {
  margin-bottom: 0;
}

/* INPUT */
.wpcf7 .footer-cf7 input.footer-cf7__input[type="tel"] {
  width: 100%;
  height: 42px;
  padding: 0 12px;

  background: #fff;
  border: 1px solid var(--primary-color);
  border-radius: 4px;

  font-size: 14px;
  line-height: 42px;
  color: #333;
}

/* focus */
.wpcf7 .footer-cf7 input.footer-cf7__input[type="tel"]:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 1px var(--primary-color);
}

/* SUBMIT */
.wpcf7 .footer-cf7 input.footer-cf7__btn[type="submit"] {
  height: 42px;
  padding: 0 20px;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  line-height: 42px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: none;
  margin-bottom: 0;

  transition: opacity 0.25s ease, transform 0.15s ease;
}
