/* Inner pages (account, listings, plans, forms, policies). Builds on page-shell.css and
   profile.css; everything is scoped under .mp-page. */

.ss-page .in-hero__lead {
    max-width: 640px;
    margin-bottom: 0;
    font-size: 16px;
}

/* ---------- Layout variants ---------- */

.mp-layout--single {
    grid-template-columns: minmax(0, 1fr);
}

/* Content beside a narrower column of cards. */
.mp-layout--form {
    grid-template-columns: minmax(0, 1fr) 340px;
}

.mp-layout--account {
    grid-template-columns: 290px minmax(0, 1fr);
}

.mp-layout--pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}

.mp-nav a.is-current {
    background: var(--ss-cream);
    color: var(--ss-brand);
}

.in-narrow {
    width: 100%;
    max-width: 560px;
}

.mp-layout--single > .in-narrow {
    margin: 0 auto;
}

.in-center {
    text-align: center;
}

.ss-page .in-center .mp-card__title,
.ss-page .in-center p {
    text-align: center;
}

.in-center .in-actions {
    justify-content: center;
}

.in-badge {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--ss-cream);
    color: var(--ss-brand);
    font-size: 26px;
}

.in-badge--ok {
    background: #e7f6ec;
    color: #1e8e4b;
}

.in-badge--bad {
    background: #fdecec;
    color: var(--ss-brand);
}

.in-block {
    width: 100%;
    justify-content: center;
}

/* ---------- Long text (terms, privacy) ---------- */

