﻿:root {
    --qt-navy: #0c2747;
    --qt-blue: #1265aa;
    --qt-light-blue: #eaf5ff;
    --qt-orange: #f59d1f;
    --qt-green: #14875d;
    --qt-text: #223348;
    --qt-muted: #66778b;
    --qt-border: #dce5ee;
    --qt-background: #f6f9fc;
    --qt-white: #ffffff;
    --qt-danger: #b63b3b;
}

.grossup-page {
    min-height: 100vh;
    background: var(--qt-background);
    color: var(--qt-text);
    font-family: inherit;
}

.grossup-container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.grossup-hero {
    padding: 75px 0 65px;
    color: var(--qt-white);
    text-align: center;
    background: radial-gradient(circle at 15% 20%, rgba(19, 127, 196, 0.4), transparent 32%), linear-gradient(135deg, #081c34 0%, #0c3158 55%, #1265aa 100%);
}

.grossup-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 30px;
    color: #dff2ff;
    background: rgba(255, 255, 255, 0.08);
    font-size: 14px;
    font-weight: 700;
}

.grossup-hero h1 {
    max-width: 850px;
    margin: 0 auto 18px;
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.25;
}

.grossup-subtitle {
    max-width: 780px;
    margin: 0 auto;
    color: #d8e8f6;
    font-size: 18px;
    line-height: 1.9;
}

.grossup-note {
    display: inline-block;
    max-width: 850px;
    margin-top: 26px;
    padding: 12px 20px;
    border-radius: 12px;
    color: #e8f5ff;
    background: rgba(0, 0, 0, 0.15);
    font-size: 14px;
    line-height: 1.8;
}

.grossup-content {
    padding: 55px 0 85px;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.section-number {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--qt-white);
    background: var(--qt-blue);
    font-weight: 800;
}

.section-heading h2,
.calculation-header h2 {
    margin: 0 0 6px;
    color: var(--qt-navy);
    font-size: 28px;
    font-weight: 800;
}

.section-heading p,
.calculation-header p {
    margin: 0;
    color: var(--qt-muted);
}

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

