/* =========================================================
   TENDER DIARY — AI SEARCH  (home hero + Explore Tenders box)
   + "Get Your Free Sample" popup.
   Hero / search bar / suggestion panel follow the reference
   (menu1.php v4): black + gold, neural-network canvas, typing
   placeholder, grouped suggestions, recent + popular searches.
   This file only adds new classes; css/style.css is unchanged.
========================================================= */

.td-hero, .ai-search-wrap, .tds-modal {
    --td-gold:       #e9b936;
    --td-gold-light: #f9dc7f;
    --td-gold-dark:  #b98418;
    --td-gold-deep:  #c9962a;
    --td-gold-soft:  #fff3cf;
    --td-ink:        #161616;
    --td-muted:      #5d5d5d;
    --td-line:       rgba(17, 17, 17, .07);
    --td-gold-grad:  linear-gradient(135deg, #f7d466 0%, #e9b936 50%, #c9962a 100%);
    --td-ink-grad:   linear-gradient(145deg, #2c2c2c 0%, #0e0e0e 100%);
}

.td-hero, .td-hero *, .td-hero *::before, .td-hero *::after { box-sizing: border-box; }

.td-hero {
    position: relative;
    z-index: 30;
    isolation: isolate;
    width: 100%;
    padding: 72px 20px 100px;
    text-align: center;
    font-family: "Urbanist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    /* same background as the inner-page heroes (About us etc.): soft gold glow at top right on cream-white */
    background: radial-gradient(900px 380px at 80% -10%, var(--gold-soft, #fbefcc), transparent 70%), linear-gradient(180deg, #fffdf7, #fff);
    border-bottom: 1px solid var(--line, #ece7da);
}

/* ---------- background ---------- */
.td-hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.td-hero-bg::before { content: none; }
/* faint square grid that fades out, as on the About us page (.hero-grid) */
.td-hero-bg::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background-image: linear-gradient(var(--line, #ece7da) 1px, transparent 1px), linear-gradient(90deg, var(--line, #ece7da) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
            mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
    opacity: .7;
}
@keyframes td-breathe { from { opacity: .85; transform: scale(1); } to { opacity: 1; transform: scale(1.04); } }
#tdNetwork { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.td-deco {
    position: absolute; width: 104px; height: 104px; display: grid; place-items: center;
    font-size: 40px; color: rgba(201, 150, 42, .62); border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .95), rgba(255, 244, 205, .55) 60%, rgba(249, 220, 127, .25));
    border: 1px solid rgba(233, 185, 54, .3);
    box-shadow: 0 14px 40px -10px rgba(233, 185, 54, .5), inset 0 0 22px rgba(255, 255, 255, .75);
    will-change: transform;
    animation: td-deco-float var(--d, 11s) ease-in-out infinite;
    animation-delay: var(--dl, 0s);
}
.td-deco svg { width: 44px; height: 44px; }
.td-deco::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    border: 1px solid rgba(233, 185, 54, .45);
    animation: td-deco-ring 6s ease-out infinite; animation-delay: var(--dl, 0s);
}
@keyframes td-deco-float {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
    33%      { transform: translate3d(6px, -14px, 0) rotate(2deg); }
    66%      { transform: translate3d(-6px, -6px, 0) rotate(-2deg); }
}
@keyframes td-deco-ring { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(1.45); opacity: 0; } }

.td-float-icon {
    position: absolute; top: var(--t); left: var(--l);
    font-size: var(--s, 22px); color: var(--c, rgba(201, 150, 42, .35));
    will-change: transform;
    animation: td-drift var(--d, 20s) ease-in-out infinite; animation-delay: var(--dl, 0s);
}
.td-float-icon i { display: block; }
@keyframes td-drift {
    0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
    25%  { transform: translate3d(14px, -22px, 0) rotate(6deg); }
    50%  { transform: translate3d(-10px, -36px, 0) rotate(-4deg); }
    75%  { transform: translate3d(-18px, -14px, 0) rotate(5deg); }
    100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}

/* ---------- content ---------- */
.td-hero-copy { position: relative; z-index: 5; max-width: 980px; margin: 0 auto; }

.td-hero-badge {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; padding: 8px 18px;
    font-size: 11.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--td-gold-dark);
    background: rgba(255, 243, 207, .85); border: 1px solid rgba(233, 185, 54, .5); border-radius: 30px;
    position: relative; overflow: hidden;
}
.td-hero-badge i { font-size: 12px; animation: td-wand 2.8s ease-in-out infinite; }
@keyframes td-wand {
    0%, 100% { transform: rotate(0deg) scale(1); }
    40%      { transform: rotate(-14deg) scale(1.12); }
    60%      { transform: rotate(10deg) scale(1.08); }
}
.td-hero-badge::after {
    content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .8), transparent);
    transform: skewX(-18deg); animation: td-shimmer 4s ease-in-out infinite;
}
@keyframes td-shimmer { 0% { left: -60%; } 55%, 100% { left: 130%; } }

