/* ════════════════════════════════════════════════════════════
   VERDANT DIAGNOSTIC — CTA Strip + Modal Styles
   Colours, fonts and measurements copied 1:1 from the live
   verdantindia.com page (#cta-strip, #dm, .mi, .ms, .op, etc.)
   so the shortcode output matches the original design exactly.

   All selectors are prefixed with "vd-" so this can be
   dropped into any theme via the [verdant_diagnostic]
   shortcode without colliding with existing styles.
════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&family=Courier+Prime:wght@400;700&display=swap');

:root{
    --vd-deep:    #0d1f10;
    --vd-ink:     #080f09;
    --vd-forest:  #1e4d2b;
    --vd-gold:    #c49a2a;
    --vd-gold-lt: #d4b24a;
    --vd-gold-dk: #9a7820;
    --vd-ivory:   #f5f0e6;
    --vd-sf: 'Cormorant Garamond', Georgia, serif;
    --vd-ss: 'DM Sans', system-ui, sans-serif;
    --vd-sm: 'Courier Prime', monospace;
    --vd-ease: cubic-bezier(.16,1,.3,1);
    --vd-pad: clamp(22px,5vw,72px);
}
.vd-cta-strip, .vd-cta-strip *, .vd-cta-strip *::before, .vd-cta-strip *::after,
#vd-dm, #vd-dm *, #vd-dm *::before, #vd-dm *::after{
    box-sizing: border-box;
}

/* ── CTA STRIP — gold + outline buttons, side by side ──────── */
.vd-cta-strip{
    display: flex;
    gap: 14px;
    align-items: stretch;
    flex-wrap: wrap;
    padding: 0;
    border-bottom: 1px solid rgba(196,154,42,.14);
}
/* Page builders (e.g. Elementor) sometimes inject an empty full-width
   container as a child of the strip, which shows up as a blank coloured
   band and pushes the buttons down. Ignore anything that isn't a button. */
.vd-cta-strip > *:not(.vd-hbtn-gold):not(.vd-hbtn-outline){
    display: none !important;
}
.vd-cta-strip .vd-hbtn-gold{
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-family: var(--vd-sm);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--vd-deep);
    background: var(--vd-gold-lt);
    padding: 18px 28px 16px;
    flex: 1 1 280px;
    min-width: 0;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s;
}
.vd-cta-strip .vd-hbtn-gold:hover{ background: var(--vd-gold); }
.vd-cta-strip .vd-hbtn-gold .vd-mc{
    font-family: var(--vd-ss);
    font-size: 9px;
    font-weight: 300;
    letter-spacing: .04em;
    text-transform: none;
    color: rgba(13,31,16,.7);
}
.vd-cta-strip .vd-hbtn-outline{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--vd-sm);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--vd-forest);
    border: 1px solid rgba(30,77,43,.35);
    padding: 18px 28px;
    flex: 1 1 230px;
    min-width: 0;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s;
}
.vd-cta-strip .vd-hbtn-outline:hover{
    color: #1a2e1d;
    border-color: var(--vd-forest);
    background: rgba(30,77,43,.05);
    gap: 14px;
}
.vd-cta-strip .vd-hbtn-outline i{ font-size: 11px; }

/* ── MODAL OVERLAY ──────────────────────────────────────────── */
#vd-dm{
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(6,13,7,.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .4s var(--vd-ease), visibility .4s var(--vd-ease);
    padding: var(--vd-pad);
    font-family: var(--vd-ss);
}
#vd-dm.vd-open{
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/* ── MODAL INNER ────────────────────────────────────────────── */
#vd-dm .vd-mi{
    background: var(--vd-deep);
    border: 1px solid rgba(196,154,42,.12);
    border-radius: 4px;
    width: 100%;
    max-width: 820px;
    max-height: 88vh;
    overflow-y: auto;
    /*padding: clamp(24px,4vw,48px);*/
    padding: clamp(10px,4vw,30px);
    text-align: left;
    line-height: 1.5;
}
#vd-dm .vd-mi::-webkit-scrollbar{ width: 3px; }
#vd-dm .vd-mi::-webkit-scrollbar-thumb{ background: rgba(196,154,42,.3); border-radius: 2px; }