.calculation-mode-card {
    position: relative;
    display: flex;
    min-height: 470px;
    flex-direction: column;
    padding: 34px;
    overflow: hidden;
    border: 2px solid var(--qt-border);
    border-radius: 24px;
    background: var(--qt-white);
    box-shadow: 0 16px 45px rgba(12, 39, 71, 0.07);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

    .calculation-mode-card:hover {
        transform: translateY(-6px);
        border-color: #91bee2;
        box-shadow: 0 22px 60px rgba(12, 39, 71, 0.13);
    }

.standard-card {
    border-color: #8dc2eb;
}

.recommended-label {
    position: absolute;
    top: 18px;
    left: -42px;
    width: 180px;
    padding: 7px 10px;
    transform: rotate(-35deg);
    color: var(--qt-white);
    background: var(--qt-orange);
    text-align: center;
    font-size: 11px;
    font-weight: 800;
}

.mode-icon {
    display: flex;
    width: 64px;
    height: 64px;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 18px;
    background: var(--qt-light-blue);
    font-size: 31px;
}

.advanced-card .mode-icon {
    background: #eef0f7;
}

.calculation-mode-card h3 {
    margin: 0 0 4px;
    color: var(--qt-navy);
    font-size: 27px;
    font-weight: 800;
}

.mode-name-en {
    display: block;
    margin-bottom: 17px;
    color: var(--qt-blue);
    font-size: 14px;
    font-weight: 700;
}

.calculation-mode-card > p {
    min-height: 76px;
    margin: 0 0 18px;
    color: var(--qt-muted);
    line-height: 1.9;
}

.mode-features {
    display: grid;
    gap: 11px;
    padding: 0;
    margin: 0 0 30px;
    list-style: none;
}

    .mode-features li {
        position: relative;
        padding-right: 27px;
        color: #44566b;
    }

        .mode-features li::before {
            position: absolute;
            top: 1px;
            right: 0;
            content: "✓";
            color: var(--qt-green);
            font-weight: 900;
        }

.mode-button {
    width: 100%;
    min-height: 52px;
    padding: 13px 20px;
    margin-top: auto;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 800;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

    .mode-button:hover {
        transform: translateY(-2px);
        opacity: 0.93;
    }

.primary-mode-button {
    color: var(--qt-white);
    background: linear-gradient(135deg, var(--qt-blue), #1490d3);
}

.secondary-mode-button {
    color: var(--qt-white);
    background: var(--qt-navy);
}

.mode-help-box {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 18px 22px;
    margin-top: 24px;
    border: 1px solid #cfe2f2;
    border-radius: 14px;
    color: #35536d;
    background: #eef8ff;
    line-height: 1.8;
}

.calculation-section {
    max-width: 1050px;
    margin: 0 auto;
}

.calculation-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
    padding: 28px;
    margin-bottom: 22px;
    border-radius: 20px;
    color: var(--qt-white);
    background: linear-gradient(135deg, var(--qt-navy), var(--qt-blue));
}

    .calculation-header h2 {
        margin-top: 8px;
        color: var(--qt-white);
    }

    .calculation-header p {
        color: #d7e9f8;
    }

.calculation-type-label {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 20px;
    color: var(--qt-navy);
    background: #dff1ff;
    font-size: 13px;
    font-weight: 800;
}

.advanced-label {
    color: #563500;
    background: #ffe7bd;
}

.change-mode-button {
    flex: 0 0 auto;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    color: var(--qt-white);
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    font-weight: 700;
}

.grossup-form {
    display: grid;
    gap: 22px;
}

.form-section {
    padding: 30px;
    border: 1px solid var(--qt-border);
    border-radius: 20px;
    background: var(--qt-white);
    box-shadow: 0 10px 35px rgba(12, 39, 71, 0.05);
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 13px;
    padding-bottom: 20px;
    margin-bottom: 25px;
    border-bottom: 1px solid #e7edf3;
}

    .form-section-title > span {
        display: inline-flex;
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        color: var(--qt-white);
        background: var(--qt-blue);
        font-weight: 800;
    }

    .form-section-title h3 {
        margin: 0 0 4px;
        color: var(--qt-navy);
        font-size: 21px;
        font-weight: 800;
    }

    .form-section-title p {
        margin: 0;
        color: var(--qt-muted);
        font-size: 14px;
    }

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.form-group-large,
.form-group-full {
    grid-column: 1 / -1;
}

.form-group label,
.question-label {
    color: var(--qt-navy);
    font-weight: 800;
}

.required {
    color: var(--qt-danger);
}

.form-group input,
.form-group select {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid #cfd9e3;
    border-radius: 10px;
    outline: none;
    color: var(--qt-text);
    background: var(--qt-white);
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .form-group input:focus,
    .form-group select:focus {
        border-color: var(--qt-blue);
        box-shadow: 0 0 0 4px rgba(18, 101, 170, 0.1);
    }

.input-with-suffix {
    display: flex;
    overflow: hidden;
    border: 1px solid #cfd9e3;
    border-radius: 10px;
    background: var(--qt-white);
}

    .input-with-suffix:focus-within {
        border-color: var(--qt-blue);
        box-shadow: 0 0 0 4px rgba(18, 101, 170, 0.1);
    }

    .input-with-suffix input {
        border: 0;
        border-radius: 0;
        box-shadow: none !important;
    }

    .input-with-suffix span {
        display: flex;
        min-width: 82px;
        align-items: center;
        justify-content: center;
        color: #4c6278;
        background: #f0f5f9;
        font-weight: 700;
    }

.form-group small {
    color: var(--qt-muted);
    line-height: 1.7;
}

.field-error {
    display: none;
    color: var(--qt-danger);
    font-size: 13px;
    font-weight: 700;
}

    .field-error.visible {
        display: block;
    }

.radio-card-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.radio-card {
    position: relative;
    cursor: pointer;
}

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

.radio-card-content {
    display: flex;
    min-height: 94px;
    flex-direction: column;
    justify-content: center;
    padding: 17px 45px 17px 17px;
    border: 2px solid var(--qt-border);
    border-radius: 14px;
    background: var(--qt-white);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

    .radio-card-content::before {
        position: absolute;
        top: 50%;
        right: 17px;
        width: 17px;
        height: 17px;
        transform: translateY(-50%);
        border: 2px solid #9babbc;
        border-radius: 50%;
        content: "";
    }

.radio-card input:checked + .radio-card-content {
    border-color: var(--qt-blue);
    background: var(--qt-light-blue);
    box-shadow: 0 0 0 3px rgba(18, 101, 170, 0.06);
}

    .radio-card input:checked + .radio-card-content::before {
        border: 5px solid var(--qt-blue);
        background: var(--qt-white);
    }

.radio-card-content strong {
    color: var(--qt-navy);
    font-size: 15px;
}

.radio-card-content small {
    margin-top: 5px;
    color: var(--qt-muted);
    line-height: 1.65;
}

.conditional-panel {
    padding: 23px;
    margin-top: 22px;
    border: 1px dashed #a8c6dd;
    border-radius: 14px;
    background: #f7fbfe;
}

.advanced-required-message {
    display: flex;
    gap: 15px;
    padding: 20px;
    margin-top: 22px;
    border: 1px solid #f2c478;
    border-radius: 14px;
    background: #fff8ec;
}

.message-icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #734600;
    background: #ffdfaa;
    font-weight: 900;
}

.advanced-required-message strong {
    color: #68410a;
}

.advanced-required-message p {
    margin: 5px 0 12px;
    color: #80613c;
}

.inline-advanced-button,
.assumptions-advanced-link,
.back-to-standard-button {
    border: 0;
    color: var(--qt-blue);
    background: transparent;
    cursor: pointer;
    font-weight: 800;
}

.assumptions-box {
    overflow: hidden;
    border: 1px solid #cfdde9;
    border-radius: 16px;
    background: var(--qt-white);
}

.assumptions-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border: 0;
    color: var(--qt-navy);
    background: #f4f9fd;
    cursor: pointer;
    font-weight: 800;
}

.assumptions-content {
    padding: 8px 22px 22px;
}

    .assumptions-content ul {
        display: grid;
        gap: 9px;
        padding-right: 20px;
        color: #4c6074;
        line-height: 1.7;
    }

.form-actions {
    text-align: center;
}

.calculate-button {
    min-width: 240px;
    min-height: 54px;
    padding: 13px 28px;
    border: 0;
    border-radius: 12px;
    color: var(--qt-white);
    background: linear-gradient(135deg, var(--qt-orange), #ef7d16);
    cursor: pointer;
    font-size: 17px;
    font-weight: 800;
}

.calculation-disclaimer {
    margin: 12px 0 0;
    color: var(--qt-muted);
    font-size: 13px;
}

.advanced-steps {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    padding: 18px;
    margin-bottom: 22px;
    border: 1px solid var(--qt-border);
    border-radius: 16px;
    background: var(--qt-white);
}

.advanced-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #8390a0;
    text-align: center;
}

    .advanced-step span {
        display: inline-flex;
        width: 36px;
        height: 36px;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        color: #617184;
        background: #e8edf2;
        font-weight: 800;
    }

    .advanced-step.active {
        color: var(--qt-navy);
        font-weight: 800;
    }

        .advanced-step.active span {
            color: var(--qt-white);
            background: var(--qt-blue);
        }

.advanced-placeholder {
    padding: 70px 25px;
    border: 1px solid var(--qt-border);
    border-radius: 20px;
    background: var(--qt-white);
    text-align: center;
}

.advanced-placeholder-icon {
    margin-bottom: 15px;
    font-size: 52px;
}

.advanced-placeholder h3 {
    margin: 0 0 10px;
    color: var(--qt-navy);
    font-size: 24px;
}

.advanced-placeholder p {
    max-width: 600px;
    margin: 0 auto 20px;
    color: var(--qt-muted);
    line-height: 1.8;
}

.development-message {
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(6, 21, 39, 0.66);
    backdrop-filter: blur(4px);
}

.development-message-content {
    position: relative;
    width: min(500px, 100%);
    padding: 38px 30px 30px;
    border-radius: 20px;
    background: var(--qt-white);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.25);
    text-align: center;
}

.message-close-button {
    position: absolute;
    top: 12px;
    left: 15px;
    border: 0;
    color: #798898;
    background: transparent;
    cursor: pointer;
    font-size: 30px;
}

.development-icon {
    display: inline-flex;
    width: 62px;
    height: 62px;
    align-items: center;
    justify-content: center;
    margin-bottom: 17px;
    border-radius: 50%;
    color: var(--qt-white);
    background: var(--qt-green);
    font-size: 28px;
    font-weight: 900;
}

.development-message-content h3 {
    color: var(--qt-navy);
}

.development-message-content p {
    color: var(--qt-muted);
    line-height: 1.8;
}

.message-ok-button {
    min-width: 140px;
    padding: 11px 20px;
    border: 0;
    border-radius: 10px;
    color: var(--qt-white);
    background: var(--qt-blue);
    cursor: pointer;
    font-weight: 800;
}

.d-none {
    display: none !important;
}

/* =========================================================
   Quick Calculation Review Screen
   ========================================================= */

.form-error-summary {
    padding: 15px 18px;
    border: 1px solid #efb1b1;
    border-radius: 12px;
    color: #8f2929;
    background: #fff1f1;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.8;
}

.calculate-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

.review-card {
    padding: 30px;
    border: 1px solid var(--qt-border);
    border-radius: 20px;
    background: var(--qt-white);
    box-shadow: 0 12px 40px rgba(12, 39, 71, 0.07);
}

.review-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 22px;
    margin-bottom: 25px;
    border-bottom: 1px solid #e5ecf2;
}

