/**
 * Vykie Finance Tools Pro
 * Basic Calculator UI styles
 * Clean premium layout — no dark wrapper around result cards
 */

/* ================================
   PAGE RESET
================================ */

body:has(.vykie-finance-pro) .site,
body:has(.vykie-finance-pro) .site-content,
body:has(.vykie-finance-pro) .content-area,
body:has(.vykie-finance-pro) .entry-content,
body:has(.vykie-finance-pro) .wp-site-blocks,
body:has(.vykie-finance-pro) main {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

body:has(.vykie-finance-pro) {
    background: #f5f8fc;
}

.vykie-finance-pro {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background: #f5f8fc;
}

/* ================================
   HERO SECTION
================================ */

.vykie-paye-hero {
    width: 100%;
    min-height: 360px;
    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) minmax(460px, 0.9fr);
    gap: 25px;
    align-items: start;
    padding: 18px max(6vw, 40px) 35px;

    background:
        linear-gradient(90deg, rgba(5,18,45,.94), rgba(5,18,45,.72)),
        url('/wp-content/uploads/calculator/shoreline-bg.png') center/cover no-repeat;

    color: #fff;
}

.vykie-hero-info {
    max-width: 360px;
    justify-self: end;
}

.vykie-hero-info h1 {
    font-size: clamp(26px, 2.5vw, 36px);
    line-height: 1.05;
    margin: 10px 0 8px;
    white-space: nowrap;
}

.vykie-hero-info p {
    margin-bottom: 10px;
    font-size: 14px;
}

.vykie-hero-info h1 span {
    color: #4da3ff;
}

.vykie-hero-info .feature-item {
    margin-bottom: 8px;
}


.vykie-hero-info div {
    margin-bottom: 10px;
}





 

.vykie-hero-info span {
    border: none !important;
}








/* ================================
   FORM CARD
================================ */

.vykie-calc-card {
    max-width: 550px;
    background: #fff;
    border-radius: 14px;
    padding: 14px 14px 10px;
    box-shadow:
        0 8px 24px rgba(16,24,40,.08),
        0 2px 6px rgba(16,24,40,.04);
}

.vykie-calc-card form {
    margin-bottom: 0 !important;
}

