/* =========================================================
   Research and document order
========================================================= */

:root {
    --research-color-primary: #6f2d25;
    --research-color-primary-dark: #4e1f19;
    --research-color-primary-light: #f6ebe8;

    --research-color-accent: #b58742;
    --research-color-accent-dark: #805c28;

    --research-color-text: #292724;
    --research-color-muted: #6c6861;
    --research-color-border: #d9d4ca;
    --research-color-border-light: #ebe7df;

    --research-color-background: #f5f2ec;
    --research-color-card: #ffffff;
    --research-color-card-soft: #faf8f4;

    --research-color-success: #1f6539;
    --research-color-success-bg: #e8f5ec;
    --research-color-success-border: #acd5b8;

    --research-color-error: #8c2525;
    --research-color-error-bg: #fbeaea;
    --research-color-error-border: #e1abab;

    --research-color-warning: #765400;
    --research-color-warning-bg: #fff4d2;
    --research-color-warning-border: #e4ca78;

    --research-shadow-card:
        0 8px 28px rgba(41, 35, 29, 0.08);

    --research-shadow-small:
        0 3px 12px rgba(41, 35, 29, 0.07);

    --research-radius-large: 16px;
    --research-radius-medium: 10px;
    --research-radius-small: 6px;

    --research-content-width: 1220px;
}

/* =========================================================
   Page foundation
========================================================= */

.research-order-page,
.research-order-page * {
    box-sizing: border-box;
}

.research-order-page {
    min-height: 70vh;
    color: var(--research-color-text);
    background: var(--research-color-background);
    font-family: inherit;
}

.research-order-page button,
.research-order-page input,
.research-order-page select,
.research-order-page textarea {
    font: inherit;
}

.research-order-page button,
.research-order-page select {
    cursor: pointer;
}

.research-order-page button:disabled,
.research-order-page select:disabled,
.research-order-page input:disabled,
.research-order-page textarea:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.research-order-page a {
    color: var(--research-color-primary);
}

.research-order-page a:hover,
.research-order-page a:focus-visible {
    color: var(--research-color-primary-dark);
}

.research-order-page [hidden] {
    display: none !important;
}

/* =========================================================
   Hero
========================================================= */

.research-order-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background:
        linear-gradient(
            120deg,
            rgba(64, 25, 21, 0.98),
            rgba(112, 45, 37, 0.94)
        );
}

.research-order-hero::before {
    position: absolute;
    top: -120px;
    right: -100px;
    width: 420px;
    height: 420px;
    content: "";
    background:
        radial-gradient(
            circle,
            rgba(255, 255, 255, 0.11) 0,
            rgba(255, 255, 255, 0) 68%
        );
    pointer-events: none;
}

.research-order-hero::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 5px;
    content: "";
    background:
        linear-gradient(
            90deg,
            var(--research-color-accent-dark),
            #d2ad70,
            var(--research-color-accent-dark)
        );
}

.research-order-hero-inner {
    position: relative;
    z-index: 1;
    width: min(
        calc(100% - 40px),
        var(--research-content-width)
    );
    margin: 0 auto;
    padding: 70px 0 76px;
}

.research-order-hero h1 {
    max-width: 800px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.1rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.025em;
}

.research-order-hero p:not(.research-order-eyebrow) {
    max-width: 760px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1rem, 2vw, 1.18rem);
    line-height: 1.75;
}

/* =========================================================
   Eyebrow headings
========================================================= */

.research-order-eyebrow {
    margin: 0 0 10px;
    color: var(--research-color-primary);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.research-order-hero .research-order-eyebrow {
    color: #e5c799;
}

/* =========================================================
   Main content and layout
========================================================= */

.research-order-content {
    padding: 56px 20px 80px;
}

.research-order-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(260px, 340px);
    align-items: start;
    gap: 36px;
    width: min(
        100%,
        var(--research-content-width)
    );
    margin: 0 auto;
}

.research-order-form {
    display: grid;
    gap: 28px;
    min-width: 0;
    margin: 0;
}

/* =========================================================
   Main cards
========================================================= */