/* Close button */
#vd-dm .vd-mc-btn{
    float: right;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid rgba(196,154,42,.25);
    color: rgba(196,154,42,.6);
    font-family: var(--vd-sm);
    font-size: 10px;
    letter-spacing: .15em;
    text-transform: uppercase;
    padding: 7px 13px;
    cursor: pointer;
    border-radius: 2px;
    transition: all .2s;
}
#vd-dm .vd-mc-btn:hover{ border-color: var(--vd-gold); color: var(--vd-gold); }

/* Progress bar */
#vd-dm .vd-mpw{
    height: 2px;
    background: rgba(196,154,42,.1);
    border-radius: 2px;
    margin-bottom: 32px;
}
#vd-dm .vd-mpb{
    height: 100%;
    width: 0%;
    background: var(--vd-gold);
    border-radius: 2px;
    transition: width .5s var(--vd-ease);
}

/* ── STEP PANELS ────────────────────────────────────────────── */
#vd-dm .vd-ms{ display: none; }
#vd-dm .vd-ms.active{ display: block; }

#vd-dm .vd-slbl{
    font-family: var(--vd-sm);
    font-size: 9px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(196,154,42,.5);
    margin-bottom: 12px;
}
#vd-dm .vd-shl2{
    font-family: var(--vd-sf);
    font-weight: 300;
    font-size: clamp(20px,2.8vw,34px);
    line-height: 1.15;
    color: var(--vd-ivory);
    margin-bottom: 8px;
}
#vd-dm .vd-ssb{
    font-family: var(--vd-ss);
    font-size: 13px;
    font-weight: 300;
    color: rgba(245,240,230,.44);
    line-height: 1.7;
    margin-bottom: 28px;
}

/* ── STEP 1: QUESTIONS ──────────────────────────────────────── */
#vd-dm .vd-qt{
    font-family: var(--vd-sf);
    font-size: clamp(15px,1.8vw,21px);
    font-weight: 400;
    color: var(--vd-ivory);
    margin-bottom: 14px;
    line-height: 1.4;
}
#vd-dm .vd-ops{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}
#vd-dm .vd-op{
    padding: 13px 16px;
    border: 1px solid rgba(196,154,42,.15);
    border-radius: 3px;
    cursor: pointer;
    transition: all .2s;
    background: rgba(255,255,255,.025);
}
#vd-dm .vd-op:hover{
    border-color: rgba(196,154,42,.4);
    background: rgba(196,154,42,.06);
}
#vd-dm .vd-op.vd-sel{
    border-color: var(--vd-gold);
    background: rgba(196,154,42,.12);
}
#vd-dm .vd-op.vd-ofu{ grid-column: 1/-1; }
#vd-dm .vd-op .vd-ol{
    font-family: var(--vd-ss);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--vd-ivory);
    margin-bottom: 1px;
}
#vd-dm .vd-op .vd-od{
    font-family: var(--vd-ss);
    font-size: 11px;
    font-weight: 300;
    color: rgba(245,240,230,.36);
}

/* ── NAVIGATION ROW ─────────────────────────────────────────── */
#vd-dm .vd-mn{
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
}
#vd-dm .vd-nxt{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--vd-ss);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--vd-ink);
    background: var(--vd-gold);
    padding: 12px 26px;
    border-radius: 2px;
    border: none;
    cursor: pointer;
    transition: background .2s;
}
#vd-dm .vd-nxt:hover{ background: var(--vd-gold-lt); }
#vd-dm .vd-nxt:disabled{ opacity: .3; pointer-events: none; }
#vd-dm .vd-bck{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--vd-ss);
    font-size: 11px;
    font-weight: 300;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(245,240,230,.36);
    background: none;
    border: none;
    cursor: pointer;
    transition: color .2s;
    padding: 12px 0;
}
#vd-dm .vd-bck:hover{ color: var(--vd-ivory); }
#vd-dm .vd-qc{
    font-family: var(--vd-sm);
    font-size: 10px;
    color: rgba(196,154,42,.38);
    margin-left: auto;
}

