/*
 * Remote imaging request pages (redesign 2026-10, WP-D).
 * Templates: templates/pages/custom-request/{new-custom-request,custom-request-acquisition,custom-request-summary,
 * equipment-description}.html.twig and their partials. Loaded after apm.css in both the public (master) and
 * the logged-in (admin) layout, so everything here is scoped to .rq-* classes and works without body.apm-public.
 * px only (Metronic sets html{font-size:13px}).
 */

/* ------------------------------------------------------------------ hero (guest landing) */
.rq-hero {
    position: relative;
    isolation: isolate;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-top: calc(-1 * var(--apm-header-h));
    padding: calc(var(--apm-header-h) + 28px) 0 32px;
    overflow: clip;
}

/* Below 992px the text starts right under the header (no min-height); the photo is a quiet backdrop. */
@media (max-width: 991.98px) {
    .rq-hero .apm-photo__img { opacity: .5; }
}

@media (min-width: 992px) {
    .rq-hero {
        justify-content: center;
        min-height: 760px;
        padding: calc(var(--apm-header-h) + 80px) 0 56px;
    }
}

.rq-hero__img {
    object-position: 70% 50%;
}

.rq-hero__inner {
    position: relative;
    width: 100%;
}

.rq-hero__content {
    max-width: 860px;
}

.rq-hero__title {
    margin: 22px 0 0;
}

@media (min-width: 768px) {
    .rq-hero__title .apm-hl { display: block; }
}

.rq-hero__lead {
    max-width: 600px;
    margin: 22px 0 0;
}

.rq-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.rq-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.rq-trust li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--apm-text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.rq-trust .apm-icon {
    color: var(--apm-free-light);
    flex-shrink: 0;
}

.rq-hero__credit-wrap {
    position: relative;
    width: 100%;
    margin-top: 40px;
    text-align: left;
}

@media (min-width: 992px) {
    .rq-hero__credit-wrap {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 28px;
        margin: 0 auto;
        text-align: right;
    }
}

@media (max-width: 575.98px) {
    .rq-hero__ctas .apm-btn {
        flex: 1 1 100%;
    }
}

/* ------------------------------------------------------------------ how it works */
.rq-how__list {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin: 44px 0 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 640px) {
    .rq-how__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}

@media (min-width: 1100px) {
    .rq-how__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }

    /* dashed rail that shows in the gaps between the four cards */
    .rq-how__list::before {
        content: '';
        position: absolute;
        left: 24px;
        right: 24px;
        top: 46px;
        border-top: 1px dashed var(--apm-border-light);
        z-index: -1;
    }
}

.rq-how__item {
    position: relative;
    padding: 24px;
    border: 1px solid var(--apm-border);
    border-radius: var(--apm-radius);
    background: var(--apm-gradient-surface);
    box-shadow: var(--apm-shadow-card);
}

.rq-how__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.rq-how__num {
    font-family: var(--apm-font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--apm-accent-light);
    font-variant-numeric: tabular-nums;
}

.rq-how__title {
    margin: 20px 0 8px;
    color: var(--apm-text);
    font-family: var(--apm-font-display);
    font-size: 19px;
    font-weight: 650;
    line-height: 1.25;
    letter-spacing: -.01em;
}

.rq-how__text {
    margin: 0;
    color: var(--apm-text-secondary);
    font-size: 14.5px;
    line-height: 1.65;
}

/* ------------------------------------------------------------------ telescope panel (.apm-frame) */
.rq-telescope .apm-heading__main { max-width: 940px; }

@media (min-width: 768px) {
    .rq-telescope .apm-heading__title .apm-hl { white-space: nowrap; }
}

.rq-telescope .apm-reveal + .apm-reveal,
.rq-telescope .apm-heading + .apm-reveal {
    margin-top: 40px;
}

.rq-scope__tag {
    max-width: 48%;
}

.rq-scope__tag-text {
    overflow: hidden;
    text-overflow: ellipsis;
}

.rq-scope__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
}

