:root {
    --ames-black: #030303;
    --ames-ink: #0b0707;
    --ames-panel: rgba(16, 10, 10, 0.94);
    --ames-panel-soft: rgba(32, 18, 18, 0.86);
    --ames-red: #ff3030;
    --ames-red-deep: #8f1010;
    --ames-line: rgba(255, 48, 48, 0.36);
    --ames-white: #f7f4f2;
    --ames-muted: #f3efec;
    --ames-label: #c9beb8;
    --ames-success: #21c76a;
    --ames-success-deep: #118343;
    --ames-warning: #f5b84b;
}

html,
body {
    min-height: 100%;
    overflow-x: hidden;
    background: var(--ames-black);
    color: var(--ames-white);
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 72% 16%, rgba(255, 48, 48, 0.16), transparent 28%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.98) 0%, rgba(25, 4, 4, 0.95) 48%, rgba(0, 0, 0, 0.98) 100%),
        repeating-linear-gradient(115deg, transparent 0 78px, rgba(255, 48, 48, 0.1) 79px, transparent 82px);
}

section,
.section-padding {
    position: relative;
    padding: 3rem 0;
    overflow: hidden;
}

.gradient-bg1,
.gradient-bg1.bg-overlay,
.navbar-gradient {
    background: #100b0b !important;
    background-image: linear-gradient(90deg, #1b1111 0%, #170d0d 56%, #260909 100%) !important;
}

.bg-overlay {
    opacity: 1;
    pointer-events: none;
}

.navbar-top-default {
    position: relative !important;
    top: auto !important;
    border-bottom: 1px solid rgba(255, 48, 48, 0.28);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
}

.navbar .container {
    min-height: 76px;
    justify-content: center;
}

.logo.ames-logo {
    display: flex;
    align-items: center;
}

.logo.ames-logo img {
    width: 172px;
    max-height: 54px;
    object-fit: contain;
}

.roi-shell {
    position: relative;
    z-index: 1;
    width: min(980px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 72px;
}

.roi-hero {
    max-width: 690px;
    margin: 0 auto;
    text-align: center;
}

.step-kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--ames-success);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.roi-hero h1 {
    margin: 0;
    color: var(--ames-white);
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 0.96;
    letter-spacing: 0;
    text-transform: uppercase;
    text-shadow: 0 18px 55px rgba(0, 0, 0, 0.72);
}

.roi-hero p {
    max-width: 610px;
    margin: 6px auto 0;
    color: var(--ames-white);
    font-size: 16px;
    line-height: 1.45;
}

.roi-wizard {
    overflow: hidden;
    max-width: 820px;
    margin: 0 auto;
    border: 1px solid var(--ames-line);
    border-radius: 8px;
    background: var(--ames-panel);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
}

.wizard-progress {
    display: grid;
    grid-template-columns: 34px 1fr 34px 1fr 34px 1fr 34px 1fr 34px;
    align-items: center;
    gap: 8px;
    padding: 28px 30px 0;
}

.progress-step {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(255, 48, 48, 0.28);
    border-radius: 50%;
    color: var(--ames-label);
    background: rgba(0, 0, 0, 0.45);
    font-size: 15px;
    font-weight: 800;
}

.progress-step.is-active,
.progress-step.is-complete {
    color: var(--ames-white);
    border-color: var(--ames-red);
    background: var(--ames-red-deep);
}

.progress-line {
    height: 1px;
    background: rgba(255, 48, 48, 0.18);
}

.progress-line.is-complete {
    background: var(--ames-red);
}

.wizard-step {
    display: none;
    padding: 34px 42px 42px;
}

.wizard-step.is-active {
    display: block;
}

.step-copy {
    margin-bottom: 28px;
}

.step-copy h2 {
    margin: 0;
    color: var(--ames-white);
    font-size: 28px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 0;
    text-transform: uppercase;
}

.step-copy p,
.field-note {
    margin: 14px 0 0;
    color: var(--ames-white);
    font-size: 15px;
    line-height: 1.65;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.field-control {
    display: grid;
    gap: 8px;
    margin: 0 0 18px;
    color: var(--ames-white);
}

.field-control span,
.option-group legend {
    color: var(--ames-label);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.field-control input,
.field-control select {
    width: 100%;
    min-height: 54px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid rgba(255, 48, 48, 0.36);
    border-radius: 8px;
    color: var(--ames-white) !important;
    background: rgba(0, 0, 0, 0.54);
    font-size: 16px;
    font-weight: 500;
}

.field-control select {
    cursor: pointer;
}

.field-control input:focus,
.field-control select:focus {
    color: var(--ames-white) !important;
    border-color: var(--ames-red);
    background: rgba(0, 0, 0, 0.78);
    box-shadow: 0 0 0 0.2rem rgba(255, 48, 48, 0.14);
}

.field-control input:-webkit-autofill,
.field-control input:-webkit-autofill:hover,
.field-control input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--ames-white);
    caret-color: var(--ames-white);
}

.field-control input::placeholder {
    color: rgba(247, 244, 242, 0.45);
}

.field-control input.is-disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.compact-field {
    max-width: 320px;
}

.percent-input {
    position: relative;
}

.percent-input input {
    padding-right: 48px;
}

.percent-input em {
    position: absolute;
    top: 50%;
    right: 16px;
    color: var(--ames-success);
    font-style: normal;
    font-weight: 900;
    transform: translateY(-50%);
}

.check-card,
.option-group label {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 0;
    border: 1px solid rgba(255, 48, 48, 0.22);
    border-radius: 8px;
    color: var(--ames-white);
    background: rgba(0, 0, 0, 0.26);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.check-card {
    padding: 16px;
}

.check-card:hover,
.option-group label:hover,
.check-card.is-selected,
.option-group label.is-selected {
    border-color: var(--ames-success);
    background: rgba(33, 199, 106, 0.12);
}

.check-card input,
.option-group input {
    accent-color: var(--ames-success);
    margin-top: 4px;
}

.check-card strong,
.check-card small {
    display: block;
}

.check-card small {
    margin-top: 4px;
    color: var(--ames-white);
    font-size: 13px;
    line-height: 1.45;
}

.option-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0 0;
    padding: 0;
    border: 0;
}

.option-group legend {
    grid-column: 1 / -1;
    margin-bottom: 2px;
}

.option-group label {
    min-height: 54px;
    padding: 15px;
    align-items: center;
}

.info-panel,
.diagnosis-panel {
    margin-bottom: 22px;
    padding: 18px;
    border: 1px solid rgba(255, 48, 48, 0.25);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 48, 48, 0.12), rgba(0, 0, 0, 0.32));
}