.review-card-heading h3 {
    margin: 0 0 6px;
    color: var(--qt-navy);
    font-size: 23px;
    font-weight: 800;
}

.review-card-heading p {
    margin: 0;
    color: var(--qt-muted);
}

.review-status {
    display: inline-flex;
    flex: 0 0 auto;
    padding: 7px 13px;
    border-radius: 20px;
    color: #0f6949;
    background: #def5ea;
    font-size: 13px;
    font-weight: 800;
}

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

.review-item {
    display: flex;
    min-height: 92px;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    padding: 17px 19px;
    border: 1px solid #dce6ef;
    border-radius: 14px;
    background: #f8fbfd;
}

.review-item-wide {
    grid-column: 1 / -1;
}

.review-item span {
    color: var(--qt-muted);
    font-size: 13px;
    font-weight: 700;
}

.review-item strong {
    color: var(--qt-navy);
    font-size: 17px;
    line-height: 1.6;
}

.review-assumptions {
    padding: 22px;
    margin-top: 22px;
    border: 1px solid #cfe1ef;
    border-radius: 16px;
    background: #f3f9fd;
}

.review-assumptions-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.review-assumptions-title strong {
    color: var(--qt-navy);
    font-size: 17px;
}

.review-assumptions-title span {
    color: var(--qt-muted);
    font-size: 13px;
}