.vykie-calc-card .calculator-form,
.vykie-calc-card .paye-form,
.vykie-calc-card .form-wrapper {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.vykie-calc-card button {
    margin-bottom: 0 !important;
}

.vykie-calc-card > *:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.vykie-calc-card h2,
.vykie-calc-card h3 {
    font-size: 28px;
    margin-bottom: 12px;
}

.vykie-calc-card .form-group {
    margin-bottom: 10px;
}

/* ================================
   RESULT OUTER CONTAINER
   This controls the full result area width only.
================================ */

.vykie-result-strip {
    max-width: 1040px;
    width: calc(100% - 48px);
    margin: -55px auto 18px;

    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    position: relative;
    z-index: 5;
    overflow: visible !important;
    
    
 
    
    
}

.vykie-finance-pro-results {
    margin: 0;
}

/* Before calculation message only */
.vykie-result-strip > .vykie-finance-pro-results > p {
    background: linear-gradient(135deg, #0b1226, #111c3a);
    color: #fff;
    border-radius: 12px;
    padding: 22px 26px;
    margin: 0;
    box-shadow: 0 12px 30px rgba(0,0,0,.18);
}

/* ================================
   RESULTS WRAPPER
   Must be 100% because it lives inside .vykie-result-strip.
================================ */

.vykie-results-wrap {
    width: 100%;
    max-width: none;
    margin: 0;
    background: transparent !important;
    background-image: none !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
}

/* ================================
   TOP SUMMARY BAR
================================ */

.vykie-netpay-hero {
    background: linear-gradient(135deg, #0b1226, #111c3a) !important;
    color: #fff;
    border-radius: 12px;
    padding: 16px 22px;
    box-shadow: 0 12px 30px rgba(0,0,0,.18);
}

/* ================================
   RESULT CARDS
================================ */

.vykie-result-grid {
    width: 100%;
    margin: 10px 0 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;

    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

.vykie-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px 20px;
    border: 1px solid #eef2f7;

    box-shadow:
        0 1px 2px rgba(16,24,40,.04),
        0 6px 14px rgba(16,24,40,.06);

    transition: all 0.2s ease;
}

.vykie-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 4px 10px rgba(16,24,40,.06),
        0 12px 22px rgba(16,24,40,.08);
}

 




/* =======================================
   TAX BAND BADGES
======================================= */

.vykie-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

   /* padding: 9px 16px;
    border-radius: 999px;

    background: #dcfce7 !important;
    color: #166534 !important;*/
    border: none !important;

    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .35px;
    text-transform: uppercase;

    opacity: 1 !important;
    white-space: nowrap;
}

.vykie-badge-blue {
    background: #e0f2fe !important;
    color: #075985 !important;
    border-color: #bae6fd !important;
}

.vykie-badge-purple {
    background: #ede9fe !important;
    color: #5b21b6 !important;
    border-color: #ddd6fe !important;
}











/* ================================
   INSIGHTS / EXPLANATION / CALCULATION
   These live inside the results wrapper, so they should be 100%.
================================ */

.vykie-insights,
.vykie-explanation-card,
.vykie-calculation-card {
    width: 100%;
    max-width: none;
    margin: 12px 0;
}


/* =======================================
   KEY INSIGHTS - CHIP CARD STYLE
======================================= */

.vykie-insights {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    border-radius: 14px;

    padding: 12px 18px;
    margin: 6px 0;

    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 18px;
    align-items: center;
}

/* LEFT TITLE */
.vykie-insights h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #064e3b;
}


/* RIGHT SIDE CONTAINER → horizontal layout */
.vykie-insights {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 18px;
    align-items: center;
}

/* THIS is the fix */
.vykie-insights > div {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 👈 forces side-by-side */
    gap: 14px;
}



/* INDIVIDUAL CHIP CARDS */
.vykie-insight-item,
.vykie-insights > div > div {
    background: #f0fdf4;
    border: 1px solid #d1fae5;
    border-radius: 12px;

    padding: 14px 16px;

    display: flex;
    flex-direction: column;
    gap: 6px;

    min-height: 90px;
}

/* TITLE */
.vykie-insights strong {
    font-size: 13.5px;
    font-weight: 800;
    color: #065f46;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* DESCRIPTION */
.vykie-insights span {
    font-size: 12.8px;
    color: #334155;
    line-height: 1.4;
}

/* CLEANUP */
.vykie-insight-item {
    margin: 0 !important;
    padding: 12px 14px !important;
}

/* REMOVE DUPLICATE CHECKMARKS */
.vykie-insights strong::before {
    content: none !important;
}

/* Tighten title → text spacing */
.vykie-insight-item strong {
    margin-bottom: 4px;
    display: block;
}

/* Slightly improve readability */
.vykie-insight-item span {
    margin: 0;
}

/* Make all cards equal height (clean row look) */
.vykie-insight-group {
    align-items: stretch;
}

/* Subtle hover = premium feel */
.vykie-insight-item {
    transition: all 0.2s ease;
}

.vykie-insight-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(16,24,40,.08);
}








/* ================================
   CALCULATION BREAKDOWN PANEL
   Left: compact calculation card
   Right: reserved dark panel for future compare/ad content
================================ */

/* ================================
   CALCULATION + COMPARE PANEL
================================ */

