/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/
.lightbox-content {
  border-radius: 10px;
}
.hdev-slider img {
  border-radius: 10px;
}
.hdev-col-content .icon-box-left .icon-box-img + .icon-box-text {
  padding-left: 0;
}
.hdev-row-dmsp {
  box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}
.hdev-row-dmsp .col {
  padding: 10px 15px 10px;
}
.hdev-row-dmsp img {
  border-radius: 10px;
}
.hdev-col-left-nlsx strong {
  color: var(--primary-color);
}
.hdev-col-left-nlsx .icon-box-img img {
  padding-top: 0;
}
.hdev-col-left-nlsx .icon-box-left .icon-box-img + .icon-box-text {
  padding-left: 0.5em;
}
.hdev-col-icon-box .col-inner {
  box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}
.hdev-col-form .col-inner {
  box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 10px 20px 10px 20px;
}
.hdev-col-form form {
  margin-bottom: 0;
}
@media (max-width: 767px) {
  .hdev-col-doitacgc .col-inner {
    text-align: center;
  }
  .h2 {
    font-size: 1.3em;
  }
}
/* ===== HDev Video Element ===== */
.hdev-video-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 1em;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
}
.hdev-video-wrapper:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}
.hdev-video-thumbnail {
  position: relative;
  display: block;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: #222;
}
.hdev-video-thumb-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.4s ease,
    filter 0.4s ease;
}
.hdev-video-wrapper:hover .hdev-video-thumb-img {
  transform: scale(1.03);
  filter: brightness(0.85);
}
.hdev-video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border: none;
  background: none;
  cursor: pointer;
  transition: transform 0.3s ease;
  text-decoration: none;
  padding: 0;
}
.hdev-video-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.12);
}
.hdev-video-btn-svg {
  width: 96px;
  height: 96px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}
.hdev-video-btn-icon {
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}
.hdev-video-play-btn:hover .hdev-video-btn-icon {
  transform: scale(1.05);
}
/* Iframe khi video đang phát */
.hdev-video-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.hdev-video-playing {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  transform: none;
}
.hdev-video-playing:hover {
  transform: none;
}
/* ===== End HDev Video Element ===== */

/* ===== HDev Process Element ===== */
.hdev-process {
  position: relative;
  padding: 30px 0 10px;
}

/* Đường line nối các icon */
.hdev-process-line-wrapper {
  position: absolute;
  top: 55px;
  left: 0;
  right: 0;
  z-index: 0;
  padding: 0 calc(100% / 14);
}
.hdev-process-line {
  height: 3px;
  background: #e8194d;
  border-radius: 2px;
}

/* Container các bước */
.hdev-process-steps {
  position: relative;
  display: flex;
  gap: 8px;
  z-index: 1;
}

/* Mỗi bước */
.hdev-process-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

