/* Standalone page shell: page background and floating home logo. */
.standalone-page {
    margin: 0;
    background: #f8fafc;
}

.standalone-home-link {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.08);
}

.standalone-home-link img {
    display: block;
    width: 132px;
    height: auto;
}

.mvp-estimate-page,
.mvp-estimate-page * {
    box-sizing: border-box;
}

.mvp-estimate-page {
    padding: 112px 16px 72px;
    font-family: Inter, "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #101828;
}

.mvp-estimate-shell {
    max-width: 560px;
    margin: 0 auto;
}

.mvp-estimate-kicker {
    margin: 0 0 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ff4d4f;
}

.mvp-estimate-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(16, 24, 40, 0.12);
    overflow: hidden;
}

.mvp-estimate-progress {
    padding: 20px 20px 0;
}

.mvp-estimate-progress-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #667085;
}

.mvp-estimate-progress-bar {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #f2f4f7;
    overflow: hidden;
}

.mvp-estimate-progress-fill {
    width: 14.285%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff5a5f 0%, #ff7a59 100%);
    transition: width 0.25s ease;
}

.mvp-estimate-step {
    display: none;
    padding: 24px 20px 20px;
}

.mvp-estimate-step.is-active {
    display: block;
}

.mvp-estimate-title {
    margin: 0;
    font-size: 34px;
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #101828;
}

.mvp-estimate-subtitle {
    margin: 12px 0 0;
    font-size: 16px;
    line-height: 1.5;
    color: #667085;
}

