/* ForgeMVP MVP price calculator -- mobile first, built on the site tokens of
   templates/forgemvp.hu/css/style.css (accent green, dark navy, radius, shadows).
   Dark theme: [data-theme="dark"] on <html>, same switch as the rest of the site. */

.mvpc-hero {
    position: relative;
    overflow: hidden;
    padding-bottom: 88px;
}
.mvpc-hero::after {
    content: "";
    position: absolute;
    inset: auto -20% -60% -20%;
    height: 120%;
    background: radial-gradient(closest-side, rgba(16, 217, 129, 0.22), transparent 70%);
    pointer-events: none;
}
.mvpc-hero .container { position: relative; z-index: 1; }

.mvpc-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 10px;
}
.mvpc-chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 22px 0 0;
    padding: 0;
}
.mvpc-chips li {
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 14px;
}

.mvpc-section { padding-top: 0; }
.mvpc-container { max-width: 860px; }
.mvpc-app { margin-top: -64px; position: relative; z-index: 2; }

/* Steps + progress -------------------------------------------------------- */
.mvpc-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin: 0 0 10px;
    padding: 0;
}
.mvpc-steps li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}
.mvpc-steps__dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    transition: background-color .3s ease, transform .3s ease;
}
.mvpc-steps li.is-active { color: #fff; }
.mvpc-steps li.is-active .mvpc-steps__dot {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-dark);
    transform: scale(1.08);
    box-shadow: 0 0 0 6px rgba(16, 217, 129, 0.18);
}
.mvpc-steps li.is-done .mvpc-steps__dot {
    background: rgba(16, 217, 129, 0.25);
    border-color: var(--color-accent);
}
.mvpc-progress {
    height: 6px;
    border-radius: 999px;
    background: var(--color-border);
    overflow: hidden;
    margin-bottom: 18px;
}
.mvpc-progress span {
    display: block;
    height: 100%;
    width: 8%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--color-teal), var(--color-accent));
    transition: width .6s cubic-bezier(.2, .8, .2, 1);
}

/* Cards + panels ---------------------------------------------------------- */
.mvpc-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 22px 18px;
    margin-bottom: 16px;
}
.mvpc-card h2 { font-size: 24px; margin: 0 0 8px; }
.mvpc-card h3 { font-size: 18px; margin: 0 0 10px; }
.mvpc-card h3:not(:first-child) { margin-top: 18px; }
.mvpc-card--center { text-align: center; padding-top: 34px; padding-bottom: 34px; }
.mvpc-card--soft { background: var(--color-bg-light); box-shadow: none; }
.mvpc-muted { color: var(--color-text-secondary); }
.mvpc-fine { font-size: 13px; color: var(--color-text-secondary); margin: 14px 0 0; }
.mvpc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mvpc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.mvpc-panel { animation: mvpc-in .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes mvpc-in {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

.mvpc-banner {
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 14px;
    background: #fff4e5;
    border: 1px solid #f5c26b;
    color: #7a4b00;
}
.mvpc-banner a { color: inherit; font-weight: 600; }

/* Idea step --------------------------------------------------------------- */
.mvpc-textarea { position: relative; margin: 14px 0 10px; }
.mvpc-textarea textarea {
    width: 100%;
    min-height: 170px;
    resize: vertical;
    font: inherit;
    font-size: 16px;
    line-height: 1.55;
    padding: 16px 16px 34px;
    border-radius: var(--radius);
    border: 2px solid var(--color-border);
    background: var(--color-white);
    color: var(--color-text);
    transition: border-color .2s ease, box-shadow .2s ease;
    box-sizing: border-box;
}
.mvpc-textarea textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(16, 217, 129, 0.15);
}
.mvpc-count {
    position: absolute;
    right: 14px;
    bottom: 12px;
    font-size: 12px;
    color: var(--color-text-secondary);
    font-variant-numeric: tabular-nums;
}
.mvpc-count.is-near { color: #b45309; }
.mvpc-examples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.mvpc-chip {
    font: inherit;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px dashed var(--color-accent);
    background: transparent;
    color: var(--color-text);
    cursor: pointer;
    transition: background-color .2s ease;
}
.mvpc-chip:hover, .mvpc-chip:focus-visible { background: rgba(16, 217, 129, 0.12); outline: none; }

.mvpc-actions { margin-top: 20px; display: flex; gap: 10px; }
.mvpc-actions--split { justify-content: space-between; }
.mvpc-actions .btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.mvpc-btn-lg { width: 100%; padding: 16px 24px; font-size: 17px; }
.btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-busy::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid rgba(26, 31, 58, 0.25);
    border-top-color: var(--color-dark);
    animation: mvpc-spin .8s linear infinite;
}
@keyframes mvpc-spin { to { transform: rotate(360deg); } }

/* AI thinking orbit ------------------------------------------------------- */
.mvpc-orbit { position: relative; width: 84px; height: 84px; margin: 0 auto 18px; }
.mvpc-orbit span {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--color-accent);
    animation: mvpc-spin 1.2s linear infinite;
}
.mvpc-orbit span:nth-child(2) { inset: 12px; border-top-color: var(--color-teal); animation-duration: 1.6s; animation-direction: reverse; }
.mvpc-orbit span:nth-child(3) { inset: 26px; background: radial-gradient(circle, var(--color-accent) 0 30%, transparent 32%); border: 0; animation: mvpc-pulse 1.4s ease-in-out infinite; }
@keyframes mvpc-pulse { 50% { transform: scale(.6); opacity: .6; } }
.mvpc-rotate { min-height: 1.6em; transition: opacity .3s ease; }