@media (min-width: 992px) {
    .rq-scope__body {
        grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
        gap: 36px;
        align-items: start;
    }
}

.rq-scope--compact .rq-scope__body {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}

.rq-scope__spec .apm-spec > dd {
    color: var(--apm-text);
}

.rq-scope__muted {
    color: var(--apm-text-muted);
    font-family: var(--apm-font-sans);
    font-size: 12px;
}

.rq-scope__coords strong {
    color: var(--apm-text-muted);
    font-weight: 500;
}

.rq-scope__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    border-top: 1px solid var(--apm-border);
    background: rgba(4, 6, 12, .3);
}

@media (min-width: 768px) {
    .rq-scope__foot { padding: 16px 28px; }
}

/* price table */
.rq-prices {
    padding: 20px;
    border: 1px solid var(--apm-border);
    border-radius: 14px;
    background: rgba(4, 6, 12, .38);
}

.rq-prices__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--apm-border);
}

.rq-prices__title {
    margin: 0;
    color: var(--apm-text);
    font-size: 15px;
    font-weight: 600;
}

.rq-prices__currency {
    margin: 2px 0 0;
    color: var(--apm-text-muted);
    font-family: var(--apm-font-mono);
    font-size: 11.5px;
}

.rq-prices__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rq-prices__row {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px dashed var(--apm-border);
}

.rq-prices__label strong {
    display: block;
    color: var(--apm-text);
    font-size: 14px;
    font-weight: 600;
}

.rq-prices__label small {
    display: block;
    margin-top: 2px;
    color: var(--apm-text-muted);
    font-size: 12px;
    line-height: 1.4;
}

.rq-prices__value {
    color: var(--apm-text);
    font-family: var(--apm-font-display);
    font-size: 22px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.01em;
    white-space: nowrap;
}

.rq-prices__value small {
    margin-left: 4px;
    color: var(--apm-text-muted);
    font-family: var(--apm-font-mono);
    font-size: 11.5px;
    font-weight: 500;
}

.rq-prices__row:last-child .rq-prices__value {
    color: var(--apm-accent-light);
}

.rq-prices__note {
    margin: 14px 0 0;
    color: var(--apm-text-muted);
    font-size: 12.5px;
    line-height: 1.55;
}