/* Icon tròn */
.hdev-process-icon {
  width: 54px;
  height: 54px;
  min-width: 54px;
  min-height: 54px;
  border-radius: 50%;
  background: #e8194d;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  z-index: 2;
  box-shadow: 0 3px 10px rgba(232, 25, 77, 0.35);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.hdev-process-step:hover .hdev-process-icon {
  transform: scale(1.1);
  box-shadow: 0 5px 16px rgba(232, 25, 77, 0.45);
}
.hdev-process-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.hdev-process-icon svg {
  width: 24px;
  height: 24px;
}

/* Box nội dung */
.hdev-process-box {
  background: #fff;
  border-radius: 10px;
  padding: 20px 12px 16px;
  text-align: center;
  border: 1px solid rgba(232, 25, 77, 0.2);
  box-shadow: none;
  flex: 1;
  width: 100%;
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease,
    border-color 0.3s ease;
}
.hdev-process-step:hover .hdev-process-box {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  border-color: rgba(232, 25, 77, 0.4);
}

/* Số bước */
.hdev-process-step-number {
  display: block;
  font-size: 15px;
  color: #e8194d;
  margin-bottom: 4px;
  font-weight: 500;
}

/* Tiêu đề */
.hdev-process-title {
  font-size: 16px;
  font-weight: 700;
  color: #222;
  margin: 0 0 8px;
  line-height: 1.4;
}

/* Số ngày */
.hdev-process-days {
  display: block;
  font-size: 15px;
  color: #888;
  line-height: 1.4;
}

/* ===== Responsive: Mobile xếp dọc ===== */
@media (max-width: 849px) {
  .hdev-process-steps {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .hdev-process-step {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
  }
  .hdev-process-icon {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .hdev-process-box {
    padding: 12px 16px;
    text-align: left;
  }
  /* Ẩn line ngang, chuyển line dọc */
  .hdev-process-line-wrapper {
    top: 0;
    bottom: 0;
    left: 27px;
    right: auto;
    padding: 30px 0;
    width: 3px;
  }
  .hdev-process-line {
    width: 3px;
    height: 100%;
  }
}
/* ===== End HDev Process Element ===== */

/* ================================
   Contact Form 7 - Hdev Custom Form
================================ */
.hdev-cf7-form {
  width: 100%;
}
/* Row */
.hdev-cf7-form .form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: -10px;
}

/* 2 columns */
.hdev-cf7-form .form-row-2 .form-group {
  width: calc(50% - 6px);
}

/* Full column */
.hdev-cf7-form .form-group {
  width: 100%;
}

/* Label */
.hdev-cf7-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 400;
  color: #030056;
  line-height: 1.3;
}

/* Required star */
.hdev-cf7-form .required {
  color: #e8194d;
}

/* Input, select, textarea common style */
.hdev-cf7-form input[type="text"],
.hdev-cf7-form input[type="tel"],
.hdev-cf7-form input[type="email"],
.hdev-cf7-form select,
.hdev-cf7-form textarea {
  width: 100%;
  border: 2px solid #e8194d;
  border-radius: 9px;
  font-size: 16px;
  font-weight: 400;
  color: #111111;
  background-color: #ffffff;
  box-shadow: none;
  outline: none;
  margin-bottom: 0;
}

/* Input */
.hdev-cf7-form input[type="text"],
.hdev-cf7-form input[type="tel"],
.hdev-cf7-form input[type="email"] {
  height: 45px;
  padding: 0 16px;
}

/* Placeholder */
.hdev-cf7-form input::placeholder,
.hdev-cf7-form textarea::placeholder {
  color: #b5b5b5;
  opacity: 1;
}

/* Textarea */
.hdev-cf7-form textarea {
  height: 130px;
  padding: 18px 16px;
  resize: vertical;
  line-height: 1.5;
}

/* Select custom icon */
.hdev-cf7-form select {
  height: 45px;
  padding: 0 44px 0 16px;
  cursor: pointer;

  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  background-color: #ffffff !important;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='8' viewBox='0 0 14 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%23030056' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 18px center !important;
  background-size: 14px 8px !important;
}

/* Hide default select arrow on old IE/Edge */
.hdev-cf7-form select::-ms-expand {
  display: none;
}

/* Focus state */
.hdev-cf7-form input[type="text"]:focus,
.hdev-cf7-form input[type="tel"]:focus,
.hdev-cf7-form input[type="email"]:focus,
.hdev-cf7-form select:focus,
.hdev-cf7-form textarea:focus {
  border-color: #e8194d;
  box-shadow: none;
  outline: none;
}

/* Submit wrapper */
.hdev-cf7-form .form-submit {
  width: 100%;
}

/* Submit button */
.hdev-cf7-form .form-submit input[type="submit"] {
  width: 100%;
  height: 60px;
  border-radius: 9px;
  background-color: #e8194d;
  color: #ffffff;
  border: none;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0 20px;
  margin: 0;
  box-shadow: none;
}

/* Submit hover */
.hdev-cf7-form .form-submit input[type="submit"]:hover {
  background-color: #d91443;
  color: #ffffff;
  box-shadow: none;
}

/* Submit focus */
.hdev-cf7-form .form-submit input[type="submit"]:focus {
  background-color: #e8194d;
  color: #ffffff;
  box-shadow: none;
  outline: none;
}

/* CF7 reset */
.hdev-cf7-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
  position: relative;
  padding-bottom: 22px; /* Reserve space for error messages so form height doesn't change */
}

/* Remove default p margin if theme adds it */
.hdev-cf7-form p {
  margin: 0;
}

/* CF7 error message */
.hdev-cf7-form .wpcf7-not-valid-tip {
  position: absolute;
  bottom: 0;
  left: 0;
  margin-top: 0;
  font-size: 14px;
  color: #e8194d;
  line-height: 1.2;
}

/* Invalid field */
.hdev-cf7-form .wpcf7-not-valid {
  border-color: #e8194d !important;
}

/* CF7 response message */
.hdev-cf7-form .wpcf7-response-output {
  margin: 18px 0 0 0 !important;
  padding: 12px 16px !important;
  border-radius: 8px;
  font-size: 15px;
  color: #030056;
}

/* Ajax spinner */
.hdev-cf7-form .wpcf7-spinner {
  margin: 10px auto 0 auto;
  display: block;
}

.hdev-form-image-col .col-inner {
  height: 100%;
  min-height: 640px;
  overflow: hidden;
  border-radius: 10px;
}

.hdev-form-image-col .img,
.hdev-form-image-col .img-inner,
.hdev-form-image-col img {
  width: 100%;
  height: 100%;
}

.hdev-form-image-col img {
  object-fit: cover;
  object-position: center center;
  display: block;
}
/* Mobile responsive */
@media (max-width: 767px) {
  .hdev-cf7-form .form-row {
    gap: 0;
    margin-bottom: 0;
  }

  .hdev-cf7-form .form-row-2 .form-group,
  .hdev-cf7-form .form-group {
    width: 100%;
    margin-bottom: 12px;
  }

  .hdev-cf7-form label {
    font-size: 16px;
    margin-bottom: 6px;
  }

  .hdev-cf7-form input[type="text"],
  .hdev-cf7-form input[type="tel"],
  .hdev-cf7-form input[type="email"],
  .hdev-cf7-form select {
    height: 54px;
    font-size: 15px;
  }

  .hdev-cf7-form textarea {
    height: 130px;
    font-size: 15px;
  }
  .hdev-cf7-form .form-submit {
    margin-top: 4px;
  }

  .hdev-cf7-form .form-submit input[type="submit"] {
    height: 58px;
    font-size: 18px;
  }
  .hdev-cf7-form .wpcf7-form-control-wrap {
  padding-bottom: 0;

}
/* ================================
   Footer
================================ */
.footer-menu-simple {
  display: flex;
  align-items: center;
  gap: 32px;
}

.footer-menu-simple a {
  color: #ffffff;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
}

.footer-menu-simple a:hover {
  color: #e8194d;
}

/* Fix popup z-index to overlap contact widget */
.mfp-bg {
  z-index: 999999 !important;
}
.mfp-wrap {
  z-index: 999999 !important;
}
