:root {
    --raf-v2-accent: #6f1f1f;
    --raf-v2-accent-dark: #541616;
    --raf-v2-text: #252525;
    --raf-v2-muted: #6e6e6e;
    --raf-v2-border: #ded8d0;
    --raf-v2-surface: #f7f4ef;
    --raf-v2-white: #ffffff;
    --raf-v2-success: #287b47;
    --raf-v2-error: #a32626;
    --raf-v2-radius: 18px;
    --raf-v2-shadow: 0 18px 50px rgba(31, 24, 18, 0.08);
}

.raf-v2-wrap {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    color: var(--raf-v2-text);
}

.raf-v2-form {
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 5vw, 58px);
    border: 1px solid var(--raf-v2-border);
    border-radius: var(--raf-v2-radius);
    background: var(--raf-v2-white);
    box-shadow: var(--raf-v2-shadow);
}

.raf-v2-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.raf-v2-stage {
    position: relative;
    transition: height 0.36s ease;
}

.raf-v2-step {
    display: none;
    width: 100%;
    opacity: 0;
    transform: translateX(0);
    transition: opacity 0.36s ease, transform 0.36s ease;
}

.raf-v2-step.is-active {
    display: block;
    opacity: 1;
}

.raf-v2-step.is-preparing {
    position: absolute;
    inset: 0 auto auto 0;
    display: block;
    pointer-events: none;
}

.raf-v2-step.from-right {
    opacity: 0;
    transform: translateX(42px);
}

.raf-v2-step.from-left {
    opacity: 0;
    transform: translateX(-42px);
}

.raf-v2-step.leave-left {
    position: absolute;
    inset: 0 auto auto 0;
    opacity: 0;
    transform: translateX(-42px);
    pointer-events: none;
}

.raf-v2-step.leave-right {
    position: absolute;
    inset: 0 auto auto 0;
    opacity: 0;
    transform: translateX(42px);
    pointer-events: none;
}

.raf-v2-progress {
    position: relative;
    margin: 0 0 48px;
}

.raf-v2-progress__line {
    position: absolute;
    top: 18px;
    left: 18px;
    right: 18px;
    height: 3px;
    overflow: hidden;
    background: #e4ddd6;
}

.raf-v2-progress__fill {
    display: block;
    width: 0;
    height: 100%;
    background: var(--raf-v2-accent);
    transition: width 0.35s ease;
}