.vykie-calculation-card {
    width: 100%;
    max-width: none;
    margin: 18px 0 0 !important;
    padding: 0 !important;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;

    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* remove old fake panel backgrounds */
.vykie-calculation-card::before,
.vykie-calculation-card::after {
    content: none !important;
    display: none !important;
}

/* restore children */
.vykie-calculation-card > * {
    width: auto !important;
    margin-left: 0 !important;
}

/* left and right panels */
.vykie-breakdown-panel,
.vykie-compare-panel {
    background: #ffffff;
    border: 1px solid #e6ebf3;
    border-radius: 14px;
    padding: 22px;
    box-shadow:
        0 2px 6px rgba(16,24,40,.04),
        0 8px 18px rgba(16,24,40,.06);
}

/* panel header */
.vykie-panel-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.vykie-panel-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 20px;
    flex: 0 0 auto;
}

.vykie-panel-header h3 {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    color: #101828;
}

.vykie-panel-header p {
    margin: 4px 0 0;
    color: #667085;
}

/* compact calculation sections */
.vykie-calc-section {
    padding: 12px 14px !important;
    margin-bottom: 14px !important;
    background: #f8fafc;
    border: 1px solid #e8edf5;
    border-radius: 10px;
}

.vykie-calc-section h4 {
    margin: 0 0 8px !important;
    padding-bottom: 6px !important;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .4px;
    border-bottom: 1px solid #d8dee8;
}

.vykie-calc-row,
.vykie-calc-total {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px !important;
    align-items: center;
    padding: 7px 0 !important;
    border-bottom: 1px solid #edf1f6;
}

.vykie-calc-row:last-child {
    border-bottom: none;
}

.vykie-calc-row span,
.vykie-calc-row strong,
.vykie-calc-total span,
.vykie-calc-total strong {
    font-size: 14px;
    line-height: 1.3;
}

.vykie-calc-row strong,
.vykie-calc-total strong {
    text-align: right;
    white-space: nowrap;
}

.vykie-calc-total {
    margin-top: 4px !important;
    padding-top: 6px !important;
    font-weight: 800;
    border-top: 1px solid #d8dee8;
    border-bottom: none;
}

.vykie-calc-row strong.negative,
.vykie-calc-total.danger strong {
    color: #dc2626;
}

.vykie-calc-net {
    margin-top: 14px !important;
    margin-bottom: 0 !important;
    padding: 16px !important;
    background: #dcfce7;
    border-radius: 10px;
    color: #14532d;
    font-size: 18px;
    font-weight: 900;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vykie-calc-net strong {
    font-size: 18px;
    white-space: nowrap;
}

/* compare panel */
.vykie-compare-input-row {
    display: grid;
    grid-template-columns: 1fr 150px;
    gap: 12px;
    align-items: center;
    margin: 10px 0 22px;
}

.vykie-compare-input-row input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d8dee8;
    border-radius: 8px;
}

.vykie-compare-input-row button {
    padding: 13px 16px;
    border: none;
    border-radius: 8px;
    background: #4f5cff;
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
}



/* ================================
   COMPARE TABLE / INLINE PANEL
   Used inside the right-side comparison card
================================ */

.vykie-compare-table-card {
    margin-top: 14px;
}

.vykie-compare-table {
    border: 1px solid #e6ebf3;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
}

/* Shared compare table row layout */
.vykie-compare-head,
.vykie-compare-line,
.vykie-compare-net {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
}

/* Table header */
.vykie-compare-head {
    padding: 11px 14px;
    border-bottom: 1px solid #e6ebf3;
}

.vykie-compare-head span {
    font-size: 13px;
    color: #475467;
}

.vykie-compare-head strong {
    font-size: 13px;
    line-height: 1.25;
}

.vykie-compare-head strong:nth-child(2) {
    color: #3b5bff;
}

/* Table rows */
.vykie-compare-line {
    padding: 10px 14px;
    border-bottom: 1px solid #eef2f7;
}

.vykie-compare-line span,
.vykie-compare-line strong {
    font-size: 14px;
    line-height: 1.2;
}

/* Right-align numbers */
.vykie-compare-line strong,
.vykie-compare-head strong,
.vykie-compare-net strong {
    text-align: right;
}

/* Net Pay highlight row */
.vykie-compare-net {
    margin-top: 8px;
    padding: 12px 14px;
    background: #dcfce7;
    color: #14532d;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 900;
}

