/* Contact Section Styles */
.home-tool .ht-contact {
  position: relative;
  z-index: 3;
  overflow: visible;
  padding: 26px 0 31px;
  color: #fff;
  background-image: url(/wp-content/themes/industrial/image/contact-bg.webp);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.home-tool .ht-contact .htc-core {
  position: relative;
  z-index: 1;
  max-width: 1343px;
  margin: 0 auto;
  padding: 0 24px;
}
.home-tool .ht-contact .htcc-wrapper {
  display: grid;
  grid-template-columns: minmax(280px, 362px) minmax(0, 854px);
  align-items: center;
  column-gap: clamp(32px, 5vw, 127px);
}
.home-tool .ht-contact .htcc-left-text {
  font-family: "Microsoft YaHei", Arial, sans-serif;
  font-size: clamp(22px, 1.45vw, 24px);
  font-weight: 700;
  line-height: 1.16;
  color: #fff;
}
.home-tool .ht-contact .htcc-left-text.htcc-left-text-m{
  display: none;
}
.home-tool .ht-contact .htcc-right-form {
  min-width: 0;
}
.home-tool .ht-contact #contact-section-form {
  display: grid;
  gap: 17px;
}
.home-tool .ht-contact .htcc-input-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.home-tool .ht-contact .htcc-submit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 0;
}
.home-tool .ht-contact .htcc-input-item,
.home-tool .ht-contact .htcc-message-row {
  min-width: 0;
  border: 1px solid transparent;
  background: rgba(76, 76, 76, 0.96);
  color: #fff;
}
.home-tool .ht-contact .htcc-input-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 46px;
  padding: 0 12px;
  border-radius: 4px;
}
.home-tool .ht-contact .htcc-input-row .htcc-input-item.error,
.home-tool .ht-contact .htcc-input-row .htcc-message-row.error {
  border-color: #E13312;
  background-color: #fff0ed;
}
.home-tool .ht-contact .htcc-input-item.error input{
  color: #000;
}
.home-tool .ht-contact .htcc-input-item .error-msg{
  display: none;
  position: absolute;
  bottom: -17px;
  left: 0;
  font-size: 13px;
  line-height: 13px;
  color: #E13312;
}
.home-tool .ht-contact .htcc-input-item.error .error-msg{
  display: block;
}
.home-tool .ht-contact .htcc-required-star {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #E13312;
  font-size: 14px;
  line-height: 1;
}
.home-tool .ht-contact .htcc-input-item input,
.home-tool .ht-contact .htcc-message-row input,
.home-tool .ht-contact .htcc-message-row textarea,
.home-tool .ht-contact .country-select-wrapper .search-box input {
  width: 100%;
  border: 0 !important;
  background: transparent;
  color: #fff;
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
  font-size: 14px;
  font-family: "Microsoft YaHei", Arial, sans-serif;
}
.home-tool .ht-contact .htcc-input-item input::placeholder,
.home-tool .ht-contact .htcc-message-row input::placeholder,
.home-tool .ht-contact .htcc-message-row textarea::placeholder {
  color: #CCCCCC;
  opacity: 1;
}
.home-tool .ht-contact .htcc-area-code-item {
  gap: 8px;
}
.home-tool .ht-contact .htcc-area-code-item .htcc-label {
  flex: 0 0 auto;
  color: #CCCCCC;
  font-size: 14px;
  white-space: nowrap;
}
.home-tool .ht-contact .htcc-area-code-item #contact-area-code-wrapper {
  flex: 1;
  min-width: 0;
}
.home-tool .ht-contact .htcc-message-row {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 12px;
  border-radius: 4px 0 0 4px;
}
.home-tool .ht-contact .htcc-message-row input,
.home-tool .ht-contact .htcc-message-row textarea {
  height: 44px;
  line-height: 44px;
}
.home-tool .ht-contact .htcc-message-row textarea {
  min-height: 44px;
  resize: none;
  overflow-y: auto;
}
.home-tool .ht-contact .htcc-submit-btn {
  height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 0 4px 4px 0;
  background: #0962B1;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}
.home-tool .ht-contact .htcc-submit-btn:hover {
  background-color: #0B74CD;
}
.home-tool .ht-contact .htcc-submit-btn.loading {
  opacity: 0.72;
  cursor: not-allowed;
}
.home-tool .ht-contact .htcc-input-item:focus-within,
.home-tool .ht-contact .htcc-message-row:focus-within {
  border-color: transparent !important;
  box-shadow: none !important;
}
.home-tool .ht-contact .htcc-input-item.error:focus-within,
.home-tool .ht-contact .htcc-message-row.error:focus-within {
  border-color: #E13312 !important;
}

/* Country Select Styles for this section */
.home-tool .ht-contact .country-select-wrapper {
  position: relative;
  width: 100%;
}
.home-tool .ht-contact .country-select-wrapper .selected-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  cursor: pointer;
}
.home-tool .ht-contact .country-select-wrapper .flag-icon {
  width: 18px;
  height: 12px;
  flex: 0 0 auto;
  object-fit: cover;
}
.home-tool .ht-contact .country-select-wrapper .country-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #CCCCCC;
  font-size: 14px;
  line-height: 1.2;
}
.home-tool .ht-contact .country-select-wrapper .selected-option > .iconfont {
  margin-left: auto;
  color: #CCCCCC;
  font-size: 12px;
  transform: rotate(90deg);
  transition: transform 0.2s ease;
}
.home-tool .ht-contact .country-select-wrapper.is-open .selected-option > .iconfont {
  transform: rotate(270deg);
}
.home-tool .ht-contact .country-select-wrapper .dropdown-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 50;
  min-width: max(100%, 260px);
  max-width: min(320px, calc(100vw - 32px));
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
  display: none;
}
.home-tool .ht-contact .country-select-wrapper .dropdown-list.show {
  display: block;
}
.home-tool .ht-contact .country-select-wrapper .search-box {
  position: relative;
  padding: 10px 12px;
  background: #F5F7FA;
}
.home-tool .ht-contact .country-select-wrapper .search-box input {
  height: 34px;
  padding: 0 36px 0 10px;
  border: 1px solid #D9D9D9 !important;
  border-radius: 4px;
  color: #2B2726;
  background: #fff;
}
.home-tool .ht-contact .country-select-wrapper .search-box input:focus {
  border-color: #D9D9D9 !important;
  outline: none !important;
  box-shadow: none !important;
}
.home-tool .ht-contact .country-select-wrapper .search-box .iconfont {
  position: absolute;
  top: 50%;
  right: 24px;
  margin-left: 0;
  color: #999;
  font-size: 12px;
  transform: translateY(-50%);
}
.home-tool .ht-contact .country-select-wrapper .dl_list {
  max-height: 220px;
  overflow-y: auto;
  background: #fff;
}
.home-tool .ht-contact .country-select-wrapper .dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  cursor: pointer;
}
.home-tool .ht-contact .country-select-wrapper .dropdown-item .country-text {
  color: #2B2726;
}
.home-tool .ht-contact .country-select-wrapper .dropdown-item:hover,
.home-tool .ht-contact .country-select-wrapper .dropdown-item.is-selected {
  background: #EAF4FE;
}