.td-hero h1 {
    margin: 0 0 14px; font-size: clamp(28px, 4.2vw, 50px); line-height: 1.22; font-weight: 800;
    letter-spacing: -.02em; color: var(--td-ink); max-width: none;
}
.td-hero h1 .td-grad {
    position: relative; display: inline-block; color: var(--td-gold-deep);
    background: linear-gradient(100deg, #b98418 0%, #f2c94c 32%, #e9b936 50%, #b07a12 78%, #f2c94c 100%);
    background-size: 220% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    animation: td-grad-move 7s linear infinite;
}
.td-hero h1 .td-grad::after {
    content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 3px; border-radius: 3px;
    background: var(--td-gold-grad); transform-origin: left center;
    animation: td-underline 1.1s cubic-bezier(.2, .7, .2, 1) .9s backwards;
}
@keyframes td-grad-move { from { background-position: 0% center; } to { background-position: 220% center; } }
@keyframes td-underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.td-hero p.td-hero-sub { max-width: 560px; margin: 0 auto 34px; font-size: 15.5px; line-height: 1.7; color: var(--td-muted); }

/* ---------- search bar ---------- */
.search-style-2 { position: relative; z-index: 9999; width: 100%; max-width: 700px; margin: 0 auto; }

.google-search-wrap {
    position: relative; z-index: 9999; display: flex; align-items: center; padding: 7px 8px;
    background: #fff; border: 1px solid rgba(233, 185, 54, .25); border-radius: 60px;
    box-shadow: 0 12px 36px rgba(150, 105, 10, .18); transition: box-shadow .25s ease, border-color .25s ease;
}
.google-search-wrap::before {
    content: ""; position: absolute; inset: -3px; z-index: -1; border-radius: 60px;
    background: linear-gradient(120deg, rgba(233,185,54,.65), rgba(233,185,54,0), rgba(233,185,54,.65));
    background-size: 200% 200%; filter: blur(10px); opacity: .45; animation: td-ring 7s linear infinite;
}
@keyframes td-ring {
    0%   { background-position: 0% 50%; opacity: .30; }
    50%  { background-position: 100% 50%; opacity: .62; }
    100% { background-position: 0% 50%; opacity: .30; }
}
.google-search-wrap:hover { box-shadow: 0 14px 40px rgba(150, 105, 10, .24); }
.google-search-wrap:focus-within, .google-search-wrap.is-open { border-color: rgba(233, 185, 54, .85); box-shadow: 0 16px 46px rgba(150, 105, 10, .28); }

.search-prefix {
    display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; white-space: nowrap;
    padding: 10px 16px; margin-right: 10px; font-size: 13px; font-weight: 600; color: var(--td-gold-dark);
    background: var(--td-gold-soft); border-radius: 30px;
}
.search-prefix i { font-size: 12px; animation: td-wand 2.8s ease-in-out infinite; }

.search-input-area { flex: 1; min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.google-search-wrap input {
    flex: 1; min-width: 120px; width: 100%; padding: 14px 6px; border: none !important; outline: none;
    box-shadow: none !important; background: transparent; font-family: inherit; font-size: 15.5px;
    text-align: left; color: var(--td-ink);
}
.google-search-wrap input::placeholder { color: #9a9a9a; }
.google-search-wrap input::-webkit-search-cancel-button { display: none; }

.search-clear-btn {
    display: none; align-items: center; justify-content: center; flex-shrink: 0; width: 30px; height: 30px;
    border: none; border-radius: 50%; background: transparent; color: #b0b4b8; font-size: 13px; cursor: pointer;
    transition: background .2s, color .2s; padding: 0;
}
.search-clear-btn.show { display: flex; }
.search-clear-btn:hover { background: #f1f1f1; color: var(--td-ink); }

.search-kbd {
    flex-shrink: 0; margin: 0 6px; padding: 3px 8px; font-size: 12px; font-weight: 600; color: #9a9a9a;
    border: 1px solid #e4e4e4; border-bottom-width: 2px; border-radius: 6px; background: #fafafa;
}
.search-clear-btn.show + .search-kbd { display: none; }

.search-btn-icon {
    position: relative; flex-shrink: 0; width: 48px; height: 48px; margin-left: 4px;
    display: flex; align-items: center; justify-content: center; border: none; border-radius: 50%; cursor: pointer;
    background: var(--td-gold-grad); color: #fff; box-shadow: 0 6px 16px rgba(201, 150, 42, .45);
    transition: transform .18s ease, background .18s ease, color .18s ease;
}
.search-btn-icon::before {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: var(--td-gold);
    opacity: .5; animation: td-pulse 2.6s ease-out infinite;
}
@keyframes td-pulse { 0% { transform: scale(1); opacity: .5; } 70%, 100% { transform: scale(1.55); opacity: 0; } }
.search-btn-icon:hover { transform: scale(1.07); background: var(--td-ink-grad); color: var(--td-gold); }
.search-btn-icon i { font-size: 16px; }
.search-btn-icon:focus-visible, .search-clear-btn:focus-visible, .search-chip:focus-visible { outline: 2px solid var(--td-gold-dark); outline-offset: 2px; }

/* ---------- selected filter chips inside the bar (multi-filter search) ---------- */
.ai-chips { display: contents; }
.ai-chip {
    display: inline-flex; align-items: center; gap: 6px; max-width: 220px;
    padding: 6px 6px 6px 11px; border-radius: 30px; font-size: 12.5px; font-weight: 600; line-height: 1.2;
    background: var(--td-gold-soft); color: var(--td-ink); border: 1px solid rgba(233, 185, 54, .45);
    animation: td-panel-in .18s ease-out; white-space: nowrap;
}
.ai-chip i.k { font-size: 11px; color: var(--td-gold-dark); }
.ai-chip span { overflow: hidden; text-overflow: ellipsis; }
.ai-chip button {
    display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%;
    background: rgba(17, 17, 17, .08); color: var(--td-ink); font-size: 10px; cursor: pointer;
}
.ai-chip button:hover { background: var(--td-ink); color: var(--td-gold); }
.ai-chip[data-kind="city"]  i.k { color: #2f9e6b; }
.ai-chip[data-kind="state"] i.k { color: #3A6EA5; }

/* ---------- suggestion panel ---------- */
.search-suggestions {
    display: none; position: absolute; top: calc(100% + 14px); left: 0; right: 0; z-index: 999999;
    max-height: 460px; overflow-y: auto; padding-bottom: 4px; text-align: left;
    background: #fff; border: 1px solid var(--td-line); border-top: 3px solid var(--td-gold); border-radius: 18px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .16); animation: td-panel-in .18s ease-out;
    font-family: "Urbanist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@keyframes td-panel-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

.suggestion-group-title {
    display: flex; align-items: center; justify-content: space-between; padding: 13px 20px 7px;
    font-size: 11px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: #9aa0a6;
    background: #fafafa; border-bottom: 1px solid #f3f3f3;
}
.suggestion-group-title button {
    border: none; background: none; padding: 0; font-family: inherit; font-size: 11px; font-weight: 600;
    letter-spacing: .3px; text-transform: none; color: var(--td-gold-dark); cursor: pointer;
}
.suggestion-group-title button:hover { text-decoration: underline; }

.search-suggestion {
    display: flex; align-items: center; gap: 13px; padding: 12px 20px; background: #fff;
    border-bottom: 1px solid #f6f6f6; cursor: pointer; transition: background .15s ease;
}
.search-suggestion:last-child { border-bottom: none; }
.search-suggestion:hover, .search-suggestion.active { background: #fff8e3; }

.suggestion-icon {
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 38px; height: 38px;
    border-radius: 10px; background: var(--td-gold-soft); color: var(--td-gold-dark); transition: transform .18s ease;
}
.search-suggestion:hover .suggestion-icon { transform: scale(1.08) rotate(-4deg); }
.suggestion-icon i { font-size: 14px; }
.search-suggestion[data-type="city"]  .suggestion-icon { background: #eef8f2; color: #2f9e6b; }
.search-suggestion[data-type="state"] .suggestion-icon { background: #eaf1fa; color: #3A6EA5; }
.search-suggestion[data-type="combo"] .suggestion-icon { background: var(--td-ink); color: var(--td-gold); }
.search-suggestion[data-type="category"] .suggestion-icon,
.search-suggestion[data-type="subcategory"] .suggestion-icon { background: #fdf3e6; color: #C98A2B; }
.search-suggestion[data-type="org"]    .suggestion-icon { background: #f1f1f1; color: #5f6368; }
.search-suggestion[data-type="tender"] .suggestion-icon { background: #fdeeee; color: #C0392B; }
.search-suggestion[data-type="recent"] .suggestion-icon { background: #f4f4f4; color: #8a8f94; }

.suggestion-content { flex: 1; min-width: 0; }
.suggestion-title { font-size: 14.5px; font-weight: 600; line-height: 1.4; color: var(--td-ink); white-space: normal; word-break: break-word; }
.suggestion-title mark { padding: 0; background: transparent; color: var(--td-gold-dark); font-weight: 700; }
.suggestion-type { margin-top: 2px; font-size: 11.5px; color: #9aa0a6; }

.suggestion-add {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 20px;
    border: 1px solid rgba(233, 185, 54, .55); background: #fff; color: var(--td-gold-dark);
    font: 600 11.5px/1 "Urbanist", system-ui, sans-serif; cursor: pointer; transition: background .15s, color .15s;
}
.suggestion-add:hover { background: var(--td-ink); color: var(--td-gold); border-color: var(--td-ink); }
.suggestion-arrow { flex-shrink: 0; font-size: 14px; color: #c4c7c9; transition: transform .18s ease, color .18s ease; }
.search-suggestion:hover .suggestion-arrow { transform: translateX(3px); color: var(--td-gold-dark); }

.search-panel-foot {
    position: sticky; bottom: -4px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 16px; background: #fffdf6; border-top: 1px solid #f3ead0; font-size: 12.5px; color: var(--td-muted);
}
.search-panel-foot b { color: var(--td-ink); }
.search-panel-foot button {
    border: 0; border-radius: 30px; padding: 8px 16px; font: 600 12.5px "Urbanist", system-ui, sans-serif;
    background: var(--td-gold-grad); color: #fff; cursor: pointer; white-space: nowrap;
}
.search-panel-foot button:hover { background: var(--td-ink-grad); color: var(--td-gold); }

/* ---------- quick chips ---------- */
.td-hero-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.td-hero-chips-label { width: 100%; margin-bottom: 2px; font-size: 12.5px; color: var(--td-muted); }
.search-chip {
    display: inline-block; padding: 8px 17px; font-size: 13px; font-weight: 500; color: var(--td-ink);
    background: #fff; border: 1px solid rgba(17, 17, 17, .06); border-radius: 30px;
    box-shadow: 0 4px 12px rgba(150, 105, 10, .08); cursor: pointer;
    transition: background .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s;
}
.search-chip:hover { background: var(--td-ink); color: var(--td-gold); border-color: var(--td-ink); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(17, 17, 17, .22); }
.search-chips { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px; padding: 12px 18px 14px; }

.search-loading, .search-no-result { padding: 22px; text-align: center; font-size: 13px; color: #777; }
.search-loading i { margin-right: 6px; color: var(--td-gold-dark); }
.search-no-result i { margin-right: 5px; color: #b0b4b8; }
.search-suggestions::-webkit-scrollbar { width: 5px; }
.search-suggestions::-webkit-scrollbar-track { background: #f7f7f7; }
.search-suggestions::-webkit-scrollbar-thumb { background: #cfd2d4; border-radius: 10px; }

/* coverage row kept under the search (was in the old hero) */
.td-hero .trust { margin-top: 34px; font-family: var(--font, inherit); }

/* ---------- entrance ---------- */
.td-hero-copy > * { animation: td-rise .8s cubic-bezier(.2, .7, .2, 1) backwards; }
.td-hero-copy > *:nth-child(1) { animation-delay: .05s; }
.td-hero-copy > *:nth-child(2) { animation-delay: .15s; }
.td-hero-copy > *:nth-child(3) { animation-delay: .25s; }
.td-hero-copy > *:nth-child(4) { animation-delay: .35s; }
.td-hero-copy > *:nth-child(5) { animation-delay: .45s; }
@keyframes td-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Explore Tenders page: same panel on the page's own search box ---------- */
.tx-search.ai-search-wrap { flex-wrap: nowrap; z-index: 40; }
.tx-search.ai-search-wrap .ai-chips { display: contents; }
.tx-search.ai-search-wrap input { min-width: 140px; }
.tx-search .search-suggestions { top: calc(100% + 10px); }
.tx-search .ai-chip { flex-shrink: 0; }
.tx-relaxed { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: #fff8e3; border: 1px solid #f3e2b0; font-size: .92rem; color: #5d5d5d; }

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
    .td-deco { width: 84px; height: 84px; font-size: 32px; }
    .td-deco svg { width: 36px; height: 36px; }
}
@media (max-width: 991px) {
    .td-hero { padding: 44px 16px 72px; }
    .td-hero p.td-hero-sub { font-size: 14.5px; }
    .search-prefix, .search-kbd { display: none; }
    .google-search-wrap { padding-left: 18px; }
    .td-deco { width: 64px; height: 64px; font-size: 24px; opacity: .75; }
    .td-deco svg { width: 28px; height: 28px; }
    .td-float-icon:nth-child(n+11) { display: none; }
}
@media (max-width: 767px) {
    .td-deco:nth-of-type(n+3) { display: none; }
    .td-hero-bg::after { background-size: 24px 24px; }
    .google-search-wrap { border-radius: 26px; }
    .google-search-wrap::before { border-radius: 26px; }
    .search-suggestions { max-height: 62vh; border-radius: 14px; }
    .search-suggestion { padding: 11px 14px; gap: 10px; }
    .suggestion-add span { display: none; }
    .tx-search.ai-search-wrap { flex-wrap: wrap; }
    .tx-search.ai-search-wrap input { flex-basis: 60%; }
}
@media (prefers-reduced-motion: reduce) {
    .td-hero *, .td-hero *::before, .td-hero *::after,
    .ai-search-wrap *, .tds-modal, .tds-modal * { animation: none !important; transition: none !important; }
}

/* =========================================================
   "GET YOUR FREE SAMPLE" POPUP
========================================================= */
.tds-modal {
    position: fixed; inset: 0; z-index: 2147483000; display: none; align-items: center; justify-content: center;
    padding: 16px; background: rgba(20, 18, 12, .45);
    -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
    font-family: "Urbanist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.tds-modal.open { display: flex; animation: tds-fade .2s ease-out; }
@keyframes tds-fade { from { opacity: 0; } to { opacity: 1; } }
.tds-card {
    position: relative; width: 100%; max-width: 504px; max-height: calc(100vh - 32px); overflow-y: auto;
    padding: 28px 25px 24px; background: #fff; border-radius: 16px; color: #1d2330;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28); animation: tds-pop .25s cubic-bezier(.2, .7, .2, 1);
}
@keyframes tds-pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.tds-close {
    position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; display: grid; place-items: center;
    border: 0; border-radius: 50%; background: transparent; color: #222; font-size: 16px; cursor: pointer;
}
.tds-close:hover { background: #f3f3f3; }
.tds-card h2 { margin: 0 34px 8px 0; font-size: 21px; line-height: 1.3; font-weight: 700; color: #1d2330; letter-spacing: -.01em; }
.tds-card .tds-sub { margin: 0 0 18px; font-size: 14px; line-height: 1.55; color: #5f6470; }
.tds-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.tds-field { margin-bottom: 16px; min-width: 0; }
.tds-field.full { grid-column: 1 / -1; }
.tds-field label { display: block; margin-bottom: 7px; font-size: 13.5px; font-weight: 600; color: #1d2330; }
.tds-field label .req { color: #e5484d; margin-left: 2px; }
.tds-field label .opt { font-weight: 400; color: #8a8f99; }
.tds-field input, .tds-field select, .tds-field textarea {
    width: 100%; height: 38px; padding: 0 11px; border: 1px solid #d5d9e0; border-radius: 8px; background: #fff;
    font: 400 14px "Urbanist", system-ui, sans-serif; color: #1d2330; outline: none; transition: border-color .15s, box-shadow .15s;
}
.tds-field select { padding-right: 34px; -webkit-appearance: none; appearance: none; cursor: pointer;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; }
.tds-field textarea { height: 58px; padding: 9px 11px; resize: vertical; }
.tds-field input::placeholder, .tds-field textarea::placeholder { color: #a3a8b1; }
.tds-field input:focus, .tds-field select:focus, .tds-field textarea:focus { border-color: var(--td-gold); box-shadow: 0 0 0 3px rgba(233, 185, 54, .2); }
.tds-field.err input, .tds-field.err select, .tds-field.err textarea { border-color: #e5484d; }
.tds-field .tds-msg { display: none; margin-top: 4px; font-size: 12px; color: #e5484d; }
.tds-field.err .tds-msg { display: block; }
.tds-captcha { display: flex; align-items: center; gap: 12px; }
.tds-code {
    min-width: 68px; height: 38px; padding: 0 12px; display: grid; place-items: center; border-radius: 8px;
    background: #f1f3f7; border: 1px dashed #c9ced8; font: 700 16px/1 "Urbanist", monospace; letter-spacing: 3px; color: #1d2330;
    user-select: none;
}
.tds-refresh { border: 0; background: none; padding: 4px; cursor: pointer; color: #333; font-size: 15px; border-radius: 6px; }
.tds-refresh:hover { color: var(--td-gold-dark); }
.tds-refresh.spin i { animation: tds-spin .6s linear; }
@keyframes tds-spin { to { transform: rotate(360deg); } }
.tds-terms { margin: 4px 0 12px; font-size: 12.5px; line-height: 1.45; color: #4d525c; }
.tds-terms a { color: #1d2330; font-weight: 700; text-decoration: none; }
.tds-terms a:hover { text-decoration: underline; }
.tds-submit {
    width: 100%; height: 40px; border: 0; border-radius: 8px; cursor: pointer;
    background: var(--td-gold-grad); color: #161616; font: 600 15px "Urbanist", system-ui, sans-serif;
    box-shadow: 0 8px 20px -8px rgba(201, 150, 42, .75); transition: background .18s, color .18s, transform .18s;
}
.tds-submit:hover { background: var(--td-ink-grad); color: var(--td-gold); }
.tds-submit:disabled { opacity: .7; cursor: default; }
.tds-alert { display: none; margin: 0 0 12px; padding: 9px 12px; border-radius: 8px; font-size: 13px; }
.tds-alert.show { display: block; }
.tds-alert.bad { background: #fdecec; color: #a3242a; border: 1px solid #f6cacc; }
.tds-done { display: none; text-align: center; padding: 18px 6px 6px; }
.tds-done i { font-size: 42px; color: #2f9e6b; }
.tds-done h2 { margin: 12px 0 6px; }
.tds-done p { color: #5f6470; font-size: 14px; margin: 0 0 16px; }
.tds-card.is-done form, .tds-card.is-done > h2, .tds-card.is-done > .tds-sub { display: none; }
.tds-card.is-done .tds-done { display: block; }
.tds-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
body.tds-lock { overflow: hidden; }
@media (max-width: 560px) {
    .tds-card { padding: 22px 18px 18px; border-radius: 14px; }
    .tds-grid { grid-template-columns: 1fr; }
    .tds-card h2 { font-size: 19px; }
}

/* =========================================================
   HERO (home) — matches reference: left copy, right building,
   gold triangle, compact stats strip. No extra spacing.
========================================================= */
.td-hero{ text-align:left; padding:30px 0 26px; }

/* grid + glows stay behind the building image */
.td-hero .hero-grid,
.td-hero .glow{ z-index:0; }

.td-hero-copy{ width:min(1280px,100% - 40px); max-width:1280px; margin:0 auto; }
.td-hero-copy > *{ max-width:700px; }

.td-hero-badge{ background:#fff; margin:0 0 14px; padding:7px 16px; }

/* headline: 2 lines on desktop */
.td-hero .td-hero-copy > h1{
  font-family:var(--font,"Urbanist",system-ui,sans-serif);
  font-size:clamp(2rem,2.95vw,2.85rem);
  line-height:1.14; letter-spacing:-.025em;
  max-width:820px; margin:0 0 10px;
}
.td-hero p.td-hero-sub{ margin:0 0 18px; max-width:540px; font-size:15px; line-height:1.55; }

.search-style-2{ margin:0; max-width:700px; }

/* chips + coverage row: centred under the search bar like the reference */
.td-hero-chips{ justify-content:center; align-items:center; margin-top:14px; gap:8px; max-width:700px; }
.td-hero-chips-label{ width:100%; margin:0 0 2px; text-align:center; font-size:12px; }
.search-chip{ padding:7px 15px; font-size:12.5px; }
.td-hero .trust{ justify-content:center; margin-top:16px; gap:8px 30px; max-width:820px; font-size:.9rem; }

/* right-side building image */
.td-hero-art{
  position:absolute; top:0; right:0; bottom:128px; width:46%;
  z-index:1; overflow:hidden; pointer-events:none;
}
.td-hero-art img{
  width:100%; height:100%; max-width:none;
  object-fit:cover; object-position:center 32%;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 34%),linear-gradient(180deg,#000 80%,transparent 100%);
  -webkit-mask-composite:source-in;
          mask-image:linear-gradient(90deg,transparent 0,#000 34%),linear-gradient(180deg,#000 80%,transparent 100%);
          mask-composite:intersect;
}
/* gold triangle (soft big one + solid small one) */
.td-hero-tri{
  position:absolute; right:0; bottom:0; width:230px; height:300px;
  background:linear-gradient(135deg,#f7d466,#e9b936 55%,#c9962a);
  clip-path:polygon(100% 0,100% 100%,0 100%); opacity:.28;
}
.td-hero-tri::after{
  content:""; position:absolute; right:0; bottom:0; width:90px; height:130px;
  background:linear-gradient(135deg,#f7d466,#e9b936 55%,#c9962a);
  clip-path:polygon(100% 0,100% 100%,0 100%); opacity:.95;
}

/* stats strip */
.td-stats{
  position:relative; z-index:5; width:min(1280px,100% - 40px); margin:22px auto 0;
  display:grid; grid-template-columns:repeat(5,1fr);
  background:#fff; border:1px solid var(--line,#ece7da); border-radius:16px;
  box-shadow:0 14px 34px -20px rgba(150,105,10,.35); padding:14px 6px; text-align:left;
}
.td-stat{ display:flex; align-items:center; gap:14px; padding:4px 22px; min-width:0; }
.td-stat + .td-stat{ border-left:1px solid var(--line,#ece7da); }
.td-stat > i{ font-size:28px; color:var(--td-gold-deep); flex:none; }
.td-stat b{ display:block; font-size:1.35rem; font-weight:800; line-height:1.1; color:var(--td-ink); }
.td-stat span{ font-size:.82rem; color:var(--td-muted); line-height:1.3; }

@media (max-width:1199px){
  .td-hero-art{ width:42%; bottom:120px; }
  .td-stat{ padding:4px 12px; gap:10px; }
  .td-stat > i{ font-size:24px; }
  .td-stat b{ font-size:1.15rem; }
}
@media (max-width:1100px){
  .td-stats{ grid-template-columns:repeat(3,1fr); row-gap:14px; }
  .td-stat:nth-child(4){ border-left:0; }
  .td-hero-art{ bottom:170px; }
}
@media (max-width:991px){
  .td-hero{ padding:26px 0 24px; }
  .td-hero-art{ width:100%; bottom:0; opacity:.13; }
  .td-hero-art img{ object-position:center; -webkit-mask-image:none; mask-image:none; }
  .td-hero-tri{ display:none; }
  .td-hero-copy > *{ max-width:100%; }
  .td-hero .td-hero-copy > h1{ font-size:clamp(1.8rem,6vw,2.5rem); }
  .td-hero-chips, .td-hero .trust{ justify-content:flex-start; }
  .td-hero-chips-label{ text-align:left; }
}
@media (max-width:640px){
  .td-hero .td-hero-copy > h1 br{ display:none; }
  .td-stats{ grid-template-columns:1fr 1fr; padding:10px 4px; margin-top:20px; }
  .td-stat{ padding:8px 12px; gap:10px; }
  .td-stat + .td-stat{ border-left:0; }
  .td-stat:nth-child(even){ border-left:1px solid var(--line,#ece7da); }
  .td-stat:last-child{ grid-column:1 / -1; border-left:0; }
  .td-stat > i{ font-size:22px; }
  .td-stat b{ font-size:1.05rem; }
}


/* ==========================================
   TENDERDIARY HERO IMAGE - SHARPNESS FIX
   Add at the VERY END of ai-search.css
========================================== */

/* Remove blur and filters from image container */
.td-hero .td-hero-art {
    position: absolute;
    z-index: 2 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-filter: none !important;
    opacity: 1 !important;
    overflow: visible !important;
}

/* Remove unwanted overlays */
.td-hero .td-hero-art::before,
.td-hero .td-hero-art::after {
    content: none !important;
    display: none !important;
    filter: none !important;
}

/* Make building image clear */
.td-hero .td-hero-art img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;

    opacity: 1 !important;

    filter: none !important;
    -webkit-filter: none !important;

    backdrop-filter: none !important;
    mix-blend-mode: normal !important;

    image-rendering: auto !important;

    transform: none !important;

    /* Remove previous fading mask */
    -webkit-mask-image: none !important;
    mask-image: none !important;

    object-fit: contain !important;
}

/* Remove blur from parent elements */
.td-hero,
.td-hero .td-hero-art,
.td-hero .td-hero-art img {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

/* Keep text readable */
.td-hero .td-hero-copy {
    position: relative;
    z-index: 3 !important;
}

.td-hero .td-stats {
    position: relative;
    z-index: 3 !important;
}


/* =========================================================
   RESPONSIVE FIX: mobile + tablet (add at the VERY END of ai-search.css)
   The "sharpness fix" above forces the building image to full
   opacity everywhere, so on phones/tablets it covered the
   search chips and coverage row. Hide it below 992px.
========================================================= */

/* stop the hero glow from making the page scroll sideways */
.td-hero{ overflow-x:clip; }
.td-hero .g2{ right:0; }

/* tablet + mobile */
@media (max-width:991px){
  .td-hero .td-hero-art,
  .td-hero .td-hero-tri{ display:none !important; }
  .td-hero .glow{ display:none; }
  .td-hero-copy{ width:calc(100% - 32px); }
  .td-stats{ width:calc(100% - 32px); }
  .td-hero-chips, .td-hero .trust{ max-width:100%; }
}

/* mobile */
@media (max-width:640px){
  .td-hero{ padding:18px 0 20px; }
  .td-hero-badge{ font-size:10.5px; padding:6px 12px; margin-bottom:12px; }
  .td-hero .td-hero-copy > h1{ font-size:clamp(1.6rem,7.4vw,2.1rem); line-height:1.18; }
  .td-hero p.td-hero-sub{ font-size:14px; margin-bottom:14px; }
  .google-search-wrap{ padding:5px 6px 5px 16px; }
  .google-search-wrap input{ padding:11px 4px; font-size:15px; }
  .search-btn-icon{ width:42px; height:42px; }
  .td-hero-chips{ gap:6px; margin-top:12px; }
  .search-chip{ padding:6px 12px; font-size:12px; }
  .td-hero .trust{ gap:6px 16px; margin-top:14px; font-size:.84rem; }
  .td-stat b{ font-size:1rem; }
  .td-stat span{ display:block; font-size:.76rem; line-height:1.35; }

  /* smaller floating WhatsApp / mail / call buttons so they cover less content */
  .float{ left:10px; bottom:10px; gap:6px; }
  .float a, .totop{ width:36px; height:36px; }
  .float a .i, .totop .i{ width:17px; height:17px; }
  .totop{ right:10px; bottom:10px; }
}
/* ---------- centre "Try searching" chips, coverage row and stat cards on tablet + mobile ---------- */
@media (max-width:991px){
  .td-hero-chips{ justify-content:center !important; margin-left:auto; margin-right:auto; }
  .td-hero-chips-label{ text-align:center !important; }
  .td-hero .trust{ justify-content:center !important; margin-left:auto; margin-right:auto; }
  .td-stat{ justify-content:center; text-align:center; }
}