/* =========================================================
   MLM Soft Registration Types — registration form styles
   ========================================================= */

/* Type selector wrapper */
.mst-type-selector {
    margin-bottom: 24px;
}

.mst-type-label {
    font-weight: 600;
    margin-bottom: 12px;
}

/* Cards row */
.mst-type-cards {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Single card */
.mst-type-card {
    flex: 1 1 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    border: 2px solid #d5d9e0;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    user-select: none;
}

.mst-type-card:hover {
    border-color: #aab0bb;
}

.mst-type-card.is-selected {
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.15);
}

/* Hide the radio input visually */
.mst-type-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.mst-type-card__title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
    display: block;
}

.mst-type-card__desc {
    font-size: 12px;
    color: #6b7280;
    display: block;
    line-height: 1.4;
}

/* Customer card */
.mst-type-card[for="mst_type_customer"].is-selected {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.15);
}

/* Business card */
.mst-type-card[for="mst_type_business"].is-selected {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.15);
}

/* Affiliate card */
.mst-type-card[for="mst_type_affiliate"].is-selected {
    border-color: #38a169;
    box-shadow: 0 0 0 3px rgba(56, 161, 105, 0.15);
}

/* Optional label */
.mst-optional {
    font-weight: 400;
    color: #6b7280;
    font-size: 13px;
    margin-left: 4px;
}

/* Custom fields — hidden by default, shown by JS */
.mst-field {
    display: none;
}

/* Responsive */
@media (max-width: 480px) {
    .mst-type-cards {
        flex-direction: column;
    }
    .mst-type-card {
        flex: 1 1 auto;
    }
}