/* 底部提交表单样式 */
@media screen and (max-width: 1366px) {
  .home-tool .ht-contact .htc-core {
    padding: 0 20px;
  }
  .home-tool .ht-contact .htcc-wrapper {
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    column-gap: 32px;
  }
}

@media screen and (max-width: 1100px) {
  .home-tool .ht-contact {
    padding: 36px 0 28px;
  }
  .home-tool .ht-contact .htcc-wrapper {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }
  .home-tool .ht-contact .htcc-left-text {
    max-width: 100%;
    text-align: center;
  }
}

@media screen and (max-width: 767px) {
  .home-tool .ht-contact {
    padding: 42px 0 40px;
    background-position: center;
    background-image: url(/wp-content/themes/industrial/image/contact-bg-m.webp);
  }
  .home-tool .ht-contact .htc-core {
    padding: 0 12px;
  }
  .home-tool .ht-contact .htcc-left-text {
    text-align: center;
    font-size: 28px;
  }
  .home-tool .ht-contact .htcc-left-text.htcc-left-text-l{
    display: none;
  }
  .home-tool .ht-contact .htcc-left-text.htcc-left-text-m{
    display: block;
  }
  .home-tool .ht-contact .htcc-input-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 8px;
  }
  .home-tool .ht-contact .htcc-input-row .htcc-input-item:nth-child(1),
  .home-tool .ht-contact .htcc-input-row .htcc-input-item:nth-child(2){
    grid-column: 1 / -1;
  }

  .home-tool .ht-contact .htcc-submit-row .htcc-message-row,
  .home-tool .ht-contact .htcc-input-row .htcc-input-item{
    background-color: rgba(230, 235, 238, 0.9);
  }
  .home-tool .ht-contact .htcc-submit-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .home-tool .ht-contact .htcc-message-row,
  .home-tool .ht-contact .htcc-submit-btn {
    border-radius: 4px;
  }
  .home-tool .ht-contact .htcc-submit-btn {
    width: 70%;
    font-size: 16px;
    margin: 0 auto;
    border-radius: 50px;
    line-height: 21px;
    font-weight: 400;
    min-width: 266px;
  }
  .home-tool .ht-contact .htcc-message-row input,
  .home-tool .ht-contact .htcc-input-item input{
    color: #2B2726;
  }
  .home-tool .ht-contact .htcc-message-row input::placeholder,
  .home-tool .ht-contact .htcc-input-item input::placeholder{
    color: #989BA1;
  }
  .home-tool .ht-contact .country-select-wrapper .selected-option > .iconfont,
  .home-tool .ht-contact .country-select-wrapper .country-text,
  .home-tool .ht-contact .htcc-area-code-item .htcc-label{
    color: #989BA1;
  }
  .home-tool .ht-contact #contact-section-form{
    row-gap: 20px;
  }
}

@media screen and (max-width: 480px) {
  .home-tool .ht-contact .htcc-left-text {
    font-size: 24px;
  }
  .home-tool .ht-contact .country-select-wrapper .dropdown-list {
    min-width: 100%;
    max-width: 100%;
  }
  .home-tool .ht-contact .htcc-area-code-item .htcc-label{
    display: none;
  }
  .home-tool .ht-contact .htcc-submit-btn{
    font-size: 15px;
    line-height: 20px;
  }
}

@media screen and (max-width: 300px){
  .home-tool .ht-contact .htcc-input-row{
    grid-template-columns: 1fr;
  }
}