.quote_page_shell {
    padding-bottom: 72px;
}

.quote_intro {
    margin: 0 auto 28px;
    max-width: 980px;
    padding: 28px 32px;
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(117, 159, 183, 0.16), rgba(255, 255, 255, 0.92)),
        linear-gradient(180deg, #f7fafc, #eef4f8);
    box-shadow: 0 18px 40px rgba(45, 73, 93, 0.08);
}

.quote_intro h2 {
    margin-bottom: 12px;
    font-size: 34px;
    line-height: 1.25;
    color: #21445b;
}

.quote_intro p {
    color: #466173;
    line-height: 1.9;
}

.quote_shell {
    margin: 0 auto;
    max-width: 1080px;
    padding: 0 10px;
}

.quote_frame {
    overflow: hidden;
    border: 1px solid #d7e3eb;
    border-radius: 32px;
    background: #ffffff;
    box-shadow: 0 24px 54px rgba(30, 52, 68, 0.08);
}

.quote_progress {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-bottom: 1px solid #d7e3eb;
    background: linear-gradient(180deg, #f6fafc, #edf5f9);
}

.quote_progress_item {
    padding: 18px 20px;
    border-right: 1px solid #d7e3eb;
}

.quote_progress_item:last-child {
    border-right: 0;
}

.quote_progress_item.is_current {
    background: rgba(117, 159, 183, 0.18);
}

.quote_progress_item.is_done .quote_progress_step {
    background: #759fb7;
    color: #ffffff;
}

.quote_progress_step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: #dce8ef;
    color: #31566d;
    font-size: 13px;
    font-weight: 700;
}

.quote_progress_label {
    display: block;
    color: #21445b;
    font-size: 14px;
    font-weight: 700;
}

.quote_progress_text {
    display: block;
    margin-top: 6px;
    color: #5c7384;
    font-size: 12px;
    line-height: 1.6;
}

.quote_body {
    padding: 34px 32px 38px;
}

.quote_step_header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.quote_step_header h3 {
    margin-bottom: 10px;
    color: #16394f;
    font-size: 30px;
    line-height: 1.25;
}

.quote_step_header p {
    color: #537081;
    line-height: 1.8;
}

.quote_note {
    min-width: 220px;
    max-width: 280px;
    padding: 16px 18px;
    border-radius: 20px;
    background: #f4f8fb;
    color: #4a6778;
    font-size: 13px;
    line-height: 1.8;
}

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

.quote_category_card {
    position: relative;
}

.quote_category_card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.quote_category_label {
    display: block;
    height: 100%;
    padding: 22px 22px 20px;
    border: 1px solid #d6e1e8;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff, #f8fbfd);
    transition:
        transform 0.16s ease,
        border-color 0.16s ease,
        box-shadow 0.16s ease;
    cursor: pointer;
}

.quote_category_label:hover {
    transform: translateY(-2px);
    border-color: #8baec2;
    box-shadow: 0 16px 28px rgba(72, 104, 124, 0.08);
}

.quote_category_card input:checked + .quote_category_label {
    border-color: #5c8ba6;
    background: linear-gradient(180deg, #eff6fa, #ffffff);
    box-shadow: 0 18px 32px rgba(75, 112, 132, 0.14);
}

.quote_category_title {
    display: block;
    margin-bottom: 10px;
    color: #173d53;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.quote_category_desc {
    color: #5a7687;
    line-height: 1.8;
}

.quote_fields {
    display: grid;
    gap: 18px;
}

.quote_field {
    padding: 20px 22px 22px;
    border: 1px solid #d9e4eb;
    border-radius: 24px;
    background: #fbfdfe;
}

.quote_field_label {
    display: block;
    margin-bottom: 14px;
    color: #173d53;
    font-size: 18px;
    font-weight: 700;
}

.quote_hint {
    margin-top: -4px;
    margin-bottom: 14px;
    color: #668192;
    font-size: 13px;
    line-height: 1.7;
}

.quote_select,
.quote_number {
    width: 100%;
    padding: 15px 16px;
    border: 1px solid #c7d6e0;
    border-radius: 16px;
    background: #ffffff;
    color: #173d53;
    font-size: 16px;
}

.quote_number {
    max-width: 220px;
}

.quote_choice_group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quote_choice {
    position: relative;
}

.quote_choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.quote_choice span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    padding: 12px 16px;
    border: 1px solid #c9d8e2;
    border-radius: 999px;
    background: #ffffff;
    color: #34596f;
    font-size: 14px;
    font-weight: 700;
    transition:
        border-color 0.16s ease,
        background 0.16s ease,
        color 0.16s ease;
    cursor: pointer;
}