.research-order-card {
    min-width: 0;
    margin: 0;
    padding: 32px;
    background: var(--research-color-card);
    border: 1px solid var(--research-color-border);
    border-radius: var(--research-radius-large);
    box-shadow: var(--research-shadow-card);
}

.research-order-section-heading {
    margin: 0 0 28px;
    padding: 0 0 22px;
    border-bottom: 1px solid var(--research-color-border-light);
}

.research-order-section-heading h2 {
    margin: 0;
    color: var(--research-color-text);
    font-size: clamp(1.45rem, 2vw, 1.9rem);
    font-weight: 700;
    line-height: 1.25;
}

.research-order-section-heading p:not(
    .research-order-eyebrow
) {
    max-width: 760px;
    margin: 12px 0 0;
    color: var(--research-color-muted);
    font-size: 0.98rem;
    line-height: 1.7;
}

/* =========================================================
   Fields
========================================================= */

.research-order-field-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.research-order-field {
    min-width: 0;
}

.research-order-field-wide {
    grid-column: 1 / -1;
}

.research-order-field label,
.research-order-address-row label {
    display: inline-block;
    margin: 0 0 8px;
    color: var(--research-color-text);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
}

.research-order-field label span,
.research-order-address-row label span {
    color: var(--research-color-error);
}

.research-order-field input,
.research-order-field select,
.research-order-field textarea,
.research-order-address-row input {
    display: block;
    width: 100%;
    min-width: 0;
    color: var(--research-color-text);
    background: #ffffff;
    border: 1px solid #bfb9ae;
    border-radius: var(--research-radius-small);
    outline: 0;
    transition:
        border-color 150ms ease,
        box-shadow 150ms ease,
        background-color 150ms ease;
}

.research-order-field input,
.research-order-field select,
.research-order-address-row input {
    min-height: 48px;
    padding: 10px 13px;
}

.research-order-field select {
    padding-right: 42px;
}

.research-order-field textarea {
    min-height: 125px;
    padding: 12px 13px;
    line-height: 1.55;
    resize: vertical;
}

.research-order-field input:hover,
.research-order-field select:hover,
.research-order-field textarea:hover,
.research-order-address-row input:hover {
    border-color: #91897e;
}

.research-order-field input:focus,
.research-order-field select:focus,
.research-order-field textarea:focus,
.research-order-address-row input:focus {
    border-color: var(--research-color-primary);
    box-shadow:
        0 0 0 3px rgba(111, 45, 37, 0.14);
}

.research-order-field input:user-invalid,
.research-order-field select:user-invalid,
.research-order-field textarea:user-invalid,
.research-order-address-row input:user-invalid {
    border-color: var(--research-color-error);
}

.research-order-field input:user-invalid:focus,
.research-order-field select:user-invalid:focus,
.research-order-field textarea:user-invalid:focus,
.research-order-address-row input:user-invalid:focus {
    box-shadow:
        0 0 0 3px rgba(140, 37, 37, 0.13);
}

.research-order-field-help {
    margin: 8px 0 0;
    color: var(--research-color-muted);
    font-size: 0.82rem;
    line-height: 1.55;
}

.research-order-address-row {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(100px, 0.75fr);
    gap: 16px;
}

.research-order-address-row > div {
    min-width: 0;
}

/* =========================================================
   Honeypot
========================================================= */

.research-order-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* =========================================================
   Messages
========================================================= */

.research-order-message {
    padding: 18px 20px;
    border: 1px solid;
    border-radius: var(--research-radius-medium);
    font-size: 0.94rem;
    line-height: 1.6;
}

.research-order-message strong {
    display: block;
    margin: 0 0 6px;
}

.research-order-message p {
    margin: 6px 0 0;
}

.research-order-message ul {
    margin: 8px 0 0;
    padding-left: 22px;
}

.research-order-message li + li {
    margin-top: 4px;
}

.research-order-message-error {
    color: var(--research-color-error);
    background: var(--research-color-error-bg);
    border-color: var(--research-color-error-border);
}

.research-order-message-success {
    color: var(--research-color-success);
    background: var(--research-color-success-bg);
    border-color: var(--research-color-success-border);
}