.in-prose {
    padding: 36px clamp(20px, 4vw, 52px);
    color: var(--ss-muted);
    font-size: 15px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.ss-page .in-prose p {
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 1.8;
}

.ss-page .in-prose h6 {
    margin: 26px 0 8px;
    text-align: left;
    color: var(--ss-ink);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
}

.in-prose b,
.in-prose strong {
    color: var(--ss-ink);
}

.in-prose ul,
.in-prose ol {
    margin: 0 0 14px;
    padding-left: 22px;
}

.in-prose a {
    color: var(--ss-brand);
}

/* ---------- Forms ---------- */

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

.in-form--stack {
    grid-template-columns: minmax(0, 1fr);
}

.in-field {
    display: grid;
    gap: 6px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    text-align: left;
}

.in-field--wide {
    grid-column: 1 / -1;
}

.in-field > label,
.in-field > legend {
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--ss-ink);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.in-field > legend {
    margin-bottom: 6px;
}

.in-req {
    color: var(--ss-brand);
}

.in-field input[type="text"],
.in-field input[type="email"],
.in-field input[type="tel"],
.in-field input[type="password"],
.in-field input[type="date"],
.in-field input[type="file"],
.in-field select,
.in-field textarea {
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid #ddd3cb;
    border-radius: 10px;
    background: #fff;
    color: var(--ss-ink);
    font-size: 15px;
    line-height: 1.4;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.in-field textarea {
    resize: vertical;
}

.in-field input:focus,
.in-field select:focus,
.in-field textarea:focus {
    border-color: var(--ss-brand);
    box-shadow: 0 0 0 3px rgba(208, 35, 35, .12);
    outline: none;
}

.in-field input[readonly] {
    background: #f6f2ee;
    color: var(--ss-muted);
}

.in-range {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    color: var(--ss-muted);
    font-size: 13px;
}

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

.in-check {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.in-check input {
    position: absolute;
    opacity: 0;
}

.in-check span {
    display: inline-block;
    padding: 9px 16px;
    border: 1px solid #ddd3cb;
    border-radius: 999px;
    color: var(--ss-ink);
    font-size: 14px;
    font-weight: 400;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.in-check input:checked + span {
    border-color: var(--ss-brand);
    background: var(--ss-brand);
    color: #fff;
}

.in-check input:focus-visible + span {
    box-shadow: 0 0 0 3px rgba(208, 35, 35, .2);
}

.in-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}

.ss-page .in-error,
.in-error {
    color: var(--ss-brand);
    font-size: 13px;
    font-weight: 600;
}

.ss-btn[disabled] {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
}

/* ---------- Small cards ---------- */

.in-help {
    text-align: center;
}

.in-help .fa {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 10px;
    border-radius: 50%;
    background: var(--ss-cream);
    color: var(--ss-brand);
    font-size: 22px;
}

.ss-page .in-help p {
    text-align: center;
}

.in-help a {
    display: inline-block;
    margin-top: 4px;
    color: var(--ss-brand);
    font-size: 24px;
    font-weight: 600;
    white-space: nowrap;
}

.in-plain {
    display: grid;
    gap: 8px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    color: var(--ss-muted);
    font-size: 14px;
    text-align: left;
    overflow-wrap: anywhere;
}

.in-plain .fa {
    width: 18px;
    margin-right: 6px;
    color: var(--ss-brand);
    text-align: center;
}

.in-plain--center {
    justify-items: center;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--ss-line);
}

/* ---------- Verification ---------- */

.ss-page .mp-card .in-contact {
    margin: 12px 0 18px;
    color: var(--ss-brand);
    font-size: 18px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.in-pin {
    display: grid;
    justify-items: center;
    gap: 18px;
    margin: 0;
}

.in-pin__boxes {
    display: flex;
    gap: 10px;
}

.in-pin__boxes input {
    width: 46px;
    height: 52px;
    padding: 0;
    border: 1px solid #ddd3cb;
    border-radius: 10px;
    background: #fff;
    color: var(--ss-ink);
    font-size: 20px;
    font-weight: 600;
    text-align: center;
}

.in-pin__boxes input:focus {
    border-color: var(--ss-brand);
    outline: none;
}

/* ---------- Plans ---------- */

.in-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    align-items: stretch;
}

.in-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 30px 26px;
}

.in-plan--popular {
    border-color: var(--ss-brand);
    box-shadow: 0 16px 40px rgba(208, 35, 35, .16);
}

.in-plan__tag {
    position: absolute;
    top: -13px;
    left: 26px;
    padding: 4px 14px;
    border-radius: 999px;
    background: var(--ss-brand);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ss-page .in-plan__name {
    margin: 0;
    text-align: left;
    color: var(--ss-ink);
    font-size: 22px;
    font-weight: 600;
}

.ss-page .mp-card .in-plan__price {
    color: var(--ss-brand);
    font-size: 40px;
    font-weight: 600;
    line-height: 1.1;
}

.in-plan__price span {
    margin-right: 2px;
    font-size: 22px;
    vertical-align: top;
}

.in-plan__price em {
    margin-left: 6px;
    color: var(--ss-muted);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
}

.in-plan__list {
    display: grid;
    gap: 10px;
    margin: 6px 0;
    padding: 0;
    list-style: none;
    color: var(--ss-ink);
    font-size: 14px;
    text-align: left;
}

.in-plan__list--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 18px 0;
}

.in-plan__list .fa {
    width: 18px;
    margin-right: 6px;
    color: #1e8e4b;
}

.in-plan__list li.is-off {
    color: #b3aaa4;
}

.in-plan__list li.is-off .fa {
    color: #cfc6bf;
}

.in-plan form,
.in-plan > .ss-btn,
.in-plan__note {
    margin: auto 0 0;
}

.in-plan .ss-btn {
    width: 100%;
    justify-content: center;
}

.in-plan__note {
    color: #1e8e4b;
    font-size: 14px;
    font-weight: 600;
}

.in-compare {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    align-items: start;
}

.in-compare__premium {
    border-color: transparent;
    background: linear-gradient(140deg, var(--ss-brand-dark), var(--ss-brand));
}

.ss-page .in-compare__premium .mp-card__title,
.in-compare__premium .in-plan__list,
.in-compare__premium .in-plan__list .fa {
    color: #fff;
}

.in-helpdesk {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.in-helpdesk__phone {
    flex-shrink: 0;
    color: var(--ss-brand);
    font-size: 24px;
    font-weight: 600;
    white-space: nowrap;
}

.in-skip {
    justify-self: end;
    margin-top: 0;
}

/* ---------- Checkout ---------- */

.in-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.in-total strong {
    color: var(--ss-brand);
    font-size: 24px;
    white-space: nowrap;
}

.in-total--sum {
    margin-bottom: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--ss-line);
    color: var(--ss-ink);
    font-size: 16px;
    font-weight: 600;
}

.in-choices {
    display: grid;
    gap: 10px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.in-choices a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--ss-line);
    border-radius: 12px;
    color: var(--ss-muted);
    font-size: 13px;
    transition: border-color .2s ease, background-color .2s ease;
}