.raf-v2-progress__steps {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.raf-v2-progress__item {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    text-align: center;
}

.raf-v2-progress__circle {
    position: relative;
    z-index: 2;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 2px solid var(--raf-v2-border);
    border-radius: 50%;
    background: var(--raf-v2-white);
    color: var(--raf-v2-muted);
    font-size: 14px;
    font-weight: 800;
    transition: all 0.25s ease;
}

.raf-v2-progress__item.is-active .raf-v2-progress__circle,
.raf-v2-progress__item.is-complete .raf-v2-progress__circle {
    border-color: var(--raf-v2-accent);
    background: var(--raf-v2-accent);
    color: var(--raf-v2-white);
}

.raf-v2-progress__item.is-complete .raf-v2-progress__circle {
    font-size: 0;
}

.raf-v2-progress__item.is-complete .raf-v2-progress__circle::after {
    content: "✓";
    font-size: 15px;
}

.raf-v2-progress__label {
    margin-top: 8px;
    color: var(--raf-v2-muted);
    font-size: 12px;
    font-weight: 700;
}

.raf-v2-progress__item.is-active .raf-v2-progress__label {
    color: var(--raf-v2-accent);
}

.raf-v2-step__header,
.raf-v2-info-box {
    margin-bottom: 32px;
}

.raf-v2-step__header h2,
.raf-v2-info-box h2 {
    margin: 6px 0 12px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
}

.raf-v2-step__header p,
.raf-v2-info-box p {
    max-width: 760px;
    margin: 0 0 12px;
    color: var(--raf-v2-muted);
    font-size: 17px;
    line-height: 1.7;
}

.raf-v2-kicker {
    display: inline-block;
    color: var(--raf-v2-accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.raf-v2-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.raf-v2-choice,
.raf-v2-radio-card {
    position: relative;
    min-height: 116px;
    margin: 0;
    border: 1px solid var(--raf-v2-border);
    border-radius: 14px;
    background: var(--raf-v2-surface);
    color: var(--raf-v2-text);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.raf-v2-choice {
    display: flex;
    width: 100%;
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    cursor: pointer;
}

.raf-v2-choice:hover,
.raf-v2-choice:focus-visible,
.raf-v2-choice.is-selected,
.raf-v2-radio-card:hover,
.raf-v2-radio-card:has(input:checked) {
    border-color: var(--raf-v2-accent);
    background: var(--raf-v2-white);
    box-shadow: 0 10px 26px rgba(111, 31, 31, 0.1);
    transform: translateY(-2px);
}

.raf-v2-choice__title {
    margin-bottom: 7px;
    font-size: 21px;
    font-weight: 800;
}

.raf-v2-choice__text {
    color: var(--raf-v2-muted);
    font-size: 15px;
    line-height: 1.55;
}

.raf-v2-radio-card {
    display: block;
    cursor: pointer;
}

.raf-v2-radio-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.raf-v2-radio-card > span {
    display: flex;
    min-height: 116px;
    padding: 22px 54px 22px 22px;
    flex-direction: column;
    justify-content: center;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}

.raf-v2-radio-card > span::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 22px;
    width: 20px;
    height: 20px;
    border: 2px solid #aaa29a;
    border-radius: 50%;
    transform: translateY(-50%);
    box-sizing: border-box;
}

.raf-v2-radio-card:has(input:checked) > span::after {
    border: 6px solid var(--raf-v2-accent);
}

.raf-v2-radio-card--large > span {
    min-height: 145px;
}

.raf-v2-radio-card strong {
    margin-bottom: 7px;
    font-size: 19px;
}

.raf-v2-radio-card small {
    color: var(--raf-v2-muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
}

.raf-v2-range-block {
    margin-top: 34px;
    padding: 26px;
    border-radius: 14px;
    background: var(--raf-v2-surface);
}

.raf-v2-range-block__heading,
.raf-v2-range-scale {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.raf-v2-range-block__heading {
    margin-bottom: 22px;
}

.raf-v2-range-block__heading label {
    font-size: 17px;
    font-weight: 800;
}

.raf-v2-range-value {
    color: var(--raf-v2-accent);
    font-size: 18px;
    font-weight: 800;
}

.raf-v2-range {
    --raf-v2-range-progress: 0%;
    width: 100%;
    height: 8px;
    margin: 0;
    border-radius: 999px;
    outline: none;
    appearance: none;
    background: linear-gradient(to right, var(--raf-v2-accent) 0%, var(--raf-v2-accent) var(--raf-v2-range-progress), #d8d2cb var(--raf-v2-range-progress), #d8d2cb 100%);
}

.raf-v2-range::-webkit-slider-thumb {
    width: 26px;
    height: 26px;
    border: 4px solid var(--raf-v2-white);
    border-radius: 50%;
    appearance: none;
    background: var(--raf-v2-accent);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
    cursor: pointer;
}

.raf-v2-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border: 4px solid var(--raf-v2-white);
    border-radius: 50%;
    background: var(--raf-v2-accent);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
    cursor: pointer;
}

.raf-v2-range-scale {
    margin-top: 10px;
    color: var(--raf-v2-muted);
    font-size: 13px;
}

.raf-v2-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.raf-v2-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.raf-v2-field--full {
    grid-column: 1 / -1;
}

.raf-v2-field label {
    font-size: 14px;
    font-weight: 800;
}

.raf-v2-field label > span,
.raf-v2-consent strong {
    color: var(--raf-v2-accent);
}

.raf-v2-field input,
.raf-v2-field textarea {
    width: 100%;
    border: 1px solid var(--raf-v2-border);
    border-radius: 10px;
    background: var(--raf-v2-white);
    color: var(--raf-v2-text);
    font: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.raf-v2-field input {
    height: 54px;
    padding: 0 16px;
}

.raf-v2-field textarea {
    min-height: 150px;
    padding: 15px 16px;
    resize: vertical;
}

.raf-v2-field input:focus,
.raf-v2-field textarea:focus {
    border-color: var(--raf-v2-accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(111, 31, 31, 0.1);
}

.raf-v2-consent {
    padding: 16px;
    border: 1px solid var(--raf-v2-border);
    border-radius: 10px;
    background: var(--raf-v2-surface);
}

.raf-v2-consent label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: 400;
    line-height: 1.55;
    cursor: pointer;
}

.raf-v2-consent input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    flex: 0 0 auto;
}

.raf-v2-consent a {
    color: var(--raf-v2-accent);
    text-decoration: underline;
}

.raf-v2-info-box {
    padding: clamp(24px, 4vw, 42px);
    border-left: 5px solid var(--raf-v2-accent);
    border-radius: 14px;
    background: var(--raf-v2-surface);
}

.raf-v2-catalog-link {
    display: inline-flex;
    min-height: 46px;
    padding: 0 18px;
    align-items: center;
    border-radius: 8px;
    background: var(--raf-v2-accent);
    color: var(--raf-v2-white) !important;
    font-weight: 800;
    text-decoration: none;
}

.raf-v2-summary {
    overflow: hidden;
    border: 1px solid var(--raf-v2-border);
    border-radius: 14px;
}

.raf-v2-summary__row {
    display: grid;
    grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.5fr);
    gap: 24px;
    padding: 17px 20px;
    border-bottom: 1px solid var(--raf-v2-border);
}

.raf-v2-summary__row:last-child {
    border-bottom: 0;
}

.raf-v2-summary__row:nth-child(odd) {
    background: var(--raf-v2-surface);
}

.raf-v2-summary__label {
    font-weight: 800;
}

.raf-v2-summary__value {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.raf-v2-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 34px;
}

.raf-v2-btn {
    min-height: 52px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 8px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.raf-v2-btn:hover {
    transform: translateY(-1px);
}

.raf-v2-btn--primary {
    margin-left: auto;
    background: var(--raf-v2-accent);
    color: var(--raf-v2-white);
}

.raf-v2-btn--primary:hover {
    background: var(--raf-v2-accent-dark);
}

.raf-v2-btn--secondary {
    border-color: var(--raf-v2-border);
    background: transparent;
    color: var(--raf-v2-text);
}

.raf-v2-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.raf-v2-inline-message {
    display: none;
    margin-top: 22px;
    padding: 15px 17px;
    border-radius: 10px;
    font-weight: 700;
}

.raf-v2-inline-message:not(:empty) {
    display: block;
}

.raf-v2-inline-message.is-error {
    background: rgba(163, 38, 38, 0.1);
    color: var(--raf-v2-error);
}

.raf-v2-inline-message.is-info {
    background: var(--raf-v2-surface);
    color: var(--raf-v2-text);
}

.raf-v2-field-error {
    color: var(--raf-v2-error);
    font-size: 13px;
    font-weight: 700;
}

.is-invalid {
    border-color: var(--raf-v2-error) !important;
    box-shadow: 0 0 0 3px rgba(163, 38, 38, 0.1) !important;
}

.raf-v2-modal[hidden] {
    display: none !important;
}

.raf-v2-modal {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
}

.raf-v2-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 15, 13, 0.65);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.raf-v2-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    padding: 42px;
    border-radius: 20px;
    background: var(--raf-v2-white);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.25);
    text-align: center;
    opacity: 0;
    transform: translateY(24px) scale(0.97);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.raf-v2-modal.is-open .raf-v2-modal__backdrop {
    opacity: 1;
}

.raf-v2-modal.is-open .raf-v2-modal__dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.raf-v2-modal__check {
    display: grid;
    width: 72px;
    height: 72px;
    margin: 0 auto 22px;
    place-items: center;
    border-radius: 50%;
    background: rgba(40, 123, 71, 0.12);
    color: var(--raf-v2-success);
    font-size: 38px;
    font-weight: 900;
}

.raf-v2-modal__dialog h2 {
    margin: 0 0 12px;
}

.raf-v2-modal__dialog p {
    margin: 0 0 26px;
    color: var(--raf-v2-muted);
    line-height: 1.65;
}

.raf-v2-modal__dialog .raf-v2-btn {
    margin: 0;
}

body.raf-v2-modal-open {
    overflow: hidden;
}

[hidden] {
    display: none !important;
}

@media (max-width: 760px) {
    .raf-v2-choice-grid,
    .raf-v2-fields {
        grid-template-columns: 1fr;
    }

    .raf-v2-field--full {
        grid-column: auto;
    }

    .raf-v2-progress__label {
        display: none;
    }

    .raf-v2-progress {
        margin-bottom: 34px;
    }

    .raf-v2-range-block__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .raf-v2-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .raf-v2-btn {
        width: 100%;
    }

    .raf-v2-summary__row {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .raf-v2-modal__dialog {
        padding: 30px 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .raf-v2-step,
    .raf-v2-stage,
    .raf-v2-progress__fill,
    .raf-v2-modal__backdrop,
    .raf-v2-modal__dialog {
        transition: none !important;
    }

    html {
        scroll-behavior: auto !important;
    }
}