/* Questions --------------------------------------------------------------- */
.mvpc-summary {
    border-left: 4px solid var(--color-accent);
    background: var(--color-white);
    border-radius: 0 var(--radius) var(--radius) 0;
    box-shadow: var(--shadow-sm);
    padding: 12px 16px;
    margin-bottom: 14px;
}
.mvpc-summary__label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--color-teal); }
.mvpc-summary p { margin: 4px 0 0; }
.mvpc-qhead { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--color-text-secondary); margin-bottom: 8px; }
.mvpc-qcount { font-weight: 700; color: var(--color-teal); }
.mvpc-qtext { font-size: 21px !important; line-height: 1.35; }
.mvpc-qhelp { margin: 0 0 14px; font-size: 14px; }
.mvpc-qcard.is-swapping .mvpc-qtext,
.mvpc-qcard.is-swapping .mvpc-options { opacity: 0; transform: translateX(10px); }
.mvpc-qtext, .mvpc-options { transition: opacity .2s ease, transform .2s ease; }

.mvpc-options { display: grid; gap: 10px; }
.mvpc-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    font: inherit;
    font-size: 16px;
    padding: 14px 16px;
    border-radius: var(--radius);
    border: 2px solid var(--color-border);
    background: var(--color-white);
    color: var(--color-text);
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.mvpc-option:hover { border-color: rgba(16, 217, 129, 0.6); transform: translateY(-1px); }
.mvpc-option:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(16, 217, 129, 0.2); }
.mvpc-option__mark {
    flex: 0 0 22px;
    height: 22px;
    border: 2px solid var(--color-border);
    border-radius: 50%;
    display: grid;
    place-items: center;
    transition: all .15s ease;
}
.mvpc-option[role="checkbox"] .mvpc-option__mark { border-radius: 6px; }
.mvpc-option[aria-checked="true"] { border-color: var(--color-accent); background: rgba(16, 217, 129, 0.08); }
.mvpc-option[aria-checked="true"] .mvpc-option__mark { background: var(--color-accent); border-color: var(--color-accent); }
.mvpc-option[aria-checked="true"] .mvpc-option__mark::after {
    content: "";
    width: 6px;
    height: 11px;
    border: solid var(--color-dark);
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg) translate(-1px, -1px);
}