.in-choices a:hover,
.in-choices a:focus,
.in-choices a.is-active {
    border-color: var(--ss-brand);
    background: var(--ss-cream);
    text-decoration: none;
}

.in-choices strong {
    display: block;
    color: var(--ss-ink);
    font-size: 15px;
}

.in-choices em {
    color: var(--ss-brand);
    font-size: 17px;
    font-style: normal;
    font-weight: 600;
    white-space: nowrap;
}

.ss-page .mp-card .in-receipt {
    margin: 16px 0 22px;
    color: var(--ss-ink);
    font-size: 16px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.in-receipt span {
    display: block;
    color: var(--ss-muted);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .1em;
    text-transform: uppercase;
}

/* ---------- Notifications ---------- */

.in-notes {
    display: grid;
    gap: 12px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.in-note {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-left: 4px solid var(--ss-brand);
    border-radius: 10px;
    background: var(--ss-cream);
}

.in-note > .fa {
    color: var(--ss-brand);
    font-size: 18px;
}

.in-note--message {
    border-left-color: #1e8e4b;
    background: #eef8f1;
}

.in-note--message > .fa {
    color: #1e8e4b;
}

.in-note--warn {
    border-left-color: #e0a100;
    background: #fff8e1;
}

.in-note--warn > .fa {
    color: #c98f00;
}

.ss-page .in-note p {
    color: var(--ss-ink);
}

/* ---------- Result lists ---------- */

/* Two profiles on a line. */
.list-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.list-wrapper > .in-pages,
.list-wrapper > .mp-empty {
    grid-column: 1 / -1;
}

.in-result {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    /* The button row stays at the bottom when a neighbour makes the card taller. */
    grid-template-rows: 1fr auto;
    align-items: start;
    gap: 16px;
    padding: 16px;
}

.in-result__action {
    grid-column: 1 / -1;
    align-self: end;
    justify-self: end;
}

.in-result__btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 4px 4px 14px;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--ss-brand-dark), var(--ss-brand) 60%, #e8452f);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(208, 35, 35, .2);
    transition: box-shadow .2s ease, transform .2s ease;
}

/* The arrow sits in a white disc at the end of the button. */
.in-result__btn .fa {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    color: var(--ss-brand);
    font-size: 11px;
    transition: transform .2s ease;
}

.in-result__btn:hover,
.in-result__btn:focus {
    color: #fff;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(208, 35, 35, .34);
    transform: translateY(-2px);
}

.in-result__btn:hover .fa,
.in-result__btn:focus .fa {
    transform: translateX(3px);
}

.in-result__btn:focus-visible {
    outline: 3px solid rgba(208, 35, 35, .35);
    outline-offset: 3px;
}

.in-result__photo {
    width: 110px;
    height: 110px;
    border-radius: 12px;
    overflow: hidden;
    background: #efe8e2;
}

.in-result__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ss-page .in-result__name {
    margin: 0 0 2px;
    text-align: left;
    color: var(--ss-ink);
    font-size: 19px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.ss-page .mp-card .in-result__meta {
    font-size: 13px;
}

.in-result__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    color: var(--ss-ink);
    font-size: 14px;
}

.in-result__facts .fa {
    margin-right: 5px;
    color: var(--ss-brand);
}

.in-pages {
    display: flex;
    justify-content: center;
}

.in-pages ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.in-pages li a,
.in-pages li span {
    display: grid;
    place-items: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--ss-line);
    border-radius: 10px;
    background: #fff;
    color: var(--ss-ink);
    font-size: 14px;
    font-weight: 600;
}

.in-pages li a:hover,
.in-pages li a:focus {
    border-color: var(--ss-brand);
    color: var(--ss-brand);
    text-decoration: none;
}

.in-pages li.active span,
.in-pages li span.current {
    border-color: var(--ss-brand);
    background: var(--ss-brand);
    color: #fff;
}

