/*
 * RSA page: pages/rsa. Only the title band with its price card and the form's
 * card are its own; the rest is content.css, and the form is forms.css.
 */

/* Title band: the cover on the left, its price on the right
   ========================================================================== */

.rsa-hero {
    position: relative;
    background: var(--color-footer-bg);
    color: var(--color-hero-text);
}

.rsa-hero__inner {
    display: grid;
    gap: var(--space-6);
    padding-block: var(--space-7);
}

.rsa-hero__text {
    display: grid;
    align-content: center;
    justify-items: start;
    gap: var(--space-4);
}

.rsa-hero h1 {
    max-width: 18ch;
    color: inherit;
}

.rsa-hero__features {
    display: grid;
    gap: var(--space-3);
    margin: var(--space-2) 0 0;
    padding: 0;
    list-style: none;
}

.rsa-hero__features li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

/* The name, with its line in quieter type under it. */
.rsa-hero__features li > span:last-child {
    color: var(--color-footer-muted);
    font-size: var(--text-sm);
}

.rsa-hero__features b {
    display: block;
    color: var(--color-hero-text);
    font-size: var(--text-md);
}

.rsa-hero__icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-card);
    background: var(--color-hero-chip);
    color: var(--color-footer-accent);
}

/* On the seam under the band, as under every other title band. */
.rsa-hero > .page-hero__divider {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0;
    translate: 0 50%;
}

/* The price card keeps the page's own colours, so it reads as a card on the band. */
.rsa-price {
    display: grid;
    justify-items: start;
    gap: var(--space-3);
    padding: var(--space-5);
    border-radius: var(--radius-card);
    background: var(--color-surface);
    box-shadow: var(--shadow-card-hover);
    color: var(--color-text);
}

.rsa-price__name {
    color: var(--color-accent-text);
    font-family: var(--font-label);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: var(--eyebrow-tracking);
    text-transform: uppercase;
}

.rsa-price__amount {
    color: var(--color-text-muted);
    line-height: 1;
}

.rsa-price__amount b {
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: clamp(3rem, 2.4rem + 2.5vw, 4.5rem);
    font-weight: var(--heading-weight);
}

.rsa-price__title {
    width: 100%;
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border);
    font-size: var(--text-lg);
}

.rsa-price .check-list {
    margin: 0 0 var(--space-2);
}

.rsa-price .btn {
    justify-self: stretch;
}

.rsa-price__by {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

@media (min-width: 640px) {
    .rsa-price {
        padding: var(--space-6);
    }
}

@media (min-width: 1000px) {
    .rsa-hero__inner {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
        align-items: center;
        gap: var(--space-8);
        padding-block: var(--space-8);
    }
}


/* The form
   ========================================================================== */

/* The buttons above link here, so it clears the sticky header. */
.rsa-form-section {
    scroll-margin-top: var(--header-height);
}

.rsa-form-card {
    max-width: 52rem;
    margin-inline: auto;
    padding: var(--space-5) var(--space-4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    background: var(--color-surface);
}

@media (min-width: 640px) {
    .rsa-form-card {
        padding: var(--space-6);
    }
}

/* Payment: pages/pay-rsa
   ========================================================================== */

/* Wider, so Worldpay's form has room beside the order summary. */
.rsa-form-card--pay {
    max-width: 64rem;
}

.rsa-pay {
    display: grid;
    gap: var(--space-6);
}

.rsa-pay__summary {
    display: grid;
    align-content: start;
    gap: var(--space-4);
}

.rsa-pay__summary .form-recap {
    grid-template-columns: minmax(0, 1fr);
}

.rsa-pay__summary small {
    color: var(--color-text-muted);
    font-weight: 400;
}

.rsa-pay__loading {
    padding: var(--space-7) var(--space-4);
    border: 1px dashed var(--color-border-strong);
    border-radius: var(--radius-field);
    color: var(--color-text-muted);
    text-align: center;
}

.rsa-pay__paid {
    width: 100%;
}

@media (min-width: 800px) {
    .rsa-pay {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        align-items: start;
    }
}

.rsa-form__date {
    max-width: 16rem;
}

.rsa-form__pdf {
    font-size: var(--text-sm);
    font-weight: 600;
}