/* Contact step ------------------------------------------------------------ */
.mvpc-bg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(15, 118, 110, 0.1);
    color: var(--color-teal);
    margin-bottom: 14px;
}
.mvpc-bg__dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; animation: mvpc-pulse 1.2s ease-in-out infinite; }
.mvpc-bg[data-state="ready"] { background: rgba(16, 217, 129, 0.14); color: #067a4b; }
.mvpc-bg[data-state="ready"] .mvpc-bg__dot { animation: none; }
.mvpc-bg[data-state="failed"] { background: var(--color-bg-light); color: var(--color-text-secondary); }
.mvpc-bg[data-state="failed"] .mvpc-bg__dot { animation: none; }

.mvpc-form { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 14px; }
.mvpc-field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.mvpc-field label, .mvpc-field legend { font-weight: 600; font-size: 15px; padding: 0; }
.mvpc-field input[type="text"], .mvpc-field input[type="email"], .mvpc-field input[type="tel"] {
    font: inherit;
    font-size: 16px;
    padding: 13px 14px;
    border-radius: var(--radius);
    border: 2px solid var(--color-border);
    background: var(--color-white);
    color: var(--color-text);
    width: 100%;
    box-sizing: border-box;
}
.mvpc-field input:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 4px rgba(16, 217, 129, 0.15); }
.mvpc-field__err { display: none; font-size: 13px; color: #c2410c; }
.mvpc-field.has-error .mvpc-field__err { display: block; }
.mvpc-field.has-error input[type="text"], .mvpc-field.has-error input[type="email"], .mvpc-field.has-error input[type="tel"] { border-color: #ea580c; }

.mvpc-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.mvpc-pill { cursor: pointer; font-weight: 500 !important; }
.mvpc-pill input { position: absolute; opacity: 0; pointer-events: none; }
.mvpc-pill span {
    display: inline-block;
    padding: 9px 14px;
    border-radius: 999px;
    border: 2px solid var(--color-border);
    font-size: 14px;
    transition: all .15s ease;
}
.mvpc-pill input:checked + span { border-color: var(--color-accent); background: rgba(16, 217, 129, 0.12); }
.mvpc-pill input:focus-visible + span { box-shadow: 0 0 0 4px rgba(16, 217, 129, 0.2); }

.mvpc-motivation-out { display: inline-block; min-width: 1.4em; margin-left: 6px; font-size: 20px; font-weight: 800; color: var(--color-accent); }
.mvpc-field input[type="range"] { width: 100%; accent-color: var(--color-accent); height: 28px; }
.mvpc-range-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--color-text-secondary); }
.mvpc-consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; }
.mvpc-consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--color-accent); flex: 0 0 auto; }

/* Result ------------------------------------------------------------------ */
.mvpc-eval {
    background: var(--gradient-accent);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-md);
}
.mvpc-eval h2 { color: #fff; font-size: 26px; line-height: 1.3; margin: 0 0 6px; }
.mvpc-eval__title { margin: 0; opacity: .85; }
.mvpc-result-grid { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
.mvpc-package { border: 2px solid var(--color-accent); }
.mvpc-package h3 { font-size: 22px !important; }
.mvpc-facts { margin: 14px 0; display: grid; gap: 10px; }
.mvpc-facts div { display: flex; flex-direction: column; padding: 12px 14px; border-radius: var(--radius); background: var(--color-bg-light); }
.mvpc-facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--color-text-secondary); }
.mvpc-facts dd { margin: 2px 0 0; font-size: 20px; font-weight: 800; color: var(--color-text); }
.mvpc-facts dd.mvpc-facts__sub { margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--color-text-secondary); }
.mvpc-checks, .mvpc-dots { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mvpc-checks li { position: relative; padding-left: 28px; }
.mvpc-checks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(16, 217, 129, 0.18);
}
.mvpc-checks li::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 6px;
    width: 5px;
    height: 9px;
    border: solid #067a4b;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.mvpc-dots li { position: relative; padding-left: 18px; color: var(--color-text-secondary); }