.quote_choice input:checked + span {
    border-color: #5c8ba6;
    background: #5c8ba6;
    color: #ffffff;
}

.quote_error {
    margin-top: 12px;
    color: #a44d45;
    font-size: 13px;
    line-height: 1.6;
}

.quote_summary {
    display: grid;
    gap: 14px;
}

.quote_summary_card {
    padding: 20px 22px;
    border-radius: 22px;
    background: #f5f8fb;
}

.quote_summary_label {
    display: block;
    margin-bottom: 8px;
    color: #537081;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.quote_summary_value {
    color: #173d53;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.7;
}

.quote_result_panel {
    padding: 28px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(117, 159, 183, 0.18), transparent 34%),
        linear-gradient(180deg, #f7fbfd, #edf4f8);
}

.quote_result_eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #dfeef5;
    color: #355b71;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.quote_result_panel h4 {
    margin-bottom: 14px;
    color: #16394f;
    font-size: 32px;
    line-height: 1.25;
}

.quote_result_price {
    margin-bottom: 12px;
    color: #173d53;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
}

.quote_result_subprice {
    margin-bottom: 22px;
    color: #577283;
    font-size: 18px;
}

.quote_result_note,
.quote_manual_note,
.quote_system_error {
    margin-bottom: 22px;
    color: #577283;
    line-height: 1.9;
}

.quote_result_actions,
.quote_footer_actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.quote_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    background: #1e4f69;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.16s ease, transform 0.16s ease;
    cursor: pointer;
}

.quote_button:hover {
    transform: translateY(-1px);
    background: #173f54;
}

.quote_button_secondary {
    background: #eef4f8;
    color: #1f4c63;
}

.quote_button_secondary:hover {
    background: #ddeaf1;
}

.quote_button[disabled] {
    transform: none;
    background: #b7c7d1;
    cursor: wait;
}

.quote_inline_link {
    color: #2a6785;
    font-weight: 700;
    text-decoration: none;
}

.quote_inline_link:hover {
    text-decoration: underline;
}

.quote_loading {
    color: #537081;
    font-size: 14px;
}

.quote_empty_state {
    padding: 20px 22px;
    border-radius: 20px;
    background: #f5f8fb;
    color: #567182;
    line-height: 1.8;
}

@media screen and (max-width: 960px) {
    .quote_progress {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quote_step_header {
        flex-direction: column;
    }

    .quote_note {
        max-width: none;
    }

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

@media screen and (max-width: 640px) {
    .quote_intro {
        padding: 22px 20px;
        border-radius: 24px;
    }

    .quote_intro h2 {
        font-size: 28px;
    }

    .quote_body {
        padding: 24px 18px 28px;
    }

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

    .quote_progress_item {
        border-right: 0;
        border-bottom: 1px solid #d7e3eb;
    }

    .quote_progress_item:last-child {
        border-bottom: 0;
    }

    .quote_step_header h3 {
        font-size: 24px;
    }

    .quote_category_title {
        font-size: 20px;
    }

    .quote_field {
        padding: 18px 16px 18px;
    }

    .quote_result_panel {
        padding: 22px 18px;
    }

    .quote_result_price {
        font-size: 34px;
    }

    .quote_button {
        width: 100%;
    }
}
