/* ===== ROLE SELECTOR STEP ===== */
.spcloud_role_selector_wrap {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    padding: 28px 24px 20px;
    margin-bottom: 0;
}

.spcloud_role_tabs {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    border: 1.5px solid #1a5e7a;
    margin-bottom: 18px;
}

.spcloud_role_tab {
    flex: 1;
    padding: 12px 10px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: #fff;
    color: #1a5e7a;
    transition: all 0.2s;
    text-align: center;
    letter-spacing: 0.01em;
}

.spcloud_role_tab.active {
    background: #1a5e7a;
    color: #fff;
}

.spcloud_role_tab:first-child {
    border-right: 1.5px solid #1a5e7a;
}

.spcloud_role_tab:hover:not(.active) {
    background: #eaf3f7;
}

.spcloud_role_subtitle {
    font-size: 12px;
    color: #5a8fa8;
    background: #eaf3f8;
    border-radius: 20px;
    padding: 5px 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
}

.spcloud_role_subtitle svg {
    width: 14px; height: 14px; flex-shrink: 0;
}

.spcloud_role_question {
    font-size: 13.5px;
    font-weight: 600;
    color: #222;
    margin-bottom: 10px;
}

.spcloud_role_option {
    display: flex;
    align-items: center;
    border: 1.5px solid #d6e4eb;
    border-radius: 8px;
    padding: 11px 14px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.18s;
    gap: 12px;
    background: #fff;
    position: relative;
}

.spcloud_role_option:hover {
    border-color: #1a5e7a;
    background: #f0f8fc;
}

.spcloud_role_option.selected {
    border-color: #1a5e7a;
    background: #eaf3f8;
}

.spcloud_role_option input[type="radio"] {
    accent-color: #1a5e7a;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.spcloud_role_option_icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #d4eaf3;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.spcloud_role_option_icon svg {
    width: 18px; height: 18px; color: #1a5e7a;
}

.spcloud_role_option_text {
    flex: 1;
    min-width: 0;
}

.spcloud_role_option_title {
    font-size: 13px;
    font-weight: 600;
    color: #1a2a35;
    margin-bottom: 1px;
}

.spcloud_role_option_desc {
    font-size: 11px;
    color: #6a8fa0;
}

/* Role panel visibility */
.spcloud_role_panel { display: none; }
.spcloud_role_panel.active { display: block; }

/* Hidden role fields (submitted with form) */
#role_type, #role_subtype { display: none; }

/* Continue button */
.spcloud_role_continue_btn {
    width: 100%;
    padding: 13px;
    background: #1a5e7a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.18s;
}
.spcloud_role_continue_btn:hover { background: #154e67; }
.spcloud_role_continue_btn:disabled { background: #a0bfcc; cursor: not-allowed; }

/* Transition between role selector and form */
.spcloud_signup_step { display: none; }
.spcloud_signup_step.active { display: block; }

/* Back button */
.spcloud_back_btn {
    background: none;
    border: none;
    color: #1a5e7a;
    font-size: 12.5px;
    cursor: pointer;
    padding: 0;
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}
.spcloud_back_btn:hover { text-decoration: underline; }

/* Role badge shown inside the form */
.spcloud_selected_role_badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    background: #eaf3f8;
    color: #1a5e7a;
    border-radius: 20px;
    padding: 4px 12px;
    margin-bottom: 14px;
    font-weight: 600;
}