.mvpc-dots li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--color-teal); }
.mvpc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mvpc-tags span { padding: 5px 12px; border-radius: 999px; font-size: 13px; background: rgba(15, 118, 110, 0.1); color: var(--color-teal); font-weight: 600; }
.mvpc-modules { display: grid; grid-template-columns: 1fr; gap: 10px; }
.mvpc-module { border: 1px solid var(--color-border); border-radius: var(--radius); padding: 12px 14px; }
.mvpc-module strong { display: block; margin-bottom: 3px; }
.mvpc-module p { margin: 0; font-size: 14px; color: var(--color-text-secondary); }
.mvpc-timeline { list-style: none; margin: 0; padding: 0; counter-reset: phase; }
.mvpc-timeline > li { position: relative; padding: 0 0 18px 44px; counter-increment: phase; }
.mvpc-timeline > li::before {
    content: counter(phase);
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--color-dark);
    color: var(--color-accent);
    font-weight: 800;
    font-size: 14px;
}
.mvpc-timeline > li::after { content: ""; position: absolute; left: 14px; top: 32px; bottom: 2px; width: 2px; background: var(--color-border); }
.mvpc-timeline > li:last-child { padding-bottom: 0; }
.mvpc-timeline > li:last-child::after { display: none; }
.mvpc-timeline strong { display: block; margin: 4px 0 4px; }
.mvpc-timeline ul { margin: 0; padding-left: 18px; color: var(--color-text-secondary); font-size: 14px; }
.mvpc-cta { background: var(--color-dark); color: #fff; border: 0; }
.mvpc-cta h3, .mvpc-cta p { color: #fff; }
.mvpc-cta__next { margin: 12px 0 0; font-weight: 600; color: var(--color-accent) !important; }

.mvpc-eval__mailed {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 0;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 14px;
    font-weight: 600;
}
.mvpc-eval__mailed::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); }
.mvpc-cta__buttons { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.mvpc-cta__buttons .btn { width: 100%; }
.mvpc-cta .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); background: transparent; font: inherit; font-weight: 600; }
.mvpc-cta .btn-ghost:hover { border-color: #fff; }
.mvpc-privacy-note { margin: 0; }
.mvpc-callback { max-width: 620px; margin: -64px auto 0; position: relative; z-index: 2; }
.mvpc-callback .btn { margin-top: 10px; }

/* Larger screens ---------------------------------------------------------- */
@media (min-width: 720px) {
    .mvpc-card { padding: 30px 32px; }
    .mvpc-steps li { flex-direction: row; justify-content: center; font-size: 14px; }
    .mvpc-form { grid-template-columns: 1fr 1fr; gap: 18px 20px; }
    .mvpc-field--wide { grid-column: 1 / -1; }
    .mvpc-btn-lg { width: auto; min-width: 280px; }
    .mvpc-result-grid { grid-template-columns: 1.1fr 1fr; }
    .mvpc-modules { grid-template-columns: 1fr 1fr; }
    .mvpc-eval { padding: 36px 36px; }
    .mvpc-eval h2 { font-size: 30px; }
    .mvpc-options--grid { grid-template-columns: 1fr 1fr; }
    .mvpc-cta__buttons { flex-direction: row; }
    .mvpc-cta__buttons .btn { width: auto; }
}
@media (max-width: 480px) {
    .mvpc-steps__label { font-size: 11px; }
    .page-hero.mvpc-hero h1 { font-size: 30px; }
    .page-hero.mvpc-hero p { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
    .mvpc-panel, .mvpc-orbit span, .mvpc-bg__dot, .btn.is-busy::after { animation: none !important; }
    .mvpc-progress span, .mvpc-option, .mvpc-qtext, .mvpc-options { transition: none !important; }
}

/* Dark theme -------------------------------------------------------------- */
[data-theme="dark"] .mvpc-card,
[data-theme="dark"] .mvpc-summary,
[data-theme="dark"] .mvpc-option,
[data-theme="dark"] .mvpc-textarea textarea,
[data-theme="dark"] .mvpc-field input[type="text"],
[data-theme="dark"] .mvpc-field input[type="email"],
[data-theme="dark"] .mvpc-field input[type="tel"] {
    background: #171d33;
}
[data-theme="dark"] .mvpc-card--soft,
[data-theme="dark"] .mvpc-facts div { background: #12172a; }
[data-theme="dark"] .mvpc-cta { background: #0b1020; border: 1px solid var(--color-border); }
[data-theme="dark"] .mvpc-bg[data-state="ready"],
[data-theme="dark"] .mvpc-checks li::after { color: var(--color-accent); border-color: var(--color-accent); }
[data-theme="dark"] .mvpc-tags span { color: #5eead4; }
[data-theme="dark"] .mvpc-banner { background: #3a2a0c; border-color: #8a6420; color: #fde7b0; }
[data-theme="dark"] .mvpc-chip { color: var(--color-text); }