.mvp-estimate-textarea,
.mvp-estimate-input {
    display: block;
    width: 100%;
    margin-top: 24px;
    padding: 18px 18px;
    border: 1px solid #d0d5dd;
    border-radius: 18px;
    background: #ffffff;
    font-size: 16px;
    line-height: 1.5;
    color: #101828;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mvp-estimate-textarea:hover,
.mvp-estimate-input:hover {
    border-color: #aeb7c4;
    box-shadow: 0 8px 18px rgba(16, 24, 40, 0.045);
}

.mvp-estimate-textarea {
    min-height: 116px;
    resize: vertical;
}

.mvp-estimate-textarea:focus,
.mvp-estimate-input:focus {
    border-color: #ff5a5f;
    box-shadow: 0 0 0 4px rgba(255, 90, 95, 0.12);
}

.mvp-estimate-options,
.mvp-estimate-checks {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.mvp-estimate-option,
.mvp-estimate-check {
    position: relative;
    display: block;
    cursor: pointer;
    border-radius: 18px;
}

.mvp-estimate-option input,
.mvp-estimate-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mvp-estimate-option-card,
.mvp-estimate-check-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 68px;
    padding: 18px 18px;
    border: 1px solid #d0d5dd;
    border-radius: 18px;
    background: #ffffff;
    font-size: 17px;
    font-weight: 600;
    color: #101828;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.mvp-estimate-option:hover .mvp-estimate-option-card,
.mvp-estimate-check:hover .mvp-estimate-check-card {
    border-color: #b6bfcb;
    background: #fafbfc;
    box-shadow: 0 10px 22px rgba(16, 24, 40, 0.055);
    transform: translateY(-1px);
}

.mvp-estimate-option:hover .mvp-estimate-option-card:after,
.mvp-estimate-check:hover .mvp-estimate-check-card:after {
    border-color: #aeb7c4;
}

.mvp-estimate-option-card:after,
.mvp-estimate-check-card:after {
    content: "";
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    border: 1px solid #d0d5dd;
    border-radius: 50%;
    background: #ffffff;
    transition: all 0.2s ease;
}

.mvp-estimate-check-card:after {
    border-radius: 6px;
}

.mvp-estimate-option input:checked + .mvp-estimate-option-card,
.mvp-estimate-check input:checked + .mvp-estimate-check-card {
    border-color: #ff5a5f;
    background: #fff6f6;
    box-shadow: 0 12px 30px rgba(255, 90, 95, 0.12);
    transform: translateY(-1px);
}

.mvp-estimate-option input:checked + .mvp-estimate-option-card:after,
.mvp-estimate-check input:checked + .mvp-estimate-check-card:after {
    border-color: #ff5a5f;
    background: #ff5a5f;
    box-shadow: inset 0 0 0 4px #ffffff;
}

.mvp-estimate-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.mvp-estimate-button,
.mvp-estimate-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 20px;
    border-radius: 16px;
    border: 0;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.mvp-estimate-button {
    flex: 1 1 auto;
    background: #101828;
    color: #ffffff;
}

.mvp-estimate-button:hover,
.mvp-estimate-button:focus-visible {
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(16, 24, 40, 0.1);
}

.mvp-estimate-button:focus:not(:focus-visible) {
    box-shadow: none;
    transform: none;
}

.mvp-estimate-button[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.mvp-estimate-secondary {
    flex: 0 0 auto;
    padding: 0 16px;
    background: #f2f4f7;
    color: #344054;
}

.mvp-estimate-secondary:hover,
.mvp-estimate-secondary:focus-visible {
    background: #e4e9f0;
    color: #344054;
    text-decoration: none;
    transform: translateY(-1px);
}

.mvp-estimate-secondary:focus:not(:focus-visible) {
    transform: none;
}

.mvp-estimate-contact-methods {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 24px;
}

.mvp-estimate-contact-toggle {
    min-height: 56px;
    border: 1px solid #d0d5dd;
    border-radius: 16px;
    background: #ffffff;
    font-size: 16px;
    font-weight: 700;
    color: #101828;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.mvp-estimate-contact-toggle:hover {
    border-color: #b6bfcb;
    background: #fafbfc;
    box-shadow: 0 10px 22px rgba(16, 24, 40, 0.055);
    transform: translateY(-1px);
    cursor: pointer;
}

.mvp-estimate-contact-toggle.is-active {
    border-color: #ff5a5f;
    background: #fff6f6;
    box-shadow: 0 12px 30px rgba(255, 90, 95, 0.12);
}

.mvp-estimate-hint,
.mvp-estimate-error {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.5;
}

.mvp-estimate-hint {
    color: #667085;
}

.mvp-estimate-error {
    display: none;
    color: #d92d20;
}

.mvp-estimate-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    text-align: center;
}

.mvp-estimate-spinner {
    width: 56px;
    height: 56px;
    border: 4px solid #eaecf0;
    border-top-color: #ff5a5f;
    border-radius: 50%;
    animation: mvp-estimate-spin 0.9s linear infinite;
}

.mvp-estimate-result {
    padding-top: 28px;
}

.mvp-estimate-price {
    margin: 24px 0 8px;
    font-size: 48px;
    line-height: 0.95;
    font-weight: 800;
    letter-spacing: -0.06em;
    color: #101828;
}

.mvp-estimate-result-subtitle {
    font-size: 15px;
    line-height: 1.5;
    color: #667085;
}

.mvp-estimate-timeline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 10px 14px;
    border-radius: 999px;
    background: #f9fafb;
    font-size: 14px;
    font-weight: 700;
    color: #344054;
}

.mvp-estimate-segment {
    margin-top: 20px;
    padding: 18px;
    border: 1px solid #eaecf0;
    border-radius: 18px;
    background: #f9fafb;
}

.mvp-estimate-segment-title {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    color: #101828;
}

.mvp-estimate-segment-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #475467;
}

.mvp-estimate-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.mvp-estimate-pill {
    padding: 9px 12px;
    border-radius: 999px;
    background: #fff6f6;
    font-size: 13px;
    font-weight: 700;
    color: #b42318;
}

.mvp-estimate-result-actions {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.mvp-estimate-contact {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #eaecf0;
}

.mvp-estimate-contact-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #475467;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.mvp-estimate-contact-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 10px;
}