.research-order-message-warning {
    color: var(--research-color-warning);
    background: var(--research-color-warning-bg);
    border-color: var(--research-color-warning-border);
}

.research-order-inline-message {
    margin: 0 0 20px;
    padding: 14px 16px;
    border: 1px solid;
    border-radius: var(--research-radius-small);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.55;
}

.research-order-inline-message-error {
    color: var(--research-color-error);
    background: var(--research-color-error-bg);
    border-color: var(--research-color-error-border);
}

.research-order-inline-message-success {
    color: var(--research-color-success);
    background: var(--research-color-success-bg);
    border-color: var(--research-color-success-border);
}

/* =========================================================
   Order line list
========================================================= */

.research-order-items {
    display: grid;
    gap: 22px;
}

.research-order-item {
    overflow: hidden;
    min-width: 0;
    background: var(--research-color-card-soft);
    border: 1px solid var(--research-color-border);
    border-radius: var(--research-radius-medium);
    box-shadow: var(--research-shadow-small);
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.research-order-item-invalid {
    border-color: var(--research-color-error);
    box-shadow:
        0 0 0 3px rgba(140, 37, 37, 0.1);
}

.research-order-item-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 20px;
    background: #f0ece4;
    border-bottom: 1px solid var(--research-color-border);
}

.research-order-item-heading h3 {
    margin: 0;
    color: var(--research-color-text);
    font-size: 1.08rem;
    font-weight: 750;
    line-height: 1.3;
}

.research-order-remove {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 7px 13px;
    color: var(--research-color-error);
    background: #ffffff;
    border: 1px solid #d4a6a6;
    border-radius: var(--research-radius-small);
    font-size: 0.8rem;
    font-weight: 750;
    line-height: 1;
    transition:
        color 150ms ease,
        background-color 150ms ease,
        border-color 150ms ease;
}

.research-order-remove:hover:not(:disabled),
.research-order-remove:focus-visible:not(:disabled) {
    color: #ffffff;
    background: var(--research-color-error);
    border-color: var(--research-color-error);
}

.research-order-remove:focus-visible {
    outline: 3px solid rgba(140, 37, 37, 0.18);
    outline-offset: 2px;
}

.research-order-remove:disabled {
    color: #86817a;
    background: #eeeae3;
    border-color: #d5d0c7;
}

.research-order-item-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(170px, 0.4fr);
    gap: 22px;
    padding: 24px 20px;
}

.research-order-item-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    min-height: 48px;
    padding: 10px 13px;
    background: #ffffff;
    border: 1px solid var(--research-color-border);
    border-radius: var(--research-radius-small);
}

