/* Consultant Cards v5.0 — 2-column grid, matches landing page */

.dc-grid, .dc-grid *, .dc-grid *::before, .dc-grid *::after,
.dc-modal, .dc-modal *, .dc-modal *::before, .dc-modal *::after { box-sizing: border-box; }

/* ─── 2-col Grid ─── */
.dc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; width: 100%; }
.dc-section-heading { font-size: 1.4rem; font-weight: 700; color: #1a2e3d; margin-bottom: 1.2rem; }
.dc-section-count { color: #f55662; font-weight: 800; margin-right: .15em; }

/* Responsive helpers */
.dc-grid .desktoponly { display: block; }
.dc-grid .mobileonly  { display: none !important; }

/* ═══ CARD ═══ */
.dc-card { background: #e9f5f8; border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.dc-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.08); transform: translateY(-2px); }

/* ── TOP ── */
.dc-top { display: flex; gap: 0; padding: 30px 30px 30px; align-items: flex-start; }
.dc-photo-col { display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0; }
.dc-photo-wrap { position: relative; display: inline-block; cursor: default; }
.dc-photo-wrap.dc-has-video { cursor: pointer; }
.dc-photo-wrap img {
    border-radius: 100%;
    aspect-ratio: 1 / 1;
    max-width: 140px;
}
.dc-photo { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; display: block; }
.dc-video-icon { position: absolute; top: 0; left: 0; cursor: pointer; filter: drop-shadow(0 2px 4px rgba(0,0,0,.2)); transition: transform .15s; }
.dc-photo-wrap:hover .dc-video-icon { transform: scale(1.1); }

/* Desktop VIEW PROFILE — text link under photo */
.dc-view-profile--desk { font-size: 10px; font-weight: 700; color: #00587e; text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.dc-view-profile--desk:hover { color: #f55662; }

/* Mobile VIEW PROFILE — white bg button */
.dc-view-profile--mob { display: inline-block; padding: 2px 10px; background: #fff; border: 1.5px solid #C6E0E7; border-radius: 9px; font-size: 13px; font-weight: 700; color: #00587e; text-decoration: none; margin-top: 10px; transition: all .2s;
}
.dc-view-profile--mob:hover { border-color: #00587e; }

/* Mobile header (photo + name side by side) */
.dc-mob-header { display: flex; flex-direction: column; }
.dc-mob-name-block { }

/* Name + meta */
.dc-name-col { flex: 1; min-width: 0; padding-left: 16px; }
.dc-grid .dc-info-top { display: flex; justify-content: space-between; gap: 10px; }
.dc-name { font-size: 17px; font-weight: 600; color: #00587e; line-height: 1.25; margin: 0; }
.dc-specialty, .dc-degree { font-size: 12px; color: #00587e; font-weight: 500; margin: 2px 0 0; line-height: 1.4; }
.dc-exp { flex-shrink: 0; font-size: 13px; font-weight: 700; color: #00587e; white-space: nowrap; }

/* ── TABS ── */
.dc-tabs-inline { margin-top: 14px; }
.dc-tab-btns { display: flex; gap: 8px; margin-bottom: 10px; }
.dc-tab-btn {
    padding: 5px 11px;
    border: 1px solid #C6E0E7;
    border-radius: 10px;
    background: unset;
    font-size: 13px;
    font-weight: 500;
    color: #749dae;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.dc-read-toggle {
  color: #f55662;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  margin-left: 2px;
}
.dc-read-toggle:hover {
  text-decoration: underline;
}
.dc-tab-btn:hover { border-color: #00587e; }
.dc-tab-btn.active { background: #fff; color: #00587e; border-color: #00587e; }
.dc-tab-content { display: none; font-size: 13px; color: #00587e; line-height: 1.3; min-height: 60px; }
.dc-tab-content.active { display: block; }
.dc-tab-content strong { font-weight: 700; color: #00587e; }

/* Price + Experience row */
.dc-price-exp { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.dc-price-row { display: flex; align-items: baseline; gap: 8px; }
.dc-price { font-size: 17px; font-weight: 700; color: #f55662; }
.dc-price-per { font-size: 13px; color: #00587e; }

/* ── BOTTOM: booking strip ── */
.dc-bottom { background: #d4eaf2; padding: 16px 24px 20px; margin-top: auto; border-radius: 0 0 24px 24px; }
.dc-booking-cols { display: flex; gap: 12px; }
.dc-col { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.dc-col-label { display: flex; align-items: center; gap: 2px; min-height: 28px; font-size: 13px; font-weight: 500; color: #00587e; justify-content: center; }

/* Location popup trigger */
.dc-loc-trigger { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; font-weight: 500; color: #00587e; user-select: none; position: relative; transition: color .2s; }
.dc-loc-trigger svg { flex-shrink: 0; transition: transform .2s; }
.dc-loc-trigger.open svg { transform: rotate(180deg); }
.dc-loc-selected { font-weight: 600; color: inherit; }

/* Shake error state — "Choose Location" turns red */
.dc-loc-trigger.error { color: #d94040; }
.dc-loc-trigger.error .dc-loc-selected { color: #d94040; }
.dc-loc-trigger.error svg { stroke: #d94040; }
.dc-loc-trigger.shake { animation: dcShake .4s ease; }
@keyframes dcShake { 0%,100%{transform:translateX(0)} 15%{transform:translateX(-6px)} 30%{transform:translateX(6px)} 45%{transform:translateX(-4px)} 60%{transform:translateX(4px)} 75%{transform:translateX(-2px)} 90%{transform:translateX(2px)} }

/* Popup */
.dc-loc-popup-wrap { position: relative; }
.dc-loc-popup { display: none; position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: #fff; border-radius: 12px; box-shadow: 0 6px 24px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.06); padding: 14px 18px; z-index: 50; min-width: 200px; white-space: nowrap; }
.dc-loc-popup.open { display: block; animation: dcPopIn .2s ease; }
@keyframes dcPopIn { from { opacity: 0; transform: translateX(-50%) translateY(6px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.dc-loc-popup::after { content: ''; position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%) rotate(45deg); width: 12px; height: 12px; background: #fff; box-shadow: 3px 3px 4px rgba(0,0,0,.06); }
.dc-loc-popup-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #5f7a8a; margin-bottom: 10px; }
.dc-loc-options { display: flex; flex-direction: column; gap: 8px; }
.dc-loc-option { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; font-weight: 500; color: #00587e; padding: 4px 0; transition: color .15s; }
.dc-loc-option:hover { color: #003d55; }
.dc-loc-option input { position: absolute; opacity: 0; pointer-events: none; }
.dc-radio { width: 16px; height: 16px; border: 2px solid #aabbc5; border-radius: 50%; background: #fff; position: relative; flex-shrink: 0; transition: border-color .2s; }
.dc-radio::after { content: ''; position: absolute; top: 50%; left: 50%; width: 7px; height: 7px; background: #00587e; border-radius: 50%; transform: translate(-50%,-50%) scale(0); transition: transform .2s cubic-bezier(.34,1.56,.64,1); }
.dc-loc-option input:checked ~ .dc-radio { border-color: #00587e; }
.dc-loc-option input:checked ~ .dc-radio::after { transform: translate(-50%,-50%) scale(1); }

/* Buttons */
.dc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 42px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s;
    font-family: inherit;
    letter-spacing: 0;
    margin-top: auto;
}
.dc-btn-clinic { background: #52acc6; color: #fff; }
.dc-btn-clinic:hover { background: #52acc6; }
.dc-btn-online { background: #4e8cab; color: #fff; }
.dc-btn-online:hover { background: #4e8cab; }
.dc-btn-wa { background: #61d285; color: #fff; }
.dc-btn-wa:hover { background: #61d285; }
.dc-btn-wa svg { flex-shrink: 0; }

/* ═══ MODALS ═══ */
.dc-modal { position: fixed; inset: 0; z-index: 999999; display: flex; align-items: center; justify-content: center; padding: 1rem; opacity: 0; pointer-events: none; transition: opacity .24s; }
.dc-modal.is-open { opacity: 1; pointer-events: all; }
.dc-modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); cursor: pointer; }
.dc-modal-box { position: relative; z-index: 1; transform: scale(.9) translateY(18px); transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.dc-modal.is-open .dc-modal-box { transform: scale(1) translateY(0); }
.dc-modal-box--video { width: min(92vw, 860px); background: #000; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,.6); }
.dc-modal-close--video { position: absolute; top: 10px; right: 10px; z-index: 10; background: rgba(255,255,255,.15); color: #fff; }
#dc-video-player { width: 100%; max-height: 82vh; display: block; background: #000; }
.dc-modal-box--booking { width: 900px; max-height: 90vh; background: #fff; border-radius: 16px; box-shadow: 0 20px 70px rgba(0,0,0,.18); display: flex; flex-direction: column; overflow: hidden; }
.dc-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid #dde5ea; background: #fafafa; }
.dc-modal-head-left { display: flex; align-items: center; gap: 8px; color: #00587e; }
.dc-modal-head-left h3 { font-size: 16px; font-weight: 700; color: #1a2e3d; margin: 0; }
.dc-modal-close { width: 32px; height: 32px; border-radius: 50%; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; background: #eee; color: #1a2e3d; transition: all .25s; }
.dc-modal-close:hover { background: #f55662; color: #fff; transform: rotate(90deg); }
.dc-modal-body { position: relative; flex: 1; min-height: 520px; }
#dc-booking-iframe { width: 100%; height: 100%; min-height: 560px; border: none; }
.dc-loader { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; background: #fff; }
.dc-loader p { font-size: 14px; color: #5f7a8a; }
.dc-spinner { width: 34px; height: 34px; border: 3px solid #eee; border-top-color: #f55662; border-radius: 50%; animation: dcSpin .68s linear infinite; }
@keyframes dcSpin { to { transform: rotate(360deg); } }

/* Manual confirmation popup (Call / WhatsApp) — shown instead of the booking
   calendar for consultants whose online slots need to be confirmed manually. */
.cc-confirm-box { width: min(92vw, 420px); background: #fff; border-radius: 16px; box-shadow: 0 20px 70px rgba(0,0,0,.18); padding: 28px 24px 24px; text-align: center; }
.cc-confirm-title { font-size: 18px; font-weight: 700; color: #1a2e3d; margin: 4px 0 10px; }
.cc-confirm-text { font-size: 14px; color: #5f7a8a; line-height: 1.5; margin: 0 0 20px; }
.cc-confirm-actions { display: flex; flex-direction: column; gap: 10px; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
    
    .docimgimgs {
    min-width: 120px;
}

  .dc-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .dc-info-top .dc-exp { display: none; }
  .dc-tab-btn { font-size: 14px; }
  .dc-video-icon svg { width: 30px; height: 30px; }
  .dc-card { border-radius: 18px; }
  .dc-loc-popup { left: 0; transform: translateX(0); min-width: 180px;animation: none; }
  .dc-loc-popup::after { left: 24px; transform: rotate(45deg); }
  .dc-loc-popup.open{
      animation: none;
  }
}
@media (max-width: 768px) {
  .dc-grid .mobileonly { display: block !important; }
  .dc-grid .desktoponly { display: none !important; }
  .dc-top { flex-direction: column; padding: 20px 16px 12px; }
  .dc-photo-col { flex-direction: row; gap: 14px; width: 100%; align-items: flex-start; }
  .dc-photo { width: 110px; height: 110px; }
  .dc-name-col { padding-left: 0; }
  .dc-name { font-size: 20px; }
  .dc-specialty, .dc-degree { font-size: 13px; }
  .dc-tabs-inline { margin-top: 8px; }
  .dc-price-exp { margin-top: 12px; }
  .dc-bottom { padding: 14px 16px 18px; }
  .dc-booking-cols { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; }
  .dc-col-wa { display: none !important; }
  .dc-btn { font-size: 13px; height: 38px; }
 
  
      .dc-col.dc-col-online .dc-col-label {
        background: url(https://anvayahealthcare.com/wp-content/uploads/2026/07/smartphone.png);
        background-repeat: no-repeat;
        background-size: 24px;
        padding-left: 16px;
        background-position: 10px 0px;
    }
        .dc-col.dc-col-online .dc-col-label svg {
        display: none;
    }
        .dc-col-label {
        min-height: 22px;
        font-size: 14px;
        font-weight: 600;
        color: #00587e;
    }
  .dc-mob-exp { font-size: 14px; font-weight: 700; color: #00587e; }
  .dc-modal-box--booking { width: 100%; border-radius: 16px 16px 0 0; max-height: 92vh; }
}