/* ── STEP 2 / 4: FORM GRID ──────────────────────────────────── */
#vd-dm .vd-ig2{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 22px;
}
#vd-dm .vd-ilbl{
    display: block;
    font-family: var(--vd-sm);
    font-size: 9px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(196,154,42,.55);
    margin-bottom: 6px;
}
#vd-dm .vd-inf{
    width: 100%;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(196,154,42,.18);
    border-radius: 2px;
    padding: 12px 14px;
    font-family: var(--vd-ss);
    font-size: 13px;
    font-weight: 300;
    color: var(--vd-ivory);
    outline: none;
    transition: border-color .2s;
}
#vd-dm .vd-inf:focus{ border-color: rgba(196,154,42,.5); }
#vd-dm .vd-inf::placeholder{ color: rgba(245,240,230,.2); }
#vd-dm select.vd-inf{
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23c49a2a' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 32px;
}
#vd-dm select.vd-inf option{ background: var(--vd-deep); color: var(--vd-ivory); }
#vd-dm textarea.vd-inf{ min-height: 84px; resize: vertical; font-family: var(--vd-ss); }
#vd-dm .vd-ski{
    font-family: var(--vd-sm);
    font-size: 10px;
    letter-spacing: .1em;
    color: rgba(196,154,42,.48);
    border-bottom: 1px solid rgba(196,154,42,.25);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
    transition: color .2s;
    cursor: pointer;
}
#vd-dm .vd-ski:hover{ color: var(--vd-gold-lt); }

/* ── STEP 3: RESULTS ────────────────────────────────────────── */
#vd-dm .vd-rp{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(196,154,42,.1);
    border: 1px solid rgba(196,154,42,.28);
    border-radius: 2px;
    padding: 8px 15px;
    margin-bottom: 16px;
}
#vd-dm .vd-rpl{
    font-family: var(--vd-sm);
    font-size: 9px;
    letter-spacing: .16em;
    color: rgba(196,154,42,.6);
}
#vd-dm .vd-rpn{
    font-family: var(--vd-ss);
    font-size: 13px;
    font-weight: 500;
    color: var(--vd-gold-lt);
}
#vd-dm .vd-rhl{
    font-family: var(--vd-sf);
    font-weight: 300;
    font-size: clamp(18px,2.2vw,30px);
    line-height: 1.2;
    color: var(--vd-ivory);
    margin-bottom: 8px;
}
#vd-dm .vd-rsb{
    font-family: var(--vd-ss);
    font-size: 13px;
    font-weight: 300;
    color: rgba(245,240,230,.44);
    line-height: 1.7;
    margin-bottom: 22px;
}
#vd-dm .vd-rtbs{
    margin-bottom: 14px;
}
#vd-dm .vd-rtb{
    font-family: var(--vd-sm);
    font-size: 10px;
    letter-spacing: .08em;
    padding: 7px 16px;
    border-radius: 20px;
    border: 1px solid rgba(196,154,42,.3);
    background: rgba(196,154,42,.12);
    color: var(--vd-gold-lt);
    display: inline-block;
}

/* Modern light chart card */
#vd-dm .vd-chart-card{
    background: #ffffff;
    border-radius: 14px;
    padding: 24px 22px 18px;
    box-shadow: 0 18px 40px rgba(0,0,0,.28), 0 2px 8px rgba(0,0,0,.12);
}
#vd-dm .vd-rca{
    position: relative;
    width: 100%;
    height: 220px;
}
#vd-dm .vd-rca canvas{ width: 100%; height: 100%; display: block; cursor: crosshair; }

/* ── Chart hover tooltip ──────────────────────────────────────── */
#vd-dm .vd-rca .vd-tooltip{
    position: absolute;
    top: 2px;
    left: 0;
    min-width: 168px;
    background: rgba(15,22,17,.96);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 9px;
    padding: 9px 11px;
    box-shadow: 0 10px 28px rgba(0,0,0,.32);
    pointer-events: none;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .14s ease, transform .14s ease;
    z-index: 5;
}
#vd-dm .vd-rca .vd-tooltip.show{ opacity: 1; transform: translateY(0); }
#vd-dm .vd-tt-head{
    font-family: var(--vd-sm);
    font-size: 9px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(245,240,230,.55);
    margin-bottom: 7px;
}
#vd-dm .vd-tt-row{
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 4px;
}
#vd-dm .vd-tt-dot{
    width: 8px;
    height: 8px;
    min-width: 8px;
    border-radius: 50%;
}
#vd-dm .vd-tt-name{
    font-family: var(--vd-ss);
    font-size: 11px;
    font-weight: 500;
    color: rgba(245,240,230,.82);
    flex: 1;
    white-space: nowrap;
}
#vd-dm .vd-tt-val{
    font-family: var(--vd-ss);
    font-size: 11.5px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}
#vd-dm .vd-tt-val small{
    font-weight: 500;
    color: rgba(245,240,230,.5);
    margin-left: 5px;
}

