/* ============================================
   VIVID DUO — Branding Price Calculator
   File: calc.css | Uses existing theme classes
   ============================================ */

/* grid layout */
.vd-calc-wrapper {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 50px;
    align-items: start;
    margin-top: 70px;
}

/* ============================================
   ACCORDION — numbered list rows
   ============================================ */
.vd-calc-options {
    display: flex;
    flex-direction: column;
}

.vd-calc-category {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.vd-calc-category:first-child {
    border-top: 1px solid rgba(255,255,255,0.08);
}

.vd-calc-category-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 26px 0;
    cursor: pointer;
    user-select: none;
}
.vd-calc-category-header:hover .vd-calc-cat-name {
    color: var(--tp-common-green-regular);
}

/* Big pink outline numbers — same style as dgm-step-number */
.vd-calc-cat-num {
    font-size: 56px;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px var(--tp-common-green-regular);
    min-width: 64px;
    line-height: 1;
    flex-shrink: 0;
    font-family: var(--tp-ff-inter);
    transition: -webkit-text-stroke-color 0.3s;
}
.vd-calc-category.is-open .vd-calc-cat-num {
    color: var(--tp-common-green-regular);
    -webkit-text-stroke: 1px var(--tp-common-green-regular);
}

/* Name + desc */
.vd-calc-cat-info { flex: 1; min-width: 0; }

.vd-calc-cat-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--tp-common-white);
    display: block;
    margin-bottom: 3px;
    font-family: var(--tp-ff-inter);
    transition: color 0.2s;
}
.vd-calc-cat-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    display: block;
}

/* Badge */
.vd-calc-cat-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 5px 13px;
    border-radius: 30px;
    white-space: nowrap;
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.25);
    border: 1px solid rgba(255,255,255,0.07);
    transition: all 0.3s;
    flex-shrink: 0;
}
.vd-calc-cat-badge.selected {
    background: rgba(233,255,72,0.07);
    color: var(--tp-common-yellow-green);
    border-color: rgba(233,255,72,0.18);
}

/* Chevron */
.vd-calc-toggle-arrow {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s;
}
.vd-calc-toggle-arrow svg {
    width: 11px; height: 11px;
    stroke: rgba(255,255,255,0.35);
    transition: transform 0.35s;
}
.vd-calc-category.is-open .vd-calc-toggle-arrow {
    border-color: var(--tp-common-green-regular);
    background: rgba(251,148,172,0.07);
}
.vd-calc-category.is-open .vd-calc-toggle-arrow svg {
    transform: rotate(180deg);
    stroke: var(--tp-common-green-regular);
}

/* body */
.vd-calc-category-body {
    display: none;
    padding: 4px 0 28px 88px;
}
.vd-calc-category.is-open .vd-calc-category-body {
    display: block;
}

/* 2-col grid — all items stretch to same height */
.vd-calc-suboptions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: stretch;
}

/* ---- Toggle option card ---- */
.vd-calc-option {
    padding: 16px 18px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.025);
    cursor: pointer;
    transition: all 0.22s;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    overflow: hidden;
    height: 100%;
}
.vd-calc-option::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: var(--tp-common-green-regular);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s;
    border-radius: 0 2px 2px 0;
}
.vd-calc-option:hover {
    border-color: rgba(255,255,255,0.13);
    background: rgba(255,255,255,0.04);
}
.vd-calc-option.selected {
    border-color: rgba(251,148,172,0.28);
    background: rgba(251,148,172,0.05);
}
.vd-calc-option.selected::before { transform: scaleY(1); }

.vd-calc-opt-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}
.vd-calc-opt-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--tp-common-white);
    line-height: 1.4;
    flex: 1;
}

/* Checkbox */
.vd-calc-checkbox {
    width: 18px; height: 18px;
    border-radius: 4px;
    border: 1.5px solid rgba(255,255,255,0.18);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
    margin-top: 1px;
}
.vd-calc-option.selected .vd-calc-checkbox {
    border-color: var(--tp-common-green-regular);
    background: var(--tp-common-green-regular);
}
.vd-calc-checkbox-tick { display: none; }
.vd-calc-option.selected .vd-calc-checkbox-tick { display: flex; }
.vd-calc-checkbox-tick svg {
    width: 10px; height: 10px;
    stroke: #0a0a0a;
    stroke-width: 2.5;
}

.vd-calc-opt-detail {
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    line-height: 1.5;
    flex: 1;
}
.vd-calc-opt-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--tp-common-yellow-green);
    display: block;
    margin-top: auto;
    padding-top: 6px;
}

/* ---- Stepper row — spans full width, matches toggle card height ---- */
.vd-calc-stepper-row {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.025);
    gap: 16px;
    min-height: 100px;
}
.vd-calc-stepper-label strong {
    font-size: 13px;
    font-weight: 600;
    color: var(--tp-common-white);
    display: block;
    margin-bottom: 4px;
}
.vd-calc-stepper-label span {
    font-size: 12px;
    color: var(--tp-common-yellow-green);
    font-weight: 600;
}

.vd-calc-stepper {
    display: flex;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.vd-calc-stepper button {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.05);
    border: none;
    color: var(--tp-common-white);
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex; align-items: center; justify-content: center;
    font-weight: 300;
}
.vd-calc-stepper button:hover {
    background: rgba(251,148,172,0.14);
    color: var(--tp-common-green-regular);
}
.vd-calc-stepper-val {
    min-width: 44px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--tp-common-white);
    border-left: 1px solid rgba(255,255,255,0.08);
    border-right: 1px solid rgba(255,255,255,0.08);
    padding: 0 6px;
    height: 36px;
    line-height: 36px;
}

