.search-hero {
    text-align: center;
    margin: 20px 0 16px;
}

.search-hero h1 {
    font-size: 30px;
    margin-bottom: 6px;
}

.search-hero p {
    color: #64748b;
}

.search-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(15,23,42,0.08);
    border: 1px solid #e2e8f0;
    max-width: 900px;
    margin: 0 auto;
}

.search-section-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
}

.search-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-row {
    display: flex;
    flex-direction: column;
}

.search-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 20px 0;
}

.search-btn {
    width: 100%;
    border-radius: 14px;
    padding: 16px;
    font-weight: bold;
    background: #2563eb;
    color: #fff;
    border: none;
    cursor: pointer;
}

.search-btn:hover {
    background: #1d4ed8;
}

.quick-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.quick-chip {
    padding: 8px 12px;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.quick-chip:hover {
    background: #e2e8f0;
}

.location-helper-card {
    grid-column: 1 / -1;
    background: #f8fafc;
    border-radius: 14px;
    padding: 14px;
    border: 1px solid #e2e8f0;
}

.location-helper-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.location-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
}

.location-status {
    font-size: 13px;
    color: #64748b;
    margin-top: 6px;
}

@media (max-width: 768px) {
    .search-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   FIND DENTIST FINAL POLISH
========================= */

.search-hero-premium {
    max-width: 860px;
    margin: 28px auto 18px;
    padding: 28px 32px;
    text-align: center;
    border-radius: 28px;
    background: radial-gradient(circle at top, rgba(59,130,246,0.16), transparent 55%),
                linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e2e8f0;
    box-shadow: 0 18px 42px rgba(15,23,42,0.08);
}

.search-hero-badge {
    display: inline-flex;
    padding: 6px 14px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 12px;
    font-weight: 800;
}

.search-hero-premium h1 {
    margin: 10px 0 8px;
    font-size: 34px;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.search-hero-premium p {
    margin: 0;
    color: #64748b;
}

.search-card-premium {
    max-width: 860px;
    margin: 0 auto 40px;
    padding: 24px;
    border-radius: 28px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 18px 44px rgba(15,23,42,0.08);
}

.urgent-banner-premium {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: 18px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
}

.urgent-banner-content strong {
    display: block;
    color: #7c2d12;
}

.urgent-banner-content span {
    color: #9a3412;
}

.search-grid {
    gap: 16px;
}

.search-divider {
    margin: 22px 0;
}

.form-row input,
.form-row select,
.form-row textarea {
    background: #fff;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
}

.quick-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 8px 0 12px;
}

.quick-chip {
    width: auto;
    min-height: 36px;
    margin: 0;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #dbe3ef;
    color: #334155 !important;
    font-size: 13px;
    font-weight: 800;
    box-shadow: none;
}

.quick-chip:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8 !important;
    transform: translateY(-1px);
}

.quick-chip.active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-color: #2563eb;
    color: #fff !important;
}

.location-helper-card {
    background: #f8fafc;
    border: 1px solid #dbe3ef;
    border-radius: 18px;
    padding: 16px;
}

.location-btn {
    width: auto;
    margin: 0;
    padding: 10px 14px;
    border-radius: 12px;
    background: #2563eb;
    color: #fff;
    font-weight: 800;
}

.search-btn-premium {
    margin-top: 14px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-weight: 900;
    box-shadow: 0 14px 30px rgba(37,99,235,0.22);
}
/* =========================
   V27 PATIENT FLOW SIMPLICITY + LOADING
========================= */
.search-hero-premium {
    max-width: 760px;
}

.search-hero-premium h1 {
    font-size: 40px;
}

.urgent-banner-premium {
    display: none;
}

.search-section-title {
    margin-top: 4px;
    font-size: 16px;
    letter-spacing: -0.01em;
}

.quick-chip {
    min-height: 42px;
    padding: 10px 16px;
    box-shadow: 0 8px 18px rgba(15,23,42,.04);
}

.quick-chip.active {
    background: linear-gradient(135deg,#2563eb,#1d4ed8) !important;
    color: #fff !important;
    border-color: #2563eb !important;
    box-shadow: 0 12px 26px rgba(37,99,235,.18);
}

.search-btn-premium.is-loading {
    position: relative;
    opacity: .88;
    cursor: wait;
}

.search-btn-premium.is-loading::after {
    content: "";
    width: 18px;
    height: 18px;
    margin-left: 10px;
    border-radius: 999px;
    border: 2px solid rgba(255,255,255,.45);
    border-top-color: #fff;
    display: inline-block;
    animation: dentnowSpin .75s linear infinite;
}

body.is-searching-dentist .search-card-premium {
    position: relative;
    overflow: hidden;
}

body.is-searching-dentist .search-card-premium::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.42), transparent);
    transform: translateX(-100%);
    animation: dentnowShimmer 1.15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes dentnowSpin { to { transform: rotate(360deg); } }
@keyframes dentnowShimmer { to { transform: translateX(100%); } }