/* Legend */
#vd-dm .vd-cl{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 18px;
    margin-top: 18px;
}
#vd-dm .vd-li{
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f6f7f9;
    border-radius: 8px;
    padding: 9px 12px;
}
#vd-dm .vd-ll{
    width: 10px;
    height: 10px;
    min-width: 10px;
    border-radius: 50%;
}
#vd-dm .vd-ll.vd-lv{ background: #6c7fd6; }
#vd-dm .vd-ll.vd-ln{ background: #5aaf6e; }
#vd-dm .vd-ll-t{
    font-family: var(--vd-ss);
    font-size: 12px;
    font-weight: 600;
    color: #2a2e34;
    flex: 1;
}
#vd-dm .vd-ll-stat{
    font-family: var(--vd-ss);
    font-size: 11px;
    font-weight: 500;
    color: #8a909a;
    white-space: nowrap;
}
@media (max-width: 520px){
    #vd-dm .vd-cl{ grid-template-columns: 1fr; }
}

/* Insight cards */
#vd-dm .vd-ics{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 9px;
    margin: 18px 0;
}
#vd-dm .vd-icm{
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(196,154,42,.1);
    border-radius: 3px;
    padding: 14px 13px;
}
#vd-dm .vd-icmn{
    font-family: var(--vd-sm);
    font-size: 9px;
    color: rgba(196,154,42,.5);
    margin-bottom: 7px;
}
#vd-dm .vd-icmt{
    font-family: var(--vd-ss);
    font-size: 11px;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(245,240,230,.6);
}
#vd-dm .vd-icmt strong{ color: var(--vd-ivory); font-weight: 500; }

/* ── STEP 4: CONTACT FORM ───────────────────────────────────── */
#vd-dm .vd-cbx{
    background: rgba(255,255,255,.025);
    border: 1px solid rgba(196,154,42,.12);
    border-radius: 3px;
    padding: 26px;
}
#vd-dm .vd-chl2{
    font-family: var(--vd-sf);
    font-size: clamp(17px,2vw,25px);
    font-weight: 400;
    color: var(--vd-ivory);
    margin-bottom: 6px;
}
#vd-dm .vd-csb{
    font-family: var(--vd-ss);
    font-size: 12.5px;
    font-weight: 300;
    color: rgba(245,240,230,.42);
    line-height: 1.6;
    margin-bottom: 20px;
}
#vd-dm .vd-pn{
    font-family: var(--vd-sm);
    font-size: 9px;
    color: rgba(245,240,230,.28);
    line-height: 1.65;
    margin-bottom: 16px;
}
#vd-dm .vd-sbt{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--vd-ss);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--vd-ink);
    background: var(--vd-gold);
    padding: 13px 30px;
    border-radius: 2px;
    border: none;
    cursor: pointer;
    transition: background .2s;
}
#vd-dm .vd-sbt:hover{ background: var(--vd-gold-lt); }

/* Success state */
#vd-dm .vd-scs{ display: none; text-align: center; padding: 20px 0; }
#vd-dm .vd-scs.show{ display: block; }
#vd-dm .vd-sci{ font-size: 34px; margin-bottom: 12px; color: var(--vd-gold); }
#vd-dm .vd-schl{
    font-family: var(--vd-sf);
    font-size: clamp(19px,2.3vw,28px);
    font-weight: 400;
    color: var(--vd-ivory);
    margin-bottom: 7px;
}
#vd-dm .vd-scb2{
    font-family: var(--vd-ss);
    font-size: 13px;
    font-weight: 300;
    color: rgba(245,240,230,.44);
    line-height: 1.7;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width:980px){
    #vd-dm .vd-ig2,
    #vd-dm .vd-ics,
    #vd-dm .vd-ops{ grid-template-columns: 1fr; }
    #vd-dm .vd-op.vd-ofu{ grid-column: auto; }
}
@media (max-width:600px){
    #vd-dm{ padding: 14px; }
    #vd-dm .vd-mi{ max-height: 94vh; }
    #vd-dm .vd-mn{ flex-wrap: wrap; }
    #vd-dm .vd-qc{ width: 100%; margin-left: 0; order: 3; }
    .vd-cta-strip{ flex-wrap: wrap; }
    .vd-cta-strip .vd-hbtn-gold,
    .vd-cta-strip .vd-hbtn-outline{ flex: 1 1 100%; width: 100%; min-width: 0; max-width: 100%; white-space: normal; }
}