.review-assumptions ul {
    display: grid;
    gap: 8px;
    padding-right: 20px;
    margin: 18px 0;
    color: #445a70;
    line-height: 1.7;
}

.review-assumptions .assumptions-advanced-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 1px solid #b9d6ea !important;
    border-radius: 10px;
    color: var(--qt-blue) !important;
    background: var(--qt-white) !important;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.6;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease,
                border-color 0.2s ease, transform 0.2s ease;
}

.review-assumptions .assumptions-advanced-link:hover {
    color: var(--qt-white) !important;
    background: var(--qt-blue) !important;
    border-color: var(--qt-blue) !important;
    transform: translateY(-1px);
}

.review-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px;
    margin-top: 28px;
    border: 1px solid #dce7f0;
    border-radius: 16px;
    background: #f8fbfd;
}

/* Works whether or not review-action-button was added to the HTML. */
.review-action-button,
.review-edit-button,
.review-confirm-button {
    display: inline-flex !important;
    min-width: 220px;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 24px !important;
    border-radius: 12px !important;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1.4;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease,
                background 0.2s ease, color 0.2s ease;
}

.review-action-button span,
.review-edit-button span,
.review-confirm-button span {
    font-size: 18px;
    font-weight: 900;
}

.review-edit-button {
    border: 2px solid var(--qt-blue) !important;
    color: var(--qt-blue) !important;
    background: var(--qt-white) !important;
}

.review-edit-button:hover {
    color: var(--qt-white) !important;
    background: var(--qt-blue) !important;
    transform: translateY(-2px);
    box-shadow: 0 9px 22px rgba(18, 101, 170, 0.18);
}

.review-confirm-button {
    border: 2px solid transparent !important;
    color: var(--qt-white) !important;
    background: linear-gradient(
        135deg,
        var(--qt-orange),
        #ef7d16
    ) !important;
    box-shadow: 0 9px 22px rgba(245, 157, 31, 0.24);
}