.in-pages li.disabled span {
    color: #b3aaa4;
}

/* ---------- Member profile ---------- */

.in-person {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr) 190px;
    align-items: start;
    gap: 24px;
}

.in-person__photo {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: #efe8e2;
}

.in-person__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ss-page .in-person__name {
    margin: 0;
    text-align: left;
    color: var(--ss-ink);
    font-size: 24px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.in-person__name span {
    margin-left: 6px;
    color: var(--ss-brand);
    font-size: 15px;
    letter-spacing: .04em;
}

.in-person__facts {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.in-person__contact {
    margin-bottom: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--ss-line);
    color: var(--ss-ink);
}

.ss-page .in-locked {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--ss-cream);
    color: var(--ss-ink);
    font-size: 14px;
}

.in-locked .fa {
    margin-right: 6px;
    color: var(--ss-brand);
}

.in-locked a {
    color: var(--ss-brand);
    font-weight: 600;
}

.in-person__like {
    padding: 18px 14px;
    border-radius: 12px;
    background: var(--ss-cream);
    text-align: center;
}

.in-person__like form {
    margin: 0;
}

.ss-page .in-person__like p {
    margin-bottom: 10px;
    text-align: center;
    color: var(--ss-ink);
    font-size: 14px;
    font-weight: 600;
}

.in-person__like span {
    display: block;
    margin-top: 8px;
    color: var(--ss-muted);
    font-size: 13px;
}

.in-heart {
    display: inline-grid;
    place-items: center;
    width: 62px;
    height: 62px;
    padding: 0;
    border: 2px solid var(--ss-brand);
    border-radius: 50%;
    background: #fff;
    color: var(--ss-brand);
    font-size: 26px;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.in-heart:hover,
.in-heart:focus,
.in-heart.is-on {
    background: var(--ss-brand);
    color: #fff;
}

.in-heart:hover {
    transform: scale(1.06);
}

.in-gallery {
    margin-top: 14px;
}

/* ---------- Registration steps ---------- */

.in-wizard {
    padding: clamp(14px, 3vw, 32px);
    overflow: hidden;
}

.in-wizard .steps fieldset {
    padding: 20px 0 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.in-wizard .steps input,
.in-wizard .steps textarea,
.in-wizard .steps select,
.in-wizard .select2-container--default .select2-selection--single {
    border-radius: 10px;
}

.in-wizard .steps .action-button,
.in-wizard .action-button {
    min-width: 120px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.in-wizard #progressbar {
    padding: 0;
}

/* ---------- Narrower screens ---------- */

@media (max-width: 1280px) {
    /* These two keep their side column until the page is tablet sized. */
    .mp-layout--form {
        grid-template-columns: minmax(0, 1fr) 320px;
    }

    .mp-layout--form > .mp-aside {
        grid-column: auto;
        grid-template-columns: minmax(0, 1fr);
    }

    .mp-layout--account {
        grid-template-columns: 270px minmax(0, 1fr);
    }

    .mp-layout--single {
        grid-template-columns: minmax(0, 1fr);
    }

    .mp-layout--pair {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .in-person {
        grid-template-columns: 170px minmax(0, 1fr);
    }

    .in-person__like {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1000px) {
    .mp-layout--form {
        grid-template-columns: minmax(0, 1fr);
    }

    .mp-layout--form > .mp-aside {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        align-items: start;
    }
}

@media (max-width: 860px) {
    .mp-layout--account,
    .mp-layout--pair {
        grid-template-columns: minmax(0, 1fr);
    }

    .in-helpdesk {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .in-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .list-wrapper {
        grid-template-columns: minmax(0, 1fr);
    }

    .in-result {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 14px;
    }

    .in-result__photo {
        width: 92px;
        height: 92px;
    }

    .in-note {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .in-note .ss-btn {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .in-person {
        grid-template-columns: minmax(0, 1fr);
    }

    .in-person__photo {
        max-width: 220px;
    }

    .in-plan__list--two {
        grid-template-columns: minmax(0, 1fr);
    }

    .in-actions .ss-btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .in-heart,
    .in-result__btn,
    .in-result__btn .fa,
    .in-check span,
    .in-choices a {
        transition: none;
    }
}
