/* ==========================================================================
   Espresso Mio — Request Access screens
   Matches Figma nodes 811:12847 (step 1), 811:13204 (step 2),
   811:13506 (step 3) and 811:13718 (pending confirmation).

   The Figma frames are mobile-width (643px). On desktop the card is widened
   and the field rows lay out side by side; below 768px everything collapses
   back to the single-column mobile design.

   Builds on forgot-password.css (.ea-* base classes) — this file only adds
   what the request-access flow needs on top of that.
   ========================================================================== */

/* Wider card for the multi-step form ------------------------------------- */
.ea-card--wide {
    width: 720px;
}

/* Step indicator (1 — 2 — 3) --------------------------------------------- */
.ra-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.ra-steps__item {
    display: flex;
    align-items: flex-start;
}

/* The numbered bubble + its label sit in a column so the label can hang
   below the bubble without affecting the connector alignment. */
.ra-steps__node {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 96px;
}

.ra-steps__bubble {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #dfdfdf; /* Outline / inactive */
    color: #909090;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    flex: 0 0 auto;
}

.ra-steps__label {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #228b22; /* Green */
    text-align: center;
    /* Only the active step shows a label in the design. */
    visibility: hidden;
}

/* Connector line between bubbles — vertically centred on the bubbles. */
.ra-steps__line {
    width: 46px;
    height: 2px;
    margin-top: 18px;
    background-color: #dfdfdf;
    flex: 0 0 auto;
}

/* Active / completed states */
.ra-steps__item--active .ra-steps__bubble,
.ra-steps__item--done .ra-steps__bubble {
    background-color: #228b22;
    color: #fff;
}

.ra-steps__item--active .ra-steps__label {
    visibility: visible;
}

.ra-steps__line--done {
    background-color: #228b22;
}

/* Step panel — owns the vertical rhythm between its own fields, since the
   .ea-form gap only applies to the step sections themselves. */
.ra-step {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Section heading + intro copy ------------------------------------------- */
.ra-intro {
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: #2a2121;
    text-align: left;
}

.ra-section-title {
    margin: 8px 0 0;
    font-size: 18px;
    font-weight: 700;
    color: #000;
    text-align: left;
}

/* Field rows -------------------------------------------------------------- */
.ra-row {
    display: grid;
    gap: 16px;
}

.ra-row--2 {
    grid-template-columns: 1fr 1fr;
}

/* City / State / ZIP — city takes the remaining space. */
.ra-row--3 {
    grid-template-columns: 1.6fr 1fr 1fr;
}

/* Expiration Date / CVV */
.ra-row--exp {
    grid-template-columns: 2fr 1fr;
}

/* Select ----------------------------------------------------------------- */
.ea-field select {
    width: 100%;
    height: 52px;
    border: 1px solid #dfdfdf;
    border-radius: 5px;
    padding: 0 40px 0 14px;
    font-size: 14px;
    color: #2a2121;
    background-color: #fff;
    box-sizing: border-box;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23606060' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.ea-field select:focus {
    outline: none;
    border-color: #228b22;
    box-shadow: 0 0 0 2px rgba(34, 139, 34, 0.12);
}

/* Placeholder option renders grey like the text inputs' placeholder. */
.ea-field select.ra-select--placeholder {
    color: #909090;
}

/* Checkbox rows ---------------------------------------------------------- */
.ra-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: #2a2121;
    cursor: pointer;
}

.ra-check input[type='checkbox'] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    border: 1px solid #dfdfdf;
    border-radius: 3px;
    background-color: #fff;
    cursor: pointer;
    flex: 0 0 auto;
    position: relative;
}

.ra-check input[type='checkbox']:checked {
    background-color: #228b22;
    border-color: #228b22;
}

.ra-check input[type='checkbox']:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.ra-check input[type='checkbox']:focus-visible {
    outline: 2px solid #228b22;
    outline-offset: 2px;
}

.ra-check a {
    color: #8a6541; /* Brown */
    text-decoration: underline;
}

/* Buttons ---------------------------------------------------------------- */
.ra-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.ea-btn--ghost {
    background-color: transparent;
    color: #8a6541;
    padding: 10px 24px;
    font-weight: 400;
}

.ea-btn--ghost:hover {
    background-color: transparent;
    text-decoration: underline;
}

/* Only the step currently in view is rendered. */
.ra-step[hidden] {
    display: none;
}

/* Responsive — collapse to the single-column mobile design ---------------- */
@media (max-width: 767px) {
    .ea-card--wide {
        width: 100%;
    }

    .ra-row--2,
    .ra-row--3,
    .ra-row--exp {
        grid-template-columns: 1fr;
    }

    .ra-steps__node {
        width: 72px;
    }

    .ra-steps__line {
        width: 28px;
    }
}
