/* choose_role.css */

.role-select {
    min-height: 100vh;
    background-color: #fafafa;
    font-family: 'Lato', sans-serif;
    padding: 24px 40px 40px;
    box-sizing: border-box;
    position: relative;
}

/* BACK LINK */

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: #7a1f2b;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* TITLE */

.role-select__title {
    text-align: center;
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    font-size: 1.4rem;
    color: #7a1f2b;
    margin: 8px 0 32px 0;
    letter-spacing: 0.02rem;
}

/* CARDS ROW */

.role-select__cards {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto;
}

/* ROLE CARD */

.role-card {
    flex: 1;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    border: 2px solid #7a1f2b;
    border-radius: 14px;
    padding: 24px 20px 28px;
    background-color: #fff;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.role-card:hover {
    box-shadow: 0 6px 16px rgba(122, 31, 43, 0.15);
    transform: translateY(-2px);
}

.role-card h2 {
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    font-size: 1.3rem;
    color: #7a1f2b;
    margin: 0 0 16px 0;
    text-transform: uppercase;
}

.role-card img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    margin-bottom: 16px;
}

.role-card p {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #7a1f2b;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

/* BUTTONS */

.role-card .btn {
    pointer-events: none;
}

/* CENTER LOGO */

.role-select__cards .brand-lockup {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.role-select__cards .brand-mark img {
    width: auto;
    max-width: 200px;
    height: auto;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .role-select__cards {
        flex-direction: column;
        gap: 24px;
    }

    .role-select__cards .brand-mark img {
        max-width: 150px;
        order: -1;
    }

    .role-card {
        max-width: 400px;
        width: 100%;
    }
}

/* RESPONSIVE CHOOSE ROLE */
.role-select__cards {
    min-width: 0;
}

.role-card {
    box-sizing: border-box;
    min-width: 0;
}

.role-card p {
    overflow-wrap: anywhere;
}

.role-select__cards .brand-lockup {
    min-width: 0;
    max-width: 100%;
}

.role-select__cards .brand-mark img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* TABLET */
@media (max-width: 900px) {
    .role-select {
        padding-left: 24px;
        padding-right: 24px;
    }

    .role-select__cards {
        width: 100%;
        gap: 24px;
    }

    .role-card {
        width: 100%;
    }
}

/* MOBILE */
@media (max-width: 600px) {
    .role-select {
        padding: 20px 16px 28px;
    }

    .role-select__title {
        font-size: 1.25rem;
        margin-bottom: 24px;
    }

    .role-select__cards {
        gap: 20px;
    }

    .role-card {
        padding: 20px 16px 24px;
    }

    .role-card img {
        width: 120px;
        height: 120px;
    }

    .role-card h2 {
        font-size: 1.15rem;
    }

    .role-card p {
        font-size: 0.95rem;
    }

    .role-select__cards .brand-mark img {
        max-width: 130px;
    }
}

/* VERY NARROW SCREENS */
@media (max-width: 360px) {
    .role-select {
        padding-left: 12px;
        padding-right: 12px;
    }

    .role-card {
        padding: 18px 12px 20px;
    }

    .role-card img {
        width: 100px;
        height: 100px;
    }
}