/* Tighter input and button area */
.vykie-compare-input-row {
    margin: 6px 0 16px;
}

.vykie-compare-input-row input {
    padding: 10px 12px;
}

.vykie-compare-input-row button {
    padding: 10px 12px;
}
 

/* ================================
   COMPARE TABLE PREMIUM EFFECTS
================================ */

/* Smooth row interactions */
.vykie-compare-line {
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.vykie-compare-line:hover {
    background: #f8fafc;
}

/* Soft entrance animation */
.vykie-compare-table-card {
    animation: vykieFadeUp 0.28s ease both;
}

@keyframes vykieFadeUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delta indicators */
.vykie-delta {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    margin-top: 3px;
    font-size: 11px;
    font-weight: 800;
}

.vykie-delta.positive {
    color: #15803d;
}

.vykie-delta.negative {
    color: #dc2626;
}


/* ================================
   COMPARE DELTA ALIGNMENT FIX
================================ */

.vykie-compare-line strong,
.vykie-compare-net strong {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    line-height: 1.15;
}

.vykie-delta {
    display: block;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.1;
}

.vykie-delta.positive {
    color: #15803d;
}

.vykie-delta.negative {
    color: #dc2626;
}


.vykie-compare-net {
    align-items: center;
}

.vykie-compare-net strong {
    font-size: 18px;
}




/* =======================================
   SIX MILLION WARNING BANNER
   Premium fintech-style warning
======================================= */

.vykie-six-million-warning {
    max-width: 1180px;
    width: calc(100% - 72px);
    margin: 20px auto;
    padding: 18px 20px;
    border-radius: 18px;

    display: flex;
    gap: 14px;
    align-items: flex-start;

    background: #fffaf2;
    border: 1px solid #f4c27a;
    color: #1f2937 !important;

    box-shadow:
        0 14px 35px rgba(15, 23, 42, 0.10),
        inset 4px 0 0 #f59e0b;

    animation: vykieWarningSlideDown 0.35s ease-out;
}

.vykie-six-million-warning::before {
    content: "!";
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 999px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: #f59e0b;
    color: #111827;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
}

.vykie-six-million-warning strong {
    color: #111827 !important;
    font-size: 15px;
    font-weight: 850;
    letter-spacing: -0.01em;
}

.vykie-six-million-warning p {
    margin: 6px 0 0;
    color: #374151 !important;
    font-size: 14px;
    line-height: 1.55;
    max-width: 850px;
}

.vykie-six-million-warning p strong {
    display: inline;
    color: #111827 !important;
    font-weight: 850;
}

@keyframes vykieWarningSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}





/* ================================
   RESPONSIVE
================================ */

@media (max-width: 1000px) {
    .vykie-paye-hero {
        grid-template-columns: 1fr;
    }

    .vykie-result-strip {
        margin-top: -60px;
    }

    .vykie-calculation-card {
        min-height: auto;
        padding: 0 !important;
    }

    .vykie-calculation-card::before,
    .vykie-calculation-card::after {
        display: none;
    }

    .vykie-calculation-card > * {
        width: 100%;
        margin-left: 0;
    }

    .vykie-calculation-card {
        background: #ffffff !important;
        border: 1px solid #e6ebf3 !important;
        border-radius: 14px !important;
        padding: 18px !important;

        box-shadow:
            0 2px 6px rgba(16,24,40,.04),
            0 8px 18px rgba(16,24,40,.06) !important;
    }
}




@media (max-width: 800px) {
    .vykie-finance-pro-form,
    .vykie-result-grid,
    .vykie-netpay-hero,
    .vykie-insights {
        grid-template-columns: 1fr;
    }

    .vykie-result-strip,
    .vykie-salary-compare {
        width: calc(100% - 32px);
    }

    .vykie-results-wrap,
    .vykie-insights,
    .vykie-explanation-card,
    .vykie-calculation-card {
        width: 100%;
    }
}