/* ISP Lookup v5 — HighSpeedInternet-style UI */
*, *::before, *::after { box-sizing: border-box; }

/* ════════════════════════════════════════════════════
   SEARCH WIDGET — bare minimum, Elementor-friendly
   ════════════════════════════════════════════════════ */

.isp-search-wrap { font-family: inherit; }

.isp-zip-field {
    padding: 13px 18px;
    border: 2px solid #D1D5DB;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    color: #111827;
    outline: none;
    transition: border-color .2s;
    letter-spacing: 2px;
    width: 100%;
}
.isp-zip-field:focus { border-color: #1d4ed8; }
.isp-zip-field::placeholder { color: #9CA3AF; letter-spacing: 0; font-weight: 400; }

.isp-search-btn {
    padding: 13px 28px;
    background: #1d4ed8;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s;
    white-space: nowrap;
}
.isp-search-btn:hover    { background: #1e40af; }
.isp-search-btn:disabled { background: #9CA3AF; cursor: not-allowed; }
.isp-btn-sm { padding: 11px 20px !important; font-size: .88rem !important; }
.isp-zip-sm { max-width: 200px; }

.isp-search-msg { font-size: .82rem; color: #DC2626; margin-top: 6px; display: none; }

/* ════════════════════════════════════════════════════
   RESULTS WRAPPER
   ════════════════════════════════════════════════════ */

.isp-results-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px 60px;
}

/* Rebar */
.isp-rebar {
    display: flex; gap: 10px; align-items: center;
    background: #0f172a; border-radius: 12px;
    padding: 16px 22px; margin-bottom: 0; flex-wrap: wrap;
}
.isp-rebar .isp-zip-field { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #fff; max-width: 200px; }
.isp-rebar .isp-zip-field::placeholder { color: rgba(255,255,255,.4); }
.isp-rebar .isp-zip-field:focus { border-color: #60A5FA; background: rgba(255,255,255,.15); }
.isp-rebar .isp-search-btn { background: #F97316; }
.isp-rebar .isp-search-btn:hover { background: #ea6c0d; }

/* Hero */
.isp-hero {
    display: flex; align-items: center; gap: 20px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    padding: 32px 28px; color: #fff;
}
.isp-hero-icon {
    width: 56px; height: 56px; border-radius: 50%;
    background: rgba(255,255,255,.1); border: 2px solid rgba(255,255,255,.25);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; flex-shrink: 0;
}
.isp-hero-label { color: rgba(255,255,255,.7); font-size: .85rem; margin: 0 0 4px; }
.isp-hero-city  { color: #fff; font-size: clamp(1.5rem,3vw,2.2rem); font-weight: 800; margin: 0; letter-spacing: -.02em; }

/* Tabs */
.isp-tabs-bar {
    display: flex; align-items: center;
    border-bottom: 2px solid #E5E7EB;
    background: #fff; padding: 0 4px; margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    position: sticky; top: 0; z-index: 10;
}
.isp-tab {
    padding: 14px 24px; background: none; border: none;
    font-size: .95rem; font-weight: 600; color: #6B7280;
    cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px;
    transition: color .15s, border-color .15s;
}
.isp-tab:hover  { color: #1d4ed8; }
.isp-tab.active { color: #1d4ed8; border-bottom-color: #1d4ed8; }
.isp-tabs-sort  { margin-left: auto; font-size: .82rem; color: #9CA3AF; padding-right: 8px; }

.isp-panel { display: none; }
.isp-panel.active { display: block; }

/* ════════════════════════════════════════════════════
   PROVIDER ROW CARDS
   ════════════════════════════════════════════════════ */

.isp-row-card {
    background: #fff; border: 1px solid #E5E7EB; border-radius: 12px;
    margin-bottom: 16px; display: flex; align-items: stretch; overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    transition: box-shadow .2s, transform .15s;
}
.isp-row-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.1); transform: translateY(-2px); }
.isp-row-card--top  { border: 2px solid #1d4ed8; }
.isp-row-card--top .isp-row-logo { background: #F0F6FF; }

/* Logo column */
.isp-row-logo {
    width: 180px; min-width: 180px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 8px; padding: 20px 14px; background: #FAFAFA;
    border-right: 1px solid #F3F4F6; text-align: center;
}
.isp-logo-circle {
    width: 58px; height: 58px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; font-weight: 800; letter-spacing: -.03em;
}
.isp-logo-name { font-size: .78rem; font-weight: 700; color: #374151; line-height: 1.2; word-break: break-word; }
.isp-top-badge {
    font-size: .65rem; font-weight: 700; background: #1d4ed8; color: #fff;
    padding: 2px 8px; border-radius: 20px; text-transform: uppercase; letter-spacing: .04em;
}

/* Details columns */
.isp-row-details {
    flex: 1; display: flex; align-items: center;
    padding: 20px 8px; flex-wrap: wrap;
}
.isp-row-detail-item {
    display: flex; flex-direction: column; gap: 3px;
    min-width: 110px; padding: 0 14px;
    border-right: 1px solid #F3F4F6;
}
.isp-row-detail-item:last-child { border-right: none; }
.isp-detail-label {
    font-size: .68rem; font-weight: 600; color: #9CA3AF;
    text-transform: uppercase; letter-spacing: .05em;
}
.isp-detail-val { font-size: .88rem; font-weight: 600; color: #111827; display: flex; align-items: center; gap: 4px; }
.isp-detail-speed { font-size: 1.2rem; font-weight: 800; color: #0f172a; }
.isp-type-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.isp-avail { color: #059669; }
.isp-avail-check { font-weight: 800; }

.isp-gen-tag { font-size: .68rem; font-weight: 800; padding: 2px 9px; border-radius: 20px; text-transform: uppercase; letter-spacing: .05em; }
.isp-gen-tag-5g { background: #FEF9C3; color: #713F12; }
.isp-gen-tag-4g { background: #DBEAFE; color: #1E40AF; }

/* CTA column */
.isp-row-cta {
    min-width: 155px; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 8px; padding: 20px 16px;
    border-left: 1px solid #F3F4F6; background: #FAFAFA;
}
.isp-cta-btn {
    display: inline-block; padding: 11px 20px;
    color: #fff !important; font-size: .86rem; font-weight: 700;
    border-radius: 8px; text-decoration: none !important;
    white-space: nowrap; transition: opacity .2s, transform .1s;
    text-align: center; width: 100%;
}
.isp-cta-btn:hover { opacity: .88; transform: scale(.98); }
.isp-cta-note { font-size: .7rem; color: #9CA3AF; text-align: center; margin: 0; line-height: 1.3; }

/* Notices */
.isp-notice { border-radius: 10px; padding: 12px 16px; font-size: .84rem; margin-bottom: 20px; }
.isp-notice--warn { background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; }
.isp-notice--warn a { color: #92400E; text-decoration: underline; }

/* Loading */
.isp-loading { text-align: center; padding: 56px 20px; color: #6B7280; }
.isp-spinner {
    width: 44px; height: 44px; border: 4px solid #E5E7EB;
    border-top-color: #1d4ed8; border-radius: 50%;
    animation: isp-spin .7s linear infinite; margin: 0 auto 16px;
}
@keyframes isp-spin { to { transform: rotate(360deg); } }

/* Empty / Error */
.isp-empty {
    background: #F8FAFC; border: 1.5px dashed #CBD5E1;
    border-radius: 12px; padding: 44px 24px; text-align: center; color: #94A3B8;
}
.isp-empty strong { display: block; font-size: 1rem; color: #475569; margin-bottom: 6px; }
.isp-error-box { background: #FEF2F2; border: 1.5px solid #FECACA; border-radius: 12px; padding: 22px; color: #991B1B; }
.isp-error-box strong { display: block; margin-bottom: 6px; }

/* Footer */
.isp-footer { text-align: center; font-size: .74rem; color: #CBD5E1; margin-top: 28px; padding-top: 16px; border-top: 1px solid #F1F5F9; }
.isp-footer a { color: #94A3B8; text-decoration: underline; }

/* ════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════ */
@media (max-width: 700px) {
    .isp-row-card { flex-direction: column; }
    .isp-row-logo { width: 100%; min-width: 0; flex-direction: row; justify-content: flex-start; border-right: none; border-bottom: 1px solid #F3F4F6; padding: 14px 16px; }
    .isp-row-details { padding: 12px 8px; }
    .isp-row-detail-item { min-width: 90px; padding: 0 10px; }
    .isp-row-cta { border-left: none; border-top: 1px solid #F3F4F6; width: 100%; flex-direction: row; padding: 12px 16px; }
    .isp-cta-btn { width: auto; }
    .isp-hero { padding: 22px 16px; }
    .isp-rebar { flex-direction: column; align-items: stretch; }
    .isp-rebar .isp-zip-sm { max-width: 100%; }
}
@media (max-width: 480px) {
    .isp-row-details { flex-direction: column; }
    .isp-row-detail-item { border-right: none; border-bottom: 1px solid #F9FAFB; padding: 6px 0; min-width: 0; }
    .isp-row-detail-item:last-child { border-bottom: none; }
}