@media (max-width: 768px) {
    .search-hero-premium {
        margin-top: 18px;
        padding: 24px 18px;
        border-radius: 26px;
    }

    .search-hero-premium h1 {
        font-size: 32px;
        line-height: 1.08;
    }

    .search-card-premium {
        padding: 18px;
        border-radius: 26px;
        margin-bottom: 110px;
    }

    .quick-chip {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
        text-align: center;
    }

    .search-btn-premium {
        position: sticky;
        bottom: 16px;
        z-index: 20;
        box-shadow: 0 18px 40px rgba(37,99,235,.28);
    }
}

/* =========================
   V28 PATIENT FLOW: SIMPLE + APP-LIKE
========================= */

.search-hero-premium {
    max-width: 880px;
}

.search-hero-premium h1 {
    font-size: clamp(34px, 5vw, 58px);
    letter-spacing: -0.055em;
}

.search-card-premium {
    position: relative;
}

.search-section-title {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 900;
    font-size: 13px;
    margin-bottom: 14px;
}

.quick-chips {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.quick-chip {
    min-height: 48px;
    white-space: normal;
    line-height: 1.15;
    border-radius: 16px !important;
    background: #ffffff !important;
    border: 1px solid #dbeafe !important;
    box-shadow: 0 8px 18px rgba(15,23,42,0.04) !important;
}

.quick-chip.active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: #fff !important;
    border-color: #2563eb !important;
    box-shadow: 0 12px 26px rgba(37,99,235,0.20) !important;
}

.form-row input,
.form-row select,
.form-row textarea {
    min-height: 52px;
    font-size: 16px;
}

.search-btn-premium {
    position: sticky;
    bottom: 14px;
    z-index: 20;
}

.search-btn-premium.is-loading .btn-label {
    opacity: .72;
}

.search-btn-premium .btn-spinner {
    display: none;
    width: 18px;
    height: 18px;
    margin-left: 10px;
    border-radius: 999px;
    border: 2px solid rgba(255,255,255,.55);
    border-top-color: #fff;
    animation: dentnowSpin .7s linear infinite;
}

.search-btn-premium.is-loading .btn-spinner {
    display: inline-block;
}

@keyframes dentnowSpin {
    to { transform: rotate(360deg); }
}

.patient-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15,23,42,0.42);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.patient-search-overlay-card {
    width: min(440px, 100%);
    padding: 28px;
    border-radius: 28px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 28px 80px rgba(15,23,42,0.26);
    text-align: center;
}

.patient-search-overlay-card h3 {
    margin: 14px 0 8px;
    font-size: 24px;
    color: #0f172a;
    letter-spacing: -0.03em;
}

.patient-search-overlay-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.65;
}

.search-pulse-dot {
    width: 54px;
    height: 54px;
    margin: 0 auto;
    border-radius: 999px;
    background: #2563eb;
    box-shadow: 0 0 0 0 rgba(37,99,235,.35);
    animation: dentnowPulse 1.35s infinite;
}

@keyframes dentnowPulse {
    0% { box-shadow: 0 0 0 0 rgba(37,99,235,.38); }
    70% { box-shadow: 0 0 0 24px rgba(37,99,235,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); }
}

.search-skeleton-list {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.search-skeleton-list span {
    display: block;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, #eef2f7 0%, #f8fafc 45%, #eef2f7 100%);
    background-size: 220% 100%;
    animation: dentnowShimmer 1.1s linear infinite;
}

.search-skeleton-list span:nth-child(2) { width: 84%; margin: 0 auto; }
.search-skeleton-list span:nth-child(3) { width: 62%; margin: 0 auto; }

@keyframes dentnowShimmer {
    to { background-position: -220% 0; }
}

@media (max-width: 760px) {
    .quick-chips {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .search-card-premium {
        padding: 18px;
        border-radius: 26px;
    }

    .urgent-banner-premium {
        align-items: flex-start;
    }

    .search-btn-premium {
        bottom: 10px;
        min-height: 58px;
        border-radius: 18px;
    }
}
/* =========================================
   Recovery Stepper Fix
========================================= */

.v29-search-stepper{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    margin:10px 0 34px;
    flex-wrap:wrap;
}

.v29-step{
    flex:1;
    min-width:120px;
    position:relative;
    background:#f8fafc;
    border:1px solid #e2e8f0;
    border-radius:18px;
    padding:16px 18px;
    display:flex;
    align-items:center;
    gap:14px;
    transition:.25s ease;
}

.v29-step span{
    width:38px;
    height:38px;
    min-width:38px;
    border-radius:50%;
    background:#dbeafe;
    color:#2563eb;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:900;
    font-size:15px;
}

.v29-step strong{
    display:block;
    font-size:15px;
    color:#0f172a;
    font-weight:800;
    line-height:1.2;
}

.v29-step.active{
    background:linear-gradient(135deg,#2563eb 0%,#1d4ed8 100%);
    border-color:#2563eb;
    box-shadow:0 12px 30px rgba(37,99,235,.18);
}

.v29-step.active span{
    background:#fff;
    color:#2563eb;
}

.v29-step.active strong{
    color:#fff;
}

@media (max-width:768px){

    .v29-search-stepper{
        flex-direction:column;
        align-items:stretch;
    }

    .v29-step{
        width:100%;
    }
}