/* moon phase glyphs: none = empty ring, half = crescent, full = lit disc */
.rq-moon {
    display: inline-block;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid #4A5677;
    background: radial-gradient(circle at 38% 36%, #2A3654 0%, #121A2C 75%);
    box-shadow: inset -2px -1px 0 rgba(201, 209, 230, .18);
    vertical-align: middle;
}

.rq-moon--half {
    border: 1.5px solid #C9D1E6;
    box-shadow: none;
    background: linear-gradient(90deg, rgba(201, 209, 230, 0) 0 58%, #E7ECF8 58% 100%);
}

.rq-moon--full {
    border: 1.5px solid #F3E7C3;
    background: radial-gradient(circle at 38% 36%, #FFF8E4 0%, #EADBB0 70%);
    box-shadow: 0 0 10px rgba(255, 236, 180, .35);
}

/* ------------------------------------------------------------------ what you get */
.rq-benefits__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin: 44px 0 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 640px) {
    .rq-benefits__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}

@media (min-width: 992px) {
    .rq-benefits__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.rq-benefit {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px;
    border: 1px solid var(--apm-border);
    border-radius: var(--apm-radius);
    background: var(--apm-gradient-surface);
}

.rq-benefit__title {
    margin: 2px 0 6px;
    color: var(--apm-text);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.rq-benefit__text {
    margin: 0;
    color: var(--apm-text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.rq-benefit__link {
    color: var(--apm-accent-light) !important;
    font-weight: 600;
    white-space: nowrap;
}

/* ------------------------------------------------------------------ step page head (guest steps 2-3) */
.rq-head {
    position: relative;
    isolation: isolate;
    flex-shrink: 0;
    margin-top: calc(-1 * var(--apm-header-h));
    padding: calc(var(--apm-header-h) + 40px) 0 36px;
    overflow: clip;
}

@media (min-width: 992px) {
    .rq-head { padding: calc(var(--apm-header-h) + 56px) 0 48px; }
}

.rq-head__photo .apm-photo__img {
    opacity: .55;
    object-position: 70% 40%;
}

.rq-head__back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 30px;
    padding: 0 12px;
    border: 1px solid var(--apm-border-light);
    border-radius: 999px;
    background: rgba(16, 23, 38, .7);
    color: var(--apm-text-secondary) !important;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
    text-decoration: none !important;
}

.rq-head__back .apm-icon { color: var(--apm-accent-light); }
.rq-head__back:hover { border-color: var(--apm-accent-border); color: var(--apm-text) !important; }

.rq-head__title {
    margin: 16px 0 14px;
    color: var(--apm-text);
    font-family: var(--apm-font-display);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.02em;
    overflow-wrap: anywhere;
}

@media (min-width: 768px) {
    .rq-head__title { font-size: 44px; }
}

.rq-head__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rq-head__chips .apm-chip { max-width: 100%; }

.rq-step-section {
    padding-top: 8px;
}

.rq-step-container {
    max-width: calc(1080px + 2 * var(--apm-gutter));
}

/* ------------------------------------------------------------------ card, progress, form */
.rq-form-section .apm-heading { margin-bottom: 32px; }
.rq-form-section--solo { padding-top: 48px; }

.rq-card {
    position: relative;
    padding: 22px 18px;
    border: 1px solid var(--apm-border-light);
    border-radius: var(--apm-radius-lg);
    background: linear-gradient(180deg, rgba(21, 30, 51, .92) 0%, rgba(11, 16, 28, .96) 100%);
    box-shadow: 0 40px 80px -50px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .04);
    color: var(--apm-text-secondary);
}

@media (min-width: 768px) {
    .rq-card { padding: 32px 36px 36px; }
}

.rq-card__intro { margin: 28px 0 28px; }
.rq-card__intro .apm-eyebrow { margin-bottom: 14px; }

.rq-card__title {
    margin: 0;
    font-size: 28px;
}

@media (min-width: 768px) {
    .rq-card__title { font-size: 36px; }
}

.rq-card__lead {
    max-width: 680px;
    margin: 12px 0 0;
    color: var(--apm-text-secondary);
    font-size: 15px;
    line-height: 1.65;
}

/* progress */
.rq-steps {
    padding-bottom: 22px;
    border-bottom: 1px solid var(--apm-border);
}

.rq-steps__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rq-steps__item {
    position: relative;
    min-width: 0;
}

/* connector to the next step */
.rq-steps__item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 18px;
    left: calc(50% + 26px);
    right: calc(-50% + 26px);
    height: 1px;
    background: var(--apm-border-light);
}

.rq-steps__item--done:not(:last-child)::after {
    background: linear-gradient(90deg, rgba(134, 239, 172, .55), var(--apm-border-light));
}

.rq-steps__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    text-decoration: none !important;
    color: var(--apm-text-muted) !important;
    border-radius: 12px;
}

a.rq-steps__link:hover .rq-steps__label { color: var(--apm-text); }
a.rq-steps__link:hover .rq-steps__marker { border-color: var(--apm-accent-border); }

.rq-steps__marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--apm-border-light);
    background: rgba(4, 6, 12, .5);
    color: var(--apm-text-muted);
    transition: border-color .2s var(--apm-ease);
}