.mvp-estimate-messenger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 14px;
    border-radius: 16px;
    border: 1px solid #eaecf0;
    background: #ffffff;
    font-size: 15px;
    font-weight: 800;
    color: #101828;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.mvp-estimate-messenger:hover,
.mvp-estimate-messenger:focus-visible {
    text-decoration: none;
    color: #101828;
    background: #f9fafb;
    border-color: #d0d5dd;
    box-shadow: 0 8px 18px rgba(16, 24, 40, 0.055);
    transform: translateY(-1px);
}

/* Avoid "stuck pressed" state after returning from external apps (browser keeps focus). */
.mvp-estimate-messenger:focus:not(:focus-visible) {
    box-shadow: none;
    transform: none;
}

.mvp-estimate-messenger-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #f2f4f7;
    color: #344054;
    flex: 0 0 auto;
}

.mvp-estimate-messenger--telegram .mvp-estimate-messenger-icon {
    background: #e8f6ff;
    color: #229ED9;
}

.mvp-estimate-messenger--whatsapp .mvp-estimate-messenger-icon {
    background: #eafaf0;
    color: #25D366;
}

.mvp-estimate-contact-hint {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.6;
    color: #475467;
}

.mvp-estimate-lead {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid #eaecf0;
    border-radius: 20px;
    background: #f9fafb;
}

.mvp-estimate-lead-title {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
    color: #101828;
}

.mvp-estimate-lead-subtitle {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: #667085;
}

.mvp-estimate-lead-required {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 600;
    color: #b42318;
}

.mvp-estimate-lead-grid {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.mvp-estimate-lead-grid .mvp-estimate-input,
.mvp-estimate-lead-textarea {
    margin-top: 0;
}

.mvp-estimate-lead-textarea {
    min-height: 120px;
    margin-top: 12px;
}

.mvp-estimate-result-note {
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.5;
    color: #667085;
}

.mvp-estimate-success {
    display: none;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: #067647;
}

.mvp-estimate-detailed {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid #eaecf0;
    border-radius: 20px;
    background: #f9fafb;
}

.mvp-estimate-file-row {
    margin-top: 12px;
}

.mvp-estimate-file-input { display: none; }

.mvp-estimate-file-ui {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 8px;
	padding: 0 12px;
	border: 1px solid #eaecf0;
	border-radius: 16px;
	background: #fff;
	box-shadow: none;
	cursor: pointer;
	transition: all .15s ease;
	width: 100%;
	overflow: hidden;
	min-height: 56px; /* align with inputs */
}
.mvp-estimate-file-ui:hover {
	border-color: #d0d5dd;
	box-shadow: none;
	transform: none; /* avoid jump */
}
.mvp-estimate-file-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 14px;
	border-radius: 12px;
	background: #101828; /* revert to black */
	color: #fff;
	font-weight: 600;
	font-size: 14px;
	white-space: nowrap;
	flex: 0 0 auto;
}
.mvp-estimate-file-ui:hover .mvp-estimate-file-button {
	background: #0b1220; /* darker on hover */
}
.mvp-estimate-file-name {
	color: #475467;
	font-size: 14px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	flex: 1 1 auto;
	min-width: 0;
}

.mvp-estimate-file-hint {
    margin-top: 6px;
}

@keyframes mvp-estimate-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (min-width: 768px) {
    .mvp-estimate-page {
        padding-top: 132px;
    }

    .mvp-estimate-card {
        border-radius: 32px;
    }

    .mvp-estimate-progress,
    .mvp-estimate-step {
        padding-left: 28px;
        padding-right: 28px;
    }

    .mvp-estimate-step {
        padding-bottom: 28px;
    }

    .mvp-estimate-title {
        font-size: 48px;
    }

    .mvp-estimate-price {
        font-size: 72px;
    }

    .mvp-estimate-result-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mvp-estimate-contact-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mvp-estimate-lead-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {

    .standalone-home-link {
        top: 16px;
        left: 16px;
        right: auto;
        bottom: auto;
        padding: 8px 12px;
    }

    .standalone-home-link img {
        width: 110px;
    }
}