.review-confirm-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 13px 27px rgba(245, 157, 31, 0.34);
}

.review-edit-button:focus-visible,
.review-confirm-button:focus-visible,
.review-assumptions .assumptions-advanced-link:focus-visible {
    outline: 3px solid rgba(18, 101, 170, 0.25);
    outline-offset: 3px;
}

.engine-pending-message {
    display: flex;
    gap: 15px;
    padding: 20px;
    margin-top: 24px;
    border: 1px solid #9dd8be;
    border-radius: 14px;
    color: #245b46;
    background: #ecfaf4;
}

.engine-message-icon {
    display: inline-flex;
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--qt-white);
    background: var(--qt-green);
    font-weight: 900;
}

.engine-pending-message strong {
    color: #14583f;
}

.engine-pending-message p {
    margin: 5px 0 0;
    line-height: 1.8;
}


@media (max-width: 800px) {
    .calculation-mode-grid,
    .form-grid,
    .radio-card-group,
    .review-summary-grid {
        grid-template-columns: 1fr;
    }

    .calculation-mode-card {
        min-height: auto;
    }

    .calculation-header,
    .review-card-heading,
    .review-assumptions-title {
        flex-direction: column;
    }

    .change-mode-button {
        width: 100%;
    }

    .advanced-steps {
        grid-template-columns: repeat(3, 1fr);
    }

    .mode-help-box {
        flex-direction: column;
        text-align: center;
    }

    .review-item-wide {
        grid-column: auto;
    }

    .review-actions {
        flex-direction: column-reverse;
        padding: 18px;
    }

    .review-action-button,
    .review-edit-button,
    .review-confirm-button {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 520px) {
    .grossup-container {
        width: min(100% - 20px, 1180px);
    }

    .grossup-hero {
        padding: 55px 0 48px;
    }

    .grossup-subtitle {
        font-size: 16px;
    }

    .grossup-content {
        padding-top: 35px;
    }

    .calculation-mode-card,
    .form-section,
    .calculation-header,
    .review-card {
        padding: 22px;
        border-radius: 16px;
    }

    .advanced-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .calculate-button {
        width: 100%;
        min-width: 0;
    }

    .review-assumptions {
        padding: 18px;
    }

    .engine-pending-message {
        align-items: flex-start;
        padding: 17px;
    }
}
/* =========================================================
   Mobile fixes for review and result sections
   ========================================================= */
@media (max-width: 520px) {

    .grossup-page {
        overflow-x: hidden;
    }

    .review-card {
        padding: 18px;
        border-radius: 16px;
    }

    /*
     * وضع العنوان والحالة تحت بعض
     * وإزالة الخط الفاصل الظاهر في المنتصف.
     */
    .review-card-heading {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding-bottom: 0;
        margin-bottom: 18px;
        border-bottom: 0;
    }

        .review-card-heading h3 {
            font-size: 20px;
        }

    .review-status {
        width: fit-content;
    }

    /*
     * عرض عناصر الملخص في عمود واحد
     * بدل عمودين على الهاتف.
     */
    .review-summary-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .review-item,
    .review-item-wide {
        grid-column: auto;
        min-height: auto;
        padding: 15px;
    }

        .review-item strong {
            font-size: 16px;
            overflow-wrap: anywhere;
        }

    /*
     * إصلاح قائمة الافتراضات على الشاشات الضيقة.
     */
    .review-assumptions {
        padding: 16px;
    }

    .review-assumptions-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .review-assumptions ul {
        padding-right: 18px;
        margin: 14px 0;
    }

    /*
     * وضع أزرار تعديل البيانات وتنفيذ الحساب
     * تحت بعض بعرض الهاتف كاملًا.
     */
    .review-actions {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
        margin-top: 20px;
    }

    .review-action-button {
        width: 100%;
        min-width: 0;
        min-height: 50px;
        padding: 12px 16px !important;
    }

    /*
     * رسائل النجاح والخطأ.
     */
    .advanced-required-message,
    .engine-pending-message {
        align-items: flex-start;
        gap: 10px;
        padding: 15px;
    }

    .message-icon,
    .engine-message-icon {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }
}