/* -------------------------------------------------------------------------
 * LUS Auth — Sign-up "Guest vs Host" step
 *
 * Turns the theme's single-screen "Create an account" modal into a two-step
 * flow: first the visitor picks Guest or Host, then the existing register
 * form appears. Purely additive — the markup is injected at runtime by
 * js/lus-auth-signup-step.js and the theme's own register AJAX is untouched
 * (we just set the hidden #acctype0/#acctype1 radio it already reads).
 * ---------------------------------------------------------------------- */

/* Utility toggled from JS instead of inline display, so transitions work. */
#ajax_register_div .lus-hidden {
    display: none !important;
}

/* The theme's book/rent radios are now driven by the card choice. */
#ajax_register_div .acc_radio {
    display: none !important;
}
#ajax_register_div .lus-hidden-radio {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

/* Anti-spam honeypot (auth/anti-spam.php) — kept off-screen rather than
 * display:none, since some bots skip fields hidden that way. */
#ajax_register_div .lus-hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none;
}

/* --- Step 1: the chooser --------------------------------------------------- */
#lus-signup-chooser {
    padding: 6px 0 2px;
    animation: lusSignupFade .18s ease both;
}
#lus-signup-chooser .lus-signup-chooser-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 4px;
    color: #2b2b2b;
}
#lus-signup-chooser .lus-signup-chooser-sub {
    font-size: 13px;
    line-height: 1.4;
    margin: 0 0 18px;
    color: #8a8a8a;
}

.lus-signup-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.lus-signup-card {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin: 0;
    padding: 18px 16px;
    border: 1.5px solid #e6e6e6;
    border-radius: 14px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    transition: border-color .16s ease, box-shadow .16s ease,
                background-color .16s ease, transform .16s ease;
    -webkit-appearance: none;
    appearance: none;
}
.lus-signup-card:hover,
.lus-signup-card:focus-visible {
    border-color: var(--lus-auth-accent, #d64541);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .10);
    transform: translateY(-2px);
    outline: none;
}
.lus-signup-card.is-selected {
    border-color: var(--lus-auth-accent, #d64541);
    background: #fbeceb;
    background: color-mix(in srgb, var(--lus-auth-accent, #d64541) 8%, #fff);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, .06);
}

.lus-signup-card-icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5e8e7;
    background: color-mix(in srgb, var(--lus-auth-accent, #d64541) 12%, #fff);
    color: var(--lus-auth-accent, #d64541);
    font-size: 19px;
}
.lus-signup-card:hover .lus-signup-card-icon,
.lus-signup-card.is-selected .lus-signup-card-icon {
    background: var(--lus-auth-accent, #d64541);
    color: #fff;
}

.lus-signup-card-body {
    flex: 1 1 auto;
    min-width: 0;
}
.lus-signup-card-title {
    display: block;
    font-size: 15.5px;
    font-weight: 700;
    color: #2b2b2b;
    line-height: 1.3;
}
.lus-signup-card-desc {
    display: block;
    font-size: 13px;
    color: #8a8a8a;
    margin-top: 3px;
    line-height: 1.4;
}

.lus-signup-card-arrow {
    flex: 0 0 auto;
    color: #c9c9c9;
    font-size: 13px;
    transition: transform .16s ease, color .16s ease;
}
.lus-signup-card:hover .lus-signup-card-arrow {
    color: var(--lus-auth-accent, #d64541);
    transform: translateX(3px);
}

/* Keep the "Already a member?" link clear of the cards. */
#ajax_register_div .navigation_links {
    margin-top: 20px;
}

/* --- Step 2: icon-only back chevron on the side --------------------- */
#lus-signup-step2-head {
    margin: 0 0 10px;
    animation: lusSignupFade .18s ease both;
}
.lus-signup-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-left: -6px;          /* nudge the glyph to the panel edge */
    padding: 0;
    background: none;
    border: none;
    border-radius: 50%;
    color: #555;
    cursor: pointer;
    line-height: 1;
    transition: color .16s ease, background-color .16s ease;
}
.lus-signup-back:hover {
    color: var(--lus-auth-accent, #d64541);
    background: rgba(0, 0, 0, .05);
}
.lus-signup-back .lus-back-arrow {
    display: block;
    flex: 0 0 auto;
}

@keyframes lusSignupFade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