.research-order-item-price span {
    margin: 0 0 4px;
    color: var(--research-color-muted);
    font-size: 0.7rem;
    font-weight: 750;
    line-height: 1.3;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.research-order-item-price strong {
    max-width: 100%;
    color: var(--research-color-text);
    font-size: 0.92rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.research-order-item-total {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    min-height: 58px;
    padding: 13px 20px;
    background: #ffffff;
    border-top: 1px solid var(--research-color-border);
}

.research-order-item-total span {
    color: var(--research-color-muted);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}

.research-order-item-total strong {
    color: var(--research-color-primary);
    font-size: 1.25rem;
    font-weight: 800;
}

/* =========================================================
   Add-item button
========================================================= */

.research-order-add-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    margin: 22px 0 0;
    padding: 10px 18px;
    color: var(--research-color-primary);
    background: #ffffff;
    border: 2px solid var(--research-color-primary);
    border-radius: var(--research-radius-small);
    font-size: 0.9rem;
    font-weight: 750;
    line-height: 1.3;
    transition:
        color 150ms ease,
        background-color 150ms ease,
        border-color 150ms ease,
        transform 150ms ease;
}

.research-order-add-item span {
    font-size: 1.2rem;
    line-height: 1;
}

.research-order-add-item:hover:not(:disabled) {
    color: #ffffff;
    background: var(--research-color-primary);
    transform: translateY(-1px);
}

.research-order-add-item:focus-visible {
    outline: 3px solid rgba(111, 45, 37, 0.19);
    outline-offset: 3px;
}

.research-order-add-item:disabled {
    color: #777169;
    background: #ebe7df;
    border-color: #c9c3b8;
}

/* =========================================================
   Submit and total area
========================================================= */

.research-order-submit-area {
    display: grid;
    gap: 18px;
    padding: 28px 32px;
    background: var(--research-color-card);
    border: 1px solid var(--research-color-border);
    border-radius: var(--research-radius-large);
    box-shadow: var(--research-shadow-card);
}

.research-order-total {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto;
    align-items: center;
    gap: 4px 20px;
    padding: 0 0 20px;
    border-bottom: 1px solid var(--research-color-border-light);
}

.research-order-total > span {
    color: var(--research-color-text);
    font-size: 1rem;
    font-weight: 750;
}

.research-order-total > strong {
    color: var(--research-color-primary);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
}

.research-order-total p {
    grid-column: 1 / -1;
    margin: 5px 0 0;
    color: var(--research-color-muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.research-order-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    padding: 13px 22px;
    color: #ffffff;
    background: var(--research-color-primary);
    border: 2px solid var(--research-color-primary);
    border-radius: var(--research-radius-small);
    box-shadow:
        0 5px 14px rgba(111, 45, 37, 0.17);
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
    transition:
        background-color 150ms ease,
        border-color 150ms ease,
        box-shadow 150ms ease,
        transform 150ms ease;
}

.research-order-submit:hover:not(:disabled) {
    background: var(--research-color-primary-dark);
    border-color: var(--research-color-primary-dark);
    box-shadow:
        0 7px 18px rgba(78, 31, 25, 0.23);
    transform: translateY(-1px);
}

.research-order-submit:focus-visible {
    outline: 3px solid rgba(111, 45, 37, 0.2);
    outline-offset: 3px;
}

.research-order-submit:disabled {
    color: #ffffff;
    background: #8e8982;
    border-color: #8e8982;
    box-shadow: none;
    transform: none;
}

.research-order-required-note {
    margin: 0;
    color: var(--research-color-muted);
    font-size: 0.78rem;
    line-height: 1.5;
    text-align: center;
}

/* =========================================================
   Sidebar
========================================================= */

.research-order-sidebar {
    position: sticky;
    top: 24px;
    display: grid;
    gap: 22px;
    min-width: 0;
}

.research-order-sidebar-card {
    min-width: 0;
    padding: 25px;
    background: var(--research-color-card);
    border: 1px solid var(--research-color-border);
    border-radius: var(--research-radius-large);
    box-shadow: var(--research-shadow-small);
}

.research-order-sidebar-card h2 {
    margin: 0;
    color: var(--research-color-text);
    font-size: 1.25rem;
    font-weight: 750;
    line-height: 1.3;
}

.research-order-sidebar-card p:not(
    .research-order-eyebrow
) {
    margin: 13px 0 0;
    color: var(--research-color-muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

.research-order-sidebar-card ul {
    margin: 17px 0 0;
    padding: 0;
    list-style: none;
}

.research-order-sidebar-card li {
    position: relative;
    margin: 0;
    padding: 0 0 0 23px;
    color: var(--research-color-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.research-order-sidebar-card li::before {
    position: absolute;
    top: 0.52em;
    left: 2px;
    width: 8px;
    height: 8px;
    content: "";
    background: var(--research-color-accent);
    border-radius: 50%;
}

.research-order-sidebar-card li + li {
    margin-top: 10px;
}

/* =========================================================
   Sidebar price list
========================================================= */

.research-order-price-list {
    display: grid;
    margin: 18px 0 0;
    padding: 0;
}

.research-order-price-list > div {
    display: grid;
    gap: 3px;
    padding: 12px 0;
    border-bottom:
        1px solid
        var(--research-color-border-light);
}

.research-order-price-list > div:first-child {
    padding-top: 0;
}

.research-order-price-list > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.research-order-price-list dt {
    margin: 0;
    color: var(--research-color-text);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.4;
}

.research-order-price-list dd {
    margin: 0;
    color: var(--research-color-primary);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.4;
}

/* =========================================================
   Payment and success page utility classes
========================================================= */

.research-order-checkout {
    width: min(
        calc(100% - 40px),
        900px
    );
    margin: 0 auto;
    padding: 56px 0 80px;
}

.research-order-checkout-card {
    overflow: hidden;
    background: var(--research-color-card);
    border: 1px solid var(--research-color-border);
    border-radius: var(--research-radius-large);
    box-shadow: var(--research-shadow-card);
}

.research-order-checkout-heading {
    padding: 30px 32px;
    background: var(--research-color-card-soft);
    border-bottom: 1px solid var(--research-color-border);
}

.research-order-checkout-heading h1,
.research-order-checkout-heading h2 {
    margin: 0;
    color: var(--research-color-text);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.2;
}

.research-order-checkout-heading p:not(
    .research-order-eyebrow
) {
    margin: 12px 0 0;
    color: var(--research-color-muted);
    line-height: 1.65;
}

.research-order-checkout-body {
    padding: 32px;
}

.research-order-summary {
    margin: 0;
}

.research-order-summary > div {
    display: grid;
    grid-template-columns:
        minmax(140px, 0.35fr)
        minmax(0, 1fr);
    gap: 18px;
    padding: 13px 0;
    border-bottom: 1px solid var(--research-color-border-light);
}

.research-order-summary > div:first-child {
    padding-top: 0;
}

.research-order-summary > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.research-order-summary dt {
    margin: 0;
    color: var(--research-color-muted);
    font-size: 0.82rem;
    font-weight: 750;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.research-order-summary dd {
    min-width: 0;
    margin: 0;
    color: var(--research-color-text);
    font-weight: 650;
    overflow-wrap: anywhere;
}

.research-order-review-items {
    display: grid;
    gap: 14px;
    margin: 28px 0;
}

.research-order-review-item {
    padding: 18px;
    background: var(--research-color-card-soft);
    border: 1px solid var(--research-color-border);
    border-radius: var(--research-radius-medium);
}

.research-order-review-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.research-order-review-item h3 {
    margin: 0;
    color: var(--research-color-text);
    font-size: 1rem;
    line-height: 1.4;
}

.research-order-review-item-total {
    flex: 0 0 auto;
    color: var(--research-color-primary);
    font-weight: 800;
    white-space: nowrap;
}

.research-order-review-item p {
    margin: 10px 0 0;
    color: var(--research-color-muted);
    font-size: 0.88rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

.research-order-review-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 10px 0 0;
    color: var(--research-color-muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

.research-order-grand-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 24px 0;
    padding: 20px;
    background: var(--research-color-primary-light);
    border: 1px solid #dfbbb4;
    border-radius: var(--research-radius-medium);
}

.research-order-grand-total span {
    color: var(--research-color-text);
    font-weight: 750;
}

.research-order-grand-total strong {
    color: var(--research-color-primary);
    font-size: 1.65rem;
    font-weight: 850;
}

.research-order-paypal-area {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--research-color-border-light);
}

.research-order-paypal-area h2 {
    margin: 0 0 10px;
    font-size: 1.25rem;
}

.research-order-paypal-area > p {
    margin: 0 0 20px;
    color: var(--research-color-muted);
    line-height: 1.6;
}

.research-order-paypal-container {
    min-height: 45px;
}

.research-order-checkout-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}

.research-order-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 9px 17px;
    color: var(--research-color-primary);
    background: #ffffff;
    border: 1px solid var(--research-color-primary);
    border-radius: var(--research-radius-small);
    font-size: 0.88rem;
    font-weight: 750;
    line-height: 1.35;
    text-decoration: none;
}

.research-order-secondary-button:hover,
.research-order-secondary-button:focus-visible {
    color: #ffffff;
    background: var(--research-color-primary);
    text-decoration: none;
}

.research-order-reference {
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        "Liberation Mono",
        "Courier New",
        monospace;
    font-size: 0.84em;
    overflow-wrap: anywhere;
}

/* =========================================================
   Print styles
========================================================= */

@media print {
    .research-order-hero,
    .research-order-sidebar,
    .research-order-add-item,
    .research-order-remove,
    .research-order-submit,
    .research-order-checkout-actions,
    .research-order-paypal-area {
        display: none !important;
    }

    .research-order-page {
        color: #000000;
        background: #ffffff;
    }

    .research-order-content,
    .research-order-checkout {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .research-order-layout {
        display: block;
        width: 100%;
    }

    .research-order-card,
    .research-order-submit-area,
    .research-order-checkout-card {
        box-shadow: none;
        break-inside: avoid;
    }

    .research-order-item {
        box-shadow: none;
        break-inside: avoid;
    }
}

/* =========================================================
   Tablet layout
========================================================= */

@media (max-width: 980px) {
    .research-order-layout {
        grid-template-columns: 1fr;
    }

    .research-order-sidebar {
        position: static;
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .research-order-sidebar-card:last-child {
        grid-column: 1 / -1;
    }

    .research-order-price-list {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        column-gap: 24px;
    }

    .research-order-price-list > div:nth-last-child(2) {
        border-bottom: 0;
    }
}

/* =========================================================
   Mobile layout
========================================================= */

@media (max-width: 700px) {
    .research-order-hero-inner {
        width: min(
            calc(100% - 32px),
            var(--research-content-width)
        );
        padding: 52px 0 58px;
    }

    .research-order-content {
        padding: 34px 14px 60px;
    }

    .research-order-layout {
        gap: 26px;
    }

    .research-order-form {
        gap: 20px;
    }

    .research-order-card,
    .research-order-submit-area {
        padding: 22px 18px;
        border-radius: 12px;
    }

    .research-order-section-heading {
        margin-bottom: 22px;
        padding-bottom: 18px;
    }

    .research-order-field-grid,
    .research-order-item-grid {
        grid-template-columns: 1fr;
    }

    .research-order-field-wide {
        grid-column: auto;
    }

    .research-order-address-row {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(110px, 0.75fr);
    }

    .research-order-item-heading {
        padding: 15px 16px;
    }

    .research-order-item-grid {
        gap: 18px;
        padding: 20px 16px;
    }

    .research-order-item-total {
        padding: 13px 16px;
    }

    .research-order-sidebar {
        grid-template-columns: 1fr;
    }

    .research-order-sidebar-card:last-child {
        grid-column: auto;
    }

    .research-order-price-list {
        grid-template-columns: 1fr;
    }

    .research-order-price-list > div:nth-last-child(2) {
        border-bottom:
            1px solid
            var(--research-color-border-light);
    }

    .research-order-checkout {
        width: calc(100% - 28px);
        padding: 34px 0 60px;
    }

    .research-order-checkout-heading,
    .research-order-checkout-body {
        padding: 23px 18px;
    }

    .research-order-summary > div {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}

/* =========================================================
   Small mobile layout
========================================================= */

@media (max-width: 480px) {
    .research-order-hero h1 {
        font-size: 2rem;
    }

    .research-order-address-row {
        grid-template-columns: 1fr;
    }

    .research-order-item-heading {
        align-items: flex-start;
    }

    .research-order-item-heading h3 {
        padding-top: 7px;
    }

    .research-order-item-total {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .research-order-total {
        grid-template-columns: 1fr;
    }

    .research-order-total > strong {
        margin-top: 4px;
    }

    .research-order-review-item-header {
        flex-direction: column;
        gap: 8px;
    }

    .research-order-grand-total {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .research-order-checkout-actions {
        display: grid;
    }

    .research-order-secondary-button {
        width: 100%;
    }
}

/* =========================================================
   Reduced motion
========================================================= */

@media (prefers-reduced-motion: reduce) {
    .research-order-page *,
    .research-order-page *::before,
    .research-order-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
.research-order-member-notice {
    margin-top: 22px;
    padding: 15px 17px;
    color: #684d12;
    background: #fff4d2;
    border-left: 3px solid #bd8e28;
    font-size: 0.9rem;
    line-height: 1.6;
}

.research-order-member-notice a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}