.rq-steps__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.rq-steps__num {
    font-family: var(--apm-font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .08em;
    color: var(--apm-text-muted);
}

.rq-steps__label {
    color: var(--apm-text-secondary);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.rq-steps__item--current .rq-steps__marker {
    border-color: transparent;
    background: var(--apm-gradient-accent);
    color: var(--apm-accent-ink);
    box-shadow: 0 0 0 4px var(--apm-accent-tint), 0 8px 20px -6px rgba(255, 127, 0, .5);
}

.rq-steps__item--current .rq-steps__num { color: var(--apm-accent-light); }
.rq-steps__item--current .rq-steps__label { color: var(--apm-text); }

.rq-steps__item--done .rq-steps__marker {
    border-color: var(--apm-free-border);
    background: var(--apm-free-tint);
    color: var(--apm-free-light);
}

@media (min-width: 768px) {
    .rq-steps__link {
        flex-direction: row;
        justify-content: center;
        gap: 12px;
        text-align: left;
    }

    .rq-steps__item:not(:last-child)::after {
        top: 50%;
        left: auto;
        right: -4px;
        width: 14%;
    }

    .rq-steps__label { font-size: 14px; }
}

/* alerts and notes */
.rq-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 22px 0 0;
    padding: 12px 16px;
    border: 1px solid rgba(248, 113, 113, .38);
    border-radius: 12px;
    background: rgba(248, 113, 113, .08);
    color: #FECACA;
    font-size: 14px;
    line-height: 1.5;
}

.rq-alert .apm-icon { color: #F87171; flex-shrink: 0; margin-top: 1px; }

.rq-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 16px 0 0;
    padding: 12px 14px;
    border: 1px solid rgba(64, 110, 255, .2);
    border-radius: 12px;
    background: rgba(64, 110, 255, .06);
    color: var(--apm-text-secondary);
    font-size: 13.5px;
    line-height: 1.55;
}

.rq-note .apm-icon { color: #9DB5FF; flex-shrink: 0; margin-top: 2px; }
.rq-note--end { margin-top: 20px; }

/* form groups */
.rq-form { margin-top: 28px; }

.rq-group {
    min-width: 0;
    margin: 0 0 30px;
    padding: 0;
    border: 0;
}

.rq-group > legend.rq-group__title,
.rq-group__title {
    display: flex;
    align-items: center;
    gap: 9px;
    float: none;
    width: 100%;
    margin: 0 0 14px;
    padding: 0;
    color: var(--apm-text);
    font-family: var(--apm-font-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
    line-height: 1.3;
    text-transform: uppercase;
}

.rq-group__title .apm-icon { color: var(--apm-accent-light); }
.rq-group__lead { margin: -6px 0 14px; }

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

@media (min-width: 640px) {
    .rq-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.rq-field { min-width: 0; }

.rq-form .rq-label,
.rq-form label.rq-label {
    display: block;
    margin: 0 0 8px;
    color: var(--apm-text-secondary);
    font-size: 14px;
    font-weight: 600;
}

.rq-form .required::after { display: none !important; }

.rq-form .rq-input,
.rq-series .form-control,
.rq-series .form-select {
    display: block;
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border: 1px solid var(--apm-border-light);
    border-radius: 12px;
    background-color: rgba(4, 6, 12, .55);
    color: var(--apm-text);
    font-family: var(--apm-font-sans);
    font-size: 15px;
    line-height: 1.4;
    box-shadow: none;
    transition: border-color .2s var(--apm-ease), box-shadow .2s var(--apm-ease);
}

.rq-form .rq-input--mono {
    font-family: var(--apm-font-mono);
    font-size: 14.5px;
    font-variant-numeric: tabular-nums;
}

.rq-form .rq-textarea {
    height: auto;
    min-height: 112px;
    padding: 12px 16px;
    resize: vertical;
}

.rq-form .rq-input::placeholder,
.rq-series .form-control::placeholder {
    color: var(--apm-text-muted);
    opacity: .7;
}

.rq-form .rq-input:focus,
.rq-series .form-control:focus,
.rq-series .form-select:focus {
    outline: none;
    border-color: var(--apm-accent);
    background-color: rgba(4, 6, 12, .7);
    box-shadow: 0 0 0 3px var(--apm-accent-tint);
    color: var(--apm-text);
}

.rq-form .is-invalid,
.rq-series .form-control.is-invalid {
    border-color: rgba(248, 113, 113, .7) !important;
}

.rq-form .invalid-feedback {
    display: block;
    margin-top: 7px;
    color: #FCA5A5;
    font-size: 13px;
}

.rq-hint {
    margin: 8px 0 0;
    color: var(--apm-text-muted);
    font-size: 13px;
    line-height: 1.5;
}

.rq-hint--mono {
    font-family: var(--apm-font-mono);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

/* telescope radio cards */
.rq-choices {
    display: grid;
    gap: 12px;
}

.rq-choice {
    display: block;
    margin: 0;
    cursor: pointer;
}

.rq-choice__input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.rq-choice__box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    padding: 16px 18px;
    border: 1.5px solid var(--apm-border-light);
    border-radius: 14px;
    background: rgba(4, 6, 12, .35);
    transition: border-color .2s var(--apm-ease), background-color .2s var(--apm-ease);
}

.rq-choice:hover .rq-choice__box { border-color: var(--apm-accent-border); }

.rq-choice__input:checked + .rq-choice__box {
    border-color: var(--apm-accent);
    background: rgba(255, 127, 0, .06);
}

.rq-choice__input:focus-visible + .rq-choice__box {
    outline: 2px solid var(--apm-accent-light);
    outline-offset: 2px;
}

.rq-choice__radio {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--apm-border-light);
}

.rq-choice__input:checked + .rq-choice__box .rq-choice__radio {
    border-color: var(--apm-accent);
    background: var(--apm-accent);
    box-shadow: inset 0 0 0 4px #111A2B;
}

.rq-choice__body {
    flex: 1 1 180px;
    min-width: 0;
}

.rq-choice__title {
    display: block;
    color: var(--apm-text);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}

.rq-choice__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
}

.rq-choice__meta .apm-chip { max-width: 100%; }

.rq-choice__price {
    flex-shrink: 0;
    margin-left: auto;
    padding: 5px 11px;
    border: 1px solid var(--apm-accent-border);
    border-radius: 999px;
    background: var(--apm-accent-tint);
    color: var(--apm-accent-light);
    font-family: var(--apm-font-mono);
    font-size: 12.5px;
    font-weight: 500;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .rq-choice__price { margin-left: 36px; }
}

/* actions */
.rq-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 20px;
    margin-top: 8px;
    padding-top: 24px;
    border-top: 1px solid var(--apm-border);
}

.rq-actions--split { justify-content: space-between; }

.rq-actions__note {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: var(--apm-text-muted);
    font-size: 13px;
}

.rq-actions__note .apm-icon { color: var(--apm-accent-light); }

@media (max-width: 575.98px) {
    .rq-actions .apm-btn--primary { width: 100%; }
    .rq-actions--split { flex-direction: column-reverse; align-items: stretch; }
    .rq-actions--split .apm-btn--ghost { justify-content: center; }
}

/* ------------------------------------------------------------------ step 2: moon choice + series rows */
.rq-moonpick .mb-3 { margin-bottom: 0 !important; }

.rq-moonpick [id$="_moonPhase"] {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}

@media (min-width: 992px) {
    .rq-moonpick [id$="_moonPhase"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.rq-moonpick .form-check {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 0;
    margin: 0;
    padding: 16px 16px 16px 76px;
    border: 1.5px solid var(--apm-border-light);
    border-radius: 14px;
    background: rgba(4, 6, 12, .35);
    cursor: pointer;
    transition: border-color .2s var(--apm-ease), background-color .2s var(--apm-ease);
}

.rq-moonpick .form-check:hover { border-color: var(--apm-accent-border); }

.rq-moonpick .form-check:has(.form-check-input:checked) {
    border-color: var(--apm-accent);
    background: rgba(255, 127, 0, .06);
}

/* moon glyph per option, in the order the form type renders them: no moon, < 25 %, any */
.rq-moonpick .form-check::before {
    content: '';
    position: absolute;
    left: 46px;
    top: 18px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid #4A5677;
    background: radial-gradient(circle at 38% 36%, #2A3654 0%, #121A2C 75%);
    box-shadow: inset -2px -1px 0 rgba(201, 209, 230, .18);
}

.rq-moonpick .form-check:nth-child(2)::before {
    border: 1.5px solid #C9D1E6;
    box-shadow: none;
    background: linear-gradient(90deg, rgba(201, 209, 230, 0) 0 58%, #E7ECF8 58% 100%);
}

.rq-moonpick .form-check:nth-child(3)::before {
    border: 1.5px solid #F3E7C3;
    background: radial-gradient(circle at 38% 36%, #FFF8E4 0%, #EADBB0 70%);
    box-shadow: 0 0 10px rgba(255, 236, 180, .35);
}

.rq-moonpick .form-check-input {
    position: absolute;
    left: 16px;
    top: 17px;
    width: 20px;
    height: 20px;
    margin: 0;
    float: none;
    border: 2px solid var(--apm-border-light);
    background-color: transparent;
    cursor: pointer;
}

.rq-moonpick .form-check-input:checked {
    border-color: var(--apm-accent);
    background-color: var(--apm-accent);
    background-image: none;
    box-shadow: inset 0 0 0 4px #111A2B;
}

.rq-moonpick .form-check-input:focus-visible {
    outline: 2px solid var(--apm-accent-light);
    outline-offset: 2px;
}

.rq-moonpick .form-check-label {
    color: var(--apm-text-secondary);
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.5;
    cursor: pointer;
}

.rq-moonpick .form-check-label .price {
    display: block;
    margin: 4px 0 0;
    color: var(--apm-text);
    font-family: var(--apm-font-display);
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.rq-moonpick .form-check:has(.form-check-input:checked) .price { color: var(--apm-accent-light); }

.rq-series__table {
    padding: 4px 0 0;
}

.rq-series .row { --bs-gutter-x: 12px; }

.rq-series__head {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--apm-border);
    color: var(--apm-text-muted);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.rq-series__head [data-tippy-content] { cursor: help; }

.rq-help .apm-icon {
    margin-top: -2px;
    color: var(--apm-accent-light);
}

.rq-mono-muted {
    font-family: var(--apm-font-mono);
    font-size: 11px;
    text-transform: none;
    letter-spacing: 0;
}

.rq-series .imageAcquisition { padding: 0; }

.rq-series .collection-item {
    align-items: center;
    margin-top: 0 !important;
    margin-bottom: 10px !important;
}

.rq-series .form-control,
.rq-series .form-select {
    height: 46px;
    padding: 0 10px;
    font-size: 14px;
}

.rq-series .form-select {
    padding-right: 34px;
    background-position: right 10px center;
}

.rq-series .exposure-input,
.rq-series .repeat-input {
    font-family: var(--apm-font-mono);
    font-variant-numeric: tabular-nums;
}

.rq-series .time-row-result {
    color: var(--apm-text-secondary);
    font-family: var(--apm-font-mono);
    font-size: 12.5px !important; /* admin layout forces div{font-size:13px!important} */
    line-height: 1.35;
    text-align: center;
}

.rq-series .money-row-result {
    color: var(--apm-accent-light);
    font-family: var(--apm-font-mono);
    font-size: 13.5px !important; /* admin layout forces div{font-size:13px!important} */
    font-weight: 500;
}

.rq-series .collection-small-buttons {
    display: flex;
    gap: 6px;
    margin-top: 0 !important;
}

.rq-series .collection-small-buttons .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0 !important;
    border: 1px solid var(--apm-border-light) !important;
    border-radius: 10px;
    background: rgba(255, 255, 255, .03) !important;
    margin: 0 !important;
}

.rq-series .collection-small-buttons .btn i { color: var(--apm-text-secondary); font-size: 22px !important; }
.rq-series .collection-small-buttons .add_item_link i { color: var(--apm-accent-light); }
.rq-series .collection-small-buttons .btn:hover { border-color: var(--apm-accent-border) !important; }

.rq-series .invalid-feedback,
.rq-series .form-error-message { color: #FCA5A5; font-size: 12.5px; }

@media (max-width: 767.98px) {
    .rq-series__head {
        font-size: 10.5px;
        letter-spacing: .02em;
        overflow-wrap: anywhere;
    }

    .rq-series .collection-item {
        row-gap: 10px;
        padding: 12px 0 14px;
        border-bottom: 1px dashed var(--apm-border);
    }

    .rq-series .time-row-result,
    .rq-series .money-row-result { text-align: left !important; }
}

.rq-total {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    margin-top: 16px;
    padding: 16px 20px;
    border: 1px solid var(--apm-accent-border);
    border-radius: 14px;
    background: rgba(255, 127, 0, .06);
}

.rq-total__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--apm-text);
    font-size: 14px;
    font-weight: 600;
}

.rq-total__label .apm-icon { color: var(--apm-accent-light); }

.rq-total__values {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}

.rq-total .total-sum {
    color: var(--apm-text-secondary);
    font-family: var(--apm-font-mono);
    font-size: 12.5px !important; /* admin layout forces div{font-size:13px!important} */
    line-height: 1.35;
    text-align: right;
}

.rq-total .total-sum-money {
    color: var(--apm-accent-light);
    font-family: var(--apm-font-display);
    font-size: 28px !important; /* admin layout forces div{font-size:13px!important} */
    font-weight: 700;
    letter-spacing: -.01em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* ------------------------------------------------------------------ step 3: review */
.rq-review {
    display: grid;
    gap: 16px;
}

.rq-review__block {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--apm-border);
    border-radius: var(--apm-radius);
    background: rgba(4, 6, 12, .3);
}

@media (min-width: 768px) {
    .rq-review__block { padding: 22px 24px; }
}

.rq-review__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    margin-bottom: 8px;
}

.rq-review__title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: var(--apm-text);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.rq-review__title .apm-icon { color: var(--apm-accent-light); }

.rq-review__edit {
    color: var(--apm-accent-light) !important;
    font-size: 13px;
    font-weight: 600;
}

.rq-review__notes { font-family: var(--apm-font-sans) !important; white-space: pre-line; }

.rq-review__scope {
    margin: 6px 0 12px;
    color: var(--apm-text);
    font-size: 16px;
    font-weight: 600;
}

.rq-review__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.rq-review__chips .apm-chip { max-width: 100%; }

.rq-review__moon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--apm-text-secondary);
    font-size: 13px;
}

.rq-table-wrap {
    margin: 6px 0 0;
    overflow-x: auto;
}

.rq-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.rq-table th {
    padding: 10px 8px;
    border-bottom: 1px solid var(--apm-border);
    color: var(--apm-text-muted);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .06em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.rq-table td {
    padding: 12px 8px;
    border-bottom: 1px dashed var(--apm-border);
    color: var(--apm-text);
    white-space: nowrap;
}

.rq-table th:first-child,
.rq-table td:first-child { padding-left: 0; }

.rq-table th:last-child,
.rq-table td:last-child { padding-right: 0; }

.rq-table .is-num {
    font-family: var(--apm-font-mono);
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.rq-table th.is-num { font-family: var(--apm-font-sans); }
.rq-table .is-price { color: var(--apm-accent-light); }

@media (max-width: 575.98px) {
    /* stacked rows on phones: filter on top, the four numbers below with their labels */
    .rq-table thead { display: none; }
    .rq-table tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 16px;
        padding: 12px 0;
        border-bottom: 1px dashed var(--apm-border);
    }
    .rq-table td { padding: 0 !important; border: 0; white-space: normal; }
    .rq-table td:first-child { grid-column: 1 / -1; font-weight: 600; }
    .rq-table td.is-num { text-align: left; font-size: 13px; }
    .rq-table td[data-label]::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 2px;
        color: var(--apm-text-muted);
        font-family: var(--apm-font-sans);
        font-size: 10.5px;
        font-weight: 600;
        letter-spacing: .04em;
        text-transform: uppercase;
    }
}

.rq-sum {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.rq-sum__item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid var(--apm-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, .02);
}

.rq-sum__label {
    color: var(--apm-text-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.rq-sum__value {
    color: var(--apm-text);
    font-family: var(--apm-font-display);
    font-size: 22px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.rq-sum__value small {
    color: var(--apm-text-muted);
    font-family: var(--apm-font-mono);
    font-size: 11.5px;
    font-weight: 500;
}

.rq-sum__item--price {
    border-color: var(--apm-accent-border);
    background: rgba(255, 127, 0, .06);
}

.rq-sum__item--price .rq-sum__value {
    color: var(--apm-accent-light);
    font-size: 28px;
}

.rq-notice {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 20px 0 24px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 209, 102, .28);
    border-radius: 14px;
    background: rgba(255, 209, 102, .05);
}

.rq-notice .apm-icon-tile {
    background: rgba(255, 209, 102, .12);
    border-color: rgba(255, 209, 102, .26);
    color: var(--apm-gold);
}

.rq-notice__title {
    margin: 2px 0 6px;
    color: var(--apm-text);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}

.rq-notice__text {
    margin: 0;
    color: var(--apm-text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.rq-guest-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.rq-guest-cta__login {
    color: var(--apm-text-secondary) !important;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

.rq-guest-cta__login:hover { color: var(--apm-text) !important; }

@media (max-width: 575.98px) {
    .rq-guest-cta { align-items: stretch; text-align: center; }
    .rq-guest-cta .apm-btn { width: 100%; }
}

/* ------------------------------------------------------------------ logged-in (admin layout) */
.rq-app {
    max-width: 1320px;
    padding-bottom: 32px;
}

.rq-app--narrow { max-width: 1080px; }

.rq-app__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

@media (min-width: 1200px) {
    .rq-app__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
    .rq-app__side { position: sticky; top: 96px; }
}

.rq-app .rq-form { margin-top: 24px; }

/* ------------------------------------------------------------------ equipment detail page polish */
.rq-equipment .stat-number,
.rq-equipment h1,
.rq-equipment h3 {
    font-family: var(--apm-font-display);
    letter-spacing: -.015em;
}

.rq-equipment .stat-number {
    font-variant-numeric: tabular-nums;
    color: var(--apm-accent-light);
}

.rq-equipment .spec-value {
    font-family: var(--apm-font-mono);
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

.rq-equipment .stat-card,
.rq-equipment .feature-card,
.rq-equipment .spec-table {
    border-color: var(--apm-border);
    border-radius: var(--apm-radius);
    background: var(--apm-gradient-surface);
}

.rq-equipment .feature-icon {
    background: var(--apm-accent-tint);
    border: 1px solid rgba(255, 127, 0, .22);
}

.rq-equipment .feature-icon i { color: var(--apm-accent-light); }

.rq-equipment { flex-shrink: 0; }

/* public: hero runs full width under the glass header, like the other redesigned pages */
.rq-equipment--public .equipment-hero {
    margin-top: calc(-1 * var(--apm-header-h));
    padding-top: calc(var(--apm-header-h) + 64px) !important;
}

@media (min-width: 992px) {
    .rq-equipment--public .equipment-hero { padding-top: calc(var(--apm-header-h) + 72px) !important; }
}

.rq-equipment .equipment-hero h1 {
    font-size: 38px !important;
    font-weight: 700 !important;
    line-height: 1.08;
    text-shadow: none;
}

@media (min-width: 768px) {
    .rq-equipment .equipment-hero h1 { font-size: 56px !important; }
}

.rq-equipment .btn-equipment-cta {
    background: var(--apm-gradient-accent);
    color: var(--apm-accent-ink);
    box-shadow: 0 8px 24px rgba(255, 127, 0, .28);
}

.rq-equipment .btn-equipment-cta:hover { color: var(--apm-accent-ink); }

.rq-equipment .btn-download:hover { color: var(--apm-accent-light); }

.rq-equipment .stat-label,
.rq-equipment .spec-label { letter-spacing: .02em; }

.rq-equipment--public.app-content,
.rq-equipment--public > .app-container { padding: 0 !important; }

.rq-equipment .stat-number {
    font-size: 26px;
    line-height: 1.15;
}

/* the licence row is a sentence, not a value: keep it in the body font */
.rq-equipment .spec-row:last-child .spec-value { font-family: var(--apm-font-sans); }