.info-panel strong,
.info-panel span {
    display: block;
}

.info-panel strong {
    color: var(--ames-white);
    font-size: 16px;
}

.info-panel span {
    margin-top: 6px;
    color: var(--ames-white);
    line-height: 1.6;
}

.form-message {
    display: none;
    margin: 8px 0 0;
    padding: 11px 14px;
    border: 1px solid rgba(255, 48, 48, 0.36);
    border-radius: 8px;
    color: #ffd6d6;
    background: rgba(143, 16, 16, 0.24);
    font-size: 14px;
    font-weight: 500;
}

.form-message.is-visible {
    display: block;
}

.step-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 30px;
}

.primary-action,
.ghost-action {
    min-height: 52px;
    padding: 0 22px;
    border-radius: 8px;
    font-weight: 900;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.primary-action {
    color: var(--ames-white);
    border-color: #18a956;
    background: #18a956;
    box-shadow: 0 18px 38px rgba(24, 169, 86, 0.24);
}

.ghost-action {
    color: var(--ames-white);
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
}

.primary-action:hover,
.ghost-action:hover {
    transform: translateY(-1px);
}

.result-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
}

.result-card {
    min-height: 152px;
    padding: 18px;
    border: 1px solid rgba(255, 48, 48, 0.25);
    border-radius: 8px;
    background: var(--ames-panel-soft);
}

.result-card-main {
    background: linear-gradient(135deg, rgba(143, 16, 16, 0.88), rgba(255, 48, 48, 0.36));
}

.result-card span,
.result-card small {
    display: block;
}

.result-card span {
    color: var(--ames-label);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.result-card strong {
    display: block;
    margin: 14px 0 10px;
    color: var(--ames-white);
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
}

.result-card small {
    color: var(--ames-white);
    font-size: 13px;
    line-height: 1.45;
}

.diagnosis-panel {
    margin-top: 35px;
    margin-bottom: 0;
}

.diagnosis-panel[data-status="strong"] {
    border-color: rgba(33, 199, 106, 0.55);
    background: linear-gradient(135deg, rgba(33, 199, 106, 0.16), rgba(0, 0, 0, 0.34));
}

.diagnosis-panel[data-status="neutral"] {
    border-color: rgba(245, 184, 75, 0.55);
    background: linear-gradient(135deg, rgba(245, 184, 75, 0.14), rgba(0, 0, 0, 0.34));
}

.diagnosis-panel h3 {
    margin: 0;
    color: var(--ames-white);
    font-size: 22px;
    font-weight: 900;
}

.diagnosis-panel p {
    margin: 10px 0 0;
    color: var(--ames-white);
    line-height: 1.65;
}

.diagnosis-panel ul {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.diagnosis-panel li {
    position: relative;
    padding-left: 20px;
    color: var(--ames-white);
    line-height: 1.55;
}

.diagnosis-panel li::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ames-success);
}

.footer-style-1 {
    position: relative;
    z-index: 1;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 48, 48, 0.22);
}

.company-about {
    margin: 0;
    color: var(--ames-white) !important;
    text-align: center;
}

@media screen and (max-width: 900px) {
    .roi-shell {
        width: min(100% - 24px, 760px);
        padding-top: 0;
    }

    .result-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 767px) {
    .navbar .container {
        min-height: 68px;
    }

    .logo.ames-logo img {
        width: 140px;
    }

    .roi-hero p {
        font-size: 16px;
    }

    .wizard-progress {
        grid-template-columns: repeat(5, 34px);
        justify-content: space-between;
        padding: 22px 18px 0;
    }

    .progress-line {
        display: none;
    }

    .wizard-step {
        padding: 28px 18px 30px;
    }

    .field-grid,
    .option-group {
        grid-template-columns: 1fr;
    }

    .field-control,
    .field-control span,
    .check-card span {
        text-align: left;
    }

    .step-actions {
        flex-direction: column-reverse;
    }

    .primary-action,
    .ghost-action {
        width: 100%;
    }
}

@media screen and (max-width: 420px) {
    .roi-shell {
        width: calc(100% - 20px);
    }

    .step-kicker {
        letter-spacing: 3px;
    }

    .roi-hero h1 {
        font-size: 2rem;
    }

    .step-copy h2 {
        font-size: 28px;
    }
}
