/* TCC static site overrides: form status banner, math captcha, instant search, responsive polish */

.tcc-form-banner {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}
.tcc-form-banner.is-ok {
  background: #ecfdf3;
  border: 1px solid #10b981;
  color: #065f46;
}
.tcc-form-banner.is-err {
  background: #fef2f2;
  border: 1px solid #ef4444;
  color: #991b1b;
}

.tcc-captcha {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 0 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
  color: #1e293b;
}
.tcc-captcha-label {
  font-size: 14px;
  color: #1e293b !important;
  margin: 0 !important;
  display: inline-block !important;
}
.tcc-captcha-input {
  width: 68px !important;
  min-width: 68px !important;
  padding: 5px 8px !important;
  margin: 0 !important;
  border: 1px solid #94a3b8 !important;
  border-radius: 4px !important;
  font-size: 14px !important;
  background: #fff !important;
  color: #0f172a !important;
  height: 34px !important;
  box-sizing: border-box !important;
}
.tcc-captcha-refresh {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #334155 !important;
  cursor: pointer !important;
  box-shadow: none !important;
}
.tcc-captcha-refresh:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}
.tcc-captcha-refresh svg {
  width: 14px !important;
  height: 14px !important;
  stroke: currentColor !important;
}
.tcc-captcha-msg {
  width: 100%;
  margin: 4px 0 0 !important;
  font-size: 13px;
  color: #b91c1c !important;
}

/* Instant search results */
.tcc-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  margin-top: 6px;
  max-height: 340px;
  overflow-y: auto;
  min-width: 240px;
  text-align: left;
}
.tcc-search-results[hidden] {
  display: none !important;
}
.tcc-search-item {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  text-decoration: none;
  color: #1e293b !important;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
  line-height: 1.35;
}
.tcc-search-item:last-child {
  border-bottom: 0;
}
.tcc-search-item:hover {
  background: #f8fafc;
}
.tcc-search-item img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.tcc-search-badge {
  margin-left: auto;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}
.tcc-search-empty {
  padding: 14px;
  color: #64748b;
  font-size: 13px;
  text-align: center;
}

/* Hide legacy CF7 empty response box */
.wpcf7-response-output:empty {
  display: none !important;
}

/* Responsive header & footer polish */
html, body {
  overflow-x: hidden;
}
#Footer .footer_copy .social li a {
  color: rgba(255, 255, 255, 0.72) !important;
}
#Footer .footer_copy .social li a:hover {
  color: #ffffff !important;
}
@media (max-width: 959px) {
  #Top_bar .top_bar_left {
    width: 100% !important;
  }
  #Top_bar a.responsive-menu-toggle {
    background: rgba(255, 255, 255, 0.96) !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16) !important;
  }
  #Footer .widgets_wrapper .column {
    width: 100% !important;
    margin: 0 0 24px 0 !important;
    float: none !important;
  }
  #Footer .footer_copy .one {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
  }
  #Footer .footer_copy .social {
    float: none !important;
    margin: 0 !important;
  }
  #Footer .footer_copy .copyright {
    float: none !important;
    margin: 0 !important;
  }
}