/* ============================================
   SUMMARY PANEL
   ============================================ */
.vd-calc-summary {
    position: sticky;
    top: 100px;
}

.vd-calc-summary-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 34px 28px 26px;
}

.vd-calc-summary-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.25);
    margin-bottom: 26px;
    font-family: var(--tp-ff-inter);
}

.vd-calc-selected-list {
    display: flex;
    flex-direction: column;
    min-height: 48px;
}
.vd-calc-selected-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.vd-calc-selected-item-name {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    flex: 1;
    line-height: 1.4;
}
.vd-calc-selected-item-val {
    font-size: 12px;
    font-weight: 700;
    color: var(--tp-common-yellow-green);
    white-space: nowrap;
}
.vd-calc-empty-msg {
    font-size: 12px;
    color: rgba(255,255,255,0.18);
    font-style: italic;
    padding: 12px 0;
}

.vd-calc-divider {
    height: 1px;
    background: rgba(255,255,255,0.07);
    margin: 20px 0;
}

.vd-calc-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.vd-calc-total-label,
.vd-calc-total-usd {
    font-size: 12px;
    color: rgba(255,255,255,0.28);
}
.vd-calc-total-main {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.vd-calc-total-main-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--tp-common-white);
}
.vd-calc-total-main-value {
    font-size: 34px;
    font-weight: 800;
    color: var(--tp-common-green-regular);
    line-height: 1;
    font-family: var(--tp-ff-inter);
}
.vd-calc-total-main-value .vd-currency {
    font-size: 16px;
    font-weight: 600;
    opacity: 0.7;
    margin-right: 1px;
}
.vd-calc-total-note {
    font-size: 11px;
    color: rgba(255,255,255,0.2);
    margin-top: 10px;
    line-height: 1.6;
}

/* urgency */
.vd-calc-urgency {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(233,255,72,0.04);
    border: 1px solid rgba(233,255,72,0.1);
    border-radius: 10px;
    padding: 12px 14px;
    margin: 20px 0 16px;
}
.vd-calc-urgency-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--tp-common-yellow-green);
    flex-shrink: 0;
    margin-top: 4px;
    animation: vd-pulse 1.8s infinite;
}
@keyframes vd-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}
.vd-calc-urgency p {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    line-height: 1.6;
    margin: 0;
}
.vd-calc-urgency p strong { color: var(--tp-common-yellow-green); }

/* CTA uses theme class — stretch to full width */
.vd-calc-cta-wrap {
    display: block;
    text-decoration: none;
}
.vd-calc-cta-wrap .tp-btn-yellow-green.green-solid {
    width: 100%;
    justify-content: center;
    padding: 16px 22px;
    border-radius: 10px;
    display: flex;
    gap: 10px;
}

.vd-calc-reset {
    display: block;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.22);
    margin-top: 14px;
    cursor: pointer;
    transition: color 0.2s;
    background: none;
    border: none;
    width: 100%;
    padding: 0;
}
.vd-calc-reset:hover { color: rgba(255,255,255,0.5); }

/* disclaimer */
.vd-calc-disclaimer {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 12px;
    background: rgba(255,255,255,0.015);
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.vd-calc-disclaimer-icon { font-size: 15px; flex-shrink: 0; margin-top: 1px; }
.vd-calc-disclaimer p {
    font-size: 11px;
    color: rgba(255,255,255,0.25);
    line-height: 1.7;
    margin: 0;
}
.vd-calc-disclaimer p strong { color: rgba(255,255,255,0.45); }

/* ---- Responsive ---- */
@media (max-width: 1100px) {
    .vd-calc-wrapper { grid-template-columns: 1fr; }
    .vd-calc-summary { position: static; }
    .vd-calc-category-body { padding-left: 0; }
}
@media (max-width: 768px) {
    .vd-calc-suboptions { grid-template-columns: 1fr; }
    .vd-calc-summary-card { padding: 22px 18px 18px; }
    .vd-calc-total-main-value { font-size: 28px; }
    .vd-calc-category-header { padding: 20px 0; gap: 14px; }
    .vd-calc-cat-num { font-size: 40px; min-width: 48px; }
}

/* ============================================
   SOCIAL MEDIA CALCULATOR ADDITIONS
   ============================================ */

/* Radio-style circular checkbox */
.vd-calc-checkbox.is-radio { border-radius: 50%; }
.vd-calc-option.selected .vd-calc-checkbox.is-radio {
    background: var(--tp-common-green-regular);
    border-color: var(--tp-common-green-regular);
}

/* "X% off" badge on contract duration cards */
.vd-calc-opt-discount-badge {
    display: inline-block;
    font-size: 10px; font-weight: 700;
    padding: 2px 9px; border-radius: 20px;
    background: rgba(233,255,72,0.07);
    color: var(--tp-common-yellow-green);
    border: 1px solid rgba(233,255,72,0.18);
    margin-top: 6px; letter-spacing: 0.5px;
}

/* "Included in base" price label on IG/FB cards */
.vd-calc-opt-price.included-price {
    color: rgba(255,255,255,0.35);
    font-size: 11px; font-weight: 500;
}

/* "First N included in base" note inside steppers */
.vd-stepper-incl-note {
    display: block;
    font-size: 10px;
    color: var(--tp-common-yellow-green);
    margin-top: 3px;
    opacity: 0.8;
}

/* Discount summary row */
.vd-calc-discount-block .vd-calc-total-label { color: rgba(233,255,72,0.7); }
.vd-calc-discount-block .vd-calc-total-usd { color: rgba(233,255,72,0.85); font-weight: 